-
-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathmain.js
52 lines (50 loc) · 261 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return s}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function l(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function s(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}},,function(e,t,n){"use strict";function r(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(e,Error)}}function o(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function i(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function a(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function l(e){return"[object String]"===Object.prototype.toString.call(e)}function u(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return"undefined"!=typeof Event&&m(e,Event)}function f(e){return"undefined"!=typeof Element&&m(e,Element)}function d(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function p(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function h(e){return s(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function m(e,t){try{return e instanceof t}catch(e){return!1}}n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"k",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"c",(function(){return f})),n.d(t,"j",(function(){return d})),n.d(t,"m",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"g",(function(){return m}))},function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return i})),n.d(t,"i",(function(){return a})),n.d(t,"h",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return p}));var r=n(12),o=(n(8),{});function i(){return Object(r.b)()?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function a(){var e=i(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function l(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function u(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function s(e){var t=i();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}function c(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function f(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function d(){try{return document.location.href}catch(e){return""}}function p(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}}).call(this,n(16))},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return y})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return g}));var r=n(0),o=n(24),i=n(2),a=n(38),l=n(15),u=n(8);function s(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=o}}function c(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function f(e){if(Object(i.d)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(Object(i.f)(e)){var a=e,l={};l.type=a.type;try{l.target=Object(i.c)(a.target)?Object(o.a)(a.target):Object.prototype.toString.call(a.target)}catch(e){l.target="<unknown>"}try{l.currentTarget=Object(i.c)(a.currentTarget)?Object(o.a)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(e){l.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&Object(i.g)(e,CustomEvent)&&(l.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,r)&&(l[r]=a);return l}return e}function d(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function p(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=y(e,t);return d(r)>n?p(e,t-1,n):r}function h(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==e&&t===e?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":Object(i.l)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+Object(l.a)(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function m(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new a.a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=h(e);return Object(i.i)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var o=h(t,e);if(Object(i.i)(o))return o;var l=f(t),u=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(u[s]=m(s,l[s],n-1,r));return r.unmemoize(t),u}function y(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return m(e,n,t)})))}catch(e){return"**non-serializable**"}}function v(e,t){void 0===t&&(t=40);var n=Object.keys(f(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(u.d)(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:Object(u.d)(o,t)}return""}function g(e){var t,n;if(Object(i.h)(e)){var o=e,a={};try{for(var l=Object(r.f)(Object.keys(o)),u=l.next();!u.done;u=l.next()){var s=u.value;void 0!==o[s]&&(a[s]=g(o[s]))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return a}return Array.isArray(e)?e.map(g):e}}).call(this,n(16))},,function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(27));class i{constructor({r:e,g:t,b:n,a:r,name:o,sourceId:i}){this.r=e,this.g=t,this.b=n,this.a=r,this.name=o,this.sourceId=i}static fromXdObject(e){const{r:t,g:n,b:r,a:o}=e;return new i({r:t,g:n,b:r,a:o/255})}static fromAsset(e){const{name:t,color:n}=e,{r:r,g:o,b:a,a:l}=n,u=i.generateSourceIdFromXdObject(n,t);return new i({r:r,g:o,b:a,a:l/255,name:t,sourceId:u})}static generateSourceIdFromXdObject(e,t){const{r:n,g:r,b:i,a:a}=e;return o.default(`${t}${n}${r}${i}${a}`)}}t.default=i},function(e,t,n){"use strict";e.exports=n(68)},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var r=n(2);function o(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function i(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var o=Math.max(t-60,0);o<5&&(o=0);var i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n="'{snip} "+n),i<r&&(n+=" {snip}"),n}function a(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function l(e,t){return!!Object(r.k)(e)&&(Object(r.j)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIMITATIONS_ARTICLE_URL=t.LEARN_MORE_BUTTON_TITLE=t.NO_SELECTION_MESSAGE=t.CLICK_LEARN_MORE_MESSAGE=t.EXCEED_SIZE_LIMIT_MESSAGE=t.EXPORT_AGAIN_MESSAGE=t.COMPLETE_WITH_WARNINGS_TITLE=t.NO_SELECTION=t.TOO_LARGE_TO_EXPORT_ERROR_TITLE=t.UNMASK_COMPONENT_ERROR_TITLE=t.MASK_COMPONENT_ERROR_TITLE=t.CREATE_SYMBOL_MAP_ERROR_TITLE=t.GENERATE_MODELS_FILE_ERROR_TITLE=t.GENERATE_ASSETS_ERROR_TITLE=t.GET_SNAPSHOT_RENDITION_SETTINGS_ERROR_TITLE=t.GET_LAYER_RENDITION_SETTINGS_ERROR_TITLE=t.CREATE_EXPORT_FOLDER_ERROR_TITLE=t.CREATE_DUMP_ERROR_TITLE=t.EXPORT_FAILED=t.IGNORE_CHILDREN_PREFIX=t.LAYER_NAME_MAX_LENGTH=void 0;t.LAYER_NAME_MAX_LENGTH=50;t.IGNORE_CHILDREN_PREFIX="-g-";t.EXPORT_FAILED="Exporting to Zeplin failed 😓";t.CREATE_DUMP_ERROR_TITLE="Creating dump failed";t.CREATE_EXPORT_FOLDER_ERROR_TITLE="Creating export folder failed";t.GET_LAYER_RENDITION_SETTINGS_ERROR_TITLE="Getting layer rendition settings failed";t.GET_SNAPSHOT_RENDITION_SETTINGS_ERROR_TITLE="Getting snapshot rendition settings failed";t.GENERATE_ASSETS_ERROR_TITLE="Generating assets failed";t.GENERATE_MODELS_FILE_ERROR_TITLE="Generating models file failed";t.CREATE_SYMBOL_MAP_ERROR_TITLE="Creating symbol map failed";t.MASK_COMPONENT_ERROR_TITLE="Masking component failed";t.UNMASK_COMPONENT_ERROR_TITLE="Unmasking component failed";t.TOO_LARGE_TO_EXPORT_ERROR_TITLE="Your selection contains some artboards over the export limitations";t.NO_SELECTION="No artboard/component selected";t.COMPLETE_WITH_WARNINGS_TITLE="Export complete with warnings";t.LEARN_MORE_BUTTON_TITLE="Learn More";t.EXPORT_AGAIN_MESSAGE="Please try exporting again and if the issue continues, reach out to us at <b>[email protected]</b>.";t.EXCEED_SIZE_LIMIT_MESSAGE="Exporting artboards failed since they exceed the size limit. Click “Learn More” below for more details.";t.CLICK_LEARN_MORE_MESSAGE="Click “Learn More” below for more details.";t.NO_SELECTION_MESSAGE="Select the artboards or components you want to export first.";t.LIMITATIONS_ARTICLE_URL="https://support.zeplin.io/en/articles/4810501-fixing-adobe-xd-export-issues"},function(e,t){e.exports=require("scenegraph")},,function(e,t,n){"use strict";(function(e,r){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));n(2),n(4);function o(){return"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}function i(e,t){return e.require(t)}}).call(this,n(66),n(34)(e))},function(e,t){e.exports=require("application")},function(e,t){e.exports=require("uxp")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42);t.default=class{static displayError(e,t){r.createDialog({title:e,isError:!1,msgs:t,buttons:[{label:"OK",type:"submit",variant:"primary"}]})}static displayErrorWithAction(e,t,n,o){r.createDialog({title:e,isError:!1,msgs:t,buttons:[{label:n,type:"submit",variant:"cta"},{label:"OK",type:"submit",variant:"primary"}]}).then(({which:e})=>{0===e&&o()})}static displayAlert(e,t){r.createDialog({title:e,isError:!1,msgs:t,buttons:[{label:"OK",type:"submit",variant:"primary"}]})}static displayAlertWithAction(e,t,n,o){r.createDialog({title:e,isError:!1,msgs:t,buttons:[{label:n,type:"submit",variant:"cta"},{label:"OK",type:"submit",variant:"primary"}]}).then(({which:e})=>{0===e&&o()})}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const u=n(13),s=l(n(45)),c=n(10),f=n(14),d=n(46),p=l(n(26)),h=l(n(6)),m=l(n(50)),y=l(n(65)),v=l(n(30)),g=l(n(21)),b=i(n(32));class _{constructor(e,t){this.scaledDownSnapshotNames=[],this.dump=this.createDump(e,t)}start(){return a(this,void 0,void 0,(function*(){yield this.createExportFolder(),yield this.generateAssets(),this.updateComponentAssetLayerIdsAndSourceIds(),yield this.generateDumpJson(),g.default.unmaskComponents()}))}getExportFolderPath(){if(this.exportFolder)return this.exportFolder.nativePath}getScaledDownSnapshotNames(){return this.scaledDownSnapshotNames.length>0?this.scaledDownSnapshotNames:void 0}static getExportableNodesFromSelection(e){const t=new Set,n=new Set;for(const r of e.items){const o=_.getExportableNode(e,r);if(o)switch(o.type){case"Artboard":t.add(o.node);break;case"Component":n.add(o.node)}}return{artboards:Array.from(t),symbols:Array.from(n)}}createDump(e,t){try{const n=e.map(e=>y.default.fromXdObject(e)),r=t.map(e=>m.default.fromXdObject(e)),o=s.default.colors.get().filter(e=>"color"in e).map(e=>h.default.fromAsset(e));return{screens:n,components:r,colors:o,textStyles:s.default.characterStyles.get().map(e=>v.default.fromXdCharacterStyleAsset(e))}}catch(e){throw b.default.create(b.ZeplinErrorType.CreateDump,e)}}updateComponentAssetLayerIdsAndSourceIds(){const{components:e}=this.dump;e.forEach(e=>{const t=e.latestVersion.snapshot.assets.find(t=>t.layerId===e.sourceId);t&&(t.layerId=p.default.snapshotLayerId);const n=c.getNodeByGUID(e.sourceId);n&&n instanceof c.SymbolInstance&&(e.sourceId=n.symbolId)})}getSnapshotExportScale(e){const{name:t,latestVersion:{snapshot:{width:n,height:r}}}=e;if(n*r<=_.snapshotPixelLimitForRetinaDisplays)return 2;if(n*r<=_.snapshotPixelLimit)return this.scaledDownSnapshotNames.push(t),1;throw b.default.create(b.ZeplinErrorType.TooLargeToExport)}generateDumpJson(){return a(this,void 0,void 0,(function*(){if(this.exportFolder)try{const e=yield this.exportFolder.createFile("models.json",{overwrite:!0});yield e.write(JSON.stringify(this.dump))}catch(e){throw b.default.create(b.ZeplinErrorType.GenerateModelsFile,e)}}))}generateAssets(){return a(this,void 0,void 0,(function*(){if(!this.exportFolder)return;const[e,t]=yield Promise.all([this.getLayerRenditionSettings(),this.getSnapshotRenditionSettings()]);try{yield u.createRenditions([...e,...t])}catch(e){throw b.default.create(b.ZeplinErrorType.GenerateAssets,e)}}))}getLayerRenditionSettings(){return a(this,void 0,void 0,(function*(){const{screens:e,components:t}=this.dump,n=[...e.flatMap(e=>e.latestVersion.snapshot.assets),...t.flatMap(e=>e.latestVersion.snapshot.assets)];try{const e=n.map(e=>a(this,void 0,void 0,(function*(){const{layerId:t,isBitmap:n}=e,r=c.getNodeByGUID(t);if(!r)return[];const o=this.exportFolder;let i;if(n){const[e,n]=yield Promise.all([d.jpgExportSettings(r,t,o),d.pngExportSettings(r,t,o)]);i=[...e,...n]}else{const[e,n,a]=yield Promise.all([d.pngExportSettings(r,t,o),d.svgExportSettings(r,t,o),d.pdfExportSettings(r,t,o)]);i=[...e,...n,...a]}return e.setContentsFromRenditionSettings(i),i})));return(yield Promise.all(e)).flat()}catch(e){throw b.default.create(b.ZeplinErrorType.GetLayerRenditionSettings,e)}}))}getSnapshotRenditionSettings(){return a(this,void 0,void 0,(function*(){const{screens:e,components:t}=this.dump,n=[...e,...t];try{return(yield Promise.all(n.map(e=>a(this,void 0,void 0,(function*(){const{sourceId:t}=e,n=c.getNodeByGUID(t);if(!n)return[];let r=n;n instanceof c.SymbolInstance&&g.default.shouldMaskComponent(n)&&(r=g.default.maskComponent(n));const o=this.getSnapshotExportScale(e),i=yield d.snapshotExportSettings(r,t,this.exportFolder,o),{latestVersion:{snapshot:a}}=e;return a.path=i[0].outputFile.nativePath,i}))))).flat()}catch(e){if(e instanceof b.default)throw e;throw b.default.create(b.ZeplinErrorType.GetSnapshotRenditionSettings,e)}}))}generateFolderName(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=e.length;let n="";for(let r=0;r<_.folderNameLength;r++)n+=e.charAt(Math.floor(Math.random()*t));return n+=Date.now(),n}createExportFolder(){return a(this,void 0,void 0,(function*(){try{const e=yield f.storage.localFileSystem.getTemporaryFolder(),t=yield e.createFolder(this.generateFolderName());this.exportFolder=t}catch(e){throw b.default.create(b.ZeplinErrorType.CreateExportFolder,e)}}))}static getExportableNode(e,t){const{parent:n}=t;if(n&&!(t instanceof c.RootNode))return t instanceof c.SymbolInstance&&n instanceof c.RootNode&&e.isInEditContext(t)?{type:"Component",node:t}:t instanceof c.Artboard?{type:"Artboard",node:t}:_.getExportableNode(e,n)}}_.folderNameLength=16,_.snapshotPixelLimitForRetinaDisplays=64e6,_.snapshotPixelLimit=256e6,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromXdBlendMode=void 0,t.fromXdBlendMode=function(e){switch(e){case"pass-through":return"normal";case"normal":case"darken":case"multiply":case"color-burn":case"lighten":case"screen":case"color-dodge":case"overlay":case"soft-light":case"hard-light":case"difference":case"exclusion":case"hue":case"saturation":case"color":case"luminosity":return e;default:return}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWhitespace=t.pluralize=void 0,t.pluralize=function(e,t,n="s"){return e<=0?"":`${e} ${t}${1!==e?n:""}`},t.isWhitespace=function(e){return 0===e.replace(/\s/g,"").length}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=a(n(62)),u=n(10),s=i(n(32));class c{static createSymbolMap(){try{const e=new Map;u.root.children.forEach(t=>{if(t instanceof u.SymbolInstance){const{symbolId:n,name:r,markedForExport:o}=t;e.set(n,{name:r,isExportable:o})}}),c.symbolMap=e}catch(e){throw s.default.create(s.ZeplinErrorType.CreateSymbolMap,e)}}static maskComponent(e){try{const{globalBounds:{width:t,height:n,x:r,y:o}}=e,i=new u.Rectangle;i.width=t,i.height=n,i.moveInParentCoordinates(r,o),u.root.addChild(i),u.selection.items=[i,e],l.default.createMaskGroup();const a=u.selection.items[0];return c.maskedComponents.push(a),a}catch(e){throw s.default.create(s.ZeplinErrorType.MaskComponent,e)}}static unmaskComponents(){try{c.maskedComponents.forEach(e=>{const t=e.mask;u.selection.items=[e],l.default.ungroup(),t&&t.removeFromParent()}),c.maskedComponents=[]}catch(e){throw s.default.create(s.ZeplinErrorType.UnmaskComponent,e)}}static shouldMaskComponent(e){const{globalBounds:{width:t,height:n},globalDrawBounds:{width:r,height:o}}=e;return r>t||o>n}}c.maskedComponents=[],t.default=c},function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function l(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=n[u]||0,c="".concat(u," ").concat(s);n[u]=s+1;var f=l(c),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:c,updater:y(d,t),references:1}),r.push(c)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c,f=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function y(e,t){var n,r,o;if(t.singleton){var i=m++;n=h||(h=s(t)),r=d.bind(null,n,i,!1),o=d.bind(null,n,i,!0)}else n=s(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=l(n[r]);a[o].references--}for(var i=u(e,t),s=0;s<n.length;s++){var c=l(n[s]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=i}}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2);function o(e){try{for(var t=e,n=[],r=0,o=0,a=" > ".length,l=void 0;t&&r++<5&&!("html"===(l=i(t))||r>1&&o+n.length*a+l.length>=80);)n.push(l),o+=l.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function i(e){var t,n,o,i,a,l=e,u=[];if(!l||!l.tagName)return"";if(u.push(l.tagName.toLowerCase()),l.id&&u.push("#"+l.id),(t=l.className)&&Object(r.k)(t))for(n=t.split(/\s+/),a=0;a<n.length;a++)u.push("."+n[a]);var s=["type","name","title","alt"];for(a=0;a<s.length;a++)o=s[a],(i=l.getAttribute(o))&&u.push("["+o+'="'+i+'"]');return u.join("")}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(13),a=o(n(40)),l=o(n(14)),u=o(n(17)),s=o(n(44)),c=o(n(18)),f=o(n(33)),d=n(9),p=o(n(21)),h=o(n(35));class m{static exportSelected(e,t,n){return r(this,void 0,void 0,(function*(){yield m.export(e,t,n)}))}static exportFromPanel(e,t,n){i.editDocument({editLabel:"Zeplin"},()=>r(this,void 0,void 0,(function*(){yield m.export(e,t,n)})))}static export(e,t,n){return r(this,void 0,void 0,(function*(){try{p.default.createSymbolMap();const r=e.items,o=new c.default(t,n);yield o.start();const i=o.getExportFolderPath(),s=o.getScaledDownSnapshotNames();if(e.items=r,s&&u.default.displayAlertWithAction(d.COMPLETE_WITH_WARNINGS_TITLE,["Following artboards are exported at a lower resolution (1x) since they exceed the size limit:",...s.map(e=>"* "+e),d.CLICK_LEARN_MORE_MESSAGE],d.LEARN_MORE_BUTTON_TITLE,()=>l.default.shell.openExternal(d.LIMITATIONS_ARTICLE_URL)),i){const e=a.default.encode(i);"dev"===h.default.environment&&(console.log(i),console.log(e)),l.default.shell.openExternal(`${h.default.zeplinURL}/exportXd?path=${e}`)}}catch(e){throw f.default.log(e),s.default.displayError(e),e}}))}}t.default=m},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(47));class i{constructor({layerId:e,layerName:t,isBitmap:n}){this.layerId=e,this.layerName=t,this.displayName=t,this.isBitmap=n}setContentsFromRenditionSettings(e){this.contents=o.default.fromXdObject(e)}static fromLayer(e){const t=e.isGroup()?e.layers.flatMap(e=>i.fromLayer(e)):[];return e.exportable&&t.push(new i({layerId:e.sourceId,layerName:e.name,isBitmap:e.context.hasBitmap})),t}}i.snapshotLayerId="snapshot",t.default=i},function(e,t,n){var r,o,i,a,l;r=n(48),o=n(28).utf8,i=n(49),a=n(28).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),u=8*e.length,s=1732584193,c=-271733879,f=-1732584194,d=271733878,p=0;p<n.length;p++)n[p]=16711935&(n[p]<<8|n[p]>>>24)|4278255360&(n[p]<<24|n[p]>>>8);n[u>>>5]|=128<<u%32,n[14+(u+64>>>9<<4)]=u;var h=l._ff,m=l._gg,y=l._hh,v=l._ii;for(p=0;p<n.length;p+=16){var g=s,b=c,_=f,E=d;s=h(s,c,f,d,n[p+0],7,-680876936),d=h(d,s,c,f,n[p+1],12,-389564586),f=h(f,d,s,c,n[p+2],17,606105819),c=h(c,f,d,s,n[p+3],22,-1044525330),s=h(s,c,f,d,n[p+4],7,-176418897),d=h(d,s,c,f,n[p+5],12,1200080426),f=h(f,d,s,c,n[p+6],17,-1473231341),c=h(c,f,d,s,n[p+7],22,-45705983),s=h(s,c,f,d,n[p+8],7,1770035416),d=h(d,s,c,f,n[p+9],12,-1958414417),f=h(f,d,s,c,n[p+10],17,-42063),c=h(c,f,d,s,n[p+11],22,-1990404162),s=h(s,c,f,d,n[p+12],7,1804603682),d=h(d,s,c,f,n[p+13],12,-40341101),f=h(f,d,s,c,n[p+14],17,-1502002290),s=m(s,c=h(c,f,d,s,n[p+15],22,1236535329),f,d,n[p+1],5,-165796510),d=m(d,s,c,f,n[p+6],9,-1069501632),f=m(f,d,s,c,n[p+11],14,643717713),c=m(c,f,d,s,n[p+0],20,-373897302),s=m(s,c,f,d,n[p+5],5,-701558691),d=m(d,s,c,f,n[p+10],9,38016083),f=m(f,d,s,c,n[p+15],14,-660478335),c=m(c,f,d,s,n[p+4],20,-405537848),s=m(s,c,f,d,n[p+9],5,568446438),d=m(d,s,c,f,n[p+14],9,-1019803690),f=m(f,d,s,c,n[p+3],14,-187363961),c=m(c,f,d,s,n[p+8],20,1163531501),s=m(s,c,f,d,n[p+13],5,-1444681467),d=m(d,s,c,f,n[p+2],9,-51403784),f=m(f,d,s,c,n[p+7],14,1735328473),s=y(s,c=m(c,f,d,s,n[p+12],20,-1926607734),f,d,n[p+5],4,-378558),d=y(d,s,c,f,n[p+8],11,-2022574463),f=y(f,d,s,c,n[p+11],16,1839030562),c=y(c,f,d,s,n[p+14],23,-35309556),s=y(s,c,f,d,n[p+1],4,-1530992060),d=y(d,s,c,f,n[p+4],11,1272893353),f=y(f,d,s,c,n[p+7],16,-155497632),c=y(c,f,d,s,n[p+10],23,-1094730640),s=y(s,c,f,d,n[p+13],4,681279174),d=y(d,s,c,f,n[p+0],11,-358537222),f=y(f,d,s,c,n[p+3],16,-722521979),c=y(c,f,d,s,n[p+6],23,76029189),s=y(s,c,f,d,n[p+9],4,-640364487),d=y(d,s,c,f,n[p+12],11,-421815835),f=y(f,d,s,c,n[p+15],16,530742520),s=v(s,c=y(c,f,d,s,n[p+2],23,-995338651),f,d,n[p+0],6,-198630844),d=v(d,s,c,f,n[p+7],10,1126891415),f=v(f,d,s,c,n[p+14],15,-1416354905),c=v(c,f,d,s,n[p+5],21,-57434055),s=v(s,c,f,d,n[p+12],6,1700485571),d=v(d,s,c,f,n[p+3],10,-1894986606),f=v(f,d,s,c,n[p+10],15,-1051523),c=v(c,f,d,s,n[p+1],21,-2054922799),s=v(s,c,f,d,n[p+8],6,1873313359),d=v(d,s,c,f,n[p+15],10,-30611744),f=v(f,d,s,c,n[p+6],15,-1560198380),c=v(c,f,d,s,n[p+13],21,1309151649),s=v(s,c,f,d,n[p+4],6,-145523070),d=v(d,s,c,f,n[p+11],10,-1120210379),f=v(f,d,s,c,n[p+2],15,718787259),c=v(c,f,d,s,n[p+9],21,-343485551),s=s+g>>>0,c=c+b>>>0,f=f+_>>>0,d=d+E>>>0}return r.endian([s,c,f,d])})._ff=function(e,t,n,r,o,i,a){var l=e+(t&n|~t&r)+(o>>>0)+a;return(l<<i|l>>>32-i)+t},l._gg=function(e,t,n,r,o,i,a){var l=e+(t&r|n&~r)+(o>>>0)+a;return(l<<i|l>>>32-i)+t},l._hh=function(e,t,n,r,o,i,a){var l=e+(t^n^r)+(o>>>0)+a;return(l<<i|l>>>32-i)+t},l._ii=function(e,t,n,r,o,i,a){var l=e+(n^(t|~r))+(o>>>0)+a;return(l<<i|l>>>32-i)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(l(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(51));class i{constructor({sourceId:e,name:t,latestVersion:n}){this.sourceId=e,this.name=t,this.latestVersion=n}static fromXdObject(e){const{name:t,guid:n}=e,r=o.default.fromXdObject(e);return new i({sourceId:n,name:t.substring(0,i.nameMaxLength),latestVersion:r})}}i.nameMaxLength=100,t.default=i},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(6)),i=r(n(27));class a{constructor(e){this.sourceId=e.sourceId,this.name=e.name,this.color=e.color,this.fontSize=e.fontSize,this.fontFace=e.fontFace,this.letterSpacing=e.letterSpacing,this.lineHeight=e.lineHeight,this.textAlign=e.textAlign}static fromObject(e){const{sourceId:t,name:n,fontSize:r,fontFamily:o,fontStyle:i,textAlign:l,charSpacing:u,lineSpacing:s,color:c}=e;return new a({sourceId:t,name:n,fontSize:r,fontFace:a.fontPostScriptName(o,i),textAlign:l,letterSpacing:0!==u?r*u/1e3:void 0,lineHeight:s,color:c})}static fromXdCharacterStyleAsset(e){const{name:t,style:n}=e,{fontSize:r,fontFamily:i,fontStyle:l,fill:u,charSpacing:s,lineSpacing:c}=n,f=t||a.generateTextStyleName(i,r),d=a.generateSourceIdFromXdObject(n,f);return a.fromObject({sourceId:d,name:f,fontSize:r,fontFamily:i,fontStyle:l,charSpacing:s,lineSpacing:c,color:o.default.fromXdObject(u)})}static fontPostScriptName(e,t){return`${e}-${t}`.replace(/\s/g,"")}static generateTextStyleName(e,t){return`${e} - ${t}pt`}static generateSourceIdFromXdObject(e,t){const{fontSize:n,fontFamily:r,fontStyle:a,fill:l,charSpacing:u,lineSpacing:s,underline:c,strikethrough:f,textTransform:d,textScript:p}=e,h=o.default.generateSourceIdFromXdObject(l);return i.default(`${t}${r}${n}${a}${u}${s}${h}${c}${f}${d}${p}`)}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor({x:e,y:t,width:n,height:r}){this.x=e,this.y=t,this.width=n,this.height=r}createOriginatedRect(){return new r({x:0,y:0,width:this.width,height:this.height})}translate(e,t){this.x+=e,this.y+=t}createTranslatedRect(e,t){return new r({x:this.x+e,y:this.y+t,width:this.width,height:this.height})}union(e){const t=Math.min(this.x,e.x),n=Math.min(this.y,e.y);this.x=t,this.y=n,this.width=Math.max(this.x+this.width,e.x+e.width)-t,this.height=Math.max(this.y+this.height,e.y+e.height)-n}isZero(){return 0===this.width&&0===this.height}static fromIntersection(e,t){const n=e.getIntersectionRect(t);return n?(n.translate(-t.x,-t.y),n):r.zero()}static fromXdObject(e){return new r(e)}static zero(){return new r({x:0,y:0,width:0,height:0})}getIntersectionRect(e){if(!this.isIntersection(e))return;const t=Math.max(this.x,e.x),n=Math.max(this.y,e.y),o=Math.min(this.x+this.width,e.x+e.width),i=Math.min(this.y+this.height,e.y+e.height);return new r({x:t,y:n,width:o-t,height:i-n})}isIntersection(e){const{x:t,y:n,width:r,height:o}=e;return(this.x>=t&&this.x<=t+r||t>=this.x&&t<=this.x+this.width)&&(this.y>=n&&this.y<=n+o||n>=this.y&&n<=this.y+this.height)}}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeplinErrorType=void 0;const r=n(9);var o;!function(e){e.CreateDump="createDump",e.CreateExportFolder="createExportFolder",e.GetLayerRenditionSettings="getLayerRenditionSettings",e.GetSnapshotRenditionSettings="getSnapshotRenditionSettings",e.GenerateAssets="generateAssets",e.GenerateModelsFile="generateModelsFile",e.CreateSymbolMap="createSymbolMap",e.MaskComponent="maskComponent",e.UnmaskComponent="unmaskComponent",e.TooLargeToExport="tooLargeToExport"}(o||(o={})),t.ZeplinErrorType=o;class i extends Error{constructor(e,t){switch(super(),e){case o.CreateDump:this.name=r.CREATE_DUMP_ERROR_TITLE;break;case o.CreateExportFolder:this.name=r.CREATE_EXPORT_FOLDER_ERROR_TITLE;break;case o.GetLayerRenditionSettings:this.name=r.GET_LAYER_RENDITION_SETTINGS_ERROR_TITLE;break;case o.GetSnapshotRenditionSettings:this.name=r.GET_SNAPSHOT_RENDITION_SETTINGS_ERROR_TITLE;break;case o.GenerateAssets:this.name=r.GENERATE_ASSETS_ERROR_TITLE;break;case o.GenerateModelsFile:this.name=r.GENERATE_MODELS_FILE_ERROR_TITLE;break;case o.CreateSymbolMap:this.name=r.CREATE_SYMBOL_MAP_ERROR_TITLE;break;case o.MaskComponent:this.name=r.MASK_COMPONENT_ERROR_TITLE;break;case o.UnmaskComponent:this.name=r.UNMASK_COMPONENT_ERROR_TITLE;break;case o.TooLargeToExport:this.name=r.TOO_LARGE_TO_EXPORT_ERROR_TITLE}t&&(this.message=t.message,this.stack=t.stack)}static create(e,t){return new i(e,t)}}t.default=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=i(n(87)),u=a(n(35));t.default=class{static init(){l.init({dsn:u.default.sentryURL,release:"xd-plugin@"+u.default.pluginVersion,environment:u.default.environment,debug:"dev"===u.default.environment,attachStacktrace:!0})}static log(e){l.captureException(e)}}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={environment:"prod",sentryURL:"https://[email protected]/5569318",pluginVersion:"0.1.0",zeplinURL:"https://app.zeplin.io"}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,u=a(e),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))o.call(n,c)&&(u[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)i.call(n,l[f])&&(u[l[f]]=n[l[f]])}}return u}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IconComponent=t.IconArtboard=void 0;var o=n(77);Object.defineProperty(t,"IconArtboard",{enumerable:!0,get:function(){return r(o).default}});var i=n(78);Object.defineProperty(t,"IconComponent",{enumerable:!0,get:function(){return r(i).default}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}()},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=o(n(25)),a=o(n(17)),l=o(n(18)),u=o(n(33)),s=o(n(67)),c=n(9);u.default.init();const f=new s.default;e.exports={panels:{exportPanel:f},commands:{exportSelected:function(e){return r(this,void 0,void 0,(function*(){const{artboards:t,symbols:n}=l.default.getExportableNodesFromSelection(e);0===e.items.length||0===t.length&&0===n.length?a.default.displayAlert(c.NO_SELECTION,[c.NO_SELECTION_MESSAGE]):yield i.default.exportSelected(e,t,n)}))}}}},function(e,t,n){(function(e,r){var o;/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */!function(i){var a=t,l=(e&&e.exports,"object"==typeof r&&r);l.global!==l&&l.window;var u=function(e){this.message=e};(u.prototype=new Error).name="InvalidCharacterError";var s=function(e){throw new u(e)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,r,o,i=e.length%3,a="",l=-1,u=e.length-i;++l<u;)t=e.charCodeAt(l)<<16,n=e.charCodeAt(++l)<<8,r=e.charCodeAt(++l),a+=c.charAt((o=t+n+r)>>18&63)+c.charAt(o>>12&63)+c.charAt(o>>6&63)+c.charAt(63&o);return 2==i?(t=e.charCodeAt(l)<<8,n=e.charCodeAt(++l),a+=c.charAt((o=t+n)>>10)+c.charAt(o>>4&63)+c.charAt(o<<2&63)+"="):1==i&&(o=e.charCodeAt(l),a+=c.charAt(o>>2)+c.charAt(o<<4&63)+"=="),a},decode:function(e){var t=(e=String(e).replace(f,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,o=0,i="",a=-1;++a<t;)r=c.indexOf(e.charAt(a)),n=o%4?64*n+r:r,o++%4&&(i+=String.fromCharCode(255&n>>(-2*o&6)));return i},version:"1.0.0"};void 0===(o=function(){return d}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(41)(e),n(16))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){const{getManifest:r,getNearestIcon:o}=n(43);let i;async function a({title:e,icon:t="plugin-icon",msgs:n,prompt:a,multiline:l=!1,render:u,template:s,isError:c=!1,buttons:f=[{label:"Close",variant:"cta",type:"submit"}]}={},d=360,p="auto",h=18){let m=Array.isArray(n)?n:[n];try{i||(i=await r())}catch(e){}let y=!1;"plugin-icon"===t&&i.icons&&(y=!0,t=o(i,h=24));const v=document.createElement("dialog");v.innerHTML=`\n<style>\n .dialogForm {\n width: ${d}px;\n }\n .h1 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n }\n .h1 img {\n width: ${h}px;\n height: ${h}px;\n flex: 0 0 ${h}px;\n padding: 0;\n margin: 0;\n }\n img.plugin-icon {\n border-radius: 4px;\n overflow: hidden;\n }\n .list {\n display: flex;\n flex-direction: row;\n }\n .list .margin {\n margin-bottom: 0;\n margin-left: 0;\n }\n .list span {\n flex: 0 0 auto;\n border: 1px solid transparent;\n }\n .list .bullet {\n text-align: center;\n }\n .list + .list {\n margin-top: 0;\n }\n textarea {\n height: 200px;\n }\n .container {\n overflow-x: hidden;\n overflow-y: auto;\n height: ${"auto"===p?p:p+"px"};\n }\n</style>\n<form class="dialogForm" method="dialog">\n <h1 class="h1">\n <span ${c?'class="color-red"':""}>${e}</span>\n ${t?`<img ${y?`class="plugin-icon" title="${i.name}"`:""} src="${t}" />`:""}\n </h1>\n <hr />\n <div class="container">\n ${!u&&(s?s():m.map(e=>function e(t){if(Array.isArray(t))return t.map(t=>e(t)).join("");if("string"!=typeof t)return e(""+t);let n=t;n="##"===n.substr(0,2)?`<h3>${n.substr(2).trim().toUpperCase()}</h3>`:"#"===n.substr(0,1)?`<h2>${n.substr(1).trim()}</h2>`:"* "===n.substr(0,2)?`<p class="list"><span class="bullet margin">•</span><span class="margin">${n.substr(2).trim()}</span></p>`:"----"===n.substr(0,4)?'<hr class="small"/>'+n.substr(5).trim():"---"===n.substr(0,3)?"<hr/>"+n.substr(4).trim():`<p>${n.trim()}</p>`;const r=/\[([^\]]*)\]\(([^\)]*)\)/,o=t.match(r);if(o){const e=o[1];n=`<p><a href="${o[2]}">${n.replace(r,e).replace(/\<\|?p\>/g,"")}</a></p>`}return n}(e)).join("")+(a?`<label>${l?`<textarea id="prompt" placeholder="${a}"></textarea>`:`<input type="text" id="prompt" placeholder="${a}" />`}</label>`:""))}\n </div>\n <footer>\n ${f.map(({label:e,type:t,variant:n}={},r)=>`<button id="btn${r}" type="${t}" uxp-variant="${n}">${e}</button>`).join("")}\n </footer>\n</form>\n `,u&&v.querySelector(".container").appendChild(u());let g=-1,b=-1,_=-1;v.querySelector("form").onsubmit=()=>v.close("ok"),f.forEach(({type:e,variant:t}={},n)=>{const r=v.querySelector("#btn"+n);"submit"!==e&&"cta"!==t||(g=n),"reset"===e&&(b=n),r.onclick=e=>{e.preventDefault(),_=n,v.close(n===b?"reasonCanceled":"ok")}});try{document.appendChild(v);return"reasonCanceled"===await v.showModal()?{which:b,value:""}:(-1===_&&(_=g),{which:_,value:a?v.querySelector("#prompt").value:""})}catch(e){return{which:b,value:""}}finally{v.remove()}}e.exports={createDialog:a,alert:async function(e,...t){return a({title:e,msgs:t})},error:async function(e,...t){return a({title:e,isError:!0,msgs:t})},confirm:async function(e,t,n=["Cancel","OK"]){return a({title:e,msgs:[t],buttons:[{label:n[0],type:"reset",variant:"primary"},{label:n[1],type:"submit",variant:"cta"}]})},warning:async function(e,t,n=["Cancel","OK"]){return a({title:e,msgs:[t],buttons:[{label:n[0],type:"submit",variant:"primary"},{label:n[1],type:"button",variant:"warning"}]})},prompt:async function(e,t,n,r=["Cancel","OK"],o=!1){return a({title:e,msgs:[t],prompt:n,multiline:o,buttons:[{label:r[0],type:"reset",variant:"primary"},{label:r[1],type:"submit",variant:"cta"}]})}}},function(e,t,n){let r;e.exports={getManifest:async function(){if(!r){const e=n(14).storage.localFileSystem,t=await e.getPluginFolder(),o=await t.getEntry("manifest.json");if(o){const e=await o.read();r=JSON.parse(e)}}return r},getNearestIcon:function(e,t){if(e&&e.icons){return e.icons.sort((e,t)=>{const n=e.width,r=t.width;return n<r?1:n>r?-1:0}).reduce((e,n)=>(e?n.width>=t&&(e=n):e=n,e)).path}}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(14)),i=n(9),a=r(n(17));t.default=class{static displayError(e){const{name:t,message:n}=e;switch(t){case i.TOO_LARGE_TO_EXPORT_ERROR_TITLE:a.default.displayErrorWithAction(i.EXPORT_FAILED,[i.EXCEED_SIZE_LIMIT_MESSAGE],i.LEARN_MORE_BUTTON_TITLE,()=>o.default.shell.openExternal(i.LIMITATIONS_ARTICLE_URL));break;default:a.default.displayError(i.EXPORT_FAILED,[i.EXPORT_AGAIN_MESSAGE,`${t}: (${n})`])}}}},function(e,t){e.exports=require("assets")},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.pdfExportSettings=t.svgExportSettings=t.pngExportSettings=t.jpgExportSettings=t.snapshotExportSettings=void 0;const o=n(13);t.snapshotExportSettings=function(e,t,n,i){return r(this,void 0,void 0,(function*(){const r=yield n.createFile(`snapshot-${t}${2===i?"-2x":""}.png`,{overwrite:!0});return[{node:e,outputFile:r,type:o.RenditionType.PNG,scale:i}]}))},t.jpgExportSettings=function(e,t,n){return r(this,void 0,void 0,(function*(){const i=[];return yield Promise.all([1,1.5,2,3,4].map(a=>r(this,void 0,void 0,(function*(){const r=1===a?t+".jpg":`${t}-${a.toString().replace(".","_")}x.jpg`,l=yield n.createFile(r,{overwrite:!0});i.push({node:e,outputFile:l,type:o.RenditionType.JPG,scale:a,quality:90})})))),i}))},t.pngExportSettings=function(e,t,n){return r(this,void 0,void 0,(function*(){const i=[];return yield Promise.all([1,1.5,2,3,4].map(a=>r(this,void 0,void 0,(function*(){const r=1===a?t+".png":`${t}-${a.toString().replace(".","_")}x.png`,l=yield n.createFile(r,{overwrite:!0});i.push({node:e,outputFile:l,type:o.RenditionType.PNG,scale:a})})))),i}))},t.svgExportSettings=function(e,t,n){return r(this,void 0,void 0,(function*(){const r=yield n.createFile(t+".svg",{overwrite:!0});return[{node:e,outputFile:r,type:o.RenditionType.SVG,minify:!1,embedImages:!1}]}))},t.pdfExportSettings=function(e,t,n){return r(this,void 0,void 0,(function*(){const r=yield n.createFile(t+".pdf",{overwrite:!0});return[{node:e,outputFile:r,type:o.RenditionType.PDF}]}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(13);class o{constructor(e){this.path=e.path,this.format=e.format,this.densityScale=e.densityScale}static fromXdObject(e){const t=[];return e.forEach(e=>{const{type:n,outputFile:i}=e,a=i.nativePath;switch(n){case r.RenditionType.JPG:{const{scale:n}=e;t.push(new o({path:a,format:"jpg",densityScale:n}));break}case r.RenditionType.PNG:{const{scale:n}=e;t.push(new o({path:a,format:"png",densityScale:n}));break}case r.RenditionType.SVG:t.push(new o({path:a,format:"svg",densityScale:1}));break;case r.RenditionType.PDF:t.push(new o({path:a,format:"pdf",densityScale:1}))}}),t}}t.default=o},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?t.push(n.charAt(o>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(e.charAt(r))>>>6-2*o);return t}},e.exports=r},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(29));class i extends o.default{}t.default=i},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(52));class i{constructor({snapshot:e}){this.snapshot=e}static fromXdObject(e){return new i({snapshot:o.default.fromXdObject(e)})}}t.default=i},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(10),i=r(n(26)),a=r(n(53)),l=r(n(63)),u=r(n(31));class s{constructor(e){this.width=e.width,this.height=e.height,this.backgroundColor=e.backgroundColor,this.componentIds=e.componentIds,this.componentNames=e.componentNames,this.grid=e.grid,this.assets=e.assets,this.links=e.links,this.layers=e.layers,this.source="xd"}static fromXdObject(e){const{globalBounds:t,opacity:n,triggeredInteractions:r,children:c}=e,{width:f,height:d}=t,p=u.default.fromXdObject(t),h=p.createOriginatedRect(),m=[],y=[],v=[],g=(e,t)=>{y.push(e),t&&v.push(t)};let b=!1;c.filter(e=>e.visible).forEach(e=>{const t=a.default.fromXdObject(e,{addComponentsDataToSapshot:g,opacity:n,rect:p});t&&(b||(b=t.context.hasBitmap),m.push(t))});const _=m.flatMap(e=>i.default.fromLayer(e));e instanceof o.SymbolInstance&&e.markedForExport&&_.push(new i.default({layerId:e.guid,layerName:e.name,isBitmap:b}));const E=m.flatMap(e=>l.default.fromLayer(e,h));if(r){l.default.fromXdInteractions(r,h).forEach(e=>{E.push(e)})}return new s({width:f,height:d,layers:m,assets:_,links:E,componentIds:y,componentNames:v})}}t.default=s},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(10),i=r(n(54)),a=r(n(55)),l=r(n(56)),u=r(n(59)),s=r(n(31)),c=r(n(61)),f=n(19),d=r(n(21)),p=n(9);var h,m;!function(e){e.Text="text",e.Group="group",e.Shape="shape"}(h||(h={})),function(e){e.Top="top",e.Bottom="bottom"}(m||(m={}));class y{constructor(e){this.sourceId=e.sourceId,this.name=e.name,this.type=e.type,this.rect=e.rect,this.opacity=e.opacity,this.blur=e.blur,this.blendMode=e.blendMode,this.borderRadius=e.borderRadius,this.componentId=e.componentId,this.componentName=e.componentName,this.content=e.content,this.interactionLevel=e.interactionLevel,this.exportable=e.exportable,this.borders=e.borders,this.fills=e.fills,this.shadows=e.shadows,this.textStyles=e.textStyles,this.layers=e.layers,this.context=e.context}static fromXdObject(e,t){return e instanceof o.Rectangle?y.fromXdRectangle(e,t):e instanceof o.Ellipse||e instanceof o.Path||e instanceof o.BooleanGroup?y.fromXdGraphicNode(e,t):e instanceof o.Polygon?y.fromXdPolygon(e,t):e instanceof o.Text?y.fromXdText(e,t):e instanceof o.Line?y.fromXdLine(e,t):e instanceof o.Group||e instanceof o.SymbolInstance||e instanceof o.RepeatGrid?y.fromXdContainer(e,t):void 0}isGroup(){return this.type===h.Group}static fromXdGraphicNode(e,t){const{blendMode:n,blur:r,guid:u,globalBounds:d,markedForExport:m,name:v,shadow:g,opacity:b,triggeredInteractions:_,fill:E,fillEnabled:w}=e,{opacity:S,rect:x}=t,O=s.default.fromIntersection(s.default.fromXdObject(d),x);if(O.isZero())return;const k=b*S,T=f.fromXdBlendMode(n),j=l.default.fromXdObject(e,k),R=a.default.fromXdObject(e,k),C=g?c.default.fromXdObject(g):void 0,N=!!(w&&E&&E instanceof o.ImageFill);return new y({blendMode:T,blur:r?i.default.fromXdObject(r):void 0,borderRadius:0,borders:R?[R]:[],context:{hasBitmap:N,triggeredInteractions:_||[]},exportable:m,fills:j?[j]:[],layers:[],name:v.substring(0,p.LAYER_NAME_MAX_LENGTH),opacity:k,rect:O,shadows:C?[C]:[],sourceId:u,textStyles:[],type:h.Shape})}static fromXdPolygon(e,t){const{cornerRadii:n}=e,r=y.fromXdGraphicNode(e,t);if(r)return r.borderRadius=Math.max(...n),r}static fromXdRectangle(e,t){const{cornerRadii:{topLeft:n,topRight:r,bottomLeft:o,bottomRight:i}}=e,a=y.fromXdGraphicNode(e,t);if(a)return a.borderRadius=Math.max(n,r,o,i),a}static fromXdText(e,t){const n=y.fromXdGraphicNode(e,t);if(n)return n.type=h.Text,n.name=n.name.replace(/\n/g," "),n.content=e.text,n.textStyles=u.default.fromXdObject(e),n}static fromXdLine(e,t){const n=y.fromXdGraphicNode(e,t);if(!n)return;const{borders:r,opacity:o}=n;if(r.length>0){const[t]=r,i=l.default.fromXdLine(e,o);n.rect.height=t.thickness,n.rect.y-=t.thickness/2,n.fills=i?[i]:[],n.borders=[]}return n}static fromXdContainer(e,t){const{blendMode:n,guid:r,globalBounds:i,markedForExport:a,name:l,opacity:u,triggeredInteractions:c}=e,{addComponentsDataToSapshot:v,opacity:g,rect:b}=t;let _,E,w=a;if(e instanceof o.SymbolInstance){_=e.symbolId;const t=d.default.symbolMap.get(_);t&&(E=t.name,w=w||t.isExportable),v(_,E)}const S=s.default.fromIntersection(s.default.fromXdObject(i),b);if(S.isZero())return;let x=l,O=w?m.Top:void 0;const k=S.createTranslatedRect(b.x,b.y),T=u*g,j=[];if(y.excludeSublayers(l))x=x.slice(p.IGNORE_CHILDREN_PREFIX.length),O=m.Bottom;else if(e.children.filter(e=>e.visible).forEach(e=>{const t=y.fromXdObject(e,{addComponentsDataToSapshot:v,opacity:T,rect:k});t&&j.push(t)}),e instanceof o.Group&&e.mask){const e=j.pop();e&&j.unshift(e)}const R=j.some(e=>e.context.hasBitmap);if(!O&&j.length>0){const e=s.default.zero();j.forEach(t=>{const{rect:n}=t;e.union(n)}),S.width===e.width&&S.height===e.height||(O=m.Bottom)}return new y({blendMode:f.fromXdBlendMode(n),borderRadius:0,borders:[],componentId:_,componentName:E,context:{hasBitmap:R,triggeredInteractions:c||[]},exportable:w,fills:[],interactionLevel:O,layers:j,name:x.substring(0,p.LAYER_NAME_MAX_LENGTH),opacity:T,rect:S,shadows:[],sourceId:r,textStyles:[],type:h.Group})}static excludeSublayers(e){return e.startsWith(p.IGNORE_CHILDREN_PREFIX)}}t.default=y},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Gaussian="gaussian",e.Background="background"}(r||(r={}));class o{constructor({radius:e,type:t}){this.radius=e,this.type=t}static fromXdObject(e){if(!e.visible)return;const{blurAmount:t,isBackgroundEffect:n}=e;return new o({type:n?r.Background:r.Gaussian,radius:t})}}t.default=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(6)),i=n(19);class a{constructor(e){this.fillType=e.fillType,this.color=e.color,this.position=e.position,this.thickness=e.thickness,this.opacity=e.opacity,this.blendMode=e.blendMode}static fromXdObject(e,t){const{stroke:n,strokeEnabled:r,strokePosition:l,strokeWidth:u,blendMode:s}=e;if(r&&n)return new a({fillType:"color",color:o.default.fromXdObject(n),position:l,thickness:u,opacity:t,blendMode:i.fromXdBlendMode(s)})}}t.default=a},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(10),i=n(19),a=r(n(6)),l=r(n(57));class u{constructor(e){this.fillType=e.fillType,this.color=e.color,this.gradient=e.gradient,this.opacity=e.opacity,this.blendMode=e.blendMode}static fromXdObject(e,t){const{fill:n,blendMode:r}=e;return n instanceof o.Color?new u({fillType:"color",color:a.default.fromXdObject(n),opacity:t,blendMode:i.fromXdBlendMode(r)}):n instanceof o.LinearGradient?new u({fillType:"gradient",gradient:l.default.fromXdObject(n)}):void 0}static fromXdLine(e,t){const{blendMode:n,stroke:r,strokeEnabled:o}=e;if(r&&o)return new u({fillType:"color",color:a.default.fromXdObject(r),opacity:t,blendMode:i.fromXdBlendMode(n)})}}t.default=u},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(6)),i=r(n(58));class a{constructor({color:e,position:t}){this.color=e,this.position=t}}class l{constructor({type:e,from:t,to:n,colorStops:r}){this.type=e,this.from=t,this.to=n,this.colorStops=r}static fromXdObject(e){const{startX:t,startY:n,endX:r,endY:u,colorStops:s}=e;return new l({type:"linear",from:new i.default({x:t,y:n}),to:new i.default({x:r,y:u}),colorStops:s.map(({stop:e,color:t})=>new a({position:e,color:o.default.fromXdObject(t)}))})}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor({x:e,y:t}){this.x=e,this.y=t}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(6)),i=r(n(60)),a=r(n(30)),l=n(20);class u{constructor({range:e,style:t}){this.range=e,this.style=t}static fromXdObject(e){const{text:t,textAlign:n,lineSpacing:r,styleRanges:s}=e,c=[];let f=0;return s.forEach(e=>{const{length:s,fontSize:d,fontFamily:p,fontStyle:h,charSpacing:m,fill:y}=e,v=0===s?t.length-f:s;if(l.isWhitespace(t.substr(f,f+v)))return void(f+=v);const g=new i.default({location:f,length:s}),b=a.default.fromObject({fontSize:d,fontFamily:p,fontStyle:h,textAlign:n,charSpacing:m,lineSpacing:0!==r?r:void 0,color:o.default.fromXdObject(y)});f+=v,c.push(new u({range:g,style:b}))}),c}}t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor({length:e,location:t}){this.length=e,this.location=t}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(6));class i{constructor(e){this.blurRadius=e.blurRadius,this.color=e.color,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this.spread=e.spread,this.type=e.type}static fromXdObject(e){if(!e.visible)return;const{x:t,y:n,blur:r,color:a}=e;return new i({type:"outer",offsetX:t,offsetY:n,blurRadius:r,spread:0,color:o.default.fromXdObject(a)})}}t.default=i},function(e,t){e.exports=require("commands")},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(64));class i{constructor({rect:e,destination:t}){this.rect=e,this.destination=t}static fromLayer(e,t){const n=e.rect.createTranslatedRect(t.x,t.y);let r=e.isGroup()?e.layers.flatMap(e=>i.fromLayer(e,n)):[];const o=i.fromXdInteractions(e.context.triggeredInteractions,n);return r=r.concat(o.flat()),r}static fromXdInteractions(e,t){const n=[];return e.forEach(e=>{const{action:{type:r,destination:a}}=e;if("goBack"===r)n.push(new i({rect:t,destination:o.default.createPreviousDestination()}));else if("goToArtboard"===r){const e=a;n.push(new i({rect:t,destination:o.default.createScreenDestination(e.name)}))}}),n}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9);var o;!function(e){e.Screen="screen",e.Previous="previous"}(o||(o={}));class i{constructor({name:e,type:t}){this.name=e,this.type=t}static createScreenDestination(e){return new i({type:o.Screen,name:e.substring(0,r.LAYER_NAME_MAX_LENGTH)})}static createPreviousDestination(){return new i({type:o.Previous})}}t.default=i},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(29));class i extends o.default{}t.default=i},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?s=u.concat(s):f=-1,s.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(7)),i=r(n(69)),a=r(n(73));class l{constructor(){this.show=e=>{var t;this.attachment=e.node,null===(t=this.attachment)||void 0===t||t.appendChild(l.rootElement),i.default.render(o.default.createElement(a.default,null),l.rootElement)},this.hide=()=>{var e;null===(e=this.attachment)||void 0===e||e.removeChild(l.rootElement)},this.update=()=>{i.default.render(o.default.createElement(a.default,null),l.rootElement)}}}l.rootElement=document.createElement("div"),t.default=l},function(e,t,n){"use strict";
/** @license React v17.0.1
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(36),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,u=60112;t.Suspense=60113;var s=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function v(){}function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var b=g.prototype=new v;b.constructor=g,r(b,y.prototype),b.isPureReactComponent=!0;var _={current:null},E=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,r)&&!w.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:_.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var O=/\/+/g;function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case i:u=!0}}if(u)return a=a(u=e),e=""===r?"."+k(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(O,"$&/")+"/"),T(a,t,n,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=r+k(l=e[s],s);u+=T(l,t,n,c,a)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),s=0;!(l=e.next()).done;)u+=T(l=l.value,t,n,c=r+k(l,s++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function j(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function R(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var C={current:null};function N(){var e=C.current;if(null===e)throw Error(p(321));return e}var I={ReactCurrentDispatcher:C,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(p(143));return e}},t.Component=y,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=r({},e.props),a=e.key,l=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,u=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)E.call(t,c)&&!w.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.1"},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(70)},function(e,t,n){"use strict";
/** @license React v17.0.1
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(7),o=n(36),i=n(71);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,u={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function y(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);v[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);v[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);v[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=60103,S=60106,x=60107,O=60108,k=60114,T=60109,j=60110,R=60112,C=60113,N=60120,I=60115,P=60116,L=60121,M=60128,A=60129,D=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var z=Symbol.for;w=z("react.element"),S=z("react.portal"),x=z("react.fragment"),O=z("react.strict_mode"),k=z("react.profiler"),T=z("react.provider"),j=z("react.context"),R=z("react.forward_ref"),C=z("react.suspense"),N=z("react.suspense_list"),I=z("react.memo"),P=z("react.lazy"),L=z("react.block"),z("react.scope"),M=z("react.opaque.id"),A=z("react.debug_trace_mode"),D=z("react.offscreen"),F=z("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function X(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function H(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var $=!1;function G(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function W(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 22:return e=G(e.type._render,!1);case 1:return e=G(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case k:return"Profiler";case O:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return V(e.type);case L:return V(e._render);case P:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function q(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:q(n)}}function se(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ye=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ge).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ge[t]=ge[e]}))}));var we=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(we[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Te=null,je=null;function Re(e){if(e=Jr(e)){if("function"!=typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=eo(t),ke(e.stateNode,e.type,t))}}function Ce(e){Te?je?je.push(e):je=[e]:Te=e}function Ne(){if(Te){var e=Te,t=je;if(je=Te=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Ie(e,t){return e(t)}function Pe(e,t,n,r,o){return e(t,n,r,o)}function Le(){}var Me=Ie,Ae=!1,De=!1;function Fe(){null===Te&&null===je||(Le(),Ne())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=eo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ue=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(e){Ue=!1}function Xe(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var He=!1,$e=null,Ge=!1,We=null,Ve={onError:function(e){He=!0,$e=e}};function qe(e,t,n,r,o,i,a,l,u){He=!1,$e=null,Xe.apply(Ve,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ke(e){if(Ye(e)!==e)throw Error(a(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ke(o),e;if(i===r)return Ke(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,ot=!1,it=[],at=null,lt=null,ut=null,st=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":st.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=pt(t,n,r,o,i),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function yt(e){var t=Kr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function gt(e,t,n){vt(e)&&n.delete(t)}function bt(){for(ot=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==at&&vt(at)&&(at=null),null!==lt&&vt(lt)&&(lt=null),null!==ut&&vt(ut)&&(ut=null),st.forEach(gt),ct.forEach(gt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bt)))}function Et(e){function t(t){return _t(t,e)}if(0<it.length){_t(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&_t(at,e),null!==lt&&_t(lt,e),null!==ut&&_t(ut,e),st.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)yt(n),null===n.blockedOn&&ft.shift()}function wt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:wt("Animation","AnimationEnd"),animationiteration:wt("Animation","AnimationIteration"),animationstart:wt("Animation","AnimationStart"),transitionend:wt("Transition","TransitionEnd")},xt={},Ot={};function kt(e){if(xt[e])return xt[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ot)return xt[e]=n[t];return e}f&&(Ot=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Tt=kt("animationend"),jt=kt("animationiteration"),Rt=kt("animationstart"),Ct=kt("transitionend"),Nt=new Map,It=new Map,Pt=["abort","abort",Tt,"animationEnd",jt,"animationIteration",Rt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ct,"transitionEnd","waiting","waiting"];function Lt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),It.set(r,t),Nt.set(r,o),s(o,[r])}}(0,i.unstable_now)();var Mt=8;function At(e){if(0!=(1&e))return Mt=15,1;if(0!=(2&e))return Mt=14,2;if(0!=(4&e))return Mt=13,4;var t=24&e;return 0!==t?(Mt=12,t):0!=(32&e)?(Mt=11,32):0!==(t=192&e)?(Mt=10,t):0!=(256&e)?(Mt=9,256):0!==(t=3584&e)?(Mt=8,t):0!=(4096&e)?(Mt=7,4096):0!==(t=4186112&e)?(Mt=6,t):0!==(t=62914560&e)?(Mt=5,t):67108864&e?(Mt=4,67108864):0!=(134217728&e)?(Mt=3,134217728):0!==(t=805306368&e)?(Mt=2,t):0!=(1073741824&e)?(Mt=1,1073741824):(Mt=8,e)}function Dt(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=Mt=15;else if(0!==(i=134217727&n)){var u=i&~a;0!==u?(r=At(u),o=Mt):0!==(l&=i)&&(r=At(l),o=Mt)}else 0!==(i=n&~a)?(r=At(i),o=Mt):0!==l&&(r=At(l),o=Mt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(At(t),o<=Mt)return t;Mt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Ht(t)),r|=e[n],t&=~o;return r}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function zt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?zt(10,t):e;case 10:return 0===(e=Ut(192&~t))?zt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-($t(e)/Gt|0)|0},$t=Math.log,Gt=Math.LN2;var Wt=i.unstable_UserBlockingPriority,Vt=i.unstable_runWithPriority,qt=!0;function Yt(e,t,n,r){Ae||Le();var o=Kt,i=Ae;Ae=!0;try{Pe(o,e,t,n,r)}finally{(Ae=i)||Fe()}}function Qt(e,t,n,r){Vt(Wt,Kt.bind(null,e,t,n,r))}function Kt(e,t,n,r){var o;if(qt)if((o=0==(4&t))&&0<it.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),it.push(e);else{var i=Jt(e,t,n,r);if(null===i)o&&ht(e,r);else{if(o){if(-1<dt.indexOf(e))return e=pt(i,e,t,n,r),void it.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return at=mt(at,e,t,n,r,o),!0;case"dragenter":return lt=mt(lt,e,t,n,r,o),!0;case"mouseover":return ut=mt(ut,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return st.set(i,mt(st.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ct.set(i,mt(ct.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;ht(e,r)}Cr(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=Oe(r);if(null!==(o=Kr(o))){var i=Ye(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Qe(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Cr(e,t,r,o,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return tn=o.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function ln(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?on:an,this.isPropagationStopped=an,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var un,sn,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=o({},fn,{view:0,detail:0}),hn=ln(pn),mn=o({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(un=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=un=0,cn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),yn=ln(mn),vn=ln(o({},mn,{dataTransfer:0})),gn=ln(o({},pn,{relatedTarget:0})),bn=ln(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=ln(o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),En=ln(o({},fn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function kn(){return On}var Tn=ln(o({},pn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),jn=ln(o({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=ln(o({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Cn=ln(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=ln(o({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),In=[9,13,27,32],Pn=f&&"CompositionEvent"in window,Ln=null;f&&"documentMode"in document&&(Ln=document.documentMode);var Mn=f&&"TextEvent"in window&&!Ln,An=f&&(!Pn||Ln&&8<Ln&&11>=Ln),Dn=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Xn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Xn[e.type]:"textarea"===t}function $n(e,t,n,r){Ce(r),0<(t=Ir(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Wn=null;function Vn(e){xr(e,0)}function qn(e){if(K(Zr(e)))return e}function Yn(e,t){if("change"===e)return t}var Qn=!1;if(f){var Kn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Kn=Jn}else Kn=!1;Qn=Kn&&(!document.documentMode||9<document.documentMode)}function er(){Gn&&(Gn.detachEvent("onpropertychange",tr),Wn=Gn=null)}function tr(e){if("value"===e.propertyName&&qn(Wn)){var t=[];if($n(t,Wn,e,Oe(e)),e=Vn,Ae)e(t);else{Ae=!0;try{Ie(e,t)}finally{Ae=!1,Fe()}}}}function nr(e,t,n){"focusin"===e?(er(),Wn=n,(Gn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Wn)}function or(e,t){if("click"===e)return qn(t)}function ir(e,t){if("input"===e||"change"===e)return qn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lr=Object.prototype.hasOwnProperty;function ur(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,yr=null,vr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==hr||hr!==J(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ur(yr,r)||(yr=r,0<(r=Ir(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}Lt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Lt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Lt(Pt,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<br.length;_r++)It.set(br[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Er="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),wr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Er));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,u,s){if(qe.apply(this,arguments),He){if(!He)throw Error(a(198));var c=$e;He=!1,$e=null,Ge||(Ge=!0,We=c)}}(r,t,void 0,e),e.currentTarget=null}function xr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;Sr(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;Sr(o,l,s),i=u}}}if(Ge)throw e=We,Ge=!1,We=null,e}function Or(e,t){var n=to(t),r=e+"__bubble";n.has(r)||(Rr(t,e,2,!1),n.add(r))}var kr="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){e[kr]||(e[kr]=!0,l.forEach((function(t){wr.has(t)||jr(t,!1,e,null),jr(t,!0,e,null)})))}function jr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&wr.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=to(i),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(o|=4),Rr(i,e,o,t),a.add(l))}function Rr(e,t,n,r){var o=It.get(t);switch(void 0===o?2:o){case 0:o=Yt;break;case 1:o=Qt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Cr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Kr(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(De)return e(t,n);De=!0;try{Me(e,t,n)}finally{De=!1,Fe()}}((function(){var r=i,o=Oe(n),a=[];e:{var l=Nt.get(e);if(void 0!==l){var u=dn,s=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":u=Tn;break;case"focusin":s="focus",u=gn;break;case"focusout":s="blur",u=gn;break;case"beforeblur":case"afterblur":u=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Rn;break;case Tt:case jt:case Rt:u=bn;break;case Ct:u=Cn;break;case"scroll":u=hn;break;case"wheel":u=Nn;break;case"copy":case"cut":case"paste":u=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=jn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=ze(h,d))&&c.push(Nr(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!Kr(s)&&!s[Yr])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?Kr(s):null)&&(s!==(f=Ye(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=yn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=jn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?l:Zr(u),p=null==s?l:Zr(s),(l=new c(m,h+"leave",u,n,o)).target=f,l.relatedTarget=p,m=null,Kr(o)===r&&((c=new c(d,h+"enter",s,n,o)).target=p,c.relatedTarget=f,m=c),f=m,u&&s)e:{for(d=s,h=0,p=c=u;p;p=Pr(p))h++;for(p=0,m=d;m;m=Pr(m))p++;for(;0<h-p;)c=Pr(c),h--;for(;0<p-h;)d=Pr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Pr(c),d=Pr(d)}c=null}else c=null;null!==u&&Lr(a,l,u,c,!1),null!==s&&null!==f&&Lr(a,f,s,c,!0)}if("select"===(u=(l=r?Zr(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y=Yn;else if(Hn(l))if(Qn)y=ir;else{y=rr;var v=nr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(y=or);switch(y&&(y=y(e,r))?$n(a,y,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&oe(l,"number",l.value)),v=r?Zr(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(hr=v,mr=r,yr=null);break;case"focusout":yr=mr=hr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,gr(a,n,o);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":gr(a,n,o)}var g;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(An&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(g=nn()):(en="value"in(Zt=o)?Zt.value:Zt.textContent,Bn=!0)),0<(v=Ir(r,b)).length&&(b=new En(b,e,null,n,o),a.push({event:b,listeners:v}),g?b.data=g:null!==(g=Un(n))&&(b.data=g))),(g=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,Dn);case"textInput":return(e=t.data)===Dn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Pn&&zn(e,t)?(e=nn(),tn=en=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return An&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Ir(r,"onBeforeInput")).length&&(o=new En("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g))}xr(a,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=ze(e,n))&&r.unshift(Nr(e,i,o)),null!=(i=ze(e,t))&&r.push(Nr(e,i,o))),e=e.return}return r}function Pr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Lr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=ze(n,i))&&a.unshift(Nr(n,u,l)):o||null!=(u=ze(n,i))&&a.push(Nr(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Mr(){}var Ar=null,Dr=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,Br="function"==typeof clearTimeout?clearTimeout:void 0;function Xr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Hr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function $r(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Gr=0;var Wr=Math.random().toString(36).slice(2),Vr="__reactFiber$"+Wr,qr="__reactProps$"+Wr,Yr="__reactContainer$"+Wr,Qr="__reactEvents$"+Wr;function Kr(e){var t=e[Vr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[Vr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=$r(e);null!==e;){if(n=e[Vr])return n;e=$r(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Vr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function eo(e){return e[qr]||null}function to(e){var t=e[Qr];return void 0===t&&(t=e[Qr]=new Set),t}var no=[],ro=-1;function oo(e){return{current:e}}function io(e){0>ro||(e.current=no[ro],no[ro]=null,ro--)}function ao(e,t){ro++,no[ro]=e.current,e.current=t}var lo={},uo=oo(lo),so=oo(!1),co=lo;function fo(e,t){var n=e.type.contextTypes;if(!n)return lo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function po(e){return null!=(e=e.childContextTypes)}function ho(){io(so),io(uo)}function mo(e,t,n){if(uo.current!==lo)throw Error(a(168));ao(uo,t),ao(so,n)}function yo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,V(t)||"Unknown",i));return o({},n,r)}function vo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lo,co=uo.current,ao(uo,e),ao(so,so.current),!0}function go(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=yo(e,t,co),r.__reactInternalMemoizedMergedChildContext=e,io(so),io(uo),ao(uo,e)):io(so),ao(so,n)}var bo=null,_o=null,Eo=i.unstable_runWithPriority,wo=i.unstable_scheduleCallback,So=i.unstable_cancelCallback,xo=i.unstable_shouldYield,Oo=i.unstable_requestPaint,ko=i.unstable_now,To=i.unstable_getCurrentPriorityLevel,jo=i.unstable_ImmediatePriority,Ro=i.unstable_UserBlockingPriority,Co=i.unstable_NormalPriority,No=i.unstable_LowPriority,Io=i.unstable_IdlePriority,Po={},Lo=void 0!==Oo?Oo:function(){},Mo=null,Ao=null,Do=!1,Fo=ko(),zo=1e4>Fo?ko:function(){return ko()-Fo};function Uo(){switch(To()){case jo:return 99;case Ro:return 98;case Co:return 97;case No:return 96;case Io:return 95;default:throw Error(a(332))}}function Bo(e){switch(e){case 99:return jo;case 98:return Ro;case 97:return Co;case 96:return No;case 95:return Io;default:throw Error(a(332))}}function Xo(e,t){return e=Bo(e),Eo(e,t)}function Ho(e,t,n){return e=Bo(e),wo(e,t,n)}function $o(){if(null!==Ao){var e=Ao;Ao=null,So(e)}Go()}function Go(){if(!Do&&null!==Mo){Do=!0;var e=0;try{var t=Mo;Xo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Mo=null}catch(t){throw null!==Mo&&(Mo=Mo.slice(e+1)),wo(jo,$o),t}finally{Do=!1}}}var Wo=E.ReactCurrentBatchConfig;function Vo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var qo=oo(null),Yo=null,Qo=null,Ko=null;function Jo(){Ko=Qo=Yo=null}function Zo(e){var t=qo.current;io(qo),e.type._context._currentValue=t}function ei(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ti(e,t){Yo=e,Ko=Qo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ia=!0),e.firstContext=null)}function ni(e,t){if(Ko!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ko=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qo){if(null===Yo)throw Error(a(308));Qo=t,Yo.dependencies={lanes:0,firstContext:t,responders:null}}else Qo=Qo.next=t;return e._currentValue}var ri=!1;function oi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ii(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ai(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function li(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ui(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function si(e,t,n,r){var i=e.updateQueue;ri=!1;var a=i.firstBaseUpdate,l=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var s=u,c=s.next;s.next=null,null===l?a=c:l.next=c,l=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==a){for(d=i.baseState,l=0,f=c=s=null;;){u=a.lane;var p=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(u=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,u);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(u="function"==typeof(h=m.payload)?h.call(p,d,u):h))break e;d=o({},d,u);break e;case 2:ri=!0}}null!==a.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[a]:u.push(a))}else p={eventTime:p,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,l|=u;if(null===(a=a.next)){if(null===(u=i.shared.pending))break;a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===f&&(s=d),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Ll|=l,e.lanes=l,e.memoizedState=d}}function ci(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var fi=(new r.Component).refs;function di(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var pi={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=iu(),o=au(e),i=ai(r,o);i.payload=t,null!=n&&(i.callback=n),li(e,i),lu(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=iu(),o=au(e),i=ai(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),li(e,i),lu(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=iu(),r=au(e),o=ai(n,r);o.tag=2,null!=t&&(o.callback=t),li(e,o),lu(e,r,n)}};function hi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(o,i))}function mi(e,t,n){var r=!1,o=lo,i=t.contextType;return"object"==typeof i&&null!==i?i=ni(i):(o=po(t)?co:uo.current,i=(r=null!=(r=t.contextTypes))?fo(e,o):lo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=pi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function yi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&pi.enqueueReplaceState(t,t.state,null)}function vi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=fi,oi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ni(i):(i=po(t)?co:uo.current,o.context=fo(e,i)),si(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(di(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&pi.enqueueReplaceState(o,o.state,null),si(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var gi=Array.isArray;function bi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===fi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _i(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ei(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Hu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=bi(e,t,n),r.return=e,r):((r=Uu(n.type,n.key,n.props,null,e.mode,r)).ref=bi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$u(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Bu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Hu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Uu(t.type,t.key,t.props,null,e.mode,n)).ref=bi(e,null,t),n.return=e,n;case S:return(t=$u(t,e.mode,n)).return=e,t}if(gi(t)||X(t))return(t=Bu(t,e.mode,n,null)).return=e,t;_i(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?n.type===x?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case S:return n.key===o?c(e,t,n,r):null}if(gi(n)||X(n))return null!==o?null:f(e,t,n,r,null);_i(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return e=e.get(null===r.key?n:r.key)||null,r.type===x?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(gi(r)||X(r))return f(t,e=e.get(n)||null,r,o,null);_i(t,r)}return null}function m(o,a,l,u){for(var s=null,c=null,f=a,m=a=0,y=null;null!==f&&m<l.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var v=p(o,f,l[m],u);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(o,f),a=i(v,a,m),null===c?s=v:c.sibling=v,c=v,f=y}if(m===l.length)return n(o,f),s;if(null===f){for(;m<l.length;m++)null!==(f=d(o,l[m],u))&&(a=i(f,a,m),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(o,f);m<l.length;m++)null!==(y=h(f,o,m,l[m],u))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),a=i(y,a,m),null===c?s=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(o,e)})),s}function y(o,l,u,s){var c=X(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,m=l,y=l=0,v=null,g=u.next();null!==m&&!g.done;y++,g=u.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=p(o,m,g.value,s);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),l=i(b,l,y),null===f?c=b:f.sibling=b,f=b,m=v}if(g.done)return n(o,m),c;if(null===m){for(;!g.done;y++,g=u.next())null!==(g=d(o,g.value,s))&&(l=i(g,l,y),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(o,m);!g.done;y++,g=u.next())null!==(g=h(m,o,y,g.value,s))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),l=i(g,l,y),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(o,e)})),c}return function(e,r,i,u){var s="object"==typeof i&&null!==i&&i.type===x&&null===i.key;s&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case w:e:{for(c=i.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(i.type===x){n(e,s.sibling),(r=o(s,i.props.children)).return=e,e=r;break e}break;default:if(s.elementType===i.type){n(e,s.sibling),(r=o(s,i.props)).ref=bi(e,s,i),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}i.type===x?((r=Bu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Uu(i.type,i.key,i.props,null,e.mode,u)).ref=bi(e,r,i),u.return=e,e=u)}return l(e);case S:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=$u(i,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Hu(i,e.mode,u)).return=e,e=r),l(e);if(gi(i))return m(e,r,i,u);if(X(i))return y(e,r,i,u);if(c&&_i(e,i),void 0===i&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,V(e.type)||"Component"))}return n(e,r)}}var wi=Ei(!0),Si=Ei(!1),xi={},Oi=oo(xi),ki=oo(xi),Ti=oo(xi);function ji(e){if(e===xi)throw Error(a(174));return e}function Ri(e,t){switch(ao(Ti,t),ao(ki,e),ao(Oi,xi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}io(Oi),ao(Oi,t)}function Ci(){io(Oi),io(ki),io(Ti)}function Ni(e){ji(Ti.current);var t=ji(Oi.current),n=he(t,e.type);t!==n&&(ao(ki,e),ao(Oi,n))}function Ii(e){ki.current===e&&(io(Oi),io(ki))}var Pi=oo(0);function Li(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mi=null,Ai=null,Di=!1;function Fi(e,t){var n=Du(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function zi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ui(e){if(Di){var t=Ai;if(t){var n=t;if(!zi(e,t)){if(!(t=Hr(n.nextSibling))||!zi(e,t))return e.flags=-1025&e.flags|2,Di=!1,void(Mi=e);Fi(Mi,n)}Mi=e,Ai=Hr(t.firstChild)}else e.flags=-1025&e.flags|2,Di=!1,Mi=e}}function Bi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Mi=e}function Xi(e){if(e!==Mi)return!1;if(!Di)return Bi(e),Di=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!zr(t,e.memoizedProps))for(t=Ai;t;)Fi(e,t),t=Hr(t.nextSibling);if(Bi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ai=Hr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ai=null}}else Ai=Mi?Hr(e.stateNode.nextSibling):null;return!0}function Hi(){Ai=Mi=null,Di=!1}var $i=[];function Gi(){for(var e=0;e<$i.length;e++)$i[e]._workInProgressVersionPrimary=null;$i.length=0}var Wi=E.ReactCurrentDispatcher,Vi=E.ReactCurrentBatchConfig,qi=0,Yi=null,Qi=null,Ki=null,Ji=!1,Zi=!1;function ea(){throw Error(a(321))}function ta(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function na(e,t,n,r,o,i){if(qi=i,Yi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wi.current=null===e||null===e.memoizedState?ja:Ra,e=n(r,o),Zi){i=0;do{if(Zi=!1,!(25>i))throw Error(a(301));i+=1,Ki=Qi=null,t.updateQueue=null,Wi.current=Ca,e=n(r,o)}while(Zi)}if(Wi.current=Ta,t=null!==Qi&&null!==Qi.next,qi=0,Ki=Qi=Yi=null,Ji=!1,t)throw Error(a(300));return e}function ra(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Yi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function oa(){if(null===Qi){var e=Yi.alternate;e=null!==e?e.memoizedState:null}else e=Qi.next;var t=null===Ki?Yi.memoizedState:Ki.next;if(null!==t)Ki=t,Qi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Qi=e).memoizedState,baseState:Qi.baseState,baseQueue:Qi.baseQueue,queue:Qi.queue,next:null},null===Ki?Yi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function ia(e,t){return"function"==typeof t?t(e):t}function aa(e){var t=oa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Qi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=l=i=null,s=o;do{var c=s.lane;if((qi&c)===c)null!==u&&(u=u.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===u?(l=u=f,i=r):u=u.next=f,Yi.lanes|=c,Ll|=c}s=s.next}while(null!==s&&s!==o);null===u?i=r:u.next=l,ar(r,t.memoizedState)||(Ia=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function la(e){var t=oa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);ar(i,t.memoizedState)||(Ia=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ua(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(qi&e)===e)&&(t._workInProgressVersionPrimary=r,$i.push(t))),e)return n(t._source);throw $i.push(t),Error(a(350))}function sa(e,t,n,r){var o=kl;if(null===o)throw Error(a(349));var i=t._getVersion,l=i(t._source),u=Wi.current,s=u.useState((function(){return ua(o,t,n)})),c=s[1],f=s[0];s=Ki;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=Yi;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!ar(l,e)){e=n(t._source),ar(f,e)||(c(e),e=au(y),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var u=31-Ht(a),s=1<<u;r[u]|=e,a&=~s}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=au(y);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(h,n)&&ar(m,t)&&ar(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ia,lastRenderedState:f}).dispatch=c=ka.bind(null,Yi,e),s.queue=e,s.baseQueue=null,f=ua(o,t,n),s.memoizedState=s.baseState=f),f}function ca(e,t,n){return sa(oa(),e,t,n)}function fa(e){var t=ra();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ia,lastRenderedState:e}).dispatch=ka.bind(null,Yi,e),[t.memoizedState,e]}function da(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Yi.updateQueue)?(t={lastEffect:null},Yi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function pa(e){return e={current:e},ra().memoizedState=e}function ha(){return oa().memoizedState}function ma(e,t,n,r){var o=ra();Yi.flags|=e,o.memoizedState=da(1|t,n,void 0,void 0===r?null:r)}function ya(e,t,n,r){var o=oa();r=void 0===r?null:r;var i=void 0;if(null!==Qi){var a=Qi.memoizedState;if(i=a.destroy,null!==r&&ta(r,a.deps))return void da(t,n,i,r)}Yi.flags|=e,o.memoizedState=da(1|t,n,i,r)}function va(e,t){return ma(516,4,e,t)}function ga(e,t){return ya(516,4,e,t)}function ba(e,t){return ya(4,2,e,t)}function _a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ea(e,t,n){return n=null!=n?n.concat([e]):null,ya(4,2,_a.bind(null,t,e),n)}function wa(){}function Sa(e,t){var n=oa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xa(e,t){var n=oa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oa(e,t){var n=Uo();Xo(98>n?98:n,(function(){e(!0)})),Xo(97<n?97:n,(function(){var n=Vi.transition;Vi.transition=1;try{e(!1),t()}finally{Vi.transition=n}}))}function ka(e,t,n){var r=iu(),o=au(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Yi||null!==a&&a===Yi)Zi=Ji=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=a(l,n);if(i.eagerReducer=a,i.eagerState=u,ar(u,l))return}catch(e){}lu(e,o,r)}}var Ta={readContext:ni,useCallback:ea,useContext:ea,useEffect:ea,useImperativeHandle:ea,useLayoutEffect:ea,useMemo:ea,useReducer:ea,useRef:ea,useState:ea,useDebugValue:ea,useDeferredValue:ea,useTransition:ea,useMutableSource:ea,useOpaqueIdentifier:ea,unstable_isNewReconciler:!1},ja={readContext:ni,useCallback:function(e,t){return ra().memoizedState=[e,void 0===t?null:t],e},useContext:ni,useEffect:va,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,2,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=ra();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ra();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ka.bind(null,Yi,e),[r.memoizedState,e]},useRef:pa,useState:fa,useDebugValue:wa,useDeferredValue:function(e){var t=fa(e),n=t[0],r=t[1];return va((function(){var t=Vi.transition;Vi.transition=1;try{r(e)}finally{Vi.transition=t}}),[e]),n},useTransition:function(){var e=fa(!1),t=e[0];return pa(e=Oa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ra();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},sa(r,e,t,n)},useOpaqueIdentifier:function(){if(Di){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Gr++).toString(36))),Error(a(355))})),n=fa(t)[1];return 0==(2&Yi.mode)&&(Yi.flags|=516,da(5,(function(){n("r:"+(Gr++).toString(36))}),void 0,null)),t}return fa(t="r:"+(Gr++).toString(36)),t},unstable_isNewReconciler:!1},Ra={readContext:ni,useCallback:Sa,useContext:ni,useEffect:ga,useImperativeHandle:Ea,useLayoutEffect:ba,useMemo:xa,useReducer:aa,useRef:ha,useState:function(){return aa(ia)},useDebugValue:wa,useDeferredValue:function(e){var t=aa(ia),n=t[0],r=t[1];return ga((function(){var t=Vi.transition;Vi.transition=1;try{r(e)}finally{Vi.transition=t}}),[e]),n},useTransition:function(){var e=aa(ia)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return aa(ia)[0]},unstable_isNewReconciler:!1},Ca={readContext:ni,useCallback:Sa,useContext:ni,useEffect:ga,useImperativeHandle:Ea,useLayoutEffect:ba,useMemo:xa,useReducer:la,useRef:ha,useState:function(){return la(ia)},useDebugValue:wa,useDeferredValue:function(e){var t=la(ia),n=t[0],r=t[1];return ga((function(){var t=Vi.transition;Vi.transition=1;try{r(e)}finally{Vi.transition=t}}),[e]),n},useTransition:function(){var e=la(ia)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return la(ia)[0]},unstable_isNewReconciler:!1},Na=E.ReactCurrentOwner,Ia=!1;function Pa(e,t,n,r){t.child=null===e?Si(t,null,n,r):wi(t,e.child,n,r)}function La(e,t,n,r,o){n=n.render;var i=t.ref;return ti(t,o),r=na(e,t,n,r,i,o),null===e||Ia?(t.flags|=1,Pa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,el(e,t,o))}function Ma(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Fu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Uu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Aa(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:ur)(o,r)&&e.ref===t.ref)?el(e,t,i):(t.flags|=1,(e=zu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Aa(e,t,n,r,o,i){if(null!==e&&ur(e.memoizedProps,r)&&e.ref===t.ref){if(Ia=!1,0==(i&o))return t.lanes=e.lanes,el(e,t,i);0!=(16384&e.flags)&&(Ia=!0)}return za(e,t,n,r,i)}function Da(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},mu(t,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},mu(t,e),null;t.memoizedState={baseLanes:0},mu(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,mu(t,r);return Pa(e,t,o,n),t.child}function Fa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function za(e,t,n,r,o){var i=po(n)?co:uo.current;return i=fo(t,i),ti(t,o),n=na(e,t,n,r,i,o),null===e||Ia?(t.flags|=1,Pa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,el(e,t,o))}function Ua(e,t,n,r,o){if(po(n)){var i=!0;vo(t)}else i=!1;if(ti(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mi(t,n,r),vi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=ni(s):s=fo(t,s=po(n)?co:uo.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&yi(t,a,r,s),ri=!1;var d=t.memoizedState;a.state=d,si(t,r,a,o),u=t.memoizedState,l!==r||d!==u||so.current||ri?("function"==typeof c&&(di(t,n,c,r),u=t.memoizedState),(l=ri||hi(t,n,l,r,d,u,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ii(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:Vo(t.type,l),a.props=s,f=t.pendingProps,d=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=ni(u):u=fo(t,u=po(n)?co:uo.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==u)&&yi(t,a,r,u),ri=!1,d=t.memoizedState,a.state=d,si(t,r,a,o);var h=t.memoizedState;l!==f||d!==h||so.current||ri?("function"==typeof p&&(di(t,n,p,r),h=t.memoizedState),(s=ri||hi(t,n,s,r,d,h,u))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ba(e,t,n,r,i,o)}function Ba(e,t,n,r,o,i){Fa(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&go(t,n,!1),el(e,t,i);r=t.stateNode,Na.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,l,i)):Pa(e,t,l,i),t.memoizedState=r.state,o&&go(t,n,!0),t.child}function Xa(e){var t=e.stateNode;t.pendingContext?mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mo(0,t.context,!1),Ri(e,t.containerInfo)}var Ha,$a,Ga,Wa={dehydrated:null,retryLane:0};function Va(e,t,n){var r,o=t.pendingProps,i=Pi.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),ao(Pi,1&i),null===e?(void 0!==o.fallback&&Ui(t),e=o.children,i=o.fallback,a?(e=qa(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Wa,e):"number"==typeof o.unstable_expectedLoadTime?(e=qa(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Wa,t.lanes=33554432,e):((n=Xu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=Qa(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Wa,o):(n=Ya(e,t,o.children,n),t.memoizedState=null,n))}function qa(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Xu(t,o,0,null),n=Bu(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Ya(e,t,n,r){var o=e.child;return e=o.sibling,n=zu(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Qa(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=zu(a,l),null!==e?r=zu(e,r):(r=Bu(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ka(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ei(e.return,t)}function Ja(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function Za(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Pa(e,t,r.children,n),0!=(2&(r=Pi.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ka(e,n);else if(19===e.tag)Ka(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ao(Pi,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Li(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ja(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Li(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ja(t,!0,n,null,i,t.lastEffect);break;case"together":Ja(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function el(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=zu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function tl(e,t){if(!Di)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return po(t.type)&&ho(),null;case 3:return Ci(),io(so),io(uo),Gi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Xi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ii(t);var i=ji(Ti.current);if(n=t.type,null!==e&&null!=t.stateNode)$a(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=ji(Oi.current),Xi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Vr]=t,r[qr]=l,n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<Er.length;e++)Or(Er[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":ee(r,l),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Or("invalid",r);break;case"textarea":ue(r,l),Or("invalid",r)}for(var s in Se(n,l),e=null,l)l.hasOwnProperty(s)&&(i=l[s],"children"===s?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(s)&&null!=i&&"onScroll"===s&&Or("scroll",r));switch(n){case"input":Q(r),re(r,l,!0);break;case"textarea":Q(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Mr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Vr]=t,e[qr]=r,Ha(e,t),t.stateNode=e,s=xe(n,r),n){case"dialog":Or("cancel",e),Or("close",e),i=r;break;case"iframe":case"object":case"embed":Or("load",e),i=r;break;case"video":case"audio":for(i=0;i<Er.length;i++)Or(Er[i],e);i=r;break;case"source":Or("error",e),i=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),i=r;break;case"details":Or("toggle",e),i=r;break;case"input":ee(e,r),i=Z(e,r),Or("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Or("invalid",e);break;case"textarea":ue(e,r),i=le(e,r),Or("invalid",e);break;default:i=r}Se(n,i);var c=i;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?Ee(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ye(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&ve(e,f):"number"==typeof f&&ve(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(u.hasOwnProperty(l)?null!=f&&"onScroll"===l&&Or("scroll",e):null!=f&&_(e,l,f,s))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Mr)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ga(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=ji(Ti.current),ji(Oi.current),Xi(t)?(r=t.stateNode,n=t.memoizedProps,r[Vr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Vr]=t,t.stateNode=r)}return null;case 13:return io(Pi),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Xi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Pi.current)?0===Nl&&(Nl=3):(0!==Nl&&3!==Nl||(Nl=4),null===kl||0==(134217727&Ll)&&0==(134217727&Ml)||fu(kl,jl))),(r||n)&&(t.flags|=4),null);case 4:return Ci(),null===e&&Tr(t.stateNode.containerInfo),null;case 10:return Zo(t),null;case 17:return po(t.type)&&ho(),null;case 19:if(io(Pi),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(s=r.rendering))if(l)tl(r,!1);else{if(0!==Nl||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=Li(e))){for(t.flags|=64,tl(r,!1),null!==(l=s.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ao(Pi,1&Pi.current|2),t.child}e=e.sibling}null!==r.tail&&zo()>zl&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Li(s))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),tl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Di)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zo()-r.renderingStartTime>zl&&1073741824!==n&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zo(),n.sibling=null,t=Pi.current,ao(Pi,l?1&t|2:1&t),n):null;case 23:case 24:return yu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function rl(e){switch(e.tag){case 1:po(e.type)&&ho();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ci(),io(so),io(uo),Gi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ii(e),null;case 13:return io(Pi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return io(Pi),null;case 4:return Ci(),null;case 10:return Zo(e),null;case 23:case 24:return yu(),null;default:return null}}function ol(e,t){try{var n="",r=t;do{n+=W(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function il(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ha=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$a=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ji(Oi.current);var a,l=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Mr)}for(f in Se(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var s=i[f];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Or("scroll",e),l||s===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Ga=function(e,t,n,r){n!==r&&(t.flags|=4)};var al="function"==typeof WeakMap?WeakMap:Map;function ll(e,t,n){(n=ai(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,$l=r),il(0,t)},n}function ul(e,t,n){(n=ai(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return il(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Gl?Gl=new Set([this]):Gl.add(this),il(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var sl="function"==typeof WeakSet?WeakSet:Set;function cl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Pu(e,t)}else t.current=null}function fl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Vo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Xr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function dl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Cu(n,e),Ru(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Vo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ci(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}ci(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function pl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=_e("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hl(e,t){if(_o&&"function"==typeof _o.onCommitFiberUnmount)try{_o.onCommitFiberUnmount(bo,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Cu(t,n);else{r=t;try{o()}catch(e){Pu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Pu(t,e)}break;case 5:cl(t);break;case 4:gl(e,t)}}function ml(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function yl(e){return 5===e.tag||3===e.tag||4===e.tag}function vl(e){e:{for(var t=e.return;null!==t;){if(yl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||yl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Mr));else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function gl(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var l=e,u=o,s=u;;)if(hl(l,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===u)break e;for(;null===s.sibling;){if(null===s.return||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(l=n,u=o.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(hl(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[qr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,o),t=xe(e,r),o=0;o<i.length;o+=2){var l=i[o],u=i[o+1];"style"===l?Ee(n,u):"dangerouslySetInnerHTML"===l?ye(n,u):"children"===l?ve(n,u):_(n,l,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Fl=zo(),pl(t.child,!0)),void _l(t);case 19:return void _l(t);case 17:return;case 23:case 24:return void pl(t,null!==t.memoizedState)}throw Error(a(163))}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new sl),t.forEach((function(t){var r=Mu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function El(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var wl=Math.ceil,Sl=E.ReactCurrentDispatcher,xl=E.ReactCurrentOwner,Ol=0,kl=null,Tl=null,jl=0,Rl=0,Cl=oo(0),Nl=0,Il=null,Pl=0,Ll=0,Ml=0,Al=0,Dl=null,Fl=0,zl=1/0;function Ul(){zl=zo()+500}var Bl,Xl=null,Hl=!1,$l=null,Gl=null,Wl=!1,Vl=null,ql=90,Yl=[],Ql=[],Kl=null,Jl=0,Zl=null,eu=-1,tu=0,nu=0,ru=null,ou=!1;function iu(){return 0!=(48&Ol)?zo():-1!==eu?eu:eu=zo()}function au(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Uo()?1:2;if(0===tu&&(tu=Pl),0!==Wo.transition){0!==nu&&(nu=null!==Dl?Dl.pendingLanes:0),e=tu;var t=4186112&~nu;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Uo(),0!=(4&Ol)&&98===e?e=zt(12,tu):e=zt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),tu),e}function lu(e,t,n){if(50<Jl)throw Jl=0,Zl=null,Error(a(185));if(null===(e=uu(e,t)))return null;Xt(e,t,n),e===kl&&(Ml|=t,4===Nl&&fu(e,jl));var r=Uo();1===t?0!=(8&Ol)&&0==(48&Ol)?du(e):(su(e,n),0===Ol&&(Ul(),$o())):(0==(4&Ol)||98!==r&&99!==r||(null===Kl?Kl=new Set([e]):Kl.add(e)),su(e,n)),Dl=e}function uu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function su(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var u=31-Ht(l),s=1<<u,c=i[u];if(-1===c){if(0==(s&r)||0!=(s&o)){c=t,At(s);var f=Mt;i[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);l&=~s}if(r=Dt(e,e===kl?jl:0),t=Mt,0===r)null!==n&&(n!==Po&&So(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Po&&So(n)}15===t?(n=du.bind(null,e),null===Mo?(Mo=[n],Ao=wo(jo,Go)):Mo.push(n),n=Po):14===t?n=Ho(99,du.bind(null,e)):n=Ho(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),cu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function cu(e){if(eu=-1,nu=tu=0,0!=(48&Ol))throw Error(a(327));var t=e.callbackNode;if(ju()&&e.callbackNode!==t)return null;var n=Dt(e,e===kl?jl:0);if(0===n)return null;var r=n,o=Ol;Ol|=16;var i=bu();for(kl===e&&jl===r||(Ul(),vu(e,r));;)try{wu();break}catch(t){gu(e,t)}if(Jo(),Sl.current=i,Ol=o,null!==Tl?r=0:(kl=null,jl=0,r=Nl),0!=(Pl&Ml))vu(e,0);else if(0!==r){if(2===r&&(Ol|=64,e.hydrate&&(e.hydrate=!1,Xr(e.containerInfo)),0!==(n=Ft(e))&&(r=_u(e,n))),1===r)throw t=Il,vu(e,0),fu(e,n),su(e,zo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Ou(e);break;case 3:if(fu(e,n),(62914560&n)===n&&10<(r=Fl+500-zo())){if(0!==Dt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){iu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ur(Ou.bind(null,e),r);break}Ou(e);break;case 4:if(fu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Ht(n);i=1<<l,(l=r[l])>o&&(o=l),n&=~i}if(n=o,10<(n=(120>(n=zo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*wl(n/1960))-n)){e.timeoutHandle=Ur(Ou.bind(null,e),n);break}Ou(e);break;case 5:Ou(e);break;default:throw Error(a(329))}}return su(e,zo()),e.callbackNode===t?cu.bind(null,e):null}function fu(e,t){for(t&=~Al,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function du(e){if(0!=(48&Ol))throw Error(a(327));if(ju(),e===kl&&0!=(e.expiredLanes&jl)){var t=jl,n=_u(e,t);0!=(Pl&Ml)&&(n=_u(e,t=Dt(e,t)))}else n=_u(e,t=Dt(e,0));if(0!==e.tag&&2===n&&(Ol|=64,e.hydrate&&(e.hydrate=!1,Xr(e.containerInfo)),0!==(t=Ft(e))&&(n=_u(e,t))),1===n)throw n=Il,vu(e,0),fu(e,t),su(e,zo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ou(e),su(e,zo()),null}function pu(e,t){var n=Ol;Ol|=1;try{return e(t)}finally{0===(Ol=n)&&(Ul(),$o())}}function hu(e,t){var n=Ol;Ol&=-2,Ol|=8;try{return e(t)}finally{0===(Ol=n)&&(Ul(),$o())}}function mu(e,t){ao(Cl,Rl),Rl|=t,Pl|=t}function yu(){Rl=Cl.current,io(Cl)}function vu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Br(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&ho();break;case 3:Ci(),io(so),io(uo),Gi();break;case 5:Ii(r);break;case 4:Ci();break;case 13:case 19:io(Pi);break;case 10:Zo(r);break;case 23:case 24:yu()}n=n.return}kl=e,Tl=zu(e.current,null),jl=Rl=Pl=t,Nl=0,Il=null,Al=Ml=Ll=0}function gu(e,t){for(;;){var n=Tl;try{if(Jo(),Wi.current=Ta,Ji){for(var r=Yi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Ji=!1}if(qi=0,Ki=Qi=Yi=null,Zi=!1,xl.current=null,null===n||null===n.return){Nl=1,Il=t,Tl=null;break}e:{var i=e,a=n.return,l=n,u=t;if(t=jl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&Pi.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var y=d.updateQueue;if(null===y){var v=new Set;v.add(s),d.updateQueue=v}else y.add(s);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var g=ai(-1,1);g.tag=2,li(l,g)}l.lanes|=1;break e}u=void 0,l=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new al,u=new Set,b.set(s,u)):void 0===(u=b.get(s))&&(u=new Set,b.set(s,u)),!u.has(l)){u.add(l);var _=Lu.bind(null,i,s,l);s.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((V(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Nl&&(Nl=2),u=ol(u,l),d=a;do{switch(d.tag){case 3:i=u,d.flags|=4096,t&=-t,d.lanes|=t,ui(d,ll(0,i,t));break e;case 1:i=u;var E=d.type,w=d.stateNode;if(0==(64&d.flags)&&("function"==typeof E.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===Gl||!Gl.has(w)))){d.flags|=4096,t&=-t,d.lanes|=t,ui(d,ul(d,i,t));break e}}d=d.return}while(null!==d)}xu(n)}catch(e){t=e,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function bu(){var e=Sl.current;return Sl.current=Ta,null===e?Ta:e}function _u(e,t){var n=Ol;Ol|=16;var r=bu();for(kl===e&&jl===t||vu(e,t);;)try{Eu();break}catch(t){gu(e,t)}if(Jo(),Ol=n,Sl.current=r,null!==Tl)throw Error(a(261));return kl=null,jl=0,Nl}function Eu(){for(;null!==Tl;)Su(Tl)}function wu(){for(;null!==Tl&&!xo();)Su(Tl)}function Su(e){var t=Bl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?xu(e):Tl=t,xl.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=nl(n,t,Rl)))return void(Tl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Rl)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rl(t)))return n.flags&=2047,void(Tl=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Nl&&(Nl=5)}function Ou(e){var t=Uo();return Xo(99,ku.bind(null,e,t)),null}function ku(e,t){do{ju()}while(null!==Vl);if(0!=(48&Ol))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var l=e.eventTimes,u=e.expirationTimes;0<i;){var s=31-Ht(i),c=1<<s;o[s]=0,l[s]=-1,u[s]=-1,i&=~c}if(null!==Kl&&0==(24&r)&&Kl.has(e)&&Kl.delete(e),e===kl&&(Tl=kl=null,jl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Ol,Ol|=32,xl.current=null,Ar=qt,dr(l=fr())){if("selectionStart"in l)u={start:l.selectionStart,end:l.selectionEnd};else e:if(u=(u=l.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,i=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{u.nodeType,s.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,h=0,m=0,y=l,v=null;t:for(;;){for(var g;y!==u||0!==i&&3!==y.nodeType||(d=f+i),y!==s||0!==c&&3!==y.nodeType||(p=f+c),3===y.nodeType&&(f+=y.nodeValue.length),null!==(g=y.firstChild);)v=y,y=g;for(;;){if(y===l)break t;if(v===u&&++h===i&&(d=f),v===s&&++m===c&&(p=f),null!==(g=y.nextSibling))break;v=(y=v).parentNode}y=g}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Dr={focusedElem:l,selectionRange:u},qt=!1,ru=null,ou=!1,Xl=r;do{try{Tu()}catch(e){if(null===Xl)throw Error(a(330));Pu(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);ru=null,Xl=r;do{try{for(l=e;null!==Xl;){var b=Xl.flags;if(16&b&&ve(Xl.stateNode,""),128&b){var _=Xl.alternate;if(null!==_){var E=_.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&b){case 2:vl(Xl),Xl.flags&=-3;break;case 6:vl(Xl),Xl.flags&=-3,bl(Xl.alternate,Xl);break;case 1024:Xl.flags&=-1025;break;case 1028:Xl.flags&=-1025,bl(Xl.alternate,Xl);break;case 4:bl(Xl.alternate,Xl);break;case 8:gl(l,u=Xl);var w=u.alternate;ml(u),null!==w&&ml(w)}Xl=Xl.nextEffect}}catch(e){if(null===Xl)throw Error(a(330));Pu(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);if(E=Dr,_=fr(),b=E.focusedElem,l=E.selectionRange,_!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==l&&dr(b)&&(_=l.start,void 0===(E=l.end)&&(E=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(E,b.value.length)):(E=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(E=E.getSelection(),u=b.textContent.length,w=Math.min(l.start,u),l=void 0===l.end?w:Math.min(l.end,u),!E.extend&&w>l&&(u=l,l=w,w=u),u=cr(b,w),i=cr(b,l),u&&i&&(1!==E.rangeCount||E.anchorNode!==u.node||E.anchorOffset!==u.offset||E.focusNode!==i.node||E.focusOffset!==i.offset)&&((_=_.createRange()).setStart(u.node,u.offset),E.removeAllRanges(),w>l?(E.addRange(_),E.extend(i.node,i.offset)):(_.setEnd(i.node,i.offset),E.addRange(_))))),_=[];for(E=b;E=E.parentNode;)1===E.nodeType&&_.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(E=_[b]).element.scrollLeft=E.left,E.element.scrollTop=E.top}qt=!!Ar,Dr=Ar=null,e.current=n,Xl=r;do{try{for(b=e;null!==Xl;){var S=Xl.flags;if(36&S&&dl(b,Xl.alternate,Xl),128&S){_=void 0;var x=Xl.ref;if(null!==x){var O=Xl.stateNode;switch(Xl.tag){case 5:_=O;break;default:_=O}"function"==typeof x?x(_):x.current=_}}Xl=Xl.nextEffect}}catch(e){if(null===Xl)throw Error(a(330));Pu(Xl,e),Xl=Xl.nextEffect}}while(null!==Xl);Xl=null,Lo(),Ol=o}else e.current=n;if(Wl)Wl=!1,Vl=e,ql=t;else for(Xl=r;null!==Xl;)t=Xl.nextEffect,Xl.nextEffect=null,8&Xl.flags&&((S=Xl).sibling=null,S.stateNode=null),Xl=t;if(0===(r=e.pendingLanes)&&(Gl=null),1===r?e===Zl?Jl++:(Jl=0,Zl=e):Jl=0,n=n.stateNode,_o&&"function"==typeof _o.onCommitFiberRoot)try{_o.onCommitFiberRoot(bo,n,void 0,64==(64&n.current.flags))}catch(e){}if(su(e,zo()),Hl)throw Hl=!1,e=$l,$l=null,e;return 0!=(8&Ol)||$o(),null}function Tu(){for(;null!==Xl;){var e=Xl.alternate;ou||null===ru||(0!=(8&Xl.flags)?Ze(Xl,ru)&&(ou=!0):13===Xl.tag&&El(e,Xl)&&Ze(Xl,ru)&&(ou=!0));var t=Xl.flags;0!=(256&t)&&fl(e,Xl),0==(512&t)||Wl||(Wl=!0,Ho(97,(function(){return ju(),null}))),Xl=Xl.nextEffect}}function ju(){if(90!==ql){var e=97<ql?97:ql;return ql=90,Xo(e,Nu)}return!1}function Ru(e,t){Yl.push(t,e),Wl||(Wl=!0,Ho(97,(function(){return ju(),null})))}function Cu(e,t){Ql.push(t,e),Wl||(Wl=!0,Ho(97,(function(){return ju(),null})))}function Nu(){if(null===Vl)return!1;var e=Vl;if(Vl=null,0!=(48&Ol))throw Error(a(331));var t=Ol;Ol|=32;var n=Ql;Ql=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],l=o.destroy;if(o.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===i)throw Error(a(330));Pu(i,e)}}for(n=Yl,Yl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var u=o.create;o.destroy=u()}catch(e){if(null===i)throw Error(a(330));Pu(i,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Ol=t,$o(),!0}function Iu(e,t,n){li(e,t=ll(0,t=ol(n,t),1)),t=iu(),null!==(e=uu(e,1))&&(Xt(e,1,t),su(e,t))}function Pu(e,t){if(3===e.tag)Iu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Iu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gl||!Gl.has(r))){var o=ul(n,e=ol(t,e),1);if(li(n,o),o=iu(),null!==(n=uu(n,1)))Xt(n,1,o),su(n,o);else if("function"==typeof r.componentDidCatch&&(null===Gl||!Gl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Lu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=iu(),e.pingedLanes|=e.suspendedLanes&n,kl===e&&(jl&n)===n&&(4===Nl||3===Nl&&(62914560&jl)===jl&&500>zo()-Fl?vu(e,0):Al|=n),su(e,t)}function Mu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Uo()?1:2:(0===tu&&(tu=Pl),0===(t=Ut(62914560&~tu))&&(t=4194304))),n=iu(),null!==(e=uu(e,t))&&(Xt(e,t,n),su(e,n))}function Au(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Du(e,t,n,r){return new Au(e,t,n,r)}function Fu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var n=e.alternate;return null===n?((n=Du(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Uu(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Fu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return Bu(n.children,o,i,t);case A:l=8,o|=16;break;case O:l=8,o|=1;break;case k:return(e=Du(12,n,t,8|o)).elementType=k,e.type=k,e.lanes=i,e;case C:return(e=Du(13,n,t,o)).type=C,e.elementType=C,e.lanes=i,e;case N:return(e=Du(19,n,t,o)).elementType=N,e.lanes=i,e;case D:return Xu(n,o,i,t);case F:return(e=Du(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:l=10;break e;case j:l=9;break e;case R:l=11;break e;case I:l=14;break e;case P:l=16,r=null;break e;case L:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Du(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Bu(e,t,n,r){return(e=Du(7,e,r,t)).lanes=n,e}function Xu(e,t,n,r){return(e=Du(23,e,r,t)).elementType=D,e.lanes=n,e}function Hu(e,t,n){return(e=Du(6,e,null,t)).lanes=n,e}function $u(e,t,n){return(t=Du(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Wu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Vu(e,t,n,r){var o=t.current,i=iu(),l=au(o);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(po(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var s=n.type;if(po(s)){n=yo(n,s,u);break e}}n=u}else n=lo;return null===t.context?t.context=n:t.pendingContext=n,(t=ai(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),li(o,t),lu(o,l,i),l}function qu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}function Ku(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Gu(e,t,null!=n&&!0===n.hydrate),t=Du(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,oi(t),e[Yr]=n.current,Tr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=qu(a);l.call(e)}}Vu(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ku(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var u=o;o=function(){var e=qu(a);u.call(e)}}hu((function(){Vu(t,a,e,o)}))}return qu(a)}function es(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(a(200));return Wu(e,t,null,n)}Bl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||so.current)Ia=!0;else{if(0==(n&r)){switch(Ia=!1,t.tag){case 3:Xa(t),Hi();break;case 5:Ni(t);break;case 1:po(t.type)&&vo(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;ao(qo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Va(e,t,n):(ao(Pi,1&Pi.current),null!==(t=el(e,t,n))?t.sibling:null);ao(Pi,1&Pi.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Za(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),ao(Pi,Pi.current),r)break;return null;case 23:case 24:return t.lanes=0,Da(e,t,n)}return el(e,t,n)}Ia=0!=(16384&e.flags)}else Ia=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=fo(t,uo.current),ti(t,n),o=na(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,po(r)){var i=!0;vo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,oi(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&di(t,r,l,e),o.updater=pi,t.stateNode=o,o._reactInternals=t,vi(t,r,e,n),t=Ba(null,t,r,!0,i,n)}else t.tag=0,Pa(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Fu(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===I)return 14}return 2}(o),e=Vo(o,e),i){case 0:t=za(null,t,o,e,n);break e;case 1:t=Ua(null,t,o,e,n);break e;case 11:t=La(null,t,o,e,n);break e;case 14:t=Ma(null,t,o,Vo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,za(e,t,r,o=t.elementType===r?o:Vo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Vo(r,o),n);case 3:if(Xa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ii(e,t),si(t,r,null,n),(r=t.memoizedState.element)===o)Hi(),t=el(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Ai=Hr(t.stateNode.containerInfo.firstChild),Mi=t,i=Di=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],$i.push(i);for(n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Pa(e,t,r,n),Hi();t=t.child}return t;case 5:return Ni(t),null===e&&Ui(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,zr(r,o)?l=null:null!==i&&zr(r,i)&&(t.flags|=16),Fa(e,t),Pa(e,t,l,n),t.child;case 6:return null===e&&Ui(t),null;case 13:return Va(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,n):Pa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,La(e,t,r,o=t.elementType===r?o:Vo(r,o),n);case 7:return Pa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value;var u=t.type._context;if(ao(qo,u._currentValue),u._currentValue=i,null!==l)if(u=l.value,0===(i=ar(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(l.children===o.children&&!so.current){t=el(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.dependencies;if(null!==s){l=u.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===u.tag&&((c=ai(-1,n&-n)).tag=2,li(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),ei(u.return,n),s.lanes|=n;break}c=c.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}Pa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ti(t,n),r=r(o=ni(o,i.unstable_observedBits)),t.flags|=1,Pa(e,t,r,n),t.child;case 14:return i=Vo(o=t.type,t.pendingProps),Ma(e,t,o,i=Vo(o.type,i),r,n);case 15:return Aa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Vo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,po(r)?(e=!0,vo(t)):e=!1,ti(t,n),mi(t,r,o),vi(t,r,o,n),Ba(null,t,r,!0,e,n);case 19:return Za(e,t,n);case 23:case 24:return Da(e,t,n)}throw Error(a(156,t.tag))},Ku.prototype.render=function(e){Vu(e,this._internalRoot,null,null)},Ku.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Vu(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(lu(e,4,iu()),Qu(e,4))},tt=function(e){13===e.tag&&(lu(e,67108864,iu()),Qu(e,67108864))},nt=function(e){if(13===e.tag){var t=iu(),n=au(e);lu(e,n,t),Qu(e,n)}},rt=function(e,t){return t()},ke=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=eo(r);if(!o)throw Error(a(90));K(r),ne(r,o)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ie=pu,Pe=function(e,t,n,r,o){var i=Ol;Ol|=4;try{return Xo(98,e.bind(null,t,n,r,o))}finally{0===(Ol=i)&&(Ul(),$o())}},Le=function(){0==(49&Ol)&&(function(){if(null!==Kl){var e=Kl;Kl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,su(e,zo())}))}$o()}(),ju())},Me=function(e,t){var n=Ol;Ol|=2;try{return e(t)}finally{0===(Ol=n)&&(Ul(),$o())}};var ts={Events:[Jr,Zr,eo,Ce,Ne,ju,{current:!1}]},ns={findFiberByHostInstance:Kr,bundleType:0,version:"17.0.1",rendererPackageName:"react-dom"},rs={bundleType:ns.bundleType,version:ns.version,rendererPackageName:ns.rendererPackageName,rendererConfig:ns.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ns.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var os=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!os.isDisabled&&os.supportsFiber)try{bo=os.inject(rs),_o=os}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ts,t.createPortal=es,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ol;if(0!=(48&n))return e(t);Ol|=1;try{if(e)return Xo(99,e.bind(null,t))}finally{Ol=n,$o()}},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(a(200));return Zu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ju(t))throw Error(a(200));return Zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(a(40));return!!e._reactRootContainer&&(hu((function(){Zu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=pu,t.unstable_createPortal=function(e,t){return es(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zu(e,t,n,!1,r)},t.version="17.0.1"},function(e,t,n){"use strict";e.exports=n(72)},function(e,t,n){"use strict";
/** @license React v0.20.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r,o,i,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},o=function(e,t){f=setTimeout(e,t)},i=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,v=null,g=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,w=E.port2;E.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();_=e+b;try{v(!0,e)?w.postMessage(null):(y=!1,v=null)}catch(e){throw w.postMessage(null),e}}else y=!1},r=function(e){v=e,y||(y=!0,w.postMessage(null))},o=function(e,n){g=p((function(){e(t.unstable_now())}),n)},i=function(){h(g),g=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<k(o,t)))break e;e[r]=t,e[n]=o,n=r}}function x(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,u=e[l];if(void 0!==a&&0>k(a,n))void 0!==u&&0>k(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>k(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],j=[],R=1,C=null,N=3,I=!1,P=!1,L=!1;function M(e){for(var t=x(j);null!==t;){if(null===t.callback)O(j);else{if(!(t.startTime<=e))break;O(j),t.sortIndex=t.expirationTime,S(T,t)}t=x(j)}}function A(e){if(L=!1,M(e),!P)if(null!==x(T))P=!0,r(D);else{var t=x(j);null!==t&&o(A,t.startTime-e)}}function D(e,n){P=!1,L&&(L=!1,i()),I=!0;var r=N;try{for(M(n),C=x(T);null!==C&&(!(C.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=C.callback;if("function"==typeof a){C.callback=null,N=C.priorityLevel;var l=a(C.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?C.callback=l:C===x(T)&&O(T),M(n)}else O(T);C=x(T)}if(null!==C)var u=!0;else{var s=x(j);null!==s&&o(A,s.startTime-n),u=!1}return u}finally{C=null,N=r,I=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){P||I||(P=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return x(T)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:R++,callback:n,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>l?(e.sortIndex=a,S(j,e),null===x(T)&&e===x(j)&&(L?i():L=!0,o(A,a-l))):(e.sortIndex=u,S(T,e),P||I||(P=!0,r(D))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(74);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(o).default}})},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(7)),i=n(10),a=r(n(25)),l=r(n(18)),u=r(n(75)),s=r(n(81));n(85),t.default=function(){const{artboards:e,symbols:t}=l.default.getExportableNodesFromSelection(i.selection),n=!(0===e.length&&0===t.length);return o.default.createElement("form",null,n?o.default.createElement("div",null,o.default.createElement(u.default,{count:e.length}),o.default.createElement(s.default,{count:t.length})):o.default.createElement("p",{className:"noSelection"},"Select artboards or components to export to Zeplin."),o.default.createElement("footer",{className:"zeplinFooter"},o.default.createElement("button",{type:"submit",disabled:!n,"uxp-variant":"cta",onClick:()=>{a.default.exportFromPanel(i.selection,e,t)}},"Export")))}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(76);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(o).default}})},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(7)),i=n(37),a=n(20);n(79),t.default=function({count:e}){const t=e>0;return o.default.createElement("div",{className:"artboardSelection "+(t?"":"noSelection")},o.default.createElement(i.IconArtboard,null),o.default.createElement("p",{className:"selectionText"},t?""+a.pluralize(e,"artboard"):"No artboards"))}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(7));t.default=function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},o.default.createElement("path",{fill:"none",d:"M0 0H16V16H0z"}),o.default.createElement("g",{fill:"none"},o.default.createElement("path",{d:"M1 0h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1z",transform:"translate(3.5 3.5)"}),o.default.createElement("path",{fill:"#666",d:"M1 1v7h7V1H1m0-1h7c.552 0 1 .448 1 1v7c0 .552-.448 1-1 1H1c-.552 0-1-.448-1-1V1c0-.552.448-1 1-1z",transform:"translate(3.5 3.5)"})))}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(7));t.default=function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",id:"Icon_Component",width:"16",height:"16",viewBox:"0 0 16 16"},o.default.createElement("path",{id:"Background",d:"M0 0H16V16H0z",fill:"none"}),o.default.createElement("g",{id:"Shape",fill:"rgba(112,112,112,0.5)",stroke:"#707070",transform:"rotate(45 2.025 10.475)"},o.default.createElement("rect",{width:"9",height:"9",stroke:"none",rx:"1"}),o.default.createElement("rect",{width:"8",height:"8",x:".5",y:".5",fill:"none",rx:".5"})))}},function(e,t,n){var r=n(22),o=n(80);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){(e.exports=n(23)(!1)).push([e.i,".artboardSelection {\n display: flex;\n align-items: center;\n}\n\n.artboardSelection.noSelection {\n opacity: 0.5;\n}\n\n.artboardSelection .selectionText {\n margin-left: 4px;\n}\n",""])},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(82);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(o).default}})},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(7)),i=n(37),a=n(20);n(83),t.default=function({count:e}){const t=e>0;return o.default.createElement("div",{className:"componentSelection "+(t?"":"noSelection")},o.default.createElement(i.IconComponent,null),o.default.createElement("p",{className:"selectionText"},t?""+a.pluralize(e,"component"):"No components"))}},function(e,t,n){var r=n(22),o=n(84);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){(e.exports=n(23)(!1)).push([e.i,".componentSelection {\n display: flex;\n align-items: center;\n}\n\n.componentSelection.noSelection {\n opacity: 0.5;\n}\n\n.componentSelection .selectionText {\n margin-left: 4px;\n}\n",""])},function(e,t,n){var r=n(22),o=n(86);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){(e.exports=n(23)(!1)).push([e.i,".noSelection {\n text-align: center;\n}\n\n.zeplinFooter {\n display: flex;\n justify-content: center;\n}\n",""])},function(e,t,n){"use strict";n.r(t),n.d(t,"Severity",(function(){return a})),n.d(t,"Status",(function(){return l})),n.d(t,"addGlobalEventProcessor",(function(){return y})),n.d(t,"addBreadcrumb",(function(){return D})),n.d(t,"captureException",(function(){return P})),n.d(t,"captureEvent",(function(){return M})),n.d(t,"captureMessage",(function(){return L})),n.d(t,"configureScope",(function(){return A})),n.d(t,"getHubFromCarrier",(function(){return C})),n.d(t,"getCurrentHub",(function(){return j})),n.d(t,"Hub",(function(){return O})),n.d(t,"makeMain",(function(){return T})),n.d(t,"Scope",(function(){return h})),n.d(t,"startTransaction",(function(){return G})),n.d(t,"setContext",(function(){return F})),n.d(t,"setExtra",(function(){return B})),n.d(t,"setExtras",(function(){return z})),n.d(t,"setTag",(function(){return X})),n.d(t,"setTags",(function(){return U})),n.d(t,"setUser",(function(){return H})),n.d(t,"withScope",(function(){return $})),n.d(t,"BrowserClient",(function(){return rt})),n.d(t,"injectReportDialog",(function(){return Le})),n.d(t,"eventFromException",(function(){return ve})),n.d(t,"eventFromMessage",(function(){return ge})),n.d(t,"defaultIntegrations",(function(){return pt})),n.d(t,"forceLoad",(function(){return vt})),n.d(t,"init",(function(){return ht})),n.d(t,"lastEventId",(function(){return yt})),n.d(t,"onLoad",(function(){return gt})),n.d(t,"showReportDialog",(function(){return mt})),n.d(t,"flush",(function(){return bt})),n.d(t,"close",(function(){return _t})),n.d(t,"wrap",(function(){return Et})),n.d(t,"SDK_NAME",(function(){return tt})),n.d(t,"SDK_VERSION",(function(){return nt})),n.d(t,"Integrations",(function(){return xt})),n.d(t,"Transports",(function(){return i}));var r={};n.r(r),n.d(r,"FunctionToString",(function(){return ot})),n.d(r,"InboundFilters",(function(){return at}));var o={};n.r(o),n.d(o,"GlobalHandlers",(function(){return st})),n.d(o,"TryCatch",(function(){return ut})),n.d(o,"Breadcrumbs",(function(){return et})),n.d(o,"LinkedErrors",(function(){return ct})),n.d(o,"UserAgent",(function(){return dt}));var i={};n.r(i),n.d(i,"BaseTransport",(function(){return Oe})),n.d(i,"FetchTransport",(function(){return Te})),n.d(i,"XHRTransport",(function(){return je}));var a,l,u=n(0);!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(a||(a={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(a||(a={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(l||(l={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(l||(l={}));var s,c=n(2),f=n(88);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(s||(s={}));var d=function(){function e(e){var t=this;this._state=s.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(s.RESOLVED,e)},this._reject=function(e){t._setResult(s.REJECTED,e)},this._setResult=function(e,n){t._state===s.PENDING&&(Object(c.m)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==s.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===s.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===s.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach((function(t,a){e.resolve(t).then((function(e){i[a]=e,0===(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else o(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),p=n(3),h=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(u.e)(t._breadcrumbs),n._tags=Object(u.a)({},t._tags),n._extra=Object(u.a)({},t._extra),n._contexts=Object(u.a)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(u.e)(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=Object(u.a)(Object(u.a)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(u.a)(Object(u.a)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(u.a)(Object(u.a)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(u.a)(Object(u.a)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Object(u.a)(Object(u.a)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,o=this.getSpan();return(null===(e=o)||void 0===e?void 0:e.transaction)?null===(t=o)||void 0===t?void 0:t.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(u.a)(Object(u.a)({},this._tags),t._tags),this._extra=Object(u.a)(Object(u.a)({},this._extra),t._extra),this._contexts=Object(u.a)(Object(u.a)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):Object(c.h)(t)&&(t=t,this._tags=Object(u.a)(Object(u.a)({},this._tags),t.tags),this._extra=Object(u.a)(Object(u.a)({},this._extra),t.extra),this._contexts=Object(u.a)(Object(u.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Object(u.a)({timestamp:Object(f.a)()},e);return this._breadcrumbs=void 0!==t&&t>=0?Object(u.e)(this._breadcrumbs,[n]).slice(-t):Object(u.e)(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=Object(u.a)(Object(u.a)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(u.a)(Object(u.a)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(u.a)(Object(u.a)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(u.a)(Object(u.a)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Object(u.a)({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=Object(u.a)({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Object(u.e)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Object(u.e)(m(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new d((function(i,a){var l=e[r];if(null===t||"function"!=typeof l)i(t);else{var s=l(Object(u.a)({},t),n);Object(c.m)(s)?s.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(i)})).then(null,a):o._notifyEventProcessors(e,s,n,r+1).then(i).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function m(){var e=Object(p.e)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function y(e){m().push(e)}var v=Object(p.e)(),g="Sentry Logger ",b=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(p.c)((function(){v.console.log(g+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(p.c)((function(){v.console.warn(g+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(p.c)((function(){v.console.error(g+"[Error]: "+e.join(" "))}))},e}();v.__SENTRY__=v.__SENTRY__||{};var _,E=v.__SENTRY__.logger||(v.__SENTRY__.logger=new b),w=n(12);!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(_||(_={}));var S=n(4),x=function(){function e(e){this.errors=0,this.sid=Object(p.i)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=_.Ok,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:Object(p.i)()),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),"number"==typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===_.Ok?this.update({status:_.Exited}):this.update()},e.prototype.toJSON=function(){return Object(S.a)({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Object(S.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),O=function(){function e(e,t,n){void 0===t&&(t=new h),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=h.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Object(p.i)(),r=t;if(!t){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(e){o=e}r={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,Object(u.a)(Object(u.a)({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=Object(p.i)(),o=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}o={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,Object(u.a)(Object(u.a)({},o),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(p.i)();return this._invokeClient("captureEvent",e,Object(u.a)(Object(u.a)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var i=o.getOptions&&o.getOptions()||{},a=i.beforeBreadcrumb,l=void 0===a?null:a,s=i.maxBreadcrumbs,c=void 0===s?100:s;if(!(c<=0)){var d=Object(f.a)(),h=Object(u.a)({timestamp:d},e),m=l?Object(p.c)((function(){return l(h,t)})):h;null!==m&&r.addBreadcrumb(m,Math.min(c,100))}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=T(this);try{e(this)}finally{T(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return E.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.startSession=function(e){this.endSession();var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},i=o.release,a=o.environment,l=new x(Object(u.a)(Object(u.a)({release:i,environment:a},n&&{user:n.getUser()}),e));return n&&n.setSession(l),l},e.prototype.endSession=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&(r.close(),n&&n.captureSession&&n.captureSession(r),t.setSession())}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),i=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,Object(u.e)(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=k(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);E.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function k(){var e=Object(p.e)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function T(e){var t=k(),n=C(t);return N(t,e),n}function j(){var e=k();return R(e)&&!C(e).isOlderThan(3)||N(e,new O),Object(w.b)()?function(e){try{var t=(r=k().__SENTRY__)&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!t)return C(e);if(!R(t)||C(t).isOlderThan(3)){var n=C(e).getStackTop();N(t,new O(n.client,h.clone(n.scope)))}return C(t)}catch(t){return C(e)}var r}(e):C(e)}function R(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function C(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new O),e.__SENTRY__.hub}function N(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function I(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=j();if(r&&r[e])return r[e].apply(r,Object(u.e)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function P(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return I("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function L(e,t){var n;try{throw new Error(e)}catch(e){n=e}var r="string"!=typeof t?{captureContext:t}:void 0;return I("captureMessage",e,"string"==typeof t?t:void 0,Object(u.a)({originalException:e,syntheticException:n},r))}function M(e){return I("captureEvent",e)}function A(e){I("configureScope",e)}function D(e){I("addBreadcrumb",e)}function F(e,t){I("setContext",e,t)}function z(e){I("setExtras",e)}function U(e){I("setTags",e)}function B(e,t){I("setExtra",e,t)}function X(e,t){I("setTag",e,t)}function H(e){I("setUser",e)}function $(e){I("withScope",e)}function G(e,t){return I("startTransaction",Object(u.a)({},e),t)}var W=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e});var V=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,W(r,n.prototype),r}return Object(u.b)(t,e),t}(Error),q=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Y=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,o=t.pass,i=t.port,a=t.projectId;return t.protocol+"://"+t.user+(e&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=q.exec(e);if(!t)throw new V("Invalid Dsn");var n=Object(u.c)(t.slice(1),6),r=n[0],o=n[1],i=n[2],a=void 0===i?"":i,l=n[3],s=n[4],c=void 0===s?"":s,f="",d=n[5],p=d.split("/");if(p.length>1&&(f=p.slice(0,-1).join("/"),d=p.pop()),d){var h=d.match(/^\d+/);h&&(d=h[0])}this._fromComponents({host:l,pass:a,path:f,projectId:d,port:c,protocol:r,user:o})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new V("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new V("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new V("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new V("Invalid Dsn: Invalid port "+this.port)},e}(),Q=n(8),K=[];function J(e){var t={};return function(e){var t=e.defaultIntegrations&&Object(u.e)(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var o=n.map((function(e){return e.name})),i=[];t.forEach((function(e){-1===o.indexOf(e.name)&&-1===i.indexOf(e.name)&&(r.push(e),i.push(e.name))})),n.forEach((function(e){-1===i.indexOf(e.name)&&(r.push(e),i.push(e.name))}))}else"function"==typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=Object(u.e)(t);var a=r.map((function(e){return e.name}));return-1!==a.indexOf("Debug")&&r.push.apply(r,Object(u.e)(r.splice(a.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===K.indexOf(e.name)&&(e.setupOnce(y,j),K.push(e.name),E.log("Integration installed: "+e.name))}(e)})),t}var Z=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new Y(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,o=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){o=e}))),o},e.prototype.captureMessage=function(e,t,n,r){var o=this,i=n&&n.event_id,a=Object(c.i)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return o._captureEvent(e,n,r)})).then((function(e){i=e}))),i},e.prototype.captureEvent=function(e,t,n){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r},e.prototype.captureSession=function(e){e.release?this._sendSession(e):E.warn("Discarded session because of missing release")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return t._getBackend().getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=J(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return E.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,o,i=!1,a=!1,l=t.exception&&t.exception.values;if(l){a=!0;try{for(var s=Object(u.f)(l),c=s.next();!c.done;c=s.next()){var f=c.value.mechanism;if(f&&!1===f.handled){i=!0;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}var d=t.user;if(!e.userAgent){var p=t.request?t.request.headers:{};for(var h in p)if("user-agent"===h.toLowerCase()){o=p[h];break}}e.update(Object(u.a)(Object(u.a)({},i&&{status:_.Crashed}),{user:d,userAgent:o,errors:e.errors+Number(a||i)}))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientProcessing=function(e){var t=this;return new d((function(n){var r=0,o=setInterval((function(){0==t._processing?(clearInterval(o),n(!0)):(r+=1,e&&r>=e&&(clearInterval(o),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,o=this.getOptions().normalizeDepth,i=void 0===o?3:o,a=Object(u.a)(Object(u.a)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:Object(p.i)()),timestamp:e.timestamp||Object(f.a)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var l=t;n&&n.captureContext&&(l=h.clone(l).update(n.captureContext));var s=d.resolve(a);return l&&(s=l.applyToEvent(a,n)),s.then((function(e){return"number"==typeof i&&i>0?r._normalizeEvent(e,i):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Object(u.a)(Object(u.a)({},e),e.data&&{data:Object(S.d)(e.data,t)})}))}),e.user&&{user:Object(S.d)(e.user,t)}),e.contexts&&{contexts:Object(S.d)(e.contexts,t)}),e.extra&&{extra:Object(S.d)(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,o=t.dist,i=t.maxValueLength,a=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=Object(Q.d)(e.message,a));var l=e.exception&&e.exception.values&&e.exception.values[0];l&&l.value&&(l.value=Object(Q.d)(l.value,a));var u=e.request;u&&u.url&&(u.url=Object(Q.d)(u.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=e.sdk,n=Object.keys(this._integrations);t&&n.length>0&&(t.integrations=n)},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){E.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,o=this.getOptions(),i=o.beforeSend,a=o.sampleRate;if(!this._isEnabled())return d.reject(new V("SDK not enabled, will not send event."));var l="transaction"===e.type;return!l&&"number"==typeof a&&Math.random()>a?d.reject(new V("This event has been sampled, will not send event.")):this._prepareEvent(e,n,t).then((function(e){if(null===e)throw new V("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||l||!i)return e;var n=i(e,t);if(void 0===n)throw new V("`beforeSend` method has to return `null` or a valid event.");return Object(c.m)(n)?n.then((function(e){return e}),(function(e){throw new V("beforeSend rejected with "+e)})):n})).then((function(e){if(null===e)throw new V("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!l&&t&&r._updateSessionFromEvent(t,e),r._sendEvent(e),e})).then(null,(function(e){if(e instanceof V)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new V("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._processing+=1,e.then((function(e){return t._processing-=1,e}),(function(e){return t._processing-=1,e}))},e}(),ee=function(){function e(){}return e.prototype.sendEvent=function(e){return d.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:l.Skipped})},e.prototype.close=function(e){return d.resolve(!0)},e}(),te=function(){function e(e){this._options=e,this._options.dsn||E.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new V("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new V("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){E.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){E.error("Error while sending session: "+e)})):E.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new ee},e}();function ne(){if(!("fetch"in Object(p.e)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function re(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function oe(){if(!ne())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var ie=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ae=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,le=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ue=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,se=/\((\S*)(?::(\d+))(?::(\d+))\)/,ce=/Minified React error #\d+;/i;function fe(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:ce.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=n.split("\n"),a=[],l=0;l<i.length;l+=2){var u=null;(t=r.exec(i[l]))?u={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=o.exec(i[l]))&&(u={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),u&&(!u.func&&u.line&&(u.func="?"),a.push(u))}if(!a.length)return null;return{message:pe(e),name:e.name,stack:a}}(e))return de(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,r,o=[],i=e.stack.split("\n"),a=0;a<i.length;++a){if(n=ie.exec(i[a])){var l=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=se.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||"?",args:l?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=le.exec(i[a]))r={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=ae.exec(i[a])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=ue.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(o[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func="?"),o.push(r)}if(!o.length)return null;return{message:pe(e),name:e.name,stack:o}}(e))return de(t,n)}catch(e){}return{message:pe(e),name:e&&e.name,stack:[],failed:!0}}function de(e,t){try{return Object(u.a)(Object(u.a)({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function pe(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function he(e){var t=ye(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function me(e){return{exception:{values:[he(e)]}}}function ye(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function ve(e,t,n){var r=be(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return Object(p.a)(r,{handled:!0,type:"generic"}),r.level=a.Error,n&&n.event_id&&(r.event_id=n.event_id),d.resolve(r)}function ge(e,t,n,r){void 0===n&&(n=a.Info);var o=_e(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),d.resolve(o)}function be(e,t,n){var r;if(void 0===n&&(n={}),Object(c.e)(e)&&e.error)return r=me(fe(e=e.error));if(Object(c.a)(e)||Object(c.b)(e)){var o=e,i=o.name||(Object(c.a)(o)?"DOMError":"DOMException"),a=o.message?i+": "+o.message:i;return r=_e(a,t,n),Object(p.b)(r,a),"code"in o&&(r.tags=Object(u.a)(Object(u.a)({},r.tags),{"DOMException.code":""+o.code})),r}return Object(c.d)(e)?r=me(fe(e)):Object(c.h)(e)||Object(c.f)(e)?(r=function(e,t,n){var r={exception:{values:[{type:Object(c.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(S.b)(e)}]},extra:{__serialized__:Object(S.e)(e)}};if(t){var o=ye(fe(t).stack);r.stacktrace={frames:o}}return r}(e,t,n.rejection),Object(p.a)(r,{synthetic:!0}),r):(r=_e(e,t,n),Object(p.b)(r,""+e,void 0),Object(p.a)(r,{synthetic:!0}),r)}function _e(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var o=ye(fe(t).stack);r.stacktrace={frames:o}}return r}function Ee(e,t){return{body:JSON.stringify({sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function we(e,t){var n=e.tags||{},r=n.__sentry_samplingMethod,o=n.__sentry_sampleRate,i=Object(u.d)(n,["__sentry_samplingMethod","__sentry_sampleRate"]);e.tags=i;var a="transaction"===e.type,l={body:JSON.stringify(e),type:e.type||"event",url:a?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(a){var s=JSON.stringify({event_id:e.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:e.type,sample_rates:[{id:r,rate:o}]})+"\n"+l.body;l.body=s}return l}var Se=function(){function e(e){this.dsn=e,this._dsnObject=new Y(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var o in r.push("dsn="+t.toString()),e)if("dsn"!==o)if("user"===o){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return Object(S.f)(e)},e}(),xe=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):d.reject(new V("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new d((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);d.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),Oe=function(){function e(e){this.options=e,this._buffer=new xe(30),this._rateLimits={},this._api=new Se(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new V("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,o=e.resolve,i=e.reject,a=l.fromHttpCode(n.status);this._handleRateLimit(r)&&E.warn("Too many requests, backing off until: "+this._disabledUntil(t)),a!==l.Success?i(n):o({status:a})},e.prototype._disabledUntil=function(e){return this._rateLimits[e]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,o,i=Date.now(),a=e["x-sentry-rate-limits"],l=e["retry-after"];if(a){try{for(var s=Object(u.f)(a.trim().split(",")),c=s.next();!c.done;c=s.next()){var f=c.value.split(":",2),d=parseInt(f[0],10),h=1e3*(isNaN(d)?60:d);try{for(var m=(r=void 0,Object(u.f)(f[1].split(";"))),y=m.next();!y.done;y=m.next()){var v=y.value;this._rateLimits[v||"all"]=new Date(i+h)}}catch(e){r={error:e}}finally{try{y&&!y.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return!0}return!!l&&(this._rateLimits.all=new Date(i+Object(p.g)(i,l)),!0)},e}(),ke=Object(p.e)(),Te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(we(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(Ee(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:oe()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new d((function(t,o){ke.fetch(e.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:i,resolve:t,reject:o})})).catch(o)})))},t}(Oe),je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(we(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(Ee(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add(new d((function(t,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:o,headers:i,resolve:t,reject:r})}},o.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(e.body)})))},t}(Oe),Re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.eventFromException=function(e,t){return ve(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=a.Info),ge(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=Object(u.a)(Object(u.a)({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):ne()?new Te(t):new je(t)},t}(te),Ce=0;function Ne(){return Ce>0}function Ie(){Ce+=1,setTimeout((function(){Ce-=1}))}function Pe(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(e){return Pe(e,t)}));return e.handleEvent?e.handleEvent.apply(this,o):e.apply(this,o)}catch(e){throw Ie(),$((function(n){n.addEventProcessor((function(e){var n=Object(u.a)({},e);return t.mechanism&&(Object(p.b)(n,void 0,void 0),Object(p.a)(n,t.mechanism)),n.extra=Object(u.a)(Object(u.a)({},n.extra),{arguments:r}),n})),P(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}function Le(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new Se(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else E.error("Missing dsn option in showReportDialog call");else E.error("Missing eventId option in showReportDialog call")}var Me,Ae=n(15),De=Object(p.e)(),Fe={},ze={};function Ue(e){if(!ze[e])switch(ze[e]=!0,e){case"console":!function(){if(!("console"in De))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in De.console&&Object(S.c)(De.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Xe("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,De.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in De))return;De.document.addEventListener("click",qe("click",Xe.bind(null,"dom")),!1),De.document.addEventListener("keypress",Ye(Xe.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=De[e]&&De[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Object(S.c)(t,"addEventListener",(function(e){return function(t,n,r){return n&&n.handleEvent?("click"===t&&Object(S.c)(n,"handleEvent",(function(e){return function(t){return qe("click",Xe.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&Object(S.c)(n,"handleEvent",(function(e){return function(t){return Ye(Xe.bind(null,"dom"))(t),e.call(this,t)}}))):("click"===t&&qe("click",Xe.bind(null,"dom"),!0)(this),"keypress"===t&&Ye(Xe.bind(null,"dom"))(this)),e.call(this,t,n,r)}})),Object(S.c)(t,"removeEventListener",(function(e){return function(t,n,r){try{e.call(this,t,n.__sentry_wrapped__,r)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in De))return;var e=[],t=[],n=XMLHttpRequest.prototype;Object(S.c)(n,"open",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this,a=r[1];i.__sentry_xhr__={method:Object(c.k)(r[0])?r[0].toUpperCase():r[0],url:r[1]},Object(c.k)(a)&&"POST"===i.__sentry_xhr__.method&&a.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var l=function(){if(4===i.readyState){try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(e){}try{var n=e.indexOf(i);if(-1!==n){e.splice(n);var o=t.splice(n)[0];i.__sentry_xhr__&&void 0!==o[0]&&(i.__sentry_xhr__.body=o[0])}}catch(e){}Xe("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?Object(S.c)(i,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l(),e.apply(i,t)}})):i.addEventListener("readystatechange",l),n.apply(i,r)}})),Object(S.c)(n,"send",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.push(this),t.push(r),Xe("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}();break;case"fetch":!function(){if(!function(){if(!ne())return!1;var e=Object(p.e)();if(re(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=re(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){E.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}())return;Object(S.c)(De,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:He(t),url:$e(t)},startTimestamp:Date.now()};return Xe("fetch",Object(u.a)({},r)),e.apply(De,t).then((function(e){return Xe("fetch",Object(u.a)(Object(u.a)({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw Xe("fetch",Object(u.a)(Object(u.a)({},r),{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(e=Object(p.e)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState,n||!r)return;var e,t,n,r;var o=De.onpopstate;function i(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var o=Me,i=String(r);Me=i,Xe("history",{from:o,to:i})}return e.apply(this,t)}}De.onpopstate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=De.location.href,r=Me;if(Me=n,Xe("history",{from:r,to:n}),o)return o.apply(this,e)},Object(S.c)(De.history,"pushState",i),Object(S.c)(De.history,"replaceState",i)}();break;case"error":Qe=De.onerror,De.onerror=function(e,t,n,r,o){return Xe("error",{column:r,error:o,line:n,msg:e,url:t}),!!Qe&&Qe.apply(this,arguments)};break;case"unhandledrejection":Ke=De.onunhandledrejection,De.onunhandledrejection=function(e){return Xe("unhandledrejection",e),!Ke||Ke.apply(this,arguments)};break;default:E.warn("unknown instrumentation type:",e)}}function Be(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Fe[e.type]=Fe[e.type]||[],Fe[e.type].push(e.callback),Ue(e.type))}function Xe(e,t){var n,r;if(e&&Fe[e])try{for(var o=Object(u.f)(Fe[e]||[]),i=o.next();!i.done;i=o.next()){var a=i.value;try{a(t)}catch(t){E.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(Ae.a)(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function He(e){return void 0===e&&(e=[]),"Request"in De&&Object(c.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function $e(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in De&&Object(c.g)(e[0],Request)?e[0].url:String(e[0])}var Ge,We,Ve=0;function qe(e,t,n){return void 0===n&&(n=!1),function(r){Ge=void 0,r&&We!==r&&(We=r,Ve&&clearTimeout(Ve),n?Ve=setTimeout((function(){t({event:r,name:e})})):t({event:r,name:e}))}}function Ye(e){return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(Ge||qe("input",e)(t),clearTimeout(Ge),Ge=setTimeout((function(){Ge=void 0}),1e3))}}var Qe=null;var Ke=null;var Je,Ze=n(24),et=function(){function e(t){this.name=e.id,this._options=Object(u.a)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&j().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Object(p.d)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Be({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,Object(u.e)(t))},type:"console"}),this._options.dom&&Be({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,Object(u.e)(t))},type:"dom"}),this._options.xhr&&Be({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,Object(u.e)(t))},type:"xhr"}),this._options.fetch&&Be({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,Object(u.e)(t))},type:"fetch"}),this._options.history&&Be({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,Object(u.e)(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:a.fromString(e.level),message:Object(Q.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(Q.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}j().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(Ze.a)(e.event.target):Object(Ze.a)(e.event)}catch(e){t="<unknown>"}0!==t.length&&j().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,o=t.status_code,i=t.body;j().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:e.xhr,input:i})}else;},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?j().addBreadcrumb({category:"fetch",data:e.fetchData,level:a.Error,type:"http"},{data:e.error,input:e.args}):j().addBreadcrumb({category:"fetch",data:Object(u.a)(Object(u.a)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=Object(p.e)(),n=e.from,r=e.to,o=Object(p.h)(t.location.href),i=Object(p.h)(n),a=Object(p.h)(r);i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),j().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),tt="sentry.javascript.browser",nt="5.29.2",rt=function(e){function t(t){return void 0===t&&(t={}),e.call(this,Re,t)||this}return Object(u.b)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),Object(p.e)().document&&(this._isEnabled()?Le(Object(u.a)(Object(u.a)({},e),{dsn:e.dsn||this.getDsn()})):E.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=Object(u.a)(Object(u.a)({},t.sdk),{name:tt,packages:Object(u.e)(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:nt}]),version:nt}),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(et);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(Z),ot=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Je=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return Je.apply(n,e)}},e.id="FunctionToString",e}(),it=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],at=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){y((function(t){var n=j();if(!n)return t;var r=n.getIntegration(e);if(r){var o=n.getClient(),i=o?o.getOptions():{},a=r._mergeOptions(i);if(r._shouldDropEvent(t,a))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(E.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(p.d)(e)),!0):this._isIgnoredError(e,t)?(E.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(p.d)(e)),!0):this._isDeniedUrl(e,t)?(E.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Object(p.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(E.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Object(p.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Object(Q.a)(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return Object(Q.a)(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return Object(Q.a)(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:Object(u.e)(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:Object(u.e)(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:Object(u.e)(this._options.ignoreErrors||[],e.ignoreErrors||[],it),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,o=t.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(t){return E.error("Cannot extract message for event "+Object(p.d)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return E.error("Cannot extract url for event "+Object(p.d)(e)),null}},e.id="InboundFilters",e}();var lt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],ut=function(){function e(t){this.name=e.id,this._options=Object(u.a)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=Object(p.e)();(this._options.setTimeout&&Object(S.c)(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Object(S.c)(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Object(S.c)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Object(S.c)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:lt).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=Pe(r,{mechanism:{data:{function:Object(Ae.a)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,Pe(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(Ae.a)(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Object(p.e)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(S.c)(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Pe(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(Ae.a)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,Pe(r,{mechanism:{data:{function:"addEventListener",handler:Object(Ae.a)(r),target:e},handled:!0,type:"instrument"}}),o)}})),Object(S.c)(n,"removeEventListener",(function(e){return function(t,n,r){var o,i=n;try{var a=null===(o=i)||void 0===o?void 0:o.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(e){}return e.call(this,t,i,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach((function(e){e in r&&"function"==typeof r[e]&&Object(S.c)(r,e,(function(t){var n={mechanism:{data:{function:e,handler:Object(Ae.a)(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=Object(Ae.a)(t.__sentry_original__)),Pe(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}(),st=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Object(u.a)({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(E.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(E.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Be({callback:function(n){var r=n.error,o=j(),i=o.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(i&&!Ne()&&!a){var l=o.getClient(),u=Object(c.i)(r)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(be(r,void 0,{attachStacktrace:l&&l.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);Object(p.a)(u,{handled:!1,type:"onerror"}),o.captureEvent(u,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Be({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var o=j(),i=o.getIntegration(e),l=r&&!0===r.__sentry_own_request__;if(!i||Ne()||l)return!0;var u=o.getClient(),s=Object(c.i)(r)?t._eventFromRejectionWithPrimitive(r):be(r,void 0,{attachStacktrace:u&&u.getOptions().attachStacktrace,rejection:!0});s.level=a.Error,Object(p.a)(s,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(s,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var o,i=Object(c.e)(e)?e.message:e;if(Object(c.k)(i)){var a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(o=a[1],i=a[2])}var l={exception:{values:[{type:o||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(l,t,n,r)},e.prototype._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var o=isNaN(parseInt(r,10))?void 0:r,i=isNaN(parseInt(n,10))?void 0:n,a=Object(c.k)(t)&&t.length>0?t:Object(p.f)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:o,filename:a,function:"?",in_app:!0,lineno:i}),e},e.id="GlobalHandlers",e}(),ct=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){y((function(t,n){var r=j().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(c.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=Object(u.e)(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(c.g)(e[t],Error)||n.length+1>=this._limit)return n;var r=he(fe(e[t]));return this._walkErrorTree(e[t],t,Object(u.e)([r],n))},e.id="LinkedErrors",e}(),ft=Object(p.e)(),dt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){y((function(t){var n,r,o;if(j().getIntegration(e)){if(!ft.navigator&&!ft.location&&!ft.document)return t;var i=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=ft.location)||void 0===r?void 0:r.href),a=(ft.document||{}).referrer,l=(ft.navigator||{}).userAgent,s=Object(u.a)(Object(u.a)(Object(u.a)({},null===(o=t.request)||void 0===o?void 0:o.headers),a&&{Referer:a}),l&&{"User-Agent":l}),c=Object(u.a)(Object(u.a)({},i&&{url:i}),{headers:s});return Object(u.a)(Object(u.a)({},t),{request:c})}return t}))},e.id="UserAgent",e}(),pt=[new r.InboundFilters,new r.FunctionToString,new ut,new et,new st,new ct,new dt];function ht(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=pt),void 0===e.release){var t=Object(p.e)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!1),function(e,t){!0===t.debug&&E.enable();var n=j(),r=new e(t);n.bindClient(r)}(rt,e),e.autoSessionTracking&&function(){var e=Object(p.e)(),t=j(),n="complete"===document.readyState,r=!1,o=function(){r&&n&&t.endSession()},i=function(){n=!0,o(),e.removeEventListener("load",i)};t.startSession(),n||e.addEventListener("load",i);try{var a=new PerformanceObserver((function(e,t){e.getEntries().forEach((function(e){"first-contentful-paint"===e.name&&e.startTime<l&&(t.disconnect(),r=!0,o())}))})),l="hidden"===document.visibilityState?0:1/0;document.addEventListener("visibilitychange",(function(e){l=Math.min(l,e.timeStamp)}),{once:!0}),a.observe({type:"paint",buffered:!0})}catch(e){r=!0,o()}}()}function mt(e){void 0===e&&(e={}),e.eventId||(e.eventId=j().lastEventId());var t=j().getClient();t&&t.showReportDialog(e)}function yt(){return j().lastEventId()}function vt(){}function gt(e){e()}function bt(e){var t=j().getClient();return t?t.flush(e):d.reject(!1)}function _t(e){var t=j().getClient();return t?t.close(e):d.reject(!1)}function Et(e){return Pe(e)()}var wt={},St=Object(p.e)();St.Sentry&&St.Sentry.Integrations&&(wt=St.Sentry.Integrations);var xt=Object(u.a)(Object(u.a)(Object(u.a)({},wt),r),o)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(3),o=n(12),i={nowSeconds:function(){return Date.now()/1e3}};var a=Object(o.b)()?function(){try{return Object(o.a)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=Object(r.e)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),l=void 0===a?i:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},u=i.nowSeconds.bind(i);l.nowSeconds.bind(l),function(){var e=Object(r.e)().performance;if(e)e.timeOrigin?e.timeOrigin:e.timing&&e.timing.navigationStart||Date.now()}()}).call(this,n(34)(e))}]);