1/*! For license information please see commons.ce7873a1.js.LICENSE.txt */ 2(()=>{var __webpack_modules__={79939:(e,t,r)=>{"use strict";Symbol.for("constructDateFrom")},55150:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});var n=r(75223);class i extends n.q{static tz(e,...t){return t.length?new i(...t,e):new i(Date.now(),e)}toISOString(){const[e,t,r]=this.tzComponents(),n=`${e}${t}:${r}`;return this.internal.toISOString().slice(0,-1)+n}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,r,n]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${r} ${t} ${n}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,r,n]=this.tzComponents();return`${e} GMT${t}${r}${n} (${i=this.timeZone,o=this,new Intl.DateTimeFormat("en-GB",{timeZone:i,timeZoneName:"long"}).format(o).slice(12)})`;var i,o}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new i(+this,e)}[Symbol.for("constructDateFrom")](e){return new i(+new Date(e),this.timeZone)}}},75223:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var n=r(99611);class i extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN((0,n.Y)(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),s(this)):this.setTime(Date.now()),a(this)}static tz(e,...t){return t.length?new i(...t,e):new i(Date.now(),e)}withTimeZone(e){return new i(+this,e)}getTimezoneOffset(){return-(0,n.Y)(this.timeZone,this)}[Symbol.for("constructDateFrom")](e){return new i(+new Date(e),this.timeZone)}}const o=/^(get|set)(?!UTC)/;function a(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function s(e){const t=(0,n.Y)(e.timeZone,e),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const i=-new Date(+e).getTimezoneOffset(),o=i- -new Date(+r).getTimezoneOffset(),a=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&a&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);const s=i-t;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const c=(0,n.Y)(e.timeZone,e),l=-new Date(+e).getTimezoneOffset()-c-s;if(c!==t&&l){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const t=c-(0,n.Y)(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach((e=>{if(!o.test(e))return;const t=e.replace(o,"$1UTC");i.prototype[t]&&(e.startsWith("get")?i.prototype[e]=function(){return this.internal[t]()}:(i.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),s(e),+this},i.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),a(this),+this}))}))},55541:(e,t,r)=>{"use strict";r.d(t,{BB:()=>n.B});r(79939);var n=r(55150);r(75223),r(23140),r(99611),r(70189)},23140:(e,t,r)=>{"use strict";r(55150)},99611:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});const n={},i={};function o(e,t){try{const r=(n[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";return r in i?i[r]:s(r,r.split(":"))}catch{if(e in i)return i[e];const t=e?.match(a);return t?s(e,t.slice(1)):NaN}}const a=/([+-]\d\d):?(\d\d)?/;function s(e,t){const r=+t[0],n=+(t[1]||0);return i[e]=r>0?60*r+n:60*r-n}},70189:(e,t,r)=>{"use strict";r(99611)},86e3:(e,t,r)=>{"use strict";r.d(t,{A:()=>
2o});var n=r(56209),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const o=(0,n.A)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},56209:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}},90689:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n,i=r(35317),o=r(98432),a=r(5397),s=r(43304),c=((n={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",n["bad-app-name"]="Illegal App name: '{$appName}",n["duplicate-app"]="Firebase App named '{$appName}' already exists",n["app-deleted"]="Firebase App named '{$appName}' already deleted",n["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",n),l=new o.FA("app","Firebase",c),u="[DEFAULT]",d=new s.Vy("@firebase/app"),f=function(){function e(e,t,r){var n,s,c=this;this.firebase_=r,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=(0,o.A4)(e),this.container=new a.h1(t.name),this._addComponent(new a.uA("app",(function(){return c}),"PUBLIC"));try{for(var l=(0,i.Ju)(this.firebase_.INTERNAL.components.values()),u=l.next();!u.done;u=l.next()){var d=u.value;this._addComponent(d)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(n)throw n.error}}}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise((function(t){e.checkDestroyed_(),t()})).then((function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map((function(e){return e.delete()})))})).then((function(){e.isDeleted_=!0}))},e.prototype._getService=function(e,t){return void 0===t&&(t=u),this.checkDestroyed_(),this.container.getProvider(e).getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t=u),this.container.getProvider(e).
2clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){d.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw l.create("app-deleted",{appName:this.name_})},e}();f.prototype.name&&f.prototype.options||f.prototype.delete||console.log("dc");var p="7.5.1";var h=function e(){var t=function(e){var t={},r=new Map,n={__esModule:!0,initializeApp:function(r,i){void 0===i&&(i={}),"object"==typeof i&&null!==i||(i={name:i});var a=i;void 0===a.name&&(a.name=u);var s=a.name;if("string"!=typeof s||!s)throw l.create("bad-app-name",{appName:String(s)});if((0,o.gR)(t,s))throw l.create("duplicate-app",{appName:s});var c=new e(r,a,n);return t[s]=c,c},app:a,apps:null,SDK_VERSION:p,INTERNAL:{registerComponent:function(s){var c,u,f=s.name;if(r.has(f))return d.debug("There were multiple attempts to register component "+f+"."),"PUBLIC"===s.type?n[f]:null;if(r.set(f,s),"PUBLIC"===s.type){var p=function(e){if(void 0===e&&(e=a()),"function"!=typeof e[f])throw l.create("invalid-app-argument",{appName:f});return e[f]()};void 0!==s.serviceProps&&(0,o.zw)(p,s.serviceProps),n[f]=p,e.prototype[f]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._getService.bind(this,f).apply(this,s.multipleInstances?e:[])}}try{for(var h=(0,i.Ju)(Object.keys(t)),m=h.next();!m.done;m=h.next()){var y=m.value;t[y]._addComponent(s)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(u=h.return)&&u.call(h)}finally{if(c)throw c.error}}return"PUBLIC"===s.type?n[f]:null},removeApp:function(e){delete t[e]},components:r,useAsService:function(e,t){return"serverAuth"===t?null:t}}};function a(e){if(e=e||u,!(0,o.gR)(t,e))throw l.create("no-app",{appName:e});return t[e]}return n.default=n,Object.defineProperty(n,"apps",{get:function(){return Object.keys(t).map((function(e){return t[e]}))}}),a.App=e,n}(f);return t.INTERNAL=(0,i.Cl)((0,i.Cl)({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){(0,o.zw)(t,e)},createSubscribe:o.tD,ErrorFactory:o.FA,deepExtend:o.zw}),t}();if((0,o.Bd)()&&void 0!==self.firebase){d.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var m=self.firebase.SDK_VERSION;m&&m.indexOf("LITE")>=0&&d.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var y=h.initializeApp;h.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,o.Ll)()&&d.warn('\n Warning: This is a browser-targeted Firebase bundle but it appears it is being\n run in a Node environment. If running in a Node environment, make sure you\n are using the bundle specified by the "main" field in package.json.\n \n If you are using Webpack, you can specify "main" as the first item in\n "resolve.mainFields":\n https://webpack.js.org/configuration/resolve/#resolvemainfields\n \n If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n as the first item in "mainFields", e.g. [\'main\', \'module\'].\n https://github.com/rollup/rollup-plugin-node-resolve\n '),y.apply(void 0,e)};const v=h},35317:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n,Ju:()=>i});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function i(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}},5397:(e,t,r)=>{"use strict";r.d(t,{h1:()=>c,uA:()=>o});var n=r(60289),i=r(98432),o=function(){function e(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e}(),a="[DEFAULT]",s=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return e.prototype.get=function(e){void 0===e&&(e=a);var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var r=new i.cY;this.instancesDeferred.set(t,r);try{var n=this.getOrInitializeService(t);n&&r.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t=(0,n.Cl)({identifier:a,optional:!1},e),r=t.identifier,i=t.optional,o=this.normalizeInstanceIdentifier(r);try{var s=this.getOrInitializeService(o);if(!s){if(i)return null;throw Error("Service "+this.name+" is not available")}return s}catch(e){if(i)return null;throw e}},e.prototype.setComponent=function(e){var t,r;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");
2if(this.component=e,function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService(a)}catch(e){}try{for(var i=(0,n.Ju)(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var s=(0,n.zs)(o.value,2),c=s[0],l=s[1],u=this.normalizeInstanceIdentifier(c);try{var d=this.getOrInitializeService(u);l.resolve(d)}catch(e){}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},e.prototype.clearInstance=function(e){void 0===e&&(e=a),this.instancesDeferred.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return(0,n.sH)(this,void 0,void 0,(function(){var e;return(0,n.YH)(this,(function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(e.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()})))];case 1:return t.sent(),[2]}}))}))},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.getOrInitializeService=function(e){var t=this.instances.get(e);return!t&&this.component&&(t=this.component.instanceFactory(this.container,function(e){return e===a?void 0:e}(e)),this.instances.set(e,t)),t||null},e.prototype.normalizeInstanceIdentifier=function(e){return this.component?this.component.multipleInstances?e:a:e},e}();var c=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new s(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}()},60289:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n,Ju:()=>a,YH:()=>o,sH:()=>i,zs:()=>s});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function i(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new r((function(t){t(e.value)})).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function o(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function a(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function s(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}},43304:(e,t,r)=>{"use strict";function n(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}r.d(t,{Vy:()=>c});var i,o=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.E
2RROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(i||(i={}));var a=i.INFO,s=function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(!(t<e.logLevel)){var a=(new Date).toISOString();switch(t){case i.DEBUG:case i.VERBOSE:console.log.apply(console,n(["["+a+"] "+e.name+":"],r));break;case i.INFO:console.info.apply(console,n(["["+a+"] "+e.name+":"],r));break;case i.WARN:console.warn.apply(console,n(["["+a+"] "+e.name+":"],r));break;case i.ERROR:console.error.apply(console,n(["["+a+"] "+e.name+":"],r));break;default:throw new Error("Attempted to log a message with an invalid logType (value: "+t+")")}}},c=function(){function e(e){this.name=e,this._logLevel=a,this._logHandler=s,o.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in i))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!0,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,n([this,i.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,n([this,i.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,n([this,i.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,n([this,i.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,n([this,i.ERROR],e))},e}()},36612:(e,t,r)=>{"use strict";var n,i,o,a=r(90689),s=r(12048),c=r(85230),l=((n={})["only-available-in-window"]="This method is available in a Window context.",n["only-available-in-sw"]="This method is available in a service worker context.",n["should-be-overriden"]="This method should be overriden by extended classes.",n["bad-sender-id"]="Please ensure that 'messagingSenderId' is set correctly in the options passed into firebase.initializeApp().",n["permission-default"]="The required permissions were not granted and dismissed instead.",n["permission-blocked"]="The required permissions were not granted and blocked instead.",n["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",n["notifications-blocked"]="Notifications have been blocked.",n["failed-serviceworker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",n["sw-registration-expected"]="A service worker registration was the expected input.",n["get-subscription-failed"]="There was an error when trying to get any existing Push Subscriptions.",n["invalid-saved-token"]="Unable to access details of the saved token.",n["sw-reg-redundant"]="The service worker being used for push was made redundant.",n["token-subscribe-failed"]="A problem occured while subscribing the user to FCM: {$errorInfo}",n["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",n["token-subscribe-no-push-set"]="FCM returned an invalid response when getting an FCM token.",n["token-unsubscribe-failed"]="A problem occured while unsubscribing the user from FCM: {$errorInfo}",n["token-update-failed"]="A problem occured while updating the user from FCM: {$errorInfo}",n["token-update-no-token"]="FCM returned no token when updating the user to push.",n["use-sw-before-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",n["invalid-delete-token"]="You must pass a valid token into deleteToken(), i.e. the token from getToken().",n["delete-token-not-found"]="The deletion attempt for token could not be performed as the token was not found.",n["delete-scope-not-found"]="The deletion attempt for service worker scope could not be performed as the scope was not found.",n["bg-handler-function-expected"]="The input to setBackgroun
2dMessageHandler() must be a function.",n["no-window-client-to-msg"]="An attempt was made to message a non-existant window client.",n["unable-to-resubscribe"]="There was an error while re-subscribing the FCM token for push messaging. Will have to resubscribe the user on next visit. {$errorInfo}",n["no-fcm-token-for-resubscribe"]="Could not find an FCM token and as a result, unable to resubscribe. Will have to resubscribe the user on next visit.",n["failed-to-delete-token"]="Unable to delete the currently saved token.",n["no-sw-in-reg"]="Even though the service worker registration was successful, there was a problem accessing the service worker itself.",n["incorrect-gcm-sender-id"]="Please change your web app manifest's 'gcm_sender_id' value to '103953800507' to use Firebase messaging.",n["bad-scope"]="The service worker scope must be a string with at least one character.",n["bad-vapid-key"]="The public VAPID key is not a Uint8Array with 65 bytes.",n["bad-subscription"]="The subscription must be a valid PushSubscription.",n["bad-token"]="The FCM Token used for storage / lookup was not a valid token string.",n["bad-push-set"]="The FCM push set used for storage / lookup was not not a valid push set string.",n["failed-delete-vapid-key"]="The VAPID key could not be deleted.",n["invalid-public-vapid-key"]="The public VAPID key must be a string.",n["use-public-key-before-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",n["public-vapid-key-decryption-failed"]="The public VAPID key did not equal 65 bytes when decrypted.",n),u=new c.FA("messaging","Messaging",l),d=new Uint8Array([4,51,148,247,223,161,235,177,220,3,162,94,21,113,219,72,211,46,237,237,178,52,219,183,71,58,12,143,196,204,225,111,60,140,132,223,171,182,102,62,242,12,212,139,254,227,249,118,47,20,28,99,8,106,111,45,177,26,149,176,206,55,192,156,110]),f="https://fcm.googleapis.com";function p(e,t){if(null==e||null==t)return!1;if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(var r=new DataView(e),n=new DataView(t),i=0;i<e.byteLength;i++)if(r.getUint8(i)!==n.getUint8(i))return!1;return!0}function h(e){var t=function(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,(0,s.gz)(t)))}(e);return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}!function(e){e.TYPE_OF_MSG="firebase-messaging-msg-type",e.DATA="firebase-messaging-msg-data"}(i||(i={})),function(e){e.PUSH_MSG_RECEIVED="push-msg-received",e.NOTIFICATION_CLICKED="notification-clicked"}(o||(o={}));var m=function(){function e(){}return e.prototype.getToken=function(e,t,r){return(0,s.sH)(this,void 0,void 0,(function(){var n,i,o,a,c,l,m,y,v;return(0,s.YH)(this,(function(s){switch(s.label){case 0:n=h(t.getKey("p256dh")),i=h(t.getKey("auth")),o="authorized_entity="+e+"&endpoint="+t.endpoint+"&encryption_key="+n+"&encryption_auth="+i,p(r.buffer,d.buffer)||(a=h(r),o+="&application_pub_key="+a),(c=new Headers).append("Content-Type","application/x-www-form-urlencoded"),l={method:"POST",headers:c,body:o},s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(f+"/fcm/connect/subscribe",l)];case 2:return[4,s.sent().json()];case 3:return m=s.sent(),[3,5];case 4:throw y=s.sent(),u.create("token-subscribe-failed",{errorInfo:y});case 5:if(m.error)throw v=m.error.message,u.create("token-subscribe-failed",{errorInfo:v});if(!m.token)throw u.create("token-subscribe-no-token");if(!m.pushSet)throw u.create("token-subscribe-no-push-set");return[2,{token:m.token,pushSet:m.pushSet}]}}))}))},e.prototype.updateToken=function(e,t,r,n,i){return(0,s.sH)(this,void 0,void 0,(function(){var o,a,c,l,m,y,v,g,b;return(0,s.YH)(this,(function(s){switch(s.label){case 0:o=h(n.getKey("p256dh")),a=h(n.getKey("auth")),c="push_set="+r+"&token="+t+"&authorized_entity="+e+"&endpoint="+n.endpoint+"&encryption_key="+o+"&encryption_auth="+a,p(i.buffer,d.buffer)||(l=h(i),c+="&application_pub_key="+l),(m=new Headers).append("Content-Type","application/x-www-form-urlencoded"),y={method:"POST",headers:m,body:c},s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(f+"/fcm/connect/subscribe",y)];case 2:return[4,s.sent().json()];case 3:return v=s.sent(),[3,5];case 4:throw g=s.sent(),u.create("token-update-failed",{errorInfo:g});case 5:if(v.error)throw b=v.error.message,u.create("token-update-failed",{errorInfo:b});if(!v.token)throw u.create("token-update-no-token");return[2,v.token]}}))}))},e.prototype.deleteToken=function(e,t,r){return(0,s.sH)(this,void 0,void 0,(function(){var n,i,o,a,c,l;return(0,s.YH)(this,(function(s){switch(s.label){case 0:n="authorized_entity="+e+"&token="+t+"&pushSet="+r,(i=new Headers).append("Content-Type","application/x-www-form-urlencoded"),o={method:"POST",headers:i,body:n},s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(f+"/fcm/connect/unsubscribe",o)];case 2:return[4,s.sent().json()];case 3:if((a=s.sent()).error)throw c=a.error.message,u.create("token-unsubscribe-failed",{errorInfo:c});return[3,5];case 4:throw l=s.sent(),u.create("token-unsubscribe-failed",{errorInfo:l});case 5:return[2]}}
2))}))},e}();function y(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(t),n=new Uint8Array(r.length),i=0;i<r.length;++i)n[i]=r.charCodeAt(i);return n}var v="undefined",g="fcm_token_object_Store";function b(){var e=indexedDB.open(v);e.onerror=function(e){},e.onsuccess=function(t){!function(e){if(e.objectStoreNames.contains(g)){var t=e.transaction(g).objectStore(g),r=new m,n=t.openCursor();n.onerror=function(e){console.warn("Unable to cleanup old IDB.",e)},n.onsuccess=function(){var t=n.result;if(t){var i=t.value;r.deleteToken(i.fcmSenderId,i.fcmToken,i.fcmPushSet),t.continue()}else e.close(),indexedDB.deleteDatabase(v)}}}(e.result)}}var E=function(){function e(){this.dbPromise=null}return e.prototype.get=function(e){return this.createTransaction((function(t){return t.get(e)}))},e.prototype.getIndex=function(e,t){return this.createTransaction((function(r){return r.index(e).get(t)}))},e.prototype.put=function(e){return this.createTransaction((function(t){return t.put(e)}),"readwrite")},e.prototype.delete=function(e){return this.createTransaction((function(t){return t.delete(e)}),"readwrite")},e.prototype.closeDatabase=function(){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(e){switch(e.label){case 0:return this.dbPromise?[4,this.dbPromise]:[3,2];case 1:e.sent().close(),this.dbPromise=null,e.label=2;case 2:return[2]}}
2))}))},e.prototype.createTransaction=function(e,t){return void 0===t&&(t="readonly"),(0,s.sH)(this,void 0,void 0,(function(){var r,n,i,o;return(0,s.YH)(this,(function(a){switch(a.label){case 0:return[4,this.getDb()];case 1:return r=a.sent(),n=r.transaction(this.objectStoreName,t),i=n.objectStore(this.objectStoreName),[4,w(e(i))];case 2:return o=a.sent(),[2,new Promise((function(e,t){n.oncomplete=function(){e(o)},n.onerror=function(){t(n.error)}}))]}}))}))},e.prototype.getDb=function(){var e=this;return this.dbPromise||(this.dbPromise=new Promise((function(t,r){var n=indexedDB.open(e.dbName,e.dbVersion);n.onsuccess=function(){t(n.result)},n.onerror=function(){e.dbPromise=null,r(n.error)},n.onupgradeneeded=function(t){return e.onDbUpgrade(n,t)}}))),this.dbPromise},e}();function w(e){return new Promise((function(t,r){e.onsuccess=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}var S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dbName="fcm_token_details_db",t.dbVersion=3,t.objectStoreName="fcm_token_object_Store",t}return(0,s.C6)(t,e),t.prototype.onDbUpgrade=function(e,t){var r=e.result;switch(t.oldVersion){case 0:(n=r.createObjectStore(this.objectStoreName,{keyPath:"swScope"})).createIndex("fcmSenderId","fcmSenderId",{unique:!1}),n.createIndex("fcmToken","fcmToken",{unique:!0});case 1:b();case 2:var n,i=(n=e.transaction.objectStore(this.objectStoreName)).openCursor();i.onsuccess=function(){var e=i.result;if(e){var t=e.value,r=(0,s.Cl)({},t);t.createTime||(r.createTime=Date.now()),"string"==typeof t.vapidKey&&(r.vapidKey=y(t.vapidKey)),"string"==typeof t.auth&&(r.auth=y(t.auth).buffer),"string"==typeof t.auth&&(r.p256dh=y(t.p256dh).buffer),e.update(r),e.continue()}}}},t.prototype.getTokenDetailsFromToken=function(e){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(t){if(!e)throw u.create("bad-token");return A({fcmToken:e}),[2,this.getIndex("fcmToken",e)]}))}))},t.prototype.getTokenDetailsFromSWScope=function(e){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(t){if(!e)throw u.create("bad-scope");return A({swScope:e}),[2,this.get(e)]}))}))},t.prototype.saveTokenDetails=function(e){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(t){if(!e.swScope)throw u.create("bad-scope");if(!e.vapidKey)throw u.create("bad-vapid-key");if(!e.endpoint||!e.auth||!e.p256dh)throw u.create("bad-subscription");if(!e.fcmSenderId)throw u.create("bad-sender-id");if(!e.fcmToken)throw u.create("bad-token");if(!e.fcmPushSet)throw u.create("bad-push-set");return A(e),[2,this.put(e)]}))}))},t.prototype.deleteToken=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t;return(0,s.YH)(this,(function(r){switch(r.label){case 0:return"string"!=typeof e||0===e.length?[2,Promise.reject(u.create("invalid-delete-token"))]:[4,this.getTokenDetailsFromToken(e)];case 1:if(!(t=r.sent()))throw u.create("delete-token-not-found");return[4,this.delete(t.swScope)];case 2:return r.sent(),[2,t]}}))}))},t}(E);function A(e){if(e.fcmToken&&("string"!=typeof e.fcmToken||0===e.fcmToken.length))throw u.create("bad-token");if(e.swScope&&("string"!=typeof e.swScope||0===e.swScope.length))throw u.create("bad-scope");if(e.vapidKey&&(!(e.vapidKey instanceof Uint8Array)||65!==e.vapidKey.length))throw u.create("bad-vapid-key");if(e.endpoint&&("string"!=typeof e.endpoint||0===e.endpoint.length))throw u.create("bad-subscription");if(e.auth&&!(e.auth instanceof ArrayBuffer))throw u.create("bad-subscription");if(e.p256dh&&!(e.p256dh instanceof ArrayBuffer))throw u.create("bad-subscription");if(e.fcmSenderId&&("string"!=typeof e.fcmSenderId||0===e.fcmSenderId.length))throw u.create("bad-sender-id");if(e.fcmPushSet&&("string"!=typeof e.fcmPushSet||0===e.fcmPushSet.length))throw u.create("bad-push-set")}var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dbName="fcm_vapid_details_db",t.dbVersion=1,t.objectStoreName="fcm_vapid_object_Store",t}return(0,s.C6)(t,e),t.prototype.onDbUpgrade=function(e){e.result.createObjectStore(this.objectStoreName,{keyPath:"swScope"})},t.prototype.getVapidFromSWScope=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t;return(0,s.YH)(this,(function(r){switch(r.label){case 0:if("string"!=typeof e||0===e.length)throw u.create("bad-scope");return[4,this.get(e)];case 1:return[2,(t=r.sent())?t.vapidKey:void 0]}}))}))},t.prototype.saveVapidDetails=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){var r;return(0,s.YH)(this,(function(n){if("string"!=typeof e||0===e.length)throw u.create("bad-scope");
2if(null===t||65!==t.length)throw u.create("bad-vapid-key");return r={swScope:e,vapidKey:t},[2,this.put(r)]}))}))},t.prototype.deleteVapidDetails=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t;return(0,s.YH)(this,(function(r){switch(r.label){case 0:return[4,this.getVapidFromSWScope(e)];case 1:if(!(t=r.sent()))throw u.create("delete-scope-not-found");return[4,this.delete(e)];case 2:return r.sent(),[2,t]}}))}))},t}(E),x="messagingSenderId",P=function(){function e(e){var t=this;if(!e.options[x]||"string"!=typeof e.options[x])throw u.create("bad-sender-id");this.messagingSenderId=e.options[x],this.tokenDetailsModel=new S,this.vapidDetailsModel=new _,this.iidModel=new m,this.app=e,this.INTERNAL={delete:function(){return t.delete()}}}return e.prototype.getToken=function(){return(0,s.sH)(this,void 0,void 0,(function(){var e,t,r,n,i;return(0,s.YH)(this,(function(o){switch(o.label){case 0:if("denied"===(e=this.getNotificationPermission_()))throw u.create("notifications-blocked");return"granted"!==e?[2,null]:[4,this.getSWRegistration_()];case 1:return t=o.sent(),[4,this.getPublicVapidKey_()];case 2:return r=o.sent(),[4,this.getPushSubscription(t,r)];case 3:return n=o.sent(),[4,this.tokenDetailsModel.getTokenDetailsFromSWScope(t.scope)];case 4:return(i=o.sent())?[2,this.manageExistingToken(t,n,r,i)]:[2,this.getNewToken(t,n,r)]}}))}))},e.prototype.manageExistingToken=function(e,t,r,n){return(0,s.sH)(this,void 0,void 0,(function(){var i;return(0,s.YH)(this,(function(o){switch(o.label){case 0:return i=function(e,t,r){if(!r.vapidKey||!p(t.buffer,r.vapidKey.buffer))return!1;var n=e.endpoint===r.endpoint,i=p(e.getKey("auth"),r.auth),o=p(e.getKey("p256dh"),r.p256dh);return n&&i&&o}(t,r,n),i?Date.now()<n.createTime+6048e5?[2,n.fcmToken]:[2,this.updateToken(e,t,r,n)]:[4,this.deleteTokenFromDB(n.fcmToken)];case 1:return o.sent(),[2,this.getNewToken(e,t,r)]}}))}))},e.prototype.updateToken=function(e,t,r,n){return(0,s.sH)(this,void 0,void 0,(function(){var i,o,a;return(0,s.YH)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,4,,6]),[4,this.iidModel.updateToken(this.messagingSenderId,n.fcmToken,n.fcmPushSet,t,r)];case 1:return i=s.sent(),o={swScope:e.scope,vapidKey:r,fcmSenderId:this.messagingSenderId,fcmToken:i,fcmPushSet:n.fcmPushSet,createTime:Date.now(),endpoint:t.endpoint,auth:t.getKey("auth"),p256dh:t.getKey("p256dh")},[4,this.tokenDetailsModel.saveTokenDetails(o)];case 2:return s.sent(),[4,this.vapidDetailsModel.saveVapidDetails(e.scope,r)];case 3:return s.sent(),[2,i];case 4:return a=s.sent(),[4,this.deleteToken(n.fcmToken)];case 5:throw s.sent(),a;case 6:return[2]}}
2))}))},e.prototype.getNewToken=function(e,t,r){return(0,s.sH)(this,void 0,void 0,(function(){var n,i;return(0,s.YH)(this,(function(o){switch(o.label){case 0:return[4,this.iidModel.getToken(this.messagingSenderId,t,r)];case 1:return n=o.sent(),i={swScope:e.scope,vapidKey:r,fcmSenderId:this.messagingSenderId,fcmToken:n.token,fcmPushSet:n.pushSet,createTime:Date.now(),endpoint:t.endpoint,auth:t.getKey("auth"),p256dh:t.getKey("p256dh")},[4,this.tokenDetailsModel.saveTokenDetails(i)];case 2:return o.sent(),[4,this.vapidDetailsModel.saveVapidDetails(e.scope,r)];case 3:return o.sent(),[2,n.token]}}))}))},e.prototype.deleteToken=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,r;return(0,s.YH)(this,(function(n){switch(n.label){case 0:return[4,this.deleteTokenFromDB(e)];case 1:return n.sent(),[4,this.getSWRegistration_()];case 2:return(t=n.sent())?[4,t.pushManager.getSubscription()]:[3,4];case 3:if(r=n.sent())return[2,r.unsubscribe()];n.label=4;case 4:return[2,!0]}}))}))},e.prototype.deleteTokenFromDB=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t;return(0,s.YH)(this,(function(r){switch(r.label){case 0:return[4,this.tokenDetailsModel.deleteToken(e)];case 1:return t=r.sent(),[4,this.iidModel.deleteToken(t.fcmSenderId,t.fcmToken,t.fcmPushSet)];case 2:return r.sent(),[2]}}))}))},e.prototype.getPushSubscription=function(e,t){return e.pushManager.getSubscription().then((function(r){return r||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:t})}))},e.prototype.requestPermission=function(){throw u.create("only-available-in-window")},e.prototype.useServiceWorker=function(e){throw u.create("only-available-in-window")},e.prototype.usePublicVapidKey=function(e){throw u.create("only-available-in-window")},e.prototype.onMessage=function(e,t,r){throw u.create("only-available-in-window")},e.prototype.onTokenRefresh=function(e,t,r){throw u.create("only-available-in-window")},e.prototype.setBackgroundMessageHandler=function(e){throw u.create("only-available-in-sw")},e.prototype.delete=function(){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([this.tokenDetailsModel.closeDatabase(),this.vapidDetailsModel.closeDatabase()])];case 1:return e.sent(),[2]}}))}))},e.prototype.getNotificationPermission_=function(){return Notification.permission},e.prototype.getTokenDetailsModel=function(){return this.tokenDetailsModel},e.prototype.getVapidDetailsModel=function(){return this.vapidDetailsModel},e.prototype.getIidModel=function(){return this.iidModel},e}();var I="FCM_MSG",k=function(e){function t(t){var r=e.call(this,t)||this;return r.bgMessageHandler=null,self.addEventListener("push",(function(e){r.onPush(e)})),self.addEventListener("pushsubscriptionchange",(function(e){r.onSubChange(e)})),self.addEventListener("notificationclick",(function(e){r.onNotificationClick(e)})),r}return(0,s.C6)(t,e),t.prototype.onPush=function(e){e.waitUntil(this.onPush_(e))},t.prototype.onSubChange=function(e){e.waitUntil(this.onSubChange_(e))},t.prototype.onNotificationClick=function(e){e.waitUntil(this.onNotificationClick_(e))},t.prototype.onPush_=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,r,n,i,o,a;return(0,s.YH)(this,(function(s){switch(s.label){case 0:if(!e.data)return[2];try{t=e.data.json()}catch(e){return[2]}return[4,this.hasVisibleClients_()];case 1:return s.sent()?[2,this.sendMessageToWindowClients_(t)]:(r=this.getNotificationData_(t))?(n=r.title||"",[4,this.getSWRegistration_()]):[3,3];case 2:return i=s.sent(),o=r.actions,a=Notification.maxActions,o&&a&&o.length>a&&console.warn("This browser only supports "+a+" actions.The remaining actions will not be displayed."),[2,i.showNotification(n,r)];case 3:return this.bgMessageHandler?[4,this.bgMessageHandler(t)]:[3,5];case 4:return s.sent(),[2];case 5:return[2]}}
2))}))},t.prototype.onSubChange_=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var e,t,r,n;return(0,s.YH)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.getSWRegistration_()];case 1:return e=i.sent(),[3,3];case 2:throw t=i.sent(),u.create("unable-to-resubscribe",{errorInfo:t});case 3:return i.trys.push([3,5,,8]),[4,e.pushManager.getSubscription()];case 4:return i.sent(),[3,8];case 5:return r=i.sent(),[4,this.getTokenDetailsModel().getTokenDetailsFromSWScope(e.scope)];case 6:if(!(n=i.sent()))throw r;return[4,this.deleteToken(n.fcmToken)];case 7:throw i.sent(),r;case 8:return[2]}}))}))},t.prototype.onNotificationClick_=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,r,n,i;return(0,s.YH)(this,(function(a){switch(a.label){case 0:return e.notification&&e.notification.data&&e.notification.data[I]?e.action?[2]:(e.stopImmediatePropagation(),e.notification.close(),(t=e.notification.data[I]).notification&&(r=t.fcmOptions&&t.fcmOptions.link||t.notification.click_action)?[4,this.getWindowClient_(r)]:[2]):[2];case 1:return(n=a.sent())?[3,3]:[4,self.clients.openWindow(r)];case 2:return n=a.sent(),[3,5];case 3:return[4,n.focus()];case 4:n=a.sent(),a.label=5;case 5:return n?(delete t.notification,delete t.fcmOptions,i=T(o.NOTIFICATION_CLICKED,t),[2,this.attemptToMessageClient_(n,i)]):[2]}}))}))},t.prototype.getNotificationData_=function(e){var t;if(e&&"object"==typeof e.notification){var r=(0,s.Cl)({},e.notification);return r.data=(0,s.Cl)({},e.notification.data,((t={})[I]=e,t)),r}},t.prototype.setBackgroundMessageHandler=function(e){if(!e||"function"!=typeof e)throw u.create("bg-handler-function-expected");this.bgMessageHandler=e},t.prototype.getWindowClient_=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,r,n,i;return(0,s.YH)(this,(function(o){switch(o.label){case 0:return t=new URL(e,self.location.href).href,[4,O()];case 1:for(r=o.sent(),n=null,i=0;i<r.length;i++)if(new URL(r[i].url,self.location.href).href===t){n=r[i];break}return[2,n]}}))}))},t.prototype.attemptToMessageClient_=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(r){if(!e)throw u.create("no-window-client-to-msg");return e.postMessage(t),[2]}))}))},t.prototype.hasVisibleClients_=function(){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(e){switch(e.label){case 0:return[4,O()];case 1:return[2,e.sent().some((function(e){return"visible"===e.visibilityState&&!e.url.startsWith("chrome-extension://")}))]}}))}))},t.prototype.sendMessageToWindowClients_=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,r,n=this;return(0,s.YH)(this,(function(i){switch(i.label){case 0:return[4,O()];case 1:return t=i.sent(),r=T(o.PUSH_MSG_RECEIVED,e),[4,Promise.all(t.map((function(e){return n.attemptToMessageClient_(e,r)})))];case 2:return i.sent(),[2]}}))}))},t.prototype.getSWRegistration_=function(){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(e){return[2,self.registration]}))}))},t.prototype.getPublicVapidKey_=function(){return(0,s.sH)(this,void 0,void 0,(function(){var e,t;return(0,s.YH)(this,(function(r){switch(r.label){case 0:return[4,this.getSWRegistration_()];case 1:if(!(e=r.sent()))throw u.create("sw-registration-expected");return[4,this.getVapidDetailsModel().getVapidFromSWScope(e.scope)];case 2:return null==(t=r.sent())?[2,d]:[2,t]}}))}))},t}(P);function O(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function T(e,t){var r;return(r={})[i.TYPE_OF_MSG]=e,r[i.DATA]=t,r}var C,R,N=function(e){function t(t){var r=e.call(this,t)||this;return r.registrationToUse=null,r.publicVapidKeyToUse=null,r.manifestCheckPromise=null,r.messageObserver=null,r.tokenRefreshObserver=null,r.onMessageInternal=(0,c.tD)((function(e){r.messageObserver=e})),r.onTokenRefreshInternal=(0,c.tD)((function(e){r.tokenRefreshObserver=e})),r.setupSWMessageListener_(),r}return(0,s.C6)(t,e),t.prototype.getToken=function(){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(t){switch(t.label){case 0:return this.manifestCheckPromise||(this.manifestCheckPromise=function(){return(0,s.sH)(this,void 0,void 0,(function(){var e,t;return(0,s.YH)(this,(function(r){switch(r.label){case 0:if(!(e=document.querySelector('link[rel="manifest"]')))return[2];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,fetch(e.href)];case 2:return[4,r.sent().json()];case 3:return t=r.sent(),[3,5];case 4:return r.sent(),[2];case 5:if(!t||!t.gcm_sender_id)return[2];if("103953800507"!==t.gcm_sender_id)throw u.create("incorrect-gcm-sen
2der-id");return[2]}}))}))}()),[4,this.manifestCheckPromise];case 1:return t.sent(),[2,e.prototype.getToken.call(this)]}}))}))},t.prototype.requestPermission=function(){return(0,s.sH)(this,void 0,void 0,(function(){var e;return(0,s.YH)(this,(function(t){switch(t.label){case 0:return"granted"===this.getNotificationPermission_()?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(e=t.sent()))return[2];throw"denied"===e?u.create("permission-blocked"):u.create("permission-default")}}))}))},t.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw u.create("sw-registration-expected");if(null!=this.registrationToUse)throw u.create("use-sw-before-get-token");this.registrationToUse=e},t.prototype.usePublicVapidKey=function(e){if("string"!=typeof e)throw u.create("invalid-public-vapid-key");if(null!=this.publicVapidKeyToUse)throw u.create("use-public-key-before-get-token");var t=y(e);if(65!==t.length)throw u.create("public-vapid-key-decryption-failed");this.publicVapidKeyToUse=t},t.prototype.onMessage=function(e,t,r){return"function"==typeof e?this.onMessageInternal(e,t,r):this.onMessageInternal(e)},t.prototype.onTokenRefresh=function(e,t,r){return"function"==typeof e?this.onTokenRefreshInternal(e,t,r):this.onTokenRefreshInternal(e)},t.prototype.waitForRegistrationToActivate_=function(e){var t=e.installing||e.waiting||e.active;return new Promise((function(r,n){if(t)if("activated"!==t.state)if("redundant"!==t.state){var i=function(){if("activated"===t.state)r(e);else{if("redundant"!==t.state)return;n(u.create("sw-reg-redundant"))}t.removeEventListener("statechange",i)};t.addEventListener("statechange",i)}else n(u.create("sw-reg-redundant"));else r(e);else n(u.create("no-sw-in-reg"))}))},t.prototype.getSWRegistration_=function(){var e=this;return this.registrationToUse?this.waitForRegistrationToActivate_(this.registrationToUse):(this.registrationToUse=null,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}).catch((function(e){throw u.create("failed-serviceworker-registration",{browserErrorMessage:e.message})})).then((function(t){return e.waitForRegistrationToActivate_(t).then((function(){return e.registrationToUse=t,t.update(),t}))})))},t.prototype.getPublicVapidKey_=function(){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(e){return this.publicVapidKeyToUse?[2,this.publicVapidKeyToUse]:[2,d]}))}))},t.prototype.setupSWMessageListener_=function(){var e=this;navigator.serviceWorker.addEventListener("message",(function(t){if(t.data&&t.data[i.TYPE_OF_MSG]){var r=t.data;switch(r[i.TYPE_OF_MSG]){case o.PUSH_MSG_RECEIVED:case o.NOTIFICATION_CLICKED:var n=r[i.DATA];e.messageObserver&&e.messageObserver.next(n)}}}),!1)},t}(P);function L(){return self&&"ServiceWorkerGlobalScope"in self?"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}C=a.A,R={isSupported:L},C.INTERNAL.registerService("messaging",(function(e){if(!L())throw u.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new k(e):new N(e)}),R)},85230:(e,t,r)=>{"use strict";r.d(t,{FA:()=>a,tD:()=>c});var n=r(12048),i=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:i<2048?(t[r++]=i>>6|192,t[r++]=63&i|128):55296==(64512&i)&&n+1<e.length&&56320==(64512&e.charCodeAt(n+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128,t[r++]=i>>6&63|128,t[r++]=63&i|128):(t[r++]=i>>12|224,t[r++]=i>>6&63|128,t[r++]=63&i|128)}return t};!function(){function e(){var e=this;this.promise=new Promise((function(t,r){e.resolve=t,e.reject=r}))}e.prototype.wrapCallback=function(e){var t=this;return function(r,n){r?t.reject(r):t.resolve(n),"function"==typeof e&&(t.promise.catch((function(){})),1===e.length?e(r):e(r,n))}}}();var o=function(e){function t(r,n){var i=e.call(this,n)||this;return i.code=r,i.name="FirebaseError",Object.setPrototypeOf(i,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,a.prototype.create),i}return(0,n.C6)(t,e),t}(Error),a=function(){function e(e,t,r){this.service=e,this.serviceName=t,this.errors=r}return e.prototype.create=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=t[0]||{},i=this.service+"/"+e,a=this.errors[e],c=a?function(e,t){return e.replace(s,(function(e,r){var n=t[r];return null!=n?n.toString():"<"+r+"?>"}))}(a,n):"Error",l=this.serviceName+": "+c+" ("+i+").",u=new o(i,l),d=0,f=Object.keys(n);d<f.length;d++){var p=f[d];"_"!==p.slice(-1)&&(p in u&&console.warn('Overwriting FirebaseError base field "'+p+'" can cause unexpected behavior.'),u[p]=n[p])}return u},e}();var s=/\{\$([^}]+)}/g;!function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}e.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},e.prototype.compress_=function(e,t){t||(t=0);var r=this.W_;if("string"==typeof e)for(var n=0;n<16;n++)r[n]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(n=0;n<16;n++)r[n]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(n=16;n<80;n++){var i=r[n-3]^r[n-8]^r[n-14]^r[n-16];r[n]=4294967295&(i<<1|i>>>31)}var o,a,s=this.chain_[0],c=this.chain_[1],l=this.chain_[2],u=this.chain_[3],d=this.chain_[4];for(n=0;n<80;n++){n<40?n<20?(o=u^c&(l^u),a=1518500249):(o=c^l^u,a=1859775393):n<60?(o=c&l|u&(c|l),a=2400959708):(o=c^l^u,a=3395469782);i=(s<<5|s>>>27)+o+d+a+r[n]&4294967295;d=u,u=l,l=4294967295&(c<<30|c>>>2),c=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+c&4294967295,this.chain_[2]=this.chain_[2]+l&4294967295,this.chain_[3]=this.chain_[3]+u&4294967295,this.chain_[4]=this.chain_[4]+d&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var r=t-this.blockSize,n=0,i=this.buf_,o=this.inbuf_;n<t;){if(0==o)for(;n<=r;)this.compress_(e,n),n+=this.blockSize;if("string"==typeof e){for(;n<t;)if(i[o]=e.charCodeAt(n),++n,++o==this.blockSize){this.compress_(i),o=0;break}}else for(;n<t;
2)if(i[o]=e[n],++n,++o==this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=t}},e.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var r=this.blockSize-1;r>=56;r--)this.buf_[r]=255&t,t/=256;this.compress_(this.buf_);var n=0;for(r=0;r<5;r++)for(var i=24;i>=0;i-=8)e[n]=this.chain_[r]>>i&255,++n;return e}}();function c(e,t){var r=new l(e,t);return r.subscribe.bind(r)}var l=function(){function e(e,t){var r=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((function(){e(r)})).catch((function(e){r.error(e)}))}return e.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},e.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},e.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},e.prototype.subscribe=function(e,t,r){var n,i=this;if(void 0===e&&void 0===t&&void 0===r)throw new Error("Missing Observer.");void 0===(n=function(e,t){if("object"!=typeof e||null===e)return!1;for(var r=0,n=t;r<n.length;r++){var i=n[r];if(i in e&&"function"==typeof e[i])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:r}).next&&(n.next=u),void 0===n.error&&(n.error=u),void 0===n.complete&&(n.complete=u);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?n.error(i.finalError):n.complete()}catch(e){}})),this.observers.push(n),o},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var r=this;this.task.then((function(){if(void 0!==r.observers&&void 0!==r.observers[e])try{t(r.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}}))},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))},e}();function u(){}},12048:(e,t,r)=>{"use strict";r.d(t,{C6:()=>i,Cl:()=>o,YH:()=>s,gz:()=>l,sH:()=>a});
2var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new r((function(t){t(e.value)})).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function s(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function c(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e}},98432:(e,t,r)=>{"use strict";r.d(t,{A4:()=>o,Bd:()=>l,FA:()=>d,Ll:()=>c,cY:()=>s,gR:()=>p,tD:()=>h,zw:()=>a});var n=r(39444),i=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:i<2048?(t[r++]=i>>6|192,t[r++]=63&i|128):55296==(64512&i)&&n+1<e.length&&56320==(64512&e.charCodeAt(n+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128,t[r++]=i>>6&63|128,t[r++]=63&i|128):(t[r++]=i>>12|224,t[r++]=i>>6&63|128,t[r++]=63&i|128)}return t};function o(e){return a(void 0,e)}function a(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var r in t)t.hasOwnProperty(r)&&(e[r]=a(e[r],t[r]));return e}var s=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(t,r){e.resolve=t,e.reject=r}))}return e.prototype.wrapCallback=function(e){var t=this;return function(r,n){r?t.reject(r):t.resolve(n),"function"==typeof e&&(t.promise.catch((function(){})),1===e.length?e(r):e(r,n))}},e}();function c(){try{return"[object process]"===Object.prototype.toString.call(r.g.process)}catch(e){return!1}}function l(){return"object"==typeof self&&self.self===self}var u=function(e){function t(r,n){var i=e.call(this,n)||this;return i.code=r,i.name="FirebaseError",Object.setPrototypeOf(i,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,d.prototype.create),i}return(0,n.C6)(t,e),t}(Error),d=function(){function e(e,t,r){this.service=e,this.serviceName=t,this.errors=r}return e.prototype.create=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=t[0]||{},i=this.service+"/"+e,o=this.errors[e],a=o?function(e,t){return e.replace(f,(function(e,r){var n=t[r];return null!=n?n.toString():"<"+r+"?>"}))}(o,n):"Error",s=this.serviceName+": "+a+" ("+i+").",c=new u(i,s),l=0,d=Object.keys(n);l<d.length;l++){var p=d[l];"_"!==p.slice(-1)&&(p in c&&console.warn('Overwriting FirebaseError base field "'+p+'" can cause unexpected behavior.'),c[p]=n[p])}return c},e}();var f=/\{\$([^}]+)}/g;function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}!function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}e.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},e.prototype.compress_=function(e,t){t||(t=0);var r=this.W_;if("string"==typeof e)for(var n=0;n<16;n++)r[n]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(n=0;n<16;n++)r[n]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(n=16;n<80;n++){var i=r[n-3]^r[n-8]^r[n-14]^r[n-16];r[n]=4294967295&(i<<1|i>>>31)}var o,a,s=this.chain_[0],c=this.chain_[1],l=this.chain_[2],u=this.chain_[3],d=this.chain_[4];for(n=0;n<80;n++){n<40?n<20?(o=u^c&(l^u),a=1518500249):(o=c^l^u,a=1859775393):n<60?(o=c&l|u&(c|l),a=2400959708):(o=c^l^u,a=3395469782);i=(s<<5|s>>>27)+o+d+a+r[n]&4294967295;d=u,u=l,l=4294967295&(c<<30|c>>>2),c=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+c&4294967295,this.chain_[2]=this.chain_[2]+l&4294967295,this.chain_[3]=this.chain_[3]+u&4294967295,this.chain_[4]=this.chain_[4]+d&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var r=t-this.blockSize,n=0,i=this.buf_,o=this.inbuf_;n<t;){if(0===o)for(;n<=r;)this.compress_(e,n),n+=this.blockSize;if("string"==typeof e){for(;n<t;)if(i[o]=e.charCodeAt(n),++n,++o===this.blockSize){this.compress_(i),o=0;break}}else for(;n<t;
2)if(i[o]=e[n],++n,++o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=t}},e.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var r=this.blockSize-1;r>=56;r--)this.buf_[r]=255&t,t/=256;this.compress_(this.buf_);var n=0;for(r=0;r<5;r++)for(var i=24;i>=0;i-=8)e[n]=this.chain_[r]>>i&255,++n;return e}}();function h(e,t){var r=new m(e,t);return r.subscribe.bind(r)}var m=function(){function e(e,t){var r=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((function(){e(r)})).catch((function(e){r.error(e)}))}return e.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},e.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},e.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},e.prototype.subscribe=function(e,t,r){var n,i=this;if(void 0===e&&void 0===t&&void 0===r)throw new Error("Missing Observer.");void 0===(n=function(e,t){if("object"!=typeof e||null===e)return!1;for(var r=0,n=t;r<n.length;r++){var i=n[r];if(i in e&&"function"==typeof e[i])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:r}).next&&(n.next=y),void 0===n.error&&(n.error=y),void 0===n.complete&&(n.complete=y);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?n.error(i.finalError):n.complete()}catch(e){}})),this.observers.push(n),o},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var r=this;this.task.then((function(){if(void 0!==r.observers&&void 0!==r.observers[e])try{t(r.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}}))},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))},e}();function y(){}},39444:(e,t,r)=>{"use strict";r.d(t,{C6:()=>i});
2var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}},54583:(e,t,r)=>{"use strict";r.d(t,{BN:()=>p,ER:()=>h,Ej:()=>m,UE:()=>s,UU:()=>c,cY:()=>f,jD:()=>d,rD:()=>o});var n=r(65951);function i(e,t,r){let{reference:i,floating:o}=e;const a=(0,n.TV)(t),s=(0,n.Dz)(t),c=(0,n.sq)(s),l=(0,n.C0)(t),u="y"===a,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,p=i[c]/2-o[c]/2;let h;switch(l){case"top":h={x:d,y:i.y-o.height};break;case"bottom":h={x:d,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:f};break;case"left":h={x:i.x-o.width,y:f};break;default:h={x:i.x,y:i.y}}switch((0,n.Sg)(t)){case"start":h[s]-=p*(r&&u?-1:1);break;case"end":h[s]+=p*(r&&u?-1:1)}return h}const o=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=i(u,n,l),p=n,h={},m=0;for(let r=0;r<c.length;r++){const{name:a,fn:y}=c[r],{x:v,y:g,data:b,reset:E}=await y({x:d,y:f,initialPlacement:n,placement:p,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=g?g:f,h={...h,[a]:{...h[a],...b}},E&&m<=50&&(m++,"object"==typeof E&&(E.placement&&(p=E.placement),E.rects&&(u=!0===E.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),({x:d,y:f}=i(u,p,l))),r=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:h}};async function a(e,t){var r;void 0===t&&(t={});const{x:i,y:o,platform:a,rects:s,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=(0,n._3)(t,e),m=(0,n.nI)(h),y=c[p?"floating"===f?"reference":"floating":f],v=(0,n.B1)(await a.getClippingRect({element:null==(r=await(null==a.isElement?void 0:a.isElement(y)))||r?y:y.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:l})),g="floating"===f?{...s.floating,x:i,y:o}:s.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),E=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},w=(0,n.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:b,strategy:l}):g);return{top:(v.top-w.top+m.top)/E.y,bottom:(w.bottom-v.bottom+m.bottom)/E.y,left:(v.left-w.left+m.left)/E.x,right:(w.right-v.right+m.right)/E.x}}const s=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:i,placement:o,rects:a,platform:s,elements:c,middlewareData:l}=t,{element:u,padding:d=0}=(0,n._3)(e,t)||{};if(null==u)return{};const f=(0,n.nI)(d),p={x:r,y:i},h=(0,n.Dz)(o),m=(0,n.sq)(h),y=await s.getDimensions(u),v="y"===h,g=v?"top":"left",b=v?"bottom":"right",E=v?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[h]-p[h]-a.floating[m],S=p[h]-a.reference[h],A=await(null==s.getOffsetParent?void 0:s.getOffsetParent(u));let _=A?A[E]:0;_&&await(null==s.isElement?void 0:s.isElement(A))||(_=c.floating[E]||a.floating[m]);const x=w/2-S/2,P=_/2-y[m]/2-1,I=(0,n.jk)(f[g],P),k=(0,n.jk)(f[b],P),O=I,T=_-y[m]-k,C=_/2-y[m]/2+x,R=(0,n.qE)(O,C,T),N=!l.arrow&&null!=(0,n.Sg)(o)&&C!=R&&a.reference[m]/2-(C<O?I:k)-y[m]/2<0,L=N?C<O?C-O:C-T:0;return{[h]:p[h]+L,data:{[h]:R,centerOffset:C-R-L,...N&&{alignmentOffset:L}},reset:N}}});const c=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,i;const{placement:o,middlewareData:s,rects:c,initialPlacement:l,platform:u,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...g}=(0,n._3)(e,t);if(null!=(r=s.arrow)&&r.alignmentOffset)return{};const b=(0,n.C0)(o),E=(0,n.C0)(l)===l,w=await(null==u.isRTL?void 0:u.isRTL(d.floating)),S=h||(E||!v?[(0,n.bV)(l)]:(0,n.WJ)(l));h||"none"===y||S.push(...(0,n.lP)(l,v,y,w));const A=[l,...S],_=await a(t,g),x=[];let P=(null==(i=s.flip)?void 0:i.overflows)||[];if(f&&x.push(_[b]),p){const e=(0,n.w7)(o,c,w);x.push(_[e[0]],_[e[1]])}if(P=[...P,{placement:o,overflows:x}],!x.every((e=>e<=0))){var I,k;const e=((null==(I=s.flip)?void 0:I.index)||0)+1,t=A[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let r=null==(k=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!r)switch(m){case"bestFit":{var O;const e=null==(O=P.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(r=e);break}case"initialPlacement":r=l}if(o!==r)return{reset:{placement:r}}}return{}}}};function l(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function u(e){return n.r_.some((t=>e[t]>=0))}const d=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:i="referenceHidden",...o}=(0,n._3)(e,t);switch(i){case"referenceHidden":{const e=l(await a(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:u(e)}}}case"escaped":{const e=l(await a(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:u(e)}}}default:return{}}}}};const f=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:i}=t,o=await async function(e,t){const{placement:r,platform:i,elements:o}=e,a=await(null==i.isRTL?void 0:i.isRTL(o.floating)),s=(0,n.C0)(r),c=(0,n.Sg)(r),l="y"===(0,n.TV)(r),u=["left","top"].includes(s)?-1:1,d=a&&l?-1:1,f=(0,n._3)(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&"number"==typeof m&&(h="end"===c?-1*m:m),l?{x:h*d,y:p*u}:{x:p*u,y:h*d}}(t,e);return{x:r+o.x,y:i+o.y,data:o}}}},p=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:i,placement:o}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...u}=(0,n._3)(e,t),d={x:r,y:i},f=await a(t,u),p=(0,n.TV)((0,n.C0)(o)),h=(0,n.PG)(p);let m=d[h],y=d[p];
2if(s){const e="y"===h?"bottom":"right",t=m+f["y"===h?"top":"left"],r=m-f[e];m=(0,n.qE)(t,m,r)}if(c){const e="y"===p?"bottom":"right",t=y+f["y"===p?"top":"left"],r=y-f[e];y=(0,n.qE)(t,y,r)}const v=l.fn({...t,[h]:m,[p]:y});return{...v,data:{x:v.x-r,y:v.y-i}}}}},h=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:i,placement:o,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=(0,n._3)(e,t),d={x:r,y:i},f=(0,n.TV)(o),p=(0,n.PG)(f);let h=d[p],m=d[f];const y=(0,n._3)(c,t),v="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+v.mainAxis,r=a.reference[p]+a.reference[e]-v.mainAxis;h<t?h=t:h>r&&(h=r)}if(u){var g,b;const e="y"===p?"width":"height",t=["top","left"].includes((0,n.C0)(o)),r=a.reference[f]-a.floating[e]+(t&&(null==(g=s.offset)?void 0:g[f])||0)+(t?0:v.crossAxis),i=a.reference[f]+a.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[f])||0)-(t?v.crossAxis:0);m<r?m=r:m>i&&(m=i)}return{[p]:h,[f]:m}}}},m=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:i,platform:o,elements:s}=t,{apply:c=(()=>{}),...l}=(0,n._3)(e,t),u=await a(t,l),d=(0,n.C0)(r),f=(0,n.Sg)(r),p="y"===(0,n.TV)(r),{width:h,height:m}=i.floating;let y,v;"top"===d||"bottom"===d?(y=d,v=f===(await(null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,y="end"===f?"top":"bottom");const g=m-u[y],b=h-u[v],E=!t.middlewareData.shift;let w=g,S=b;if(p){const e=h-u.left-u.right;S=f||E?(0,n.jk)(b,e):e}else{const e=m-u.top-u.bottom;w=f||E?(0,n.jk)(g,e):e}if(E&&!f){const e=(0,n.T9)(u.left,0),t=(0,n.T9)(u.right,0),r=(0,n.T9)(u.top,0),i=(0,n.T9)(u.bottom,0);p?S=h-2*(0!==e||0!==t?e+t:(0,n.T9)(u.left,u.right)):w=m-2*(0!==r||0!==i?r+i:(0,n.T9)(u.top,u.bottom))}await c({...t,availableWidth:S,availableHeight:w});const A=await o.getDimensions(s.floating);return h!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}}},37241:(e,t,r)=>{"use strict";r.d(t,{ll:()=>b,rD:()=>E});var n=r(65951),i=r(54583),o=r(85218);function a(e){const t=(0,o.L9)(e);let r=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=(0,o.sb)(e),s=a?e.offsetWidth:r,c=a?e.offsetHeight:i,l=(0,n.LI)(r)!==s||(0,n.LI)(i)!==c;return l&&(r=s,i=c),{width:r,height:i,$:l}}function s(e){return(0,o.vq)(e)?e:e.contextElement}function c(e){const t=s(e);if(!(0,o.sb)(t))return(0,n.Jx)(1);const r=t.getBoundingClientRect(),{width:i,height:c,$:l}=a(t);let u=(l?(0,n.LI)(r.width):r.width)/i,d=(l?(0,n.LI)(r.height):r.height)/c;return u&&Number.isFinite(u)||(u=1),d&&Number.isFinite(d)||(d=1),{x:u,y:d}}const l=(0,n.Jx)(0);function u(e){const t=(0,o.zk)(e);return(0,o.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:l}function d(e,t,r,i){void 0===t&&(t=!1),void 0===r&&(r=!1);const a=e.getBoundingClientRect(),l=s(e);let d=(0,n.Jx)(1);t&&(i?(0,o.vq)(i)&&(d=c(i)):d=c(e));const f=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==(0,o.zk)(e))&&t}(l,r,i)?u(l):(0,n.Jx)(0);let p=(a.left+f.x)/d.x,h=(a.top+f.y)/d.y,m=a.width/d.x,y=a.height/d.y;if(l){const e=(0,o.zk)(l),t=i&&(0,o.vq)(i)?(0,o.zk)(i):i;let r=e.frameElement;for(;r&&i&&t!==e;){const e=c(r),t=r.getBoundingClientRect(),n=(0,o.L9)(r),i=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;p*=e.x,h*=e.y,m*=e.x,y*=e.y,p+=i,h+=a,r=(0,o.zk)(r).frameElement}}return(0,n.B1)({width:m,height:y,x:p,y:h})}function f(e){return d((0,o.ep)(e)).left+(0,o.CP)(e).scrollLeft}function p(e,t,r){let i;if("viewport"===t)i=function(e,t){const r=(0,o.zk)(e),n=(0,o.ep)(e),i=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,c=0,l=0;if(i){a=i.width,s=i.height;const e=(0,o.Tc)();(!e||e&&"fixed"===t)&&(c=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:c,y:l}}(e,r);else if("document"===t)i=function(e){const t=(0,o.ep)(e),r=(0,o.CP)(e),i=e.ownerDocument.body,a=(0,n.T9)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=(0,n.T9)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let c=-r.scrollLeft+f(e);const l=-r.scrollTop;return"rtl"===(0,o.L9)(i).direction&&(c+=(0,n.T9)(t.clientWidth,i.clientWidth)-a),{width:a,height:s,x:c,y:l}}((0,o.ep)(e));else if((0,o.vq)(t))i=function(e,t){const r=d(e,!0,"fixed"===t),i=r.top+e.clientTop,a=r.left+e.clientLeft,s=(0,o.sb)(e)?c(e):(0,n.Jx)(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:a*s.x,y:i*s.y}}(t,r);else{const r=u(e);i={...t,x:t.x-r.x,y:t.y-r.y}}return(0,n.B1)(i)}function h(e,t){const r=(0,o.$4)(e);return!(r===t||!(0,o.vq)(r)||(0,o.eu)(r))&&("fixed"===(0,o.L9)(r).position||h(r,t))}function m(e,t,r){const i=(0,o.sb)(t),a=(0,o.ep)(t),s="fixed"===r,c=d(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const u=(0,n.Jx)(0);if(i||!i&&!s)if(("body"!==(0,o.mq)(t)||(0,o.ZU)(a))&&(l=(0,o.CP)(t)),i){const e=d(t,!0,s,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else a&&(u.x=f(a));return{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function y(e,t){return(0,o.sb)(e)&&"fixed"!==(0,o.L9)(e).position?t?t(e):e.offsetParent:null}function v(e,t){const r=(0,o.zk)(e);if(!(0,o.sb)(e))return r;let n=y(e,t);for(;n&&(0,o.Lv)(n)&&"static"===(0,o.L9)(n).position;)n=y(n,t);return n&&("html"===(0,o.mq)(n)||"body"===(0,o.mq)(n)&&"static"===(0,o.L9)(n).position&&!(0,o.sQ)(n))?r:n||(0,o.gJ)(e)||r}const g={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:i}=e;const a=(0,o.sb)(r),s=(0,o.ep)(r);if(r===s)return t;let l={scrollLeft:0,scrollTop:0},u=(0,n.Jx)(1);const f=(0,n.Jx)(0);if((a||!a&&"fixed"!==i)&&(("body"!==(0,o.mq)(r)||(0,o.ZU)(s))&&(l=(0,o.CP)(r)),(0,o.sb)(r))){const e=d(r);u=c(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-l.scrollLeft*u.x+f.x,y:t.y*u.y-l.scrollTop*u.y+f.y}},getDocumentElement:o.ep,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:a}=e;const s=[..."clippingAncestors"===r?function(e,t){const r=t.get(e);if(r)return r;let n=(0,o.v9)(e,[],!1).filter((e=>(0,o.vq)(e)&&"body"!==(0,o.mq)(e))),i=null;const a="fixed"===(0,o.L9)(e).position;let s=a?(0,o.$4)(e):e;for(;(0,o.vq)(s)&&!(0,o.eu)(s);){const t=(0,o.L9)(s),r=(0,o.sQ)(s);r||"fixed"!==t.position||(i=null),(a?!r&&!i:!r&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||(0,o.ZU)(s)&&!r&&h(e,s))?n=n.filter((e=>e!==s)):i=t,s=(0,o.$4)(s)}return t.set(e,n),n}(t,this._c):[].concat(r),i],c=s[0],l=s.reduce(((e,r)=>{const i=p(t,r,a);return e.top=(0,n.T9)(i.top,e.top),e.right=(0,n.jk)(i.right,e.right),e.bottom=(0,n.jk)(i.bottom,e.bottom),e.left=(0,n.T9)(i.left,e.left),e}),p(t,c,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:v,getElementRects:async function(e){let{reference:t,floating:r,strategy:n}=e;const i=this.getOffsetParent||v,o=this.getDimensions;return{reference:m(t,await i(r),n),floating:{x:0,y:0,...await o(r)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return a(e)},getScale:c,isElement:o.vq,isRTL:function(e){return"rtl"===(0,o.L9)(e).direction}};
vendor: 4,862 bytes, line 2
2function b(e,t,r,i){void 0===i&&(i={});const{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=i,p=s(e),h=a||c?[...p?(0,o.v9)(p):[],...(0,o.v9)(t)]:[];h.forEach((e=>{a&&e.addEventListener("scroll",r,{passive:!0}),c&&e.addEventListener("resize",r)}));const m=p&&u?function(e,t){let r,i=null;const a=(0,o.ep)(e);function s(){clearTimeout(r),i&&i.disconnect(),i=null}return function o(c,l){void 0===c&&(c=!1),void 0===l&&(l=1),s();const{left:u,top:d,width:f,height:p}=e.getBoundingClientRect();if(c||t(),!f||!p)return;const h={rootMargin:-(0,n.RI)(d)+"px "+-(0,n.RI)(a.clientWidth-(u+f))+"px "+-(0,n.RI)(a.clientHeight-(d+p))+"px "+-(0,n.RI)(u)+"px",threshold:(0,n.T9)(0,(0,n.jk)(1,l))||1};let m=!0;function y(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return o();t?o(!1,t):r=setTimeout((()=>{o(!1,1e-7)}),100)}m=!1}try{i=new IntersectionObserver(y,{...h,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(y,h)}i.observe(e)}(!0),s}(p,r):null;let y,v=-1,g=null;l&&(g=new ResizeObserver((e=>{let[n]=e;n&&n.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame((()=>{g&&g.observe(t)}))),r()})),p&&!f&&g.observe(p),g.observe(t));let b=f?d(e):null;return f&&function t(){const n=d(e);!b||n.x===b.x&&n.y===b.y&&n.width===b.width&&n.height===b.height||r();b=n,y=requestAnimationFrame(t)}(),r(),()=>{h.forEach((e=>{a&&e.removeEventListener("scroll",r),c&&e.removeEventListener("resize",r)})),m&&m(),g&&g.disconnect(),g=null,f&&cancelAnimationFrame(y)}}const E=(e,t,r)=>{const n=new Map,o={platform:g,...r},a={...o.platform,_c:n};return(0,i.rD)(e,t,{...o,platform:a})}},83773:(e,t,r)=>{"use strict";r.d(t,{UE:()=>s,we:()=>p});var n=r(54583),i=r(37241),o=r(14041),a=r(43144);const s=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:i}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?(0,n.UE)({element:r.current,padding:i}).fn(t):{}:r?(0,n.UE)({element:r,padding:i}).fn(t):{};var o}});var c="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;0!=n--;)if(!l(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){const r=i[n];if(("_owner"!==r||!e.$$typeof)&&!l(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function u(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function d(e,t){const r=u(e);return Math.round(t*r)/r}function f(e){const t=o.useRef(e);return c((()=>{t.current=e})),t}function p(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:p,floating:h}={},transform:m=!0,whileElementsMounted:y,open:v}=e,[g,b]=o.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[E,w]=o.useState(n);l(E,n)||w(n);const[S,A]=o.useState(null),[_,x]=o.useState(null),P=o.useCallback((e=>{e!=T.current&&(T.current=e,A(e))}),[A]),I=o.useCallback((e=>{e!==C.current&&(C.current=e,x(e))}),[x]),k=p||S,O=h||_,T=o.useRef(null),C=o.useRef(null),R=o.useRef(g),N=f(y),L=f(s),D=o.useCallback((()=>{if(!T.current||!C.current)return;const e={placement:t,strategy:r,middleware:E};L.current&&(e.platform=L.current),(0,i.rD)(T.current,C.current,e).then((e=>{const t={...e,isPositioned:!0};M.current&&!l(R.current,t)&&(R.current=t,a.flushSync((()=>{b(t)})))}))}),[E,t,r,L]);c((()=>{!1===v&&R.current.isPositioned&&(R.current.isPositioned=!1,b((e=>({...e,isPositioned:!1}))))}),[v]);const M=o.useRef(!1);c((()=>(M.current=!0,()=>{M.current=!1})),[]),c((()=>{if(k&&(T.current=k),O&&(C.current=O),k&&O){if(N.current)return N.current(k,O,D);D()}}),[k,O,D,N]);const F=o.useMemo((()=>({reference:T,floating:C,setReference:P,setFloating:I})),[P,I]),j=o.useMemo((()=>({reference:k,floating:O})),[k,O]),B=o.useMemo((()=>{const e={position:r,left:0,top:0};if(!j.floating)return e;const t=d(j.floating,g.x),n=d(j.floating,g.y);return m?{...e,transform:"translate("+t+"px, "+n+"px)",...u(j.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,m,j.floating,g.x,g.y]);return o.useMemo((()=>({...g,update:D,refs:F,elements:j,floatingStyles:B})),[g,D,F,j,B])}},65951:(e,t,r)=>{"use strict";r.d(t,{B1:()=>x,C0:()=>p,Dz:()=>g,Jx:()=>c,LI:()=>a,PG:()=>m,RI:()=>s,Sg:()=>h,T9:()=>o,TV:()=>v,WJ:()=>E,_3:()=>f,bV:()=>A,jk:()=>i,lP:()=>S,nI:()=>_,qE:()=>d,r_:()=>n,sq:()=>y,w7:()=>b});const n=["top","right","bottom","left"],i=Math.min,o=Math.max,a=Math.round,s=Math.floor,c=e=>({x:e,y:e}
2),l={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function d(e,t,r){return o(e,i(t,r))}function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(p(e))?"y":"x"}function g(e){return m(v(e))}function b(e,t,r){void 0===r&&(r=!1);const n=h(e),i=g(e),o=y(i);let a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=A(a)),[a,A(a)]}function E(e){const t=A(e);return[w(e),t,w(t)]}function w(e){return e.replace(/start|end/g,(e=>u[e]))}function S(e,t,r,n){const i=h(e);let o=function(e,t,r){const n=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:a;default:return[]}}(p(e),"start"===r,n);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(w)))),o}function A(e){return e.replace(/left|right|bottom|top/g,(e=>l[e]))}function _(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function x(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},85218:(e,t,r)=>{"use strict";function n(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return e instanceof Node||e instanceof i(e).Node}function s(e){return e instanceof Element||e instanceof i(e).Element}function c(e){return e instanceof HTMLElement||e instanceof i(e).HTMLElement}function l(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function u(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function d(e){return["table","td","th"].includes(n(e))}function f(e){const t=h(),r=y(e);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function p(e){let t=g(e);for(;c(t)&&!m(t);){if(f(t))return t;t=g(t)}return null}function h(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function m(e){return["html","body","#document"].includes(n(e))}function y(e){return i(e).getComputedStyle(e)}function v(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function g(e){if("html"===n(e))return e;const t=e.assignedSlot||e.parentNode||l(e)&&e.host||o(e);return l(t)?t.host:t}function b(e){const t=g(e);return m(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&u(t)?t:b(t)}function E(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=b(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),s=i(o);return a?t.concat(s,s.visualViewport||[],u(o)?o:[],s.frameElement&&r?E(s.frameElement):[]):t.concat(o,E(o,[],r))}r.d(t,{$4:()=>g,CP:()=>v,L9:()=>y,Lv:()=>d,Tc:()=>h,ZU:()=>u,ep:()=>o,eu:()=>m,gJ:()=>p,mq:()=>n,sQ:()=>f,sb:()=>c,v9:()=>E,vq:()=>s,zk:()=>i})},68020:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});var n=r(46008),i=r(70534),o=r(19935),a=r(57791);const s="undefined"!=typeof window&&"undefined"!=typeof document,c=(0,i.v9)();class l{constructor(e){if(e=e||{},this.version=c,this._ctx=this.context=e,this._renderer=null,this._trackedExperiments=new Set,this._trackedFeatures={},this.debug=!1,this._subscriptions=new Set,this._rtQueue=[],this._rtTimer=0,this.ready=!1,this._assigned=new Map,this._forcedFeatureValues=new Map,this._attributeOverrides={},this._activeAutoExperiments=new Map,this._triggeredExpKeys=new Set,this._loadFeaturesCalled=!1,e.remoteEval){if(e.decryptionKey)throw new Error("Encryption is not available for remoteEval");if(!e.clientKey)throw new Error("Missing clientKey");let t=!1;try{t=!!new URL(e.apiHost||"").hostname.match(/growthbook\.io$/i)}catch(e){}if(t)throw new Error("Cannot use remoteEval on GrowthBook Cloud")}
2else if(e.cacheKeyAttributes)throw new Error("cacheKeyAttributes are only used for remoteEval");e.features&&(this.ready=!0),s&&e.enableDevMode&&(window._growthbook=this,document.dispatchEvent(new Event("gbloaded"))),e.experiments&&(this.ready=!0,this._updateAllAutoExperiments()),e.clientKey&&!e.remoteEval&&this._refresh({},!0,!1)}async loadFeatures(e){e&&e.autoRefresh&&(this._ctx.subscribeToChanges=!0),this._loadFeaturesCalled=!0,await this._refresh(e,!0,!0),this._canSubscribe()&&(0,a.B1)(this)}async refreshFeatures(e){await this._refresh(e,!1,!0)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){const e=this._ctx.apiHost||"https://cdn.growthbook.io";return{apiHost:e.replace(/\/*$/,""),streamingHost:(this._ctx.streamingHost||e).replace(/\/*$/,""),apiRequestHeaders:this._ctx.apiHostRequestHeaders,streamingHostRequestHeaders:this._ctx.streamingHostRequestHeaders}}getClientKey(){return this._ctx.clientKey||""}isRemoteEval(){return this._ctx.remoteEval||!1}getCacheKeyAttributes(){return this._ctx.cacheKeyAttributes}async _refresh(e,t,r){if(e=e||{},!this._ctx.clientKey)throw new Error("Missing clientKey");await(0,a.fo)(this,e.timeout,e.skipCache||this._ctx.enableDevMode,t,r,!1!==this._ctx.backgroundSync)}_render(){this._renderer&&this._renderer()}setFeatures(e){this._ctx.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,t,r){const n=await(0,i.Yc)(e,t||this._ctx.decryptionKey,r);this.setFeatures(JSON.parse(n))}setExperiments(e){this._ctx.experiments=e,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(e,t,r){const n=await(0,i.Yc)(e,t||this._ctx.decryptionKey,r);this.setExperiments(JSON.parse(n))}setAttributes(e){this._ctx.attributes=e,this._ctx.remoteEval?this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}setAttributeOverrides(e){this._attributeOverrides=e,this._ctx.remoteEval?this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}setForcedVariations(e){this._ctx.forcedVariations=e||{},this._ctx.remoteEval?this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}setForcedFeatures(e){this._forcedFeatureValues=e,this._render()}setURL(e){this._ctx.url=e,this._ctx.remoteEval?this._refreshForRemoteEval().then((()=>this._updateAllAutoExperiments(!0))):this._updateAllAutoExperiments(!0)}getAttributes(){return{...this._ctx.attributes,...this._attributeOverrides}}getForcedVariations(){return this._ctx.forcedVariations||{}}getForcedFeatures(){return this._forcedFeatureValues||new Map}getUrl(){return this._ctx.url||""}getFeatures(){return this._ctx.features||{}}getExperiments(){return this._ctx.experiments||[]}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}_canSubscribe(){return!1!==this._ctx.backgroundSync&&this._ctx.subscribeToChanges}async _refreshForRemoteEval(){this._ctx.remoteEval&&this._loadFeaturesCalled&&await this._refresh({},!1,!0).catch((()=>{}))}getAllResults(){return new Map(this._assigned)}destroy(){this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._trackedFeatures={},this._rtQueue=[],this._rtTimer&&clearTimeout(this._rtTimer),(0,a.al)(this),s&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach((e=>{e.undo()})),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(e){this._renderer=e}forceVariation(e,t){this._ctx.forcedVariations=this._ctx.forcedVariations||{},this._ctx.forcedVariations[e]=t,this._ctx.remoteEval?this._refreshForRemoteEval():(this._updateAllAutoExperiments(),this._render())}run(e){const t=this._run(e,null);return this._fireSubscriptions(e,t),t}triggerExperiment(e){if(this._triggeredExpKeys.add(e),!this._ctx.experiments)return null;this._ctx.experiments.filter((t=>t.key===e)).forEach((e=>{if(!e.manual)return null;this._runAutoExperiment(e)}))}_runAutoExperiment(e,t){const r=this._activeAutoExperiments.get(e);if(e.manual&&!this._triggeredExpKeys.has(e.key)&&!r)return null;const n=this.run(e),i=JSON.stringify(n.value);if(!t&&n.inExperiment&&r&&r.valueHash===i)return n;
2if(r&&this._undoActiveAutoExperiment(e),n.inExperiment){const t=this._applyDOMChanges(n.value);t&&this._activeAutoExperiments.set(e,{undo:t,valueHash:i})}return n}_undoActiveAutoExperiment(e){const t=this._activeAutoExperiments.get(e);t&&(t.undo(),this._activeAutoExperiments.delete(e))}_updateAllAutoExperiments(e){const t=this._ctx.experiments||[],r=new Set(t);this._activeAutoExperiments.forEach(((e,t)=>{r.has(t)||(e.undo(),this._activeAutoExperiments.delete(t))})),t.forEach((t=>{this._runAutoExperiment(t,e)}))}_fireSubscriptions(e,t){const r=e.key,n=this._assigned.get(r);n&&n.result.inExperiment===t.inExperiment&&n.result.variationId===t.variationId||(this._assigned.set(r,{experiment:e,result:t}),this._subscriptions.forEach((r=>{try{r(e,t)}catch(e){console.error(e)}})))}_trackFeatureUsage(e,t){if("override"===t.source)return;const r=JSON.stringify(t.value);if(this._trackedFeatures[e]!==r){if(this._trackedFeatures[e]=r,this._ctx.onFeatureUsage)try{this._ctx.onFeatureUsage(e,t)}catch(e){}s&&window.fetch&&(this._rtQueue.push({key:e,on:t.on}),this._rtTimer||(this._rtTimer=window.setTimeout((()=>{this._rtTimer=0;const e=[...this._rtQueue];this._rtQueue=[],this._ctx.realtimeKey&&window.fetch("https://rt.growthbook.io/?key=".concat(this._ctx.realtimeKey,"&events=").concat(encodeURIComponent(JSON.stringify(e))),{cache:"no-cache",mode:"no-cors"}).catch((()=>{}))}),this._ctx.realtimeInterval||2e3)))}}_getFeatureResult(e,t,r,n,i,o){const a={value:t,on:!!t,off:!t,source:r,ruleId:n||""};return i&&(a.experiment=i),o&&(a.experimentResult=o),this._trackFeatureUsage(e,a),a}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,t){const r=this.evalFeature(e).value;return null===r?t:r}feature(e){return this.evalFeature(e)}evalFeature(e){if(this._forcedFeatureValues.has(e))return this._getFeatureResult(e,this._forcedFeatureValues.get(e),"override");if(!this._ctx.features||!this._ctx.features[e])return this._getFeatureResult(e,null,"unknownFeature");const t=this._ctx.features[e];if(t.rules)for(const r of t.rules){if(r.condition&&!this._conditionPasses(r.condition))continue;if(r.filters&&this._isFilteredOut(r.filters))continue;if("force"in r){if(!this._isIncludedInRollout(r.seed||e,r.hashAttribute,r.range,r.coverage,r.hashVersion))continue;return r.tracks&&r.tracks.forEach((e=>{this._track(e.experiment,e.result)})),this._getFeatureResult(e,r.force,"force",r.id)}if(!r.variations)continue;const t={variations:r.variations,key:r.key||e};"coverage"in r&&(t.coverage=r.coverage),r.weights&&(t.weights=r.weights),r.hashAttribute&&(t.hashAttribute=r.hashAttribute),r.namespace&&(t.namespace=r.namespace),r.meta&&(t.meta=r.meta),r.ranges&&(t.ranges=r.ranges),r.name&&(t.name=r.name),r.phase&&(t.phase=r.phase),r.seed&&(t.seed=r.seed),r.hashVersion&&(t.hashVersion=r.hashVersion),r.filters&&(t.filters=r.filters);const n=this._run(t,e);if(this._fireSubscriptions(t,n),n.inExperiment&&!n.passthrough)return this._getFeatureResult(e,n.value,"experiment",r.id,t,n)}return this._getFeatureResult(e,void 0===t.defaultValue?null:t.defaultValue,"defaultValue")}_isIncludedInRollout(e,t,r,n,o){if(!r&&void 0===n)return!0;const{hashValue:a}=this._getHashAttribute(t);if(!a)return!1;const s=(0,i.tW)(e,a,o||1);return null!==s&&(r?(0,i.r4)(s,r):void 0===n||s<=n)}_conditionPasses(e){return(0,o.a)(this.getAttributes(),e)}_isFilteredOut(e){return e.some((e=>{const{hashValue:t}=this._getHashAttribute(e.attribute);if(!t)return!0;const r=(0,i.tW)(e.seed,t,e.hashVersion||2);return null===r||!e.ranges.some((e=>(0,i.r4)(r,e)))}))}_run(e,t){const r=e.key,n=e.variations.length;if(n<2)return this._getResult(e,-1,!1,t);if(!1===this._ctx.enabled)return this._getResult(e,-1,!1,t);e=this._mergeOverrides(e);const o=(0,i.Qz)(r,this._getContextUrl(),n);if(null!==o)return this._getResult(e,o,!1,t);if(this._ctx.forcedVariations&&r in this._ctx.forcedVariations){const n=this._ctx.forcedVariations[r];return this._getResult(e,n,!1,t)}if("draft"===e.status||!1===e.active)return this._getResult(e,-1,!1,t);const{hashValue:a}=this._getHashAttribute(e.hashAttribute);if(!a)return this._getResult(e,-1,!1,t);if(e.filters){if(this._isFilteredOut(e.filters))return this._getResult(e,-1,!1,t)}else if(e.namespace&&!(0,i.d2)(a,e.namespace))return this._getResult(e,-1,!1,t);if(e.include&&!(0,i.R4)(e.include))return this._getResult(e,-1,!1,t);if(e.condition&&!this._conditionPasses(e.condition))return this._getResult(e,-1,!1,t);if(e.groups&&!this._hasGroupOverlap(e.groups))return this._getResult(e,-1,!1,t);if(e.url&&!this._urlIsValid(e.url))return this._getResult(e,-1,!1,t);if(e.urlPatterns&&!(0,i.g2)(this._getContextUrl(),e.urlPatterns))return this._getResult(e,-1,!1,t);const s=(0,i.tW)(e.seed||r,a,e.hashVersion||1);if(null===s)return this._getResult(e,-1,!1,t);const c=e.ranges||(0,i.nk)(n,void 0===e.coverage?1:e.coverage,e.weights),l=(0,i.lE)(s,c);if(l<0)return this._getResult(e,-1,!1,t);if("force"in e)return this._getResult(e,void 0===e.force?-1:e.force,!1,t);if(this._ctx.qaMode)return this._getResult(e,-1,!1,t);if("stopped"===e.status)return this._getResult(e,-1,!1,t);const u=this._getResult(e,l,!0,t,s);return this._track(e,u),u}log(e,t){this.debug&&(this._ctx.log?this._ctx.log(e,t):console.log(e,t))}_track(e,t){if(!this._ctx.trackingCallback)return;const r=e.key,n=t.hashAttribute+t.hashValue+r+t.variationId;if(!this._trackedExperiments.has(n)){this._trackedExperiments.add(n);try{this._ctx.trackingCallback(e,t)}catch(e){console.error(e)}}}_mergeOverrides(e){const t=e.key,r=this._ctx.overrides;return r&&r[t]&&"string"==typeof(e=Object.assign({},e,r[t])).url&&(e.url=(0,i.$l)(e.url)),e}_getHashAttribute(e){const t=e||"id";let r="";return this._attributeOverrides[t]?r=this._attributeOverrides[t]:this._ctx.attributes?r=this._ctx.attributes[t]||"":this._ctx.user&&(r=this._ctx.user[t]||""),{hashAttribute:t,hashValue:r}}_getResult(e,t,r,n,i){let o=!0;(t<0||t>=e.variations.length)&&(t=0,o=!1);const{hashAttribute:a,hashValue:s}=this._getHashAttribute(e.hashAttribute),c=e.meta?e.meta[t]:{},l={key:c.key||""+t,featureId:n,inExperiment:o,hashUsed:r,variationId:t,value:e.variations[t],hashAttribute:a,hashValue:s};return c.name&&(l.name=c.name),void 0!==i&&(l.bucket=i),c.passthrough&&(l.passthrough=c.passthrough),l}_getContextUrl(){return this._ctx.url||(s?window.location.href:"")}_urlIsValid(e){const t=this._getContextUrl();if(!t)return!1;const r=t.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!e.test(t)||!!e.test(r)}_hasGroupOverlap(e){const t=this._ctx.groups||{};for(let r=0;r<e.length;
2r++)if(t[e[r]])return!0;return!1}_applyDOMChanges(e){if(!s)return;const t=[];if(e.css){const r=document.createElement("style");r.innerHTML=e.css,document.head.appendChild(r),t.push((()=>r.remove()))}if(e.js){const r=document.createElement("script");r.innerHTML=e.js,document.body.appendChild(r),t.push((()=>r.remove()))}return e.domMutations&&e.domMutations.forEach((e=>{t.push(n.Ay.declarative(e).revert)})),()=>{t.forEach((e=>e()))}}}},57791:(e,t,r)=>{"use strict";r.d(t,{B1:()=>p,al:()=>h,fo:()=>f});const n={staleTTL:6e4,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:2e4},i={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource},o={fetchFeaturesCall:e=>{let{host:t,clientKey:r,headers:n}=e;return i.fetch("".concat(t,"/api/features/").concat(r),{headers:n})},fetchRemoteEvalCall:e=>{let{host:t,clientKey:r,payload:n,headers:o}=e;const a={method:"POST",headers:{"Content-Type":"application/json",...o},body:JSON.stringify(n)};return i.fetch("".concat(t,"/api/eval/").concat(r),a)},eventSourceCall:e=>{let{host:t,clientKey:r,headers:n}=e;return n?new i.EventSource("".concat(t,"/sub/").concat(r),{headers:n}):new i.EventSource("".concat(t,"/sub/").concat(r))},startIdleListener:()=>{let e;if(!("undefined"!=typeof window&&"undefined"!=typeof document))return;const t=()=>{"visible"===document.visibilityState?(window.clearTimeout(e),u.forEach((e=>{e&&"idle"===e.state&&P(e)}))):"hidden"===document.visibilityState&&(e=window.setTimeout(m,n.idleStreamInterval))};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(i.localStorage=globalThis.localStorage)}catch(e){}const a=new Map;let s=!1;const c=new Map,l=new Map,u=new Map,d=new Set;async function f(e,t,r,a,l,u){u||(n.backgroundSync=!1);const f=await async function(e,t,r,a){const l=v(e),u=g(e),f=new Date;await async function(){if(s)return;s=!0;try{if(i.localStorage){const e=await i.localStorage.getItem(n.cacheKey);if(e){const t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach((e=>{let[t,r]=e;c.set(t,{...r,staleAt:new Date(r.staleAt)})})),b()}}}catch(e){}if(!n.disableIdleStreams){const e=o.startIdleListener();e&&(o.stopIdleListener=e)}}();const p=c.get(u);return p&&!a&&(t||p.staleAt>f)?(p.sse&&d.add(l),p.staleAt<f?S(e):A(e),p.data):await function(e,t){return new Promise((r=>{let n,i=!1;const o=e=>{i||(i=!0,n&&clearTimeout(n),r(e||null))};t&&(n=setTimeout((()=>o()),t)),e.then((e=>o(e))).catch((()=>o()))}))}(S(e),r)}(e,a,t,r);l&&f&&await w(e,f)}function p(e){const t=v(e),r=a.get(t)||new Set;r.add(e),a.set(t,r)}function h(e){a.forEach((t=>t.delete(e)))}function m(){u.forEach((e=>{e&&(e.state="idle",x(e))}))}async function y(){try{if(!i.localStorage)return;await i.localStorage.setItem(n.cacheKey,JSON.stringify(Array.from(c.entries())))}catch(e){}}function v(e){const[t,r]=e.getApiInfo();return"".concat(t,"||").concat(r)}function g(e){const t=v(e);if(!e.isRemoteEval())return t;const r=e.getAttributes(),n=e.getCacheKeyAttributes()||Object.keys(e.getAttributes()),i={};n.forEach((e=>{i[e]=r[e]}));const o=e.getForcedVariations(),a=e.getUrl();return"".concat(t,"||").concat(JSON.stringify({ca:i,fv:o,url:a}))}function b(){const e=Array.from(c.entries()).map((e=>{let[t,r]=e;return{key:t,staleAt:r.staleAt.getTime()}})).sort(((e,t)=>e.staleAt-t.staleAt)),t=Math.min(Math.max(0,c.size-n.maxEntries),c.size);for(let r=0;r<t;r++)c.delete(e[r].key)}function E(e,t,r){const i=r.dateUpdated||"",o=new Date(Date.now()+n.staleTTL),s=c.get(t);if(s&&i&&s.version===i)return s.staleAt=o,void y();c.set(t,{data:r,version:i,staleAt:o,sse:d.has(e)}),b(),y();const l=a.get(e);l&&l.forEach((e=>w(e,r)))}async function w(e,t){await(t.encryptedExperiments?e.setEncryptedExperiments(t.encryptedExperiments,void 0,i.SubtleCrypto):e.setExperiments(t.experiments||e.getExperiments())),await(t.encryptedFeatures?e.setEncryptedFeatures(t.encryptedFeatures,void 0,i.SubtleCrypto):e.setFeatures(t.features||e.getFeatures()))}async function S(e){const{apiHost:t,apiRequestHeaders:r}=e.getApiHosts(),n=e.getClientKey(),i=e.isRemoteEval(),a=v(e),s=g(e);let c=l.get(s);if(!c){c=(i?o.fetchRemoteEvalCall({host:t,clientKey:n,payload:{attributes:e.getAttributes(),forcedVariations:e.getForcedVariations(),forcedFeatures:Array.from(e.getForcedFeatures().entries()),url:e.getUrl()},headers:r}):o.fetchFeaturesCall({host:t,clientKey:n,headers:r})).then((e=>("enabled"===e.headers.get("x-sse-support")&&d.add(a),e.json()))).then((t=>(E(a,s,t),A(e),l.delete(s),t))).catch((e=>(l.delete(s),Promise.resolve({})))),l.set(s,c)}return await c}function A(e){const t=v(e),r=g(e),{streamingHost:o,streamingHostRequestHeaders:s}=e.getApiHosts(),c=e.getClientKey();if(n.backgroundSync&&d.has(t)&&i.EventSource){if(u.has(t))return;const e={src:null,host:o,clientKey:c,headers:s,cb:n=>{try{if("features-updated"===n.type){const e=a.get(t);e&&e.forEach((e=>{S(e)}))}else if("features"===n.type){const e=JSON.parse(n.data);E(t,r,e)}e.errors=0}catch(t){_(e)}},errors:0,state:"active"};u.set(t,e),P(e)}}function _(e){if("idle"!==e.state&&(e.errors++,e.errors>3||e.src&&2===e.src.readyState)){const t=Math.pow(3,e.errors-3)*(1e3+1e3*Math.random());x(e),setTimeout((()=>{["idle","active"].includes(e.state)||P(e)}),Math.min(t,3e5))}}function x(e){e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null,"active"===e.state&&(e.state="disabled"))}function P(e){e.src=o.eventSourceCall({host:e.host,clientKey:e.clientKey,headers:e.headers}),e.state="active",e.src.addEventListener("features",e.cb),e.src.addEventListener("features-updated",e.cb),e.src.onerror=()=>_(e),e.src.onopen=()=>{e.errors=0}}},19935:(e,t,r)=>{"use strict";r.d(t,{a:()=>o});var n=r(70534);const i={};function o(e,t){if("$or"in t)return d(e,t.$or);if("$nor"in t)return!d(e,t.$nor);if("$and"in t)return function(e,t){for(let r=0;r<t.length;r++)if(!o(e,t[r]))return!1;return!0}(e,t.$and);if("$not"in t)return!o(e,t.$not);for(const[r,n]of Object.entries(t))if(!s(n,a(e,r)))return!1;return!0}function a(e,t){const r=t.split(".");let n=e;for(let e=0;e<r.length;e++){if(!n||"object"!=typeof n||!(r[e]in n))return null;n=n[r[e]]}return n}function s(e,t){if("string"==typeof e)return t+""===e;
2if("number"==typeof e)return 1*t===e;if("boolean"==typeof e)return!!t===e;if(null===e)return null===t;if(Array.isArray(e)||!c(e))return JSON.stringify(t)===JSON.stringify(e);for(const r in e)if(!u(r,t,e[r]))return!1;return!0}function c(e){const t=Object.keys(e);return t.length>0&&t.filter((e=>"$"===e[0])).length===t.length}function l(e,t){return Array.isArray(e)?e.some((e=>t.includes(e))):t.includes(e)}function u(e,t,r){switch(e){case"$veq":return(0,n.Ij)(t)===(0,n.Ij)(r);case"$vne":return(0,n.Ij)(t)!==(0,n.Ij)(r);case"$vgt":return(0,n.Ij)(t)>(0,n.Ij)(r);case"$vgte":return(0,n.Ij)(t)>=(0,n.Ij)(r);case"$vlt":return(0,n.Ij)(t)<(0,n.Ij)(r);case"$vlte":return(0,n.Ij)(t)<=(0,n.Ij)(r);case"$eq":return t===r;case"$ne":return t!==r;case"$lt":return t<r;case"$lte":return t<=r;case"$gt":return t>r;case"$gte":return t>=r;case"$exists":return r?null!=t:null==t;case"$in":return!!Array.isArray(r)&&l(t,r);case"$nin":return!!Array.isArray(r)&&!l(t,r);case"$not":return!s(r,t);case"$size":return!!Array.isArray(t)&&s(r,t.length);case"$elemMatch":return function(e,t){if(!Array.isArray(e))return!1;const r=c(t)?e=>s(t,e):e=>o(e,t);for(let t=0;t<e.length;t++)if(e[t]&&r(e[t]))return!0;return!1}(t,r);case"$all":if(!Array.isArray(t))return!1;for(let e=0;e<r.length;e++){let n=!1;for(let i=0;i<t.length;i++)if(s(r[e],t[i])){n=!0;break}if(!n)return!1}return!0;case"$regex":try{return(a=r,i[a]||(i[a]=new RegExp(a.replace(/([^\\])\//g,"$1\\/"))),i[a]).test(t)}catch(e){return!1}case"$type":return function(e){if(null===e)return"null";if(Array.isArray(e))return"array";const t=typeof e;return["string","number","boolean","object","undefined"].includes(t)?t:"unknown"}(t)===r;default:return console.error("Unknown operator: "+e),!1}var a}function d(e,t){if(!t.length)return!0;for(let r=0;r<t.length;r++)if(o(e,t[r]))return!0;return!1}},70534:(e,t,r)=>{"use strict";function n(e){let t=2166136261;const r=e.length;for(let n=0;n<r;n++)t^=e.charCodeAt(n),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return t>>>0}function i(e,t,r){return 2===r?n(n(e+t)+"")%1e4/1e4:1===r?n(t+e)%1e3/1e3:null}function o(e,t){return e>=t[0]&&e<t[1]}function a(e,t){const r=i("__"+t[0],e,1);return null!==r&&(r>=t[1]&&r<t[2])}function s(e,t){for(let r=0;r<t.length;r++)if(o(e,t[r]))return r;return-1}function c(e){try{const t=e.replace(/([^\\])\//g,"$1\\/");return new RegExp(t)}catch(e){return void console.error(e)}}function l(e,t){if(!t.length)return!1;let r=!1,n=!1;for(let i=0;i<t.length;i++){const o=d(e,t[i].type,t[i].pattern);if(!1===t[i].include){if(o)return!1}else r=!0,o&&(n=!0)}return n||!r}function u(e,t){try{const r=new URL(t.replace(/^([^:/?]*)\./i,"https://$1.").replace(/\*/g,"_____"),"https://_____"),n=[[e.host,r.host,!1],[e.pathname,r.pathname,!0]];return r.hash&&n.push([e.hash,r.hash,!1]),r.searchParams.forEach(((t,r)=>{n.push([e.searchParams.get(r)||"",t,!1])})),!n.some((e=>!function(e,t,r){try{let n=t.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");return r&&(n="\\/?"+n.replace(/(^\/|\/$)/g,"")+"\\/?"),new RegExp("^"+n+"$","i").test(e)}catch(e){return!1}}(e[0],e[1],e[2])))}catch(e){return!1}}function d(e,t,r){try{const n=new URL(e,"https://_");if("regex"===t){const e=c(r);return!!e&&(e.test(n.href)||e.test(n.href.substring(n.origin.length)))}return"simple"===t&&u(n,r)}catch(e){return!1}}function f(e,t,r){(t=void 0===t?1:t)<0?t=0:t>1&&(t=1);const n=(i=e)<=0?[]:new Array(i).fill(1/i);var i;(r=r||n).length!==e&&(r=n);const o=r.reduce(((e,t)=>t+e),0);(o<.99||o>1.01)&&(r=n);let a=0;return r.map((e=>{const r=a;return a+=e,[r,r+t*e]}))}function p(e,t,r){if(!t)return null;const n=t.split("?")[1];if(!n)return null;const i=n.replace(/#.*/,"").split("&").map((e=>e.split("=",2))).filter((t=>{let[r]=t;return r===e})).map((e=>{let[,t]=e;return parseInt(t)}));return i.length>0&&i[0]>=0&&i[0]<r?i[0]:null}function h(e){try{return e()}catch(e){return console.error(e),!1}}r.d(t,{$l:()=>c,Ij:()=>v,Qz:()=>p,R4:()=>h,Yc:()=>y,d2:()=>a,g2:()=>l,lE:()=>s,nk:()=>f,r4:()=>o,tW:()=>i,v9:()=>g});const m=e=>Uint8Array.from(atob(e),(e=>e.charCodeAt(0)));async function y(e,t,r){if(t=t||"",!(r=r||globalThis.crypto&&globalThis.crypto.subtle))throw new Error("No SubtleCrypto implementation found");try{const n=await r.importKey("raw",m(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[i,o]=e.split("."),a=await r.decrypt({
2name:"AES-CBC",iv:m(i)},n,m(o));return(new TextDecoder).decode(a)}catch(e){throw new Error("Failed to decrypt")}}function v(e){"number"==typeof e&&(e+=""),e&&"string"==typeof e||(e="0");const t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return 3===t.length&&t.push("~"),t.map((e=>e.match(/^[0-9]+$/)?e.padStart(5," "):e)).join("-")}function g(){let e;try{e="0.31.0"}catch(t){e=""}return e}},94859:(e,t,r)=>{"use strict";function n(e,[t,r]){return Math.min(r,Math.max(t,e))}r.d(t,{q:()=>n})},23315:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{m:()=>n})},20198:(e,t,r)=>{"use strict";r.d(t,{UC:()=>Y,Y9:()=>H,bL:()=>G,l9:()=>$,q7:()=>W});var n=r(14041),i=r(65087),o=r(15708),a=r(23349),s=r(23315),c=r(88049),l=r(61601),u=r(80888),d=r(12933),f=r(55865),p=r(31085),h="Accordion",m=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[y,v,g]=(0,o.N)(h),[b,E]=(0,i.A)(h,[g,u.z3]),w=(0,u.z3)(),S=n.forwardRef(((e,t)=>{const{type:r,...n}=e,i=n,o=n;return(0,p.jsx)(y.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,p.jsx)(k,{...o,ref:t}):(0,p.jsx)(I,{...i,ref:t})})}));S.displayName=h;var[A,_]=b(h),[x,P]=b(h,{collapsible:!1}),I=n.forwardRef(((e,t)=>{const{value:r,defaultValue:i,onValueChange:o=(()=>{}),collapsible:a=!1,...s}=e,[l,u]=(0,c.i)({prop:r,defaultProp:i,onChange:o});return(0,p.jsx)(A,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:u,onItemClose:n.useCallback((()=>a&&u("")),[a,u]),children:(0,p.jsx)(x,{scope:e.__scopeAccordion,collapsible:a,children:(0,p.jsx)(C,{...s,ref:t})})})})),k=n.forwardRef(((e,t)=>{const{value:r,defaultValue:i,onValueChange:o=(()=>{}),...a}=e,[s=[],l]=(0,c.i)({prop:r,defaultProp:i,onChange:o}),u=n.useCallback((e=>l(((t=[])=>[...t,e]))),[l]),d=n.useCallback((e=>l(((t=[])=>t.filter((t=>t!==e))))),[l]);return(0,p.jsx)(A,{scope:e.__scopeAccordion,value:s,onItemOpen:u,onItemClose:d,children:(0,p.jsx)(x,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(C,{...a,ref:t})})})})),[O,T]=b(h),C=n.forwardRef(((e,t)=>{const{__scopeAccordion:r,disabled:i,dir:o,orientation:c="vertical",...u}=e,d=n.useRef(null),h=(0,a.s)(d,t),g=v(r),b="ltr"===(0,f.jH)(o),E=(0,s.m)(e.onKeyDown,(e=>{if(!m.includes(e.key))return;const t=e.target,r=g().filter((e=>!e.ref.current?.disabled)),n=r.findIndex((e=>e.ref.current===t)),i=r.length;if(-1===n)return;e.preventDefault();let o=n;const a=i-1,s=()=>{o=n+1,o>a&&(o=0)},l=()=>{o=n-1,o<0&&(o=a)};switch(e.key){case"Home":o=0;break;case"End":o=a;break;case"ArrowRight":"horizontal"===c&&(b?s():l());break;case"ArrowDown":"vertical"===c&&s();break;case"ArrowLeft":"horizontal"===c&&(b?l():s());break;case"ArrowUp":"vertical"===c&&l()}const u=o%i;r[u].ref.current?.focus()}));return(0,p.jsx)(O,{scope:r,disabled:i,direction:o,orientation:c,children:(0,p.jsx)(y.Slot,{scope:r,children:(0,p.jsx)(l.sG.div,{...u,"data-orientation":c,ref:h,onKeyDown:i?void 0:E})})})})),R="AccordionItem",[N,L]=b(R),D=n.forwardRef(((e,t)=>{const{__scopeAccordion:r,value:n,...i}=e,o=T(R,r),a=_(R,r),s=w(r),c=(0,d.B)(),l=n&&a.value.includes(n)||!1,f=o.disabled||e.disabled;return(0,p.jsx)(N,{scope:r,open:l,disabled:f,triggerId:c,children:(0,p.jsx)(u.bL,{"data-orientation":o.orientation,"data-state":z(l),...s,...i,ref:t,disabled:f,open:l,onOpenChange:e=>{e?a.onItemOpen(n):a.onItemClose(n)}})})}));D.displayName=R;var M="AccordionHeader",F=n.forwardRef(((e,t)=>{const{__scopeAccordion:r,...n}=e,i=T(h,r),o=L(M,r);return(0,p.jsx)(l.sG.h3,{"data-orientation":i.orientation,"data-state":z(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})}));F.displayName=M;var j="AccordionTrigger",B=n.forwardRef(((e,t)=>{const{__scopeAccordion:r,...n}=e,i=T(h,r),o=L(j,r),a=P(j,r),s=w(r);return(0,p.jsx)(y.ItemSlot,{scope:r,children:(0,p.jsx)(u.l9,{"aria-disabled":o.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...s,...n,ref:t})})}));B.displayName=j;var V="AccordionContent",U=n.forwardRef(((e,t)=>{const{__scopeAccordion:r,...n}=e,i=T(h,r),o=L(V,r),a=w(r);return(0,p.jsx)(u.UC,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})}));function z(e){return e?"open":"closed"}U.displayName=V;var G=S,W=D,H=F,$=B,Y=U},35321:(e,t,r)=>{"use strict";r.d(t,{b:()=>s});var n=r(14041),i=r(61601),o=r(31085),a=n.forwardRef(((e,t)=>{const{children:r,width:n=10,height:a=5,...s}=e;return(0,o.jsx)(i.sG.svg,{...s,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,o.jsx)("polygon",{points:"0,0 30,0 15,10"})})}));a.displayName="Arrow";var s=a},36273:(e,t,r)=>{"use strict";r.d(t,{H4:()=>w,_V:()=>E,bL:()=>b});var n=r(14041),i=r(65087),o=r(73645),a=r(47210),s=r(61601),c=r(31085),l="Avatar",[u,d]=(0,i.A)(l),[f,p]=u(l),h=n.forwardRef(((e,t)=>{const{__scopeAvatar:r,...i}=e,[o,a]=n.useState("idle");return(0,c.jsx)(f,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:(0,c.jsx)(s.sG.span,{...i,ref:t})})}));h.displayName=l;var m="AvatarImage",y=n.forwardRef(((e,t)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:l=(()=>{}),...u}=e,d=p(m,r),f=function(e){const[t,r]=n.useState("idle");return(0,a.N)((()=>
2{if(!e)return void r("error");let t=!0;const n=new window.Image,i=e=>()=>{t&&r(e)};return r("loading"),n.onload=i("loaded"),n.onerror=i("error"),n.src=e,()=>{t=!1}}),[e]),t}(i),h=(0,o.c)((e=>{l(e),d.onImageLoadingStatusChange(e)}));return(0,a.N)((()=>{"idle"!==f&&h(f)}),[f,h]),"loaded"===f?(0,c.jsx)(s.sG.img,{...u,ref:t,src:i}):null}));y.displayName=m;var v="AvatarFallback",g=n.forwardRef(((e,t)=>{const{__scopeAvatar:r,delayMs:i,...o}=e,a=p(v,r),[l,u]=n.useState(void 0===i);return n.useEffect((()=>{if(void 0!==i){const e=window.setTimeout((()=>u(!0)),i);return()=>window.clearTimeout(e)}}),[i]),l&&"loaded"!==a.imageLoadingStatus?(0,c.jsx)(s.sG.span,{...o,ref:t}):null}));g.displayName=v;var b=h,E=y,w=g},91129:(e,t,r)=>{"use strict";r.d(t,{C1:()=>x,bL:()=>_});var n=r(14041),i=r(23349),o=r(65087),a=r(23315),s=r(88049),c=r(40763),l=r(87071),u=r(80813),d=r(61601),f=r(31085),p="Checkbox",[h,m]=(0,o.A)(p),[y,v]=h(p),g=n.forwardRef(((e,t)=>{const{__scopeCheckbox:r,name:o,checked:c,defaultChecked:l,required:u,disabled:p,value:h="on",onCheckedChange:m,...v}=e,[g,b]=n.useState(null),E=(0,i.s)(t,(e=>b(e))),_=n.useRef(!1),x=!g||Boolean(g.closest("form")),[P=!1,I]=(0,s.i)({prop:c,defaultProp:l,onChange:m}),k=n.useRef(P);return n.useEffect((()=>{const e=g?.form;if(e){const t=()=>I(k.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[g,I]),(0,f.jsxs)(y,{scope:r,state:P,disabled:p,children:[(0,f.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":S(P)?"mixed":P,"aria-required":u,"data-state":A(P),"data-disabled":p?"":void 0,disabled:p,value:h,...v,ref:E,onKeyDown:(0,a.m)(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:(0,a.m)(e.onClick,(e=>{I((e=>!!S(e)||!e)),x&&(_.current=e.isPropagationStopped(),_.current||e.stopPropagation())}))}),x&&(0,f.jsx)(w,{control:g,bubbles:!_.current,name:o,value:h,checked:P,required:u,disabled:p,style:{transform:"translateX(-100%)"}})]})}));g.displayName=p;var b="CheckboxIndicator",E=n.forwardRef(((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...i}=e,o=v(b,r);return(0,f.jsx)(u.C,{present:n||S(o.state)||!0===o.state,children:(0,f.jsx)(d.sG.span,{"data-state":A(o.state),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})}));E.displayName=b;var w=e=>{const{control:t,checked:r,bubbles:i=!0,...o}=e,a=n.useRef(null),s=(0,c.Z)(r),u=(0,l.X)(t);return n.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==r&&n){const t=new Event("click",{bubbles:i});e.indeterminate=S(r),n.call(e,!S(r)&&r),e.dispatchEvent(t)}}),[s,r,i]),(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:!S(r)&&r,...o,tabIndex:-1,ref:a,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function S(e){return"indeterminate"===e}function A(e){return S(e)?"indeterminate":e?"checked":"unchecked"}var _=g,x=E},80888:(e,t,r)=>{"use strict";r.d(t,{UC:()=>I,bL:()=>x,l9:()=>P,z3:()=>m});var n=r(14041),i=r(23315),o=r(65087),a=r(88049),s=r(47210),c=r(23349),l=r(61601),u=r(80813),d=r(12933),f=r(31085),p="Collapsible",[h,m]=(0,o.A)(p),[y,v]=h(p),g=n.forwardRef(((e,t)=>{const{__scopeCollapsible:r,open:i,defaultOpen:o,disabled:s,onOpenChange:c,...u}=e,[p=!1,h]=(0,a.i)({prop:i,defaultProp:o,onChange:c});return(0,f.jsx)(y,{scope:r,disabled:s,contentId:(0,d.B)(),open:p,onOpenToggle:n.useCallback((()=>h((e=>!e))),[h]),children:(0,f.jsx)(l.sG.div,{"data-state":_(p),"data-disabled":s?"":void 0,...u,ref:t})})}));g.displayName=p;var b="CollapsibleTrigger",E=n.forwardRef(((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=v(b,r);return(0,f.jsx)(l.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":_(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:(0,i.m)(e.onClick,o.onOpenToggle)})}));E.displayName=b;var w="CollapsibleContent",S=n.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,i=v(w,e.__scopeCollapsible);return(0,f.jsx)(u.C,{present:r||i.open,children:({present:e})=>(0,f.jsx)(A,{...n,ref:t,present:e})})}));S.displayName=w;var A=n.forwardRef(((e,t)=>{const{__scopeCollapsible:r,present:i,children:o,...a}=e,u=v(w,r),[d,p]=n.useState(i),h=n.useRef(null),m=(0,c.s)(t,h),y=n.useRef(0),g=y.current,b=n.useRef(0),E=b.current,S=u.open||d,A=n.useRef(S),x=n.useRef();return n.useEffect((()=>{const e=requestAnimationFrame((()=>A.current=!1));return()=>cancelAnimationFrame(e)}),[]),(0,s.N)((()=>{const e=h.current;if(e){x.current=x.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();y.current=t.height,b.current=t.width,A.current||(e.style.transitionDuration=x.current.transitionDuration,e.style.animationName=x.current.animationName),p(i)}}),[u.open,i]),(0,f.jsx)(l.sG.div,{"data-state":_(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!S,...a,ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style},children:S&&o})}));function _(e){return e?"open":"closed"}var x=g,P=E,I=S},15708:(e,t,r)=>{"use strict";r.d(t,{N:()=>c});var n=r(14041),i=r(65087),o=r(23349),a=r(34412),s=r(31085);function c(e){const t=e+"CollectionProvider",[r,c]=(0,i.A)(t),[l,u]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{const{scope:t,children:r}=e,i=n.useRef(null),o=n.useRef(new Map).current;return(0,s.jsx)(l,{scope:t,itemMap:o,collectionRef:i,children:r})};d.displayName=t;const f=e+"CollectionSlot",p=n.forwardRef(((e,t)=>{const{scope:r,children:n}=e,i=u(f,r),c=(0,o.s)(t,i.collectionRef);return(0,s.jsx)(a.DX,{ref:c,children:n})}));p.displayName=f;const h=e+"CollectionItemSlot",m="data-radix-collection-item",y=n.forwardRef(((e,t)=>{const{scope:r,children:i,...c}=e,l=n.useRef(null),d=(0,o.s)(t,l),f=u(h,r);return n.useEffect((()=>(f.itemMap.set(l,{ref:l,...c}),()=>{f.itemMap.delete(l)}))),(0,s.jsx)(a.DX,{[m]:"",ref:d,children:i})}));return y.displayName=h,[{Provider:d,Slot:p,ItemSlot:y},function(t){const r=u(e+"CollectionConsumer",t);return n.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(r.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)))}),[r.collectionRef,r.itemMap])},c]}},23349:(e,t,r)=>{"use strict";r.d(t,{s:()=>o,t:()=>i});var n=r(14041);function i(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function o(...e){return n.useCallback(i(...e),e)}},65087:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,q:()=>o});var n=r(14041),i=r(31085);function o(e,t){const r=n.createContext(t);function o(e){const{children:t,...o}=e,a=n.useMemo((()=>o),Object.values(o));return(0,i.jsx)(r.Provider,{value:a,children:t})}return o.displayName=e+"Provider",[o,function(i){const o=n.useContext(r);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let r=[];const o=()=>{const t=r.map((e=>n.createContext(e)));return function(r){const i=r?.[e]||t;return n.useMemo((()=>({[`__scope${e}`]:{...r,[e]:i}})),[r,i])}};return o.scopeName=e,[function(t,o){const a=n.createContext(o),s=r.length;function c(t){const{scope:r,children:o,...c}=t,l=r?.[e][s]||a,u=n.useMemo((()=>
2c),Object.values(c));return(0,i.jsx)(l.Provider,{value:u,children:o})}return r=[...r,o],c.displayName=t+"Provider",[c,function(r,i){const c=i?.[e][s]||a,l=n.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},s(o,...t)]}function s(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const i=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return n.useMemo((()=>({[`__scope${t.scopeName}`]:i})),[i])}};return r.scopeName=t.scopeName,r}},9984:(e,t,r)=>{"use strict";r.d(t,{UC:()=>te,VY:()=>ne,ZL:()=>J,bL:()=>X,bm:()=>ie,hE:()=>re,hJ:()=>ee,l9:()=>Z});var n=r(14041),i=r(23315),o=r(23349),a=r(65087),s=r(12933),c=r(88049),l=r(32932),u=r(77893),d=r(21322),f=r(80813),p=r(61601),h=r(50757),m=r(70887),y=r(24788),v=r(34412),g=r(31085),b="Dialog",[E,w]=(0,a.A)(b),[S,A]=E(b),_=e=>{const{__scopeDialog:t,children:r,open:i,defaultOpen:o,onOpenChange:a,modal:l=!0}=e,u=n.useRef(null),d=n.useRef(null),[f=!1,p]=(0,c.i)({prop:i,defaultProp:o,onChange:a});return(0,g.jsx)(S,{scope:t,triggerRef:u,contentRef:d,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback((()=>p((e=>!e))),[p]),modal:l,children:r})};_.displayName=b;var x="DialogTrigger",P=n.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,a=A(x,r),s=(0,o.s)(t,a.triggerRef);return(0,g.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":H(a.open),...n,ref:s,onClick:(0,i.m)(e.onClick,a.onOpenToggle)})}));P.displayName=x;var I="DialogPortal",[k,O]=E(I,{forceMount:void 0}),T=e=>{const{__scopeDialog:t,forceMount:r,children:i,container:o}=e,a=A(I,t);return(0,g.jsx)(k,{scope:t,forceMount:r,children:n.Children.map(i,(e=>(0,g.jsx)(f.C,{present:r||a.open,children:(0,g.jsx)(d.Z,{asChild:!0,container:o,children:e})})))})};T.displayName=I;var C="DialogOverlay",R=n.forwardRef(((e,t)=>{const r=O(C,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=A(C,e.__scopeDialog);return o.modal?(0,g.jsx)(f.C,{present:n||o.open,children:(0,g.jsx)(N,{...i,ref:t})}):null}));R.displayName=C;var N=n.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,i=A(C,r);return(0,g.jsx)(m.A,{as:v.DX,allowPinchZoom:!0,shards:[i.contentRef],children:(0,g.jsx)(p.sG.div,{"data-state":H(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})})),L="DialogContent",D=n.forwardRef(((e,t)=>{const r=O(L,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=A(L,e.__scopeDialog);return(0,g.jsx)(f.C,{present:n||o.open,children:o.modal?(0,g.jsx)(M,{...i,ref:t}):(0,g.jsx)(F,{...i,ref:t})})}));D.displayName=L;var M=n.forwardRef(((e,t)=>{const r=A(L,e.__scopeDialog),a=n.useRef(null),s=(0,o.s)(t,r.contentRef,a);return n.useEffect((()=>{const e=a.current;if(e)return(0,y.Eq)(e)}),[]),(0,g.jsx)(j,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,(e=>{e.preventDefault(),r.triggerRef.current?.focus()})),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()})),onFocusOutside:(0,i.m)(e.onFocusOutside,(e=>e.preventDefault()))})})),F=n.forwardRef(((e,t)=>{const r=A(L,e.__scopeDialog),i=n.useRef(!1),o=n.useRef(!1);return(0,g.jsx)(j,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const n=t.target,a=r.triggerRef.current?.contains(n);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),j=n.forwardRef(((e,t)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,...c}=e,d=A(L,r),f=n.useRef(null),p=(0,o.s)(t,f);return(0,h.Oh)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(u.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,g.jsx)(l.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":H(d.open),...c,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(K,{titleId:d.titleId}),(0,g.jsx)(Q,{contentRef:f,descriptionId:d.descriptionId})]})]})})),B="DialogTitle",V=n.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,i=A(B,r);return(0,g.jsx)(p.sG.h2,{id:i.titleId,...n,ref:t})}));V.displayName=B;var U="DialogDescription",z=n.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,i=A(U,r);return(0,g.jsx)(p.sG.p,{id:i.descriptionId,...n,ref:t})}));z.displayName=U;var G="DialogClose",W=n.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,o=A(G,r);return(0,g.jsx)(p.sG.button,{type:"button",...n,ref:t,onClick:(0,i.m)(e.onClick,(()=>o.onOpenChange(!1)))})}));function H(e){return e?"open":"closed"}W.displayName=G;var $="DialogTitleWarning",[Y,q]=(0,a.q)($,{contentName:L,titleName:B,docsSlug:"dialog"}),K=({titleId:e})=>{const t=q($),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return n.useEffect((()=>
2{if(e){document.getElementById(e)||console.error(r)}}),[r,e]),null},Q=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${q("DialogDescriptionWarning").contentName}}.`;return n.useEffect((()=>{const n=e.current?.getAttribute("aria-describedby");if(t&&n){document.getElementById(t)||console.warn(r)}}),[r,e,t]),null},X=_,Z=P,J=T,ee=R,te=D,re=V,ne=z,ie=W},55865:(e,t,r)=>{"use strict";r.d(t,{jH:()=>o});var n=r(14041),i=(r(31085),n.createContext(void 0));function o(e){const t=n.useContext(i);return e||t||"ltr"}},32932:(e,t,r)=>{"use strict";r.d(t,{qW:()=>m});var n,i=r(14041),o=r(23315),a=r(61601),s=r(23349),c=r(73645),l=r(60095),u=r(31085),d="dismissableLayer.update",f="dismissableLayer.pointerDownOutside",p="dismissableLayer.focusOutside",h=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=i.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:E,onDismiss:w,...S}=e,A=i.useContext(h),[_,x]=i.useState(null),P=_?.ownerDocument??globalThis?.document,[,I]=i.useState({}),k=(0,s.s)(t,(e=>x(e))),O=Array.from(A.layers),[T]=[...A.layersWithOutsidePointerEventsDisabled].slice(-1),C=O.indexOf(T),R=_?O.indexOf(_):-1,N=A.layersWithOutsidePointerEventsDisabled.size>0,L=R>=C,D=function(e,t=globalThis?.document){const r=(0,c.c)(e),n=i.useRef(!1),o=i.useRef((()=>{}));return i.useEffect((()=>{const e=e=>{if(e.target&&!n.current){let n=function(){g(f,r,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...A.branches].some((e=>e.contains(t)));L&&!r&&(y?.(e),E?.(e),e.defaultPrevented||w?.())}),P),M=function(e,t=globalThis?.document){const r=(0,c.c)(e),n=i.useRef(!1);return i.useEffect((()=>{const e=e=>{if(e.target&&!n.current){g(p,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...A.branches].some((e=>e.contains(t)))||(b?.(e),E?.(e),e.defaultPrevented||w?.())}),P);return(0,l.U)((e=>{R===A.layers.size-1&&(m?.(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))}),P),i.useEffect((()=>{if(_)return r&&(0===A.layersWithOutsidePointerEventsDisabled.size&&(n=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),A.layersWithOutsidePointerEventsDisabled.add(_)),A.layers.add(_),v(),()=>{r&&1===A.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=n)}}),[_,P,r,A]),i.useEffect((()=>()=>{_&&(A.layers.delete(_),A.layersWithOutsidePointerEventsDisabled.delete(_),v())}),[_,A]),i.useEffect((()=>{const e=()=>I({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)}),[]),(0,u.jsx)(a.sG.div,{...S,ref:k,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,D.onPointerDownCapture)})}));m.displayName="DismissableLayer";var y=i.forwardRef(((e,t)=>{const r=i.useContext(h),n=i.useRef(null),o=(0,s.s)(t,n);return i.useEffect((()=>{const e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),(0,u.jsx)(a.sG.div,{...e,ref:o})}));function v(){const e=new CustomEvent(d);document.dispatchEvent(e)}function g(e,t,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,a.hO)(i,o):i.dispatchEvent(o)}y.displayName="DismissableLayerBranch"},12091:(e,t,r)=>{"use strict";r.d(t,{G5:()=>K,H_:()=>z,JU:()=>V,Pb:()=>Y,UC:()=>j,VF:()=>H,YJ:()=>B,ZL:()=>F,ZP:()=>q,bL:()=>D,hN:()=>W,l9:()=>M,q7:()=>U,wv:()=>$,z6:()=>G});var n=r(14041),i=r(23315),o=r(23349),a=r(65087),s=r(88049),c=r(61601),l=r(38267),u=r(12933),d=r(31085),f="DropdownMenu",[p,h]=(0,a.A)(f,[l.UE]),m=(0,l.UE)(),[y,v]=p(f),g=e=>{const{__scopeDropdownMenu:t,children:r,dir:i,open:o,defaultOpen:a,onOpenChange:c,modal:f=!0}=e,p=m(t),h=n.useRef(null),[v=!1,g]=(0,s.i)({prop:o,defaultProp:a,onChange:c});return(0,d.jsx)(y,{scope:t,triggerId:(0,u.B)(),triggerRef:h,contentId:(0,u.B)(),open:v,onOpenChange:g,onOpenToggle:n.useCallback((()=>g((e=>!e))),[g]),modal:f,children:(0,d.jsx)(l.bL,{...p,open:v,onOpenChange:g,dir:i,modal:f,children:r})})};g.displayName=f;var b="DropdownMenuTrigger",E=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,s=v(b,r),u=m(r);return(0,d.jsx)(l.Mz,{asChild:!0,...u,children:(0,d.jsx)(c.sG.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:(0,o.t)(t,s.triggerRef),onPointerDown:(0,i.m)(e.onPointerDown,(e=>{n||0!==e.button||!1!==e.ctrlKey||(s.onOpenToggle(),s.open||e.preventDefault())})),onKeyDown:(0,i.m)(e.onKeyDown,(e=>
2{n||(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));E.displayName=b;var w=e=>{const{__scopeDropdownMenu:t,...r}=e,n=m(t);return(0,d.jsx)(l.ZL,{...n,...r})};w.displayName="DropdownMenuPortal";var S="DropdownMenuContent",A=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=v(S,r),s=m(r),c=n.useRef(!1);return(0,d.jsx)(l.UC,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...o,ref:t,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,(e=>{c.current||a.triggerRef.current?.focus(),c.current=!1,e.preventDefault()})),onInteractOutside:(0,i.m)(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;a.modal&&!n||(c.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));A.displayName=S;var _=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(l.YJ,{...i,...n,ref:t})}));_.displayName="DropdownMenuGroup";var x=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(l.JU,{...i,...n,ref:t})}));x.displayName="DropdownMenuLabel";var P=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(l.q7,{...i,...n,ref:t})}));P.displayName="DropdownMenuItem";var I=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(l.H_,{...i,...n,ref:t})}));I.displayName="DropdownMenuCheckboxItem";var k=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(l.z6,{...i,...n,ref:t})}));k.displayName="DropdownMenuRadioGroup";var O=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(l.hN,{...i,...n,ref:t})}));O.displayName="DropdownMenuRadioItem";var T=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(l.VF,{...i,...n,ref:t})}));T.displayName="DropdownMenuItemIndicator";var C=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(l.wv,{...i,...n,ref:t})}));C.displayName="DropdownMenuSeparator";var R=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(l.i3,{...i,...n,ref:t})}));R.displayName="DropdownMenuArrow";var N=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(l.ZP,{...i,...n,ref:t})}));N.displayName="DropdownMenuSubTrigger";var L=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(l.G5,{...i,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));L.displayName="DropdownMenuSubContent";var D=g,M=E,F=w,j=A,B=_,V=x,U=P,z=I,G=k,W=O,H=T,$=C,Y=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:i,defaultOpen:o}=e,a=m(t),[c=!1,u]=(0,s.i)({prop:n,defaultProp:o,onChange:i});return(0,d.jsx)(l.Pb,{...a,open:c,onOpenChange:u,children:r})},q=N,K=L},50757:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>o});var n=r(14041),i=0;function o(){n.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??a()),document.body.insertAdjacentElement("beforeend",e[1]??a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),i--}}),[])}function a(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77893:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});var n=r(14041),i=r(23349),o=r(61601),a=r(73645),s=r(31085),c="focusScope.autoFocusOnMount",l="focusScope.autoFocusOnUnmount",u={bubbles:!1,cancelable:!0},d=n.forwardRef(((e,t)=>{const{loop:r=!1,trapped:d=!1,onMountAutoFocus:h,onUnmountAutoFocus:v,...g}=e,[b,E]=n.useState(null),w=(0,a.c)(h),S=(0,a.c)(v),A=n.useRef(null),_=(0,i.s)(t,(e=>E(e))),x=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect((()=>
2{if(d){let e=function(e){if(x.paused||!b)return;const t=e.target;b.contains(t)?A.current=t:m(A.current,{select:!0})},t=function(e){if(x.paused||!b)return;const t=e.relatedTarget;null!==t&&(b.contains(t)||m(A.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&m(b)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[d,b,x.paused]),n.useEffect((()=>{if(b){y.add(x);const t=document.activeElement;if(!b.contains(t)){const r=new CustomEvent(c,u);b.addEventListener(c,w),b.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(m(n,{select:t}),document.activeElement!==r)return}((e=f(b),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&m(b))}return()=>{b.removeEventListener(c,w),setTimeout((()=>{const e=new CustomEvent(l,u);b.addEventListener(l,S),b.dispatchEvent(e),e.defaultPrevented||m(t??document.body,{select:!0}),b.removeEventListener(l,S),y.remove(x)}),0)}}var e}),[b,w,S,x]);const P=n.useCallback((e=>{if(!r&&!d)return;if(x.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[i,o]=function(e){const t=f(e),r=p(t,e),n=p(t.reverse(),e);return[r,n]}(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&m(o,{select:!0})):(e.preventDefault(),r&&m(i,{select:!0})):n===t&&e.preventDefault()}}),[r,d,x.paused]);return(0,s.jsx)(o.sG.div,{tabIndex:-1,...g,ref:_,onKeyDown:P})}));function f(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function p(e,t){for(const r of e)if(!h(r,{upTo:t}))return r}function h(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function m(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}d.displayName="FocusScope";var y=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=v(e,t),e.unshift(t)},remove(t){e=v(e,t),e[0]?.resume()}}}();function v(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}},80307:(e,t,r)=>{"use strict";r.d(t,{UC:()=>D,bL:()=>N,i3:()=>M,l9:()=>L});var n,i=r(14041),o=r(90980),a=r(78884),s=r(88049),c=r(64856),l=r(12411),u=r(25503),d=r(62972),f=r(85818),p=r(26743),h=r(31085),m="HoverCard",[y,v]=(0,a.A)(m,[l.Bk]),g=(0,l.Bk)(),[b,E]=y(m),w=e=>{const{__scopeHoverCard:t,children:r,open:n,defaultOpen:o,onOpenChange:a,openDelay:c=700,closeDelay:u=300}=e,d=g(t),f=i.useRef(0),p=i.useRef(0),m=i.useRef(!1),y=i.useRef(!1),[v=!1,E]=(0,s.i)({prop:n,defaultProp:o,onChange:a}),w=i.useCallback((()=>{clearTimeout(p.current),f.current=window.setTimeout((()=>E(!0)),c)}),[c,E]),S=i.useCallback((()=>{clearTimeout(f.current),m.current||y.current||(p.current=window.setTimeout((()=>E(!1)),u))}),[u,E]),A=i.useCallback((()=>E(!1)),[E]);return i.useEffect((()=>()=>{clearTimeout(f.current),clearTimeout(p.current)}),[]),(0,h.jsx)(b,{scope:t,open:v,onOpenChange:E,onOpen:w,onClose:S,onDismiss:A,hasSelectionRef:m,isPointerDownOnContentRef:y,children:(0,h.jsx)(l.bL,{...d,children:r})})};w.displayName=m;var S="HoverCardTrigger",A=i.forwardRef(((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=E(S,r),a=g(r);return(0,h.jsx)(l.Mz,{asChild:!0,...a,children:(0,h.jsx)(f.sG.a,{"data-state":i.open?"open":"closed",...n,ref:t,onPointerEnter:(0,o.m)(e.onPointerEnter,R(i.onOpen)),onPointerLeave:(0,o.m)(e.onPointerLeave,R(i.onClose)),onFocus:(0,o.m)(e.onFocus,i.onOpen),onBlur:(0,o.m)(e.onBlur,i.onClose),onTouchStart:(0,o.m)(e.onTouchStart,(e=>e.preventDefault()))})})}));A.displayName=S;var _="HoverCardPortal",[x,P]=y(_,{forceMount:void 0}),I=e=>{const{__scopeHoverCard:t,forceMount:r,children:n,container:i}=e,o=E(_,t);return(0,h.jsx)(x,{scope:t,forceMount:r,children:(0,h.jsx)(d.C,{present:r||o.open,children:(0,h.jsx)(u.Z,{asChild:!0,container:i,children:n})})})};I.displayName=_;var k="HoverCardContent",O=i.forwardRef(((e,t)=>{const r=P(k,e.__scopeHoverCard),{forceMount:n=r.forceMount,...i}=e,a=E(k,e.__scopeHoverCard);return(0,h.jsx)(d.C,{present:n||a.open,children:(0,h.jsx)(T,{"data-state":a.open?"open":"closed",...i,onPointerEnter:(0,o.m)(e.onPointerEnter,R(a.onOpen)),onPointerLeave:(0,o.m)(e.onPointerLeave,R(a.onClose)),ref:t})})}));O.displayName=k;var T=i.forwardRef(((e,t)=>{const{__scopeHoverCard:r,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:d,...f}=e,m=E(k,r),y=g(r),v=i.useRef(null),b=(0,c.s)(t,v),[w,S]=i.useState(!1);return i.useEffect((()=>
2{if(w){const e=document.body;return n=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=n,e.style.webkitUserSelect=n}}}),[w]),i.useEffect((()=>{if(v.current){const e=()=>{S(!1),m.isPointerDownOnContentRef.current=!1,setTimeout((()=>{""!==document.getSelection()?.toString()&&(m.hasSelectionRef.current=!0)}))};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!1}}}),[m.isPointerDownOnContentRef,m.hasSelectionRef]),i.useEffect((()=>{if(v.current){(function(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t})(v.current).forEach((e=>e.setAttribute("tabindex","-1")))}})),(0,h.jsx)(p.qW,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:(0,o.m)(u,(e=>{e.preventDefault()})),onDismiss:m.onDismiss,children:(0,h.jsx)(l.UC,{...y,...f,onPointerDown:(0,o.m)(f.onPointerDown,(e=>{e.currentTarget.contains(e.target)&&S(!0),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!0})),ref:b,style:{...f.style,userSelect:w?"text":void 0,WebkitUserSelect:w?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})})),C=i.forwardRef(((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=g(r);return(0,h.jsx)(l.i3,{...i,...n,ref:t})}));function R(e){return t=>"touch"===t.pointerType?void 0:e()}C.displayName="HoverCardArrow";var N=w,L=A,D=O,M=C},90980:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{m:()=>n})},48666:(e,t,r)=>{"use strict";r.d(t,{b:()=>s});var n=r(14041),i=r(85818),o=r(31085),a=n.forwardRef(((e,t)=>{const{children:r,width:n=10,height:a=5,...s}=e;return(0,o.jsx)(i.sG.svg,{...s,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,o.jsx)("polygon",{points:"0,0 30,0 15,10"})})}));a.displayName="Arrow";var s=a},64856:(e,t,r)=>{"use strict";r.d(t,{s:()=>a,t:()=>o});var n=r(14041);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let r=!1;const n=e.map((e=>{const n=i(e,t);return r||"function"!=typeof n||(r=!0),n}));if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():i(e[t],null)}}}}function a(...e){return n.useCallback(o(...e),e)}},78884:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(14041),i=r(31085);function o(e,t=[]){let r=[];const o=()=>{const t=r.map((e=>n.createContext(e)));return function(r){const i=r?.[e]||t;return n.useMemo((()=>({[`__scope${e}`]:{...r,[e]:i}})),[r,i])}};return o.scopeName=e,[function(t,o){const a=n.createContext(o),s=r.length;r=[...r,o];const c=t=>{const{scope:r,children:o,...c}=t,l=r?.[e]?.[s]||a,u=n.useMemo((()=>c),Object.values(c));return(0,i.jsx)(l.Provider,{value:u,children:o})};return c.displayName=t+"Provider",[c,function(r,i){const c=i?.[e]?.[s]||a,l=n.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},a(o,...t)]}function a(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const i=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return n.useMemo((()=>({[`__scope${t.scopeName}`]:i})),[i])}};return r.scopeName=t.scopeName,r}},26743:(e,t,r)=>{"use strict";r.d(t,{qW:()=>m});var n,i=r(14041),o=r(90980),a=r(85818),s=r(64856),c=r(73645),l=r(60095),u=r(31085),d="dismissableLayer.update",f="dismissableLayer.pointerDownOutside",p="dismissableLayer.focusOutside",h=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=i.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:E,onDismiss:w,...S}=e,A=i.useContext(h),[_,x]=i.useState(null),P=_?.ownerDocument??globalThis?.document,[,I]=i.useState({}),k=(0,s.s)(t,(e=>
2x(e))),O=Array.from(A.layers),[T]=[...A.layersWithOutsidePointerEventsDisabled].slice(-1),C=O.indexOf(T),R=_?O.indexOf(_):-1,N=A.layersWithOutsidePointerEventsDisabled.size>0,L=R>=C,D=function(e,t=globalThis?.document){const r=(0,c.c)(e),n=i.useRef(!1),o=i.useRef((()=>{}));return i.useEffect((()=>{const e=e=>{if(e.target&&!n.current){let n=function(){g(f,r,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...A.branches].some((e=>e.contains(t)));L&&!r&&(y?.(e),E?.(e),e.defaultPrevented||w?.())}),P),M=function(e,t=globalThis?.document){const r=(0,c.c)(e),n=i.useRef(!1);return i.useEffect((()=>{const e=e=>{if(e.target&&!n.current){g(p,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...A.branches].some((e=>e.contains(t)))||(b?.(e),E?.(e),e.defaultPrevented||w?.())}),P);return(0,l.U)((e=>{R===A.layers.size-1&&(m?.(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))}),P),i.useEffect((()=>{if(_)return r&&(0===A.layersWithOutsidePointerEventsDisabled.size&&(n=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),A.layersWithOutsidePointerEventsDisabled.add(_)),A.layers.add(_),v(),()=>{r&&1===A.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=n)}}),[_,P,r,A]),i.useEffect((()=>()=>{_&&(A.layers.delete(_),A.layersWithOutsidePointerEventsDisabled.delete(_),v())}),[_,A]),i.useEffect((()=>{const e=()=>I({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)}),[]),(0,u.jsx)(a.sG.div,{...S,ref:k,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,D.onPointerDownCapture)})}));m.displayName="DismissableLayer";var y=i.forwardRef(((e,t)=>{const r=i.useContext(h),n=i.useRef(null),o=(0,s.s)(t,n);return i.useEffect((()=>{const e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),(0,u.jsx)(a.sG.div,{...e,ref:o})}));function v(){const e=new CustomEvent(d);document.dispatchEvent(e)}function g(e,t,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,a.hO)(i,o):i.dispatchEvent(o)}y.displayName="DismissableLayerBranch"},12411:(e,t,r)=>{"use strict";r.d(t,{Bk:()=>v,Mz:()=>L,UC:()=>D,bL:()=>N,i3:()=>M});var n=r(14041),i=r(83773),o=r(37241),a=r(54583),s=r(48666),c=r(64856),l=r(78884),u=r(85818),d=r(73645),f=r(47210),p=r(87071),h=r(31085),m="Popper",[y,v]=(0,l.A)(m),[g,b]=y(m),E=e=>{const{__scopePopper:t,children:r}=e,[i,o]=n.useState(null);return(0,h.jsx)(g,{scope:t,anchor:i,onAnchorChange:o,children:r})};E.displayName=m;var w="PopperAnchor",S=n.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...o}=e,a=b(w,r),s=n.useRef(null),l=(0,c.s)(t,s);return n.useEffect((()=>{a.onAnchorChange(i?.current||s.current)})),i?null:(0,h.jsx)(u.sG.div,{...o,ref:l})}));S.displayName=w;var A="PopperContent",[_,x]=y(A),P=n.forwardRef(((e,t)=>{const{__scopePopper:r,side:s="bottom",sideOffset:l=0,align:m="center",alignOffset:y=0,arrowPadding:v=0,avoidCollisions:g=!0,collisionBoundary:E=[],collisionPadding:w=0,sticky:S="partial",hideWhenDetached:x=!1,updatePositionStrategy:P="optimized",onPlaced:I,...k}=e,O=b(A,r),[N,L]=n.useState(null),D=(0,c.s)(t,(e=>L(e))),[M,F]=n.useState(null),j=(0,p.X)(M),B=j?.width??0,V=j?.height??0,U=s+("center"!==m?"-"+m:""),z="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},G=Array.isArray(E)?E:[E],W=G.length>0,H={padding:z,boundary:G.filter(T),altBoundary:W},{refs:$,floatingStyles:Y,placement:q,isPositioned:K,middlewareData:Q}=(0,i.we)({strategy:"fixed",placement:U,whileElementsMounted:(...e)=>(0,o.ll)(...e,{animationFrame:"always"===P}),elements:{reference:O.anchor},middleware:[(0,a.cY)({mainAxis:l+V,alignmentAxis:y}),g&&(0,a.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?(0,a.ER)():void 0,...H}),g&&(0,a.UU)({...H}),(0,a.Ej)({...H,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),M&&(0,i.UE)({element:M,padding:v}),C({arrowWidth:B,arrowHeight:V}),x&&(0,a.jD)({strategy:"referenceHidden",...H})]}),[X,Z]=R(q),J=(0,d.c)(I);(0,f.N)((()=>{K&&J?.()}),[K,J]);const ee=Q.arrow?.x,te=Q.arrow?.y,re=0!==Q.arrow?.centerOffset,[
2ne,ie]=n.useState();return(0,f.N)((()=>{N&&ie(window.getComputedStyle(N).zIndex)}),[N]),(0,h.jsx)("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:K?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[Q.transformOrigin?.x,Q.transformOrigin?.y].join(" "),...Q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,h.jsx)(_,{scope:r,placedSide:X,onArrowChange:F,arrowX:ee,arrowY:te,shouldHideArrow:re,children:(0,h.jsx)(u.sG.div,{"data-side":X,"data-align":Z,...k,ref:D,style:{...k.style,animation:K?void 0:"none"}})})})}));P.displayName=A;var I="PopperArrow",k={top:"bottom",right:"left",bottom:"top",left:"right"},O=n.forwardRef((function(e,t){const{__scopePopper:r,...n}=e,i=x(I,r),o=k[i.placedSide];return(0,h.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,h.jsx)(s.b,{...n,ref:t,style:{...n.style,display:"block"}})})}));function T(e){return null!==e}O.displayName=I;var C=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:i}=t,o=0!==i.arrow?.centerOffset,a=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[c,l]=R(r),u={start:"0%",center:"50%",end:"100%"}[l],d=(i.arrow?.x??0)+a/2,f=(i.arrow?.y??0)+s/2;let p="",h="";return"bottom"===c?(p=o?u:`${d}px`,h=-s+"px"):"top"===c?(p=o?u:`${d}px`,h=`${n.floating.height+s}px`):"right"===c?(p=-s+"px",h=o?u:`${f}px`):"left"===c&&(p=`${n.floating.width+s}px`,h=o?u:`${f}px`),{data:{x:p,y:h}}}});function R(e){const[t,r="center"]=e.split("-");return[t,r]}var N=E,L=S,D=P,M=O},25503:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(14041),i=r(43144),o=r(85818),a=r(47210),s=r(31085),c=n.forwardRef(((e,t)=>{const{container:r,...c}=e,[l,u]=n.useState(!1);(0,a.N)((()=>u(!0)),[]);const d=r||l&&globalThis?.document?.body;return d?i.createPortal((0,s.jsx)(o.sG.div,{...c,ref:t}),d):null}));c.displayName="Portal"},62972:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(14041),i=r(64856),o=r(47210);var a=e=>{const{present:t,children:r}=e,a=function(e){const[t,r]=n.useState(),i=n.useRef({}),a=n.useRef(e),c=n.useRef("none"),l=e?"mounted":"unmounted",[u,d]=function(e,t){return n.useReducer(((e,r)=>t[e][r]??e),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.useEffect((()=>{const e=s(i.current);c.current="mounted"===u?e:"none"}),[u]),(0,o.N)((()=>{const t=i.current,r=a.current;if(r!==e){const n=c.current,i=s(t);if(e)d("MOUNT");else if("none"===i||"none"===t?.display)d("UNMOUNT");else{d(r&&n!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,d]),(0,o.N)((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,n=n=>{const o=s(i.current).includes(n.animationName);if(n.target===t&&o&&(d("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},o=e=>{e.target===t&&(c.current=s(i.current))};return t.addEventListener("animationstart",o),t.addEventListener("animationcancel",n),t.addEventListener("animationend",n),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",o),t.removeEventListener("animationcancel",n),t.removeEventListener("animationend",n)}}d("ANIMATION_END")}),[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:n.useCallback((e=>{e&&(i.current=getComputedStyle(e)),r(e)}),[])}}(t),c="function"==typeof r?r({present:a.isPresent}):n.Children.only(r),l=(0,i.s)(a.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(c));return"function"==typeof r||a.isPresent?n.cloneElement(c,{ref:l}):null};function s(e){return e?.animationName||"none"}a.displayName="Presence"},85818:(e,t,r)=>{"use strict";r.d(t,{hO:()=>c,sG:()=>s});var n=r(14041),i=r(43144),o=r(98753),a=r(31085),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const r=n.forwardRef(((e,r)=>{const{asChild:n,...i}=e,s=n?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function c(e,t){e&&i.flushSync((()=>
2e.dispatchEvent(t)))}},98753:(e,t,r)=>{"use strict";r.d(t,{DX:()=>a});var n=r(14041),i=r(64856),o=r(31085),a=n.forwardRef(((e,t)=>{const{children:r,...i}=e,a=n.Children.toArray(r),c=a.find(l);if(c){const e=c.props.children,r=a.map((t=>t===c?n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null:t));return(0,o.jsx)(s,{...i,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,o.jsx)(s,{...i,ref:t,children:r})}));a.displayName="Slot";var s=n.forwardRef(((e,t)=>{const{children:r,...o}=e;if(n.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r);return n.cloneElement(r,{...u(o,r.props),ref:t?(0,i.t)(t,e):e})}return n.Children.count(r)>1?n.Children.only(null):null}));s.displayName="SlotClone";var c=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function l(e){return n.isValidElement(e)&&e.type===c}function u(e,t){const r={...t};for(const n in t){const i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}},12933:(e,t,r)=>{"use strict";var n;r.d(t,{B:()=>c});var i=r(14041),o=r(47210),a=(n||(n=r.t(i,2)))["useId".toString()]||(()=>{}),s=0;function c(e){const[t,r]=i.useState(a());return(0,o.N)((()=>{e||r((e=>e??String(s++)))}),[e]),e||(t?`radix-${t}`:"")}},97914:(e,t,r)=>{"use strict";r.d(t,{b:()=>s});var n=r(14041),i=r(61601),o=r(31085),a=n.forwardRef(((e,t)=>(0,o.jsx)(i.sG.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));a.displayName="Label";var s=a},38267:(e,t,r)=>{"use strict";r.d(t,{G5:()=>He,H_:()=>Fe,JU:()=>De,Mz:()=>Ce,Pb:()=>Ge,UC:()=>Ne,UE:()=>N,VF:()=>Ve,YJ:()=>Le,ZL:()=>Re,ZP:()=>We,bL:()=>Te,hN:()=>Be,i3:()=>ze,q7:()=>Me,wv:()=>Ue,z6:()=>je});var n=r(14041),i=r(23315),o=r(15708),a=r(23349),s=r(65087),c=r(55865),l=r(32932),u=r(50757),d=r(77893),f=r(12933),p=r(67602),h=r(21322),m=r(80813),y=r(61601),v=r(30804),g=r(34412),b=r(73645),E=r(24788),w=r(70887),S=r(31085),A=["Enter"," "],_=["ArrowUp","PageDown","End"],x=["ArrowDown","PageUp","Home",..._],P={ltr:[...A,"ArrowRight"],rtl:[...A,"ArrowLeft"]},I={ltr:["ArrowLeft"],rtl:["ArrowRight"]},k="Menu",[O,T,C]=(0,o.N)(k),[R,N]=(0,s.A)(k,[C,p.Bk,v.RG]),L=(0,p.Bk)(),D=(0,v.RG)(),[M,F]=R(k),[j,B]=R(k),V=e=>{const{__scopeMenu:t,open:r=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,l=L(t),[u,d]=n.useState(null),f=n.useRef(!1),h=(0,b.c)(a),m=(0,c.jH)(o);return n.useEffect((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,S.jsx)(p.bL,{...l,children:(0,S.jsx)(M,{scope:t,open:r,onOpenChange:h,content:u,onContentChange:d,children:(0,S.jsx)(j,{scope:t,onClose:n.useCallback((()=>h(!1)),[h]),isUsingKeyboardRef:f,dir:m,modal:s,children:i})})})};V.displayName=k;var U=n.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e,i=L(r);return(0,S.jsx)(p.Mz,{...i,...n,ref:t})}));U.displayName="MenuAnchor";var z="MenuPortal",[G,W]=R(z,{forceMount:void 0}),H=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=F(z,t);return(0,S.jsx)(G,{scope:t,forceMount:r,children:(0,S.jsx)(m.C,{present:r||o.open,children:(0,S.jsx)(h.Z,{asChild:!0,container:i,children:n})})})};H.displayName=z;var $="MenuContent",[Y,q]=R($),K=n.forwardRef(((e,t)=>{const r=W($,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=F($,e.__scopeMenu),a=B($,e.__scopeMenu);return(0,S.jsx)(O.Provider,{scope:e.__scopeMenu,children:(0,S.jsx)(m.C,{present:n||o.open,children:(0,S.jsx)(O.Slot,{scope:e.__scopeMenu,children:a.modal?(0,S.jsx)(Q,{...i,ref:t}):(0,S.jsx)(X,{...i,ref:t})})})})})),Q=n.forwardRef(((e,t)=>{const r=F($,e.__scopeMenu),o=n.useRef(null),s=(0,a.s)(t,o);return n.useEffect((()=>{const e=o.current;if(e)return(0,E.Eq)(e)}),[]),(0,S.jsx)(Z,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,i.m)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})})),X=n.forwardRef(((e,t)=>{const r=F($,e.__scopeMenu);return(0,S.jsx)(Z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})})),Z=n.forwardRef(((e,t)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:f,disableOutsidePointerEvents:h,onEntryFocus:m,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:E,onInteractOutside:A,onDismiss:P,disableOutsideScroll:I,...k}=e,O=F($,r),C=B($,r),R=L(r),N=D(r),M=T(r),[j,V]=n.useState(null),U=n.useRef(null),z=(0,a.s)(t,U,O.onContentChange),G=n.useRef(0),W=n.useRef(""),H=n.useRef(0),q=n.useRef(null),K=n.useRef("right"),Q=n.useRef(0),X=I?w.A:n.Fragment,Z=I?{as:g.DX,allowPinchZoom:!0}:void 0,J=e=>{const t=W.current+e,r=M().filter((e=>!e.disabled)),n=document.activeElement,i=r.find((e=>e.ref.current===n))?.textValue,o=function(e,t,r){const n=t.length>1&&Array.from(t).every((e=>e===t[0])),i=n?t[0]:t,o=r?e.indexOf(r):-1;let a=(s=e,c=Math.max(o,0),s.map(((e,t)=>s[(c+t)%s.length])));var s,c;1===i.length&&(a=a.filter((e=>e!==r)));const l=a.find((e=>e.toLowerCase().startsWith(i.toLowerCase())));return l!==r?l:void 0}(r.map((e=>e.textValue)),t,i),a=r.find((e=>e.textValue===o))?.ref.current;!function e(t){W.current=t,window.clearTimeout(G.current),""!==t&&(G.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))};n.useEffect((()=>()=>window.clearTimeout(G.current)),[]),(0,u.Oh)();const ee=n.useCallback((e=>K.current===q.current?.side&&function(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return function(e,t){const{x:r,y:n}=e;let i=!1;for(let e=0,o=t.length-1;e<t.length;
2o=e++){const a=t[e].x,s=t[e].y,c=t[o].x,l=t[o].y;s>n!=l>n&&r<(c-a)*(n-s)/(l-s)+a&&(i=!i)}return i}(r,t)}(e,q.current?.area)),[]);return(0,S.jsx)(Y,{scope:r,searchRef:W,onItemEnter:n.useCallback((e=>{ee(e)&&e.preventDefault()}),[ee]),onItemLeave:n.useCallback((e=>{ee(e)||(U.current?.focus(),V(null))}),[ee]),onTriggerLeave:n.useCallback((e=>{ee(e)&&e.preventDefault()}),[ee]),pointerGraceTimerRef:H,onPointerGraceIntentChange:n.useCallback((e=>{q.current=e}),[]),children:(0,S.jsx)(X,{...Z,children:(0,S.jsx)(d.n,{asChild:!0,trapped:s,onMountAutoFocus:(0,i.m)(c,(e=>{e.preventDefault(),U.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:f,children:(0,S.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:E,onInteractOutside:A,onDismiss:P,children:(0,S.jsx)(v.bL,{asChild:!0,...N,dir:C.dir,orientation:"vertical",loop:o,currentTabStopId:j,onCurrentTabStopIdChange:V,onEntryFocus:(0,i.m)(m,(e=>{C.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:(0,S.jsx)(p.UC,{role:"menu","aria-orientation":"vertical","data-state":Pe(O.open),"data-radix-menu-content":"",dir:C.dir,...R,...k,ref:z,style:{outline:"none",...k.style},onKeyDown:(0,i.m)(k.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&J(e.key));const i=U.current;if(e.target!==i)return;if(!x.includes(e.key))return;e.preventDefault();const o=M().filter((e=>!e.disabled)).map((e=>e.ref.current));_.includes(e.key)&&o.reverse(),function(e){const t=document.activeElement;for(const r of e){if(r===t)return;if(r.focus(),document.activeElement!==t)return}}(o)})),onBlur:(0,i.m)(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(G.current),W.current="")})),onPointerMove:(0,i.m)(e.onPointerMove,Oe((e=>{const t=e.target,r=Q.current!==e.clientX;if(e.currentTarget.contains(t)&&r){const t=e.clientX>Q.current?"right":"left";K.current=t,Q.current=e.clientX}})))})})})})})})}));K.displayName=$;var J=n.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e;return(0,S.jsx)(y.sG.div,{role:"group",...n,ref:t})}));J.displayName="MenuGroup";var ee=n.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e;return(0,S.jsx)(y.sG.div,{...n,ref:t})}));ee.displayName="MenuLabel";var te="MenuItem",re="menu.itemSelect",ne=n.forwardRef(((e,t)=>{const{disabled:r=!1,onSelect:o,...s}=e,c=n.useRef(null),l=B(te,e.__scopeMenu),u=q(te,e.__scopeMenu),d=(0,a.s)(t,c),f=n.useRef(!1);return(0,S.jsx)(ie,{...s,ref:d,disabled:r,onClick:(0,i.m)(e.onClick,(()=>{const e=c.current;if(!r&&e){const t=new CustomEvent(re,{bubbles:!0,cancelable:!0});e.addEventListener(re,(e=>o?.(e)),{once:!0}),(0,y.hO)(e,t),t.defaultPrevented?f.current=!1:l.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:(0,i.m)(e.onPointerUp,(e=>{f.current||e.currentTarget?.click()})),onKeyDown:(0,i.m)(e.onKeyDown,(e=>{const t=""!==u.searchRef.current;r||t&&" "===e.key||A.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));ne.displayName=te;var ie=n.forwardRef(((e,t)=>{const{__scopeMenu:r,disabled:o=!1,textValue:s,...c}=e,l=q(te,r),u=D(r),d=n.useRef(null),f=(0,a.s)(t,d),[p,h]=n.useState(!1),[m,g]=n.useState("");return n.useEffect((()=>{const e=d.current;e&&g((e.textContent??"").trim())}),[c.children]),(0,S.jsx)(O.ItemSlot,{scope:r,disabled:o,textValue:s??m,children:(0,S.jsx)(v.q7,{asChild:!0,...u,focusable:!o,children:(0,S.jsx)(y.sG.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...c,ref:f,onPointerMove:(0,i.m)(e.onPointerMove,Oe((e=>{if(o)l.onItemLeave(e);else if(l.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:(0,i.m)(e.onPointerLeave,Oe((e=>l.onItemLeave(e)))),onFocus:(0,i.m)(e.onFocus,(()=>h(!0))),onBlur:(0,i.m)(e.onBlur,(()=>h(!1)))})})})})),oe=n.forwardRef(((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return(0,S.jsx)(pe,{scope:e.__scopeMenu,checked:r,children:(0,S.jsx)(ne,{role:"menuitemcheckbox","aria-checked":Ie(r)?"mixed":r,...o,ref:t,"data-state":ke(r),onSelect:(0,i.m)(o.onSelect,(()=>n?.(!!Ie(r)||!r)),{checkForDefaultPrevented:!1})})})}));oe.displayName="MenuCheckboxItem";var ae="MenuRadioGroup",[se,ce]=R(ae,{value:void 0,onValueChange:()=>{}}),le=n.forwardRef(((e,t)=>{const{value:r,onValueChange:n,...i}=e,o=(0,b.c)(n);return(0,S.jsx)(se,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,S.jsx)(J,{...i,ref:t})})}));le.displayName=ae;var ue="MenuRadioItem",de=n.forwardRef(((e,t)=>{const{value:r,...n}=e,o=ce(ue,e.__scopeMenu),a=r===o.value;return(0,S.jsx)(pe,{scope:e.__scopeMenu,checked:a,children:(0,S.jsx)(ne,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":ke(a),onSelect:(0,i.m)(n.onSelect,(()=>
2o.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));de.displayName=ue;var fe="MenuItemIndicator",[pe,he]=R(fe,{checked:!1}),me=n.forwardRef(((e,t)=>{const{__scopeMenu:r,forceMount:n,...i}=e,o=he(fe,r);return(0,S.jsx)(m.C,{present:n||Ie(o.checked)||!0===o.checked,children:(0,S.jsx)(y.sG.span,{...i,ref:t,"data-state":ke(o.checked)})})}));me.displayName=fe;var ye=n.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e;return(0,S.jsx)(y.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})}));ye.displayName="MenuSeparator";var ve=n.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e,i=L(r);return(0,S.jsx)(p.i3,{...i,...n,ref:t})}));ve.displayName="MenuArrow";var ge="MenuSub",[be,Ee]=R(ge),we=e=>{const{__scopeMenu:t,children:r,open:i=!1,onOpenChange:o}=e,a=F(ge,t),s=L(t),[c,l]=n.useState(null),[u,d]=n.useState(null),h=(0,b.c)(o);return n.useEffect((()=>(!1===a.open&&h(!1),()=>h(!1))),[a.open,h]),(0,S.jsx)(p.bL,{...s,children:(0,S.jsx)(M,{scope:t,open:i,onOpenChange:h,content:u,onContentChange:d,children:(0,S.jsx)(be,{scope:t,contentId:(0,f.B)(),triggerId:(0,f.B)(),trigger:c,onTriggerChange:l,children:r})})})};we.displayName=ge;var Se="MenuSubTrigger",Ae=n.forwardRef(((e,t)=>{const r=F(Se,e.__scopeMenu),o=B(Se,e.__scopeMenu),s=Ee(Se,e.__scopeMenu),c=q(Se,e.__scopeMenu),l=n.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:d}=c,f={__scopeMenu:e.__scopeMenu},p=n.useCallback((()=>{l.current&&window.clearTimeout(l.current),l.current=null}),[]);return n.useEffect((()=>p),[p]),n.useEffect((()=>{const e=u.current;return()=>{window.clearTimeout(e),d(null)}}),[u,d]),(0,S.jsx)(U,{asChild:!0,...f,children:(0,S.jsx)(ie,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":Pe(r.open),...e,ref:(0,a.t)(t,s.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,i.m)(e.onPointerMove,Oe((t=>{c.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||l.current||(c.onPointerGraceIntentChange(null),l.current=window.setTimeout((()=>{r.onOpenChange(!0),p()}),100))}))),onPointerLeave:(0,i.m)(e.onPointerLeave,Oe((e=>{p();const t=r.content?.getBoundingClientRect();if(t){const n=r.content?.dataset.side,i="right"===n,o=i?-5:5,a=t[i?"left":"right"],s=t[i?"right":"left"];c.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:a,y:t.top},{x:s,y:t.top},{x:s,y:t.bottom},{x:a,y:t.bottom}],side:n}),window.clearTimeout(u.current),u.current=window.setTimeout((()=>c.onPointerGraceIntentChange(null)),300)}else{if(c.onTriggerLeave(e),e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}}))),onKeyDown:(0,i.m)(e.onKeyDown,(t=>{const n=""!==c.searchRef.current;e.disabled||n&&" "===t.key||P[o.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())}))})})}));Ae.displayName=Se;var _e="MenuSubContent",xe=n.forwardRef(((e,t)=>{const r=W($,e.__scopeMenu),{forceMount:o=r.forceMount,...s}=e,c=F($,e.__scopeMenu),l=B($,e.__scopeMenu),u=Ee(_e,e.__scopeMenu),d=n.useRef(null),f=(0,a.s)(t,d);return(0,S.jsx)(O.Provider,{scope:e.__scopeMenu,children:(0,S.jsx)(m.C,{present:o||c.open,children:(0,S.jsx)(O.Slot,{scope:e.__scopeMenu,children:(0,S.jsx)(Z,{id:u.contentId,"aria-labelledby":u.triggerId,...s,ref:f,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.m)(e.onFocusOutside,(e=>{e.target!==u.trigger&&c.onOpenChange(!1)})),onEscapeKeyDown:(0,i.m)(e.onEscapeKeyDown,(e=>{l.onClose(),e.preventDefault()})),onKeyDown:(0,i.m)(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),r=I[l.dir].includes(e.key);t&&r&&(c.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())}))})})})})}));function Pe(e){return e?"open":"closed"}function Ie(e){return"indeterminate"===e}function ke(e){return Ie(e)?"indeterminate":e?"checked":"unchecked"}function Oe(e){return t=>"mouse"===t.pointerType?e(t):void 0}xe.displayName=_e;var Te=V,Ce=U,Re=H,Ne=K,Le=J,De=ee,Me=ne,Fe=oe,je=le,Be=de,Ve=me,Ue=ye,ze=ve,Ge=we,We=Ae,He=xe},57829:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>H,Rp:()=>z,UC:()=>q,ZL:()=>Y,bL:()=>W,bm:()=>K,l9:()=>$});var n=r(14041),i=r(23315),o=r(23349),a=r(65087),s=r(32932),c=r(50757),l=r(77893),u=r(12933),d=r(67602),f=r(21322),p=r(80813),h=r(61601),m=r(34412),y=r(88049),v=r(24788),g=r(70887),b=r(31085),E="Popover",[w,S]=(0,a.A)(E,[d.Bk]),A=(0,d.Bk)(),[_,x]=w(E),P=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,c=A(t),l=n.useRef(null),[f,p]=n.useState(!1),[h=!1,m]=(0,y.i)({prop:i,defaultProp:o,onChange:a});return(0,b.jsx)(d.bL,{...c,children:(0,b.jsx)(_,{scope:t,contentId:(0,u.B)(),triggerRef:l,open:h,onOpenChange:m,onOpenToggle:n.useCallback((()=>m((e=>!e))),[m]),hasCustomAnchor:f,onCustomAnchorAdd:n.useCallback((()=>p(!0)),[]),onCustomAnchorRemove:n.useCallback((()=>p(!1)),[]),modal:s,children:r})})};P.displayName=E;var I="PopoverAnchor",k=n.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,o=x(I,r),a=A(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=o;return n.useEffect((()=>(s(),()=>c())),[s,c]),(0,b.jsx)(d.Mz,{...a,...i,ref:t})}));k.displayName=I;var O="PopoverTrigger",T=n.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,a=x(O,r),s=A(r),c=(0,o.s)(t,a.triggerRef),l=(0,b.jsx)(h.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":G(a.open),...n,ref:c,onClick:(0,i.m)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:(0,b.jsx)(d.Mz,{asChild:!0,...s,children:l})}));T.displayName=O;var C="PopoverPortal",[R,N]=w(C,{forceMount:void 0}),L=e=>{const{__scopePopover:t,forceMount:r,children:n,container:i}=e,o=x(C,t);return(0,b.jsx)(R,{scope:t,forceMount:r,children:(0,b.jsx)(p.C,{present:r||o.open,children:(0,b.jsx)(f.Z,{asChild:!0,container:i,children:n})})})};L.displayName=C;var D="PopoverContent",M=n.forwardRef(((e,t)=>{const r=N(D,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,o=x(D,e.__scopePopover);return(0,b.jsx)(p.C,{present:n||o.open,children:o.modal?(0,b.jsx)(F,{...i,ref:t}):(0,b.jsx)(j,{...i,ref:t})})}));M.displayName=D;var F=n.forwardRef(((e,t)=>{const r=x(D,e.__scopePopover),a=n.useRef(null),s=(0,o.s)(t,a),c=n.useRef(!1);return n.useEffect((()=>{const e=a.current;
2if(e)return(0,v.Eq)(e)}),[]),(0,b.jsx)(g.A,{as:m.DX,allowPinchZoom:!0,children:(0,b.jsx)(B,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,(e=>{e.preventDefault(),c.current||r.triggerRef.current?.focus()})),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;c.current=n}),{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.m)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),j=n.forwardRef(((e,t)=>{const r=x(D,e.__scopePopover),i=n.useRef(!1),o=n.useRef(!1);return(0,b.jsx)(B,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const n=t.target,a=r.triggerRef.current?.contains(n);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),B=n.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,...m}=e,y=x(D,r),v=A(r);return(0,c.Oh)(),(0,b.jsx)(l.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,b.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>y.onOpenChange(!1),children:(0,b.jsx)(d.UC,{"data-state":G(y.open),role:"dialog",id:y.contentId,...v,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),V="PopoverClose",U=n.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,o=x(V,r);return(0,b.jsx)(h.sG.button,{type:"button",...n,ref:t,onClick:(0,i.m)(e.onClick,(()=>o.onOpenChange(!1)))})}));U.displayName=V;var z=n.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,i=A(r);return(0,b.jsx)(d.i3,{...i,...n,ref:t})}));function G(e){return e?"open":"closed"}z.displayName="PopoverArrow";var W=P,H=k,$=T,Y=L,q=M,K=U},67602:(e,t,r)=>{"use strict";r.d(t,{Bk:()=>v,Mz:()=>L,UC:()=>D,bL:()=>N,i3:()=>M});var n=r(14041),i=r(83773),o=r(37241),a=r(54583),s=r(35321),c=r(23349),l=r(65087),u=r(61601),d=r(73645),f=r(47210),p=r(87071),h=r(31085),m="Popper",[y,v]=(0,l.A)(m),[g,b]=y(m),E=e=>{const{__scopePopper:t,children:r}=e,[i,o]=n.useState(null);return(0,h.jsx)(g,{scope:t,anchor:i,onAnchorChange:o,children:r})};E.displayName=m;var w="PopperAnchor",S=n.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...o}=e,a=b(w,r),s=n.useRef(null),l=(0,c.s)(t,s);return n.useEffect((()=>{a.onAnchorChange(i?.current||s.current)})),i?null:(0,h.jsx)(u.sG.div,{...o,ref:l})}));S.displayName=w;var A="PopperContent",[_,x]=y(A),P=n.forwardRef(((e,t)=>{const{__scopePopper:r,side:s="bottom",sideOffset:l=0,align:m="center",alignOffset:y=0,arrowPadding:v=0,avoidCollisions:g=!0,collisionBoundary:E=[],collisionPadding:w=0,sticky:S="partial",hideWhenDetached:x=!1,updatePositionStrategy:P="optimized",onPlaced:I,...k}=e,O=b(A,r),[N,L]=n.useState(null),D=(0,c.s)(t,(e=>L(e))),[M,F]=n.useState(null),j=(0,p.X)(M),B=j?.width??0,V=j?.height??0,U=s+("center"!==m?"-"+m:""),z="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},G=Array.isArray(E)?E:[E],W=G.length>0,H={padding:z,boundary:G.filter(T),altBoundary:W},{refs:$,floatingStyles:Y,placement:q,isPositioned:K,middlewareData:Q}=(0,i.we)({strategy:"fixed",placement:U,whileElementsMounted:(...e)=>(0,o.ll)(...e,{animationFrame:"always"===P}),elements:{reference:O.anchor},middleware:[(0,a.cY)({mainAxis:l+V,alignmentAxis:y}),g&&(0,a.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?(0,a.ER)():void 0,...H}),g&&(0,a.UU)({...H}),(0,a.Ej)({...H,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),M&&(0,i.UE)({element:M,padding:v}),C({arrowWidth:B,arrowHeight:V}),x&&(0,a.jD)({strategy:"referenceHidden",...H})]}),[X,Z]=R(q),J=(0,d.c)(I);(0,f.N)((()=>{K&&J?.()}),[K,J]);const ee=Q.arrow?.x,te=Q.arrow?.y,re=0!==Q.arrow?.centerOffset,[
2ne,ie]=n.useState();return(0,f.N)((()=>{N&&ie(window.getComputedStyle(N).zIndex)}),[N]),(0,h.jsx)("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:K?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[Q.transformOrigin?.x,Q.transformOrigin?.y].join(" "),...Q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,h.jsx)(_,{scope:r,placedSide:X,onArrowChange:F,arrowX:ee,arrowY:te,shouldHideArrow:re,children:(0,h.jsx)(u.sG.div,{"data-side":X,"data-align":Z,...k,ref:D,style:{...k.style,animation:K?void 0:"none"}})})})}));P.displayName=A;var I="PopperArrow",k={top:"bottom",right:"left",bottom:"top",left:"right"},O=n.forwardRef((function(e,t){const{__scopePopper:r,...n}=e,i=x(I,r),o=k[i.placedSide];return(0,h.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,h.jsx)(s.b,{...n,ref:t,style:{...n.style,display:"block"}})})}));function T(e){return null!==e}O.displayName=I;var C=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:i}=t,o=0!==i.arrow?.centerOffset,a=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[c,l]=R(r),u={start:"0%",center:"50%",end:"100%"}[l],d=(i.arrow?.x??0)+a/2,f=(i.arrow?.y??0)+s/2;let p="",h="";return"bottom"===c?(p=o?u:`${d}px`,h=-s+"px"):"top"===c?(p=o?u:`${d}px`,h=`${n.floating.height+s}px`):"right"===c?(p=-s+"px",h=o?u:`${f}px`):"left"===c&&(p=`${n.floating.width+s}px`,h=o?u:`${f}px`),{data:{x:p,y:h}}}});function R(e){const[t,r="center"]=e.split("-");return[t,r]}var N=E,L=S,D=P,M=O},21322:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(14041),i=r(43144),o=r(61601),a=r(47210),s=r(31085),c=n.forwardRef(((e,t)=>{const{container:r,...c}=e,[l,u]=n.useState(!1);(0,a.N)((()=>u(!0)),[]);const d=r||l&&globalThis?.document?.body;return d?i.createPortal((0,s.jsx)(o.sG.div,{...c,ref:t}),d):null}));c.displayName="Portal"},80813:(e,t,r)=>{"use strict";r.d(t,{C:()=>s});var n=r(14041),i=r(43144),o=r(23349),a=r(47210);var s=e=>{const{present:t,children:r}=e,s=function(e){const[t,r]=n.useState(),o=n.useRef({}),s=n.useRef(e),l=n.useRef("none"),u=e?"mounted":"unmounted",[d,f]=function(e,t){return n.useReducer(((e,r)=>t[e][r]??e),e)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.useEffect((()=>{const e=c(o.current);l.current="mounted"===d?e:"none"}),[d]),(0,a.N)((()=>{const t=o.current,r=s.current;if(r!==e){const n=l.current,i=c(t);if(e)f("MOUNT");else if("none"===i||"none"===t?.display)f("UNMOUNT");else{f(r&&n!==i?"ANIMATION_OUT":"UNMOUNT")}s.current=e}}),[e,f]),(0,a.N)((()=>{if(t){const e=e=>{const r=c(o.current).includes(e.animationName);e.target===t&&r&&i.flushSync((()=>f("ANIMATION_END")))},r=e=>{e.target===t&&(l.current=c(o.current))};return t.addEventListener("animationstart",r),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",r),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}f("ANIMATION_END")}),[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback((e=>{e&&(o.current=getComputedStyle(e)),r(e)}),[])}}(t),l="function"==typeof r?r({present:s.isPresent}):n.Children.only(r),u=(0,o.s)(s.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(l));return"function"==typeof r||s.isPresent?n.cloneElement(l,{ref:u}):null};function c(e){return e?.animationName||"none"}s.displayName="Presence"},61601:(e,t,r)=>{"use strict";r.d(t,{hO:()=>c,sG:()=>s});var n=r(14041),i=r(43144),o=r(34412),a=r(31085),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const r=n.forwardRef(((e,r)=>{const{asChild:n,...i}=e,s=n?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...i,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function c(e,t){e&&i.flushSync((()=>
2e.dispatchEvent(t)))}},58903:(e,t,r)=>{"use strict";r.d(t,{C1:()=>S,bL:()=>w});var n=r(14041),i=r(65087),o=r(61601),a=r(31085),s="Progress",c=100,[l,u]=(0,i.A)(s),[d,f]=l(s),p=n.forwardRef(((e,t)=>{const{__scopeProgress:r,value:n=null,max:i,getValueLabel:s=y,...l}=e;!i&&0!==i||b(i)||console.error(`Invalid prop \`max\` of value \`${`${i}`}\` supplied to \`${"Progress"}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`);const u=b(i)?i:c;null===n||E(n,u)||console.error(function(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}(`${n}`,"Progress"));const f=E(n,u)?n:null,p=g(f)?s(f,u):void 0;return(0,a.jsx)(d,{scope:r,value:f,max:u,children:(0,a.jsx)(o.sG.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":g(f)?f:void 0,"aria-valuetext":p,role:"progressbar","data-state":v(f,u),"data-value":f??void 0,"data-max":u,...l,ref:t})})}));p.displayName=s;var h="ProgressIndicator",m=n.forwardRef(((e,t)=>{const{__scopeProgress:r,...n}=e,i=f(h,r);return(0,a.jsx)(o.sG.div,{"data-state":v(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...n,ref:t})}));function y(e,t){return`${Math.round(e/t*100)}%`}function v(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function g(e){return"number"==typeof e}function b(e){return g(e)&&!isNaN(e)&&e>0}function E(e,t){return g(e)&&!isNaN(e)&&e<=t&&e>=0}m.displayName=h;var w=p,S=m},90309:(e,t,r)=>{"use strict";r.d(t,{C1:()=>B,bL:()=>F,q7:()=>j});var n=r(14041),i=r(23315),o=r(23349),a=r(65087),s=r(61601),c=r(30804),l=r(88049),u=r(55865),d=r(87071),f=r(40763),p=r(80813),h=r(31085),m="Radio",[y,v]=(0,a.A)(m),[g,b]=y(m),E=n.forwardRef(((e,t)=>{const{__scopeRadio:r,name:a,checked:c=!1,required:l,disabled:u,value:d="on",onCheck:f,...p}=e,[m,y]=n.useState(null),v=(0,o.s)(t,(e=>y(e))),b=n.useRef(!1),E=!m||Boolean(m.closest("form"));return(0,h.jsxs)(g,{scope:r,checked:c,disabled:u,children:[(0,h.jsx)(s.sG.button,{type:"button",role:"radio","aria-checked":c,"data-state":_(c),"data-disabled":u?"":void 0,disabled:u,value:d,...p,ref:v,onClick:(0,i.m)(e.onClick,(e=>{c||f?.(),E&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())}))}),E&&(0,h.jsx)(A,{control:m,bubbles:!b.current,name:a,value:d,checked:c,required:l,disabled:u,style:{transform:"translateX(-100%)"}})]})}));E.displayName=m;var w="RadioIndicator",S=n.forwardRef(((e,t)=>{const{__scopeRadio:r,forceMount:n,...i}=e,o=b(w,r);return(0,h.jsx)(p.C,{present:n||o.checked,children:(0,h.jsx)(s.sG.span,{"data-state":_(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})})}));S.displayName=w;var A=e=>{const{control:t,checked:r,bubbles:i=!0,...o}=e,a=n.useRef(null),s=(0,f.Z)(r),c=(0,d.X)(t);return n.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==r&&n){const t=new Event("click",{bubbles:i});n.call(e,r),e.dispatchEvent(t)}}),[s,r,i]),(0,h.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:a,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function _(e){return e?"checked":"unchecked"}var x=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],P="RadioGroup",[I,k]=(0,a.A)(P,[c.RG,v]),O=(0,c.RG)(),T=v(),[C,R]=I(P),N=n.forwardRef(((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:i,value:o,required:a=!1,disabled:d=!1,orientation:f,dir:p,loop:m=!0,onValueChange:y,...v}=e,g=O(r),b=(0,u.jH)(p),[E,w]=(0,l.i)({prop:o,defaultProp:i,onChange:y});return(0,h.jsx)(C,{scope:r,name:n,required:a,disabled:d,value:E,onValueChange:w,children:(0,h.jsx)(c.bL,{asChild:!0,...g,orientation:f,dir:b,loop:m,children:(0,h.jsx)(s.sG.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":d?"":void 0,dir:b,...v,ref:t})})})}));N.displayName=P;var L="RadioGroupItem",D=n.forwardRef(((e,t)=>{const{__scopeRadioGroup:r,disabled:a,...s}=e,l=R(L,r),u=l.disabled||a,d=O(r),f=T(r),p=n.useRef(null),m=(0,o.s)(t,p),y=l.value===s.value,v=n.useRef(!1);return n.useEffect((()=>{const e=e=>
2{x.includes(e.key)&&(v.current=!0)},t=()=>v.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),(0,h.jsx)(c.q7,{asChild:!0,...d,focusable:!u,active:y,children:(0,h.jsx)(E,{disabled:u,required:l.required,checked:y,...f,...s,name:l.name,ref:m,onCheck:()=>l.onValueChange(s.value),onKeyDown:(0,i.m)((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:(0,i.m)(s.onFocus,(()=>{v.current&&p.current?.click()}))})})}));D.displayName=L;var M=n.forwardRef(((e,t)=>{const{__scopeRadioGroup:r,...n}=e,i=T(r);return(0,h.jsx)(S,{...i,...n,ref:t})}));M.displayName="RadioGroupIndicator";var F=N,j=D,B=M},30804:(e,t,r)=>{"use strict";r.d(t,{RG:()=>w,bL:()=>T,q7:()=>C});var n=r(14041),i=r(23315),o=r(15708),a=r(23349),s=r(65087),c=r(12933),l=r(61601),u=r(73645),d=r(88049),f=r(55865),p=r(31085),h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},y="RovingFocusGroup",[v,g,b]=(0,o.N)(y),[E,w]=(0,s.A)(y,[b]),[S,A]=E(y),_=n.forwardRef(((e,t)=>(0,p.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(x,{...e,ref:t})})})));_.displayName=y;var x=n.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:s=!1,dir:c,currentTabStopId:y,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:b,onEntryFocus:E,preventScrollOnEntryFocus:w=!1,...A}=e,_=n.useRef(null),x=(0,a.s)(t,_),P=(0,f.jH)(c),[I=null,k]=(0,d.i)({prop:y,defaultProp:v,onChange:b}),[T,C]=n.useState(!1),R=(0,u.c)(E),N=g(r),L=n.useRef(!1),[D,M]=n.useState(0);return n.useEffect((()=>{const e=_.current;if(e)return e.addEventListener(h,R),()=>e.removeEventListener(h,R)}),[R]),(0,p.jsx)(S,{scope:r,orientation:o,dir:P,loop:s,currentTabStopId:I,onItemFocus:n.useCallback((e=>k(e)),[k]),onItemShiftTab:n.useCallback((()=>C(!0)),[]),onFocusableItemAdd:n.useCallback((()=>M((e=>e+1))),[]),onFocusableItemRemove:n.useCallback((()=>M((e=>e-1))),[]),children:(0,p.jsx)(l.sG.div,{tabIndex:T||0===D?-1:0,"data-orientation":o,...A,ref:x,style:{outline:"none",...e.style},onMouseDown:(0,i.m)(e.onMouseDown,(()=>{L.current=!0})),onFocus:(0,i.m)(e.onFocus,(e=>{const t=!L.current;if(e.target===e.currentTarget&&t&&!T){const t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=N().filter((e=>e.focusable));O([e.find((e=>e.active)),e.find((e=>e.id===I)),...e].filter(Boolean).map((e=>e.ref.current)),w)}}L.current=!1})),onBlur:(0,i.m)(e.onBlur,(()=>C(!1)))})})})),P="RovingFocusGroupItem",I=n.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:s,...u}=e,d=(0,c.B)(),f=s||d,h=A(P,r),m=h.currentTabStopId===f,y=g(r),{onFocusableItemAdd:b,onFocusableItemRemove:E}=h;return n.useEffect((()=>{if(o)return b(),()=>E()}),[o,b,E]),(0,p.jsx)(v.ItemSlot,{scope:r,id:f,focusable:o,active:a,children:(0,p.jsx)(l.sG.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...u,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,(e=>{o?h.onItemFocus(f):e.preventDefault()})),onFocus:(0,i.m)(e.onFocus,(()=>h.onItemFocus(f))),onKeyDown:(0,i.m)(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,r){const n=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,r);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(n)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)?void 0:k[n]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=y().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)i.reverse();else if("prev"===t||"next"===t){"prev"===t&&i.reverse();const o=i.indexOf(e.currentTarget);i=h.loop?(n=o+1,(r=i).map(((e,t)=>r[(n+t)%r.length]))):i.slice(o+1)}setTimeout((()=>O(i)))}var r,n}))})})}));I.displayName=P;var k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function O(e,t=!1){const r=document.activeElement;for(const n of e){if(n===r)return;if(n.focus({preventScroll:t}),document.activeElement!==r)return}}var T=_,C=I},3928:(e,t,r)=>{"use strict";r.d(t,{In:()=>Le,JU:()=>Be,LM:()=>Fe,PP:()=>Ge,UC:()=>Me,VF:()=>ze,WT:()=>Ne,YJ:()=>je,ZL:()=>De,bL:()=>Ce,l9:()=>Re,p4:()=>Ue,q7:()=>Ve,wn:()=>We,wv:()=>He});var n=r(14041),i=r(43144),o=r(94859),a=r(23315),s=r(15708),c=r(23349),l=r(65087),u=r(55865),d=r(32932),f=r(50757),p=r(77893),h=r(12933),m=r(67602),y=r(21322),v=r(61601),g=r(34412),b=r(73645),E=r(88049),w=r(47210),S=r(40763),A=r(73326),_=r(24788),x=r(70887),P=r(31085),I=[" ","Enter","ArrowUp","ArrowDown"],k=[" ","Enter"],O="Select",[T,C,R]=(0,s.N)(O),[N,L]=(0,l.A)(O,[R,m.Bk]),D=(0,m.Bk)(),[M,F]=N(O),[j,B]=N(O),V=e=>{const{__scopeSelect:t,children:r,open:i,defaultOpen:o,onOpenChange:a,value:s,defaultValue:c,onValueChange:l,dir:d,name:f,autoComplete:p,disabled:y,required:v}=e,g=D(t),[b,w]=n.useState(null),[S,A]=n.useState(null),[_,x]=n.useState(!1),I=(0,u.jH)(d),[k=!1,O]=(0,E.i)({prop:i,defaultProp:o,onChange:a}),[C,R]=(0,E.i)({prop:s,defaultProp:c,onChange:l}),N=n.useRef(null),L=!b||Boolean(b.closest("form")),[F,B]=n.useState(new Set),V=Array.from(F).map((e=>e.props.value)).join(";");return(0,P.jsx)(m.bL,{...g,children:(0,P.jsxs)(M,{required:v,scope:t,trigger:b,onTriggerChange:w,valueNode:S,onValueNodeChange:A,valueNodeHasChildren:_,onValueNodeHasChildrenChange:x,contentId:(0,h.B)(),value:C,onValueChange:R,open:k,onOpenChange:O,dir:I,triggerPointerDownPosRef:N,disabled:y,children:[(0,P.jsx)(T.Provider,{scope:t,children:(0,P.jsx)(j,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback((e=>{B((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:n.useCallback((e=>{B((t=>{const r=new Set(t);return r.delete(e),r}))}),[]),children:r})}),L?(0,P.jsxs)(ke,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:p,value:C,onChange:e=>R(e.target.value),disabled:y,children:[void 0===C?(0,P.jsx)("option",{value:""}):null,Array.from(F)]},V):null]})})};V.displayName=O;var U="SelectTrigger",z=n.forwardRef(((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,o=D(r),s=F(U,r),l=s.disabled||n,u=(0,c.s)(t,s.onTriggerChange),d=C(r),[f,p,h]=Oe((e=>{const t=d().filter((e=>!e.disabled)),r=t.find((e=>
2e.value===s.value)),n=Te(t,e,r);void 0!==n&&s.onValueChange(n.value)})),y=()=>{l||(s.onOpenChange(!0),h())};return(0,P.jsx)(m.Mz,{asChild:!0,...o,children:(0,P.jsx)(v.sG.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Ie(s.value)?"":void 0,...i,ref:u,onClick:(0,a.m)(i.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:(0,a.m)(i.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(y(),s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:(0,a.m)(i.onKeyDown,(e=>{const t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||I.includes(e.key)&&(y(),e.preventDefault())}))})})}));z.displayName=U;var G="SelectValue",W=n.forwardRef(((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:o,placeholder:a="",...s}=e,l=F(G,r),{onValueNodeHasChildrenChange:u}=l,d=void 0!==o,f=(0,c.s)(t,l.onValueNodeChange);return(0,w.N)((()=>{u(d)}),[u,d]),(0,P.jsx)(v.sG.span,{...s,ref:f,style:{pointerEvents:"none"},children:Ie(l.value)?(0,P.jsx)(P.Fragment,{children:a}):o})}));W.displayName=G;var H=n.forwardRef(((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return(0,P.jsx)(v.sG.span,{"aria-hidden":!0,...i,ref:t,children:n||"â¼"})}));H.displayName="SelectIcon";var $=e=>(0,P.jsx)(y.Z,{asChild:!0,...e});$.displayName="SelectPortal";var Y="SelectContent",q=n.forwardRef(((e,t)=>{const r=F(Y,e.__scopeSelect),[o,a]=n.useState();if((0,w.N)((()=>{a(new DocumentFragment)}),[]),!r.open){const t=o;return t?i.createPortal((0,P.jsx)(Q,{scope:e.__scopeSelect,children:(0,P.jsx)(T.Slot,{scope:e.__scopeSelect,children:(0,P.jsx)("div",{children:e.children})})}),t):null}return(0,P.jsx)(Z,{...e,ref:t})}));q.displayName=Y;var K=10,[Q,X]=N(Y),Z=n.forwardRef(((e,t)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:l,side:u,sideOffset:h,align:m,alignOffset:y,arrowPadding:v,collisionBoundary:b,collisionPadding:E,sticky:w,hideWhenDetached:S,avoidCollisions:A,...I}=e,k=F(Y,r),[O,T]=n.useState(null),[R,N]=n.useState(null),L=(0,c.s)(t,(e=>T(e))),[D,M]=n.useState(null),[j,B]=n.useState(null),V=C(r),[U,z]=n.useState(!1),G=n.useRef(!1);n.useEffect((()=>{if(O)return(0,_.Eq)(O)}),[O]),(0,f.Oh)();const W=n.useCallback((e=>{const[t,...r]=V().map((e=>e.ref.current)),[n]=r.slice(-1),i=document.activeElement;for(const r of e){if(r===i)return;if(r?.scrollIntoView({block:"nearest"}),r===t&&R&&(R.scrollTop=0),r===n&&R&&(R.scrollTop=R.scrollHeight),r?.focus(),document.activeElement!==i)return}}),[V,R]),H=n.useCallback((()=>W([D,O])),[W,D,O]);n.useEffect((()=>{U&&H()}),[U,H]);const{onOpenChange:$,triggerPointerDownPosRef:q}=k;n.useEffect((()=>{if(O){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(q.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():O.contains(r.target)||$(!1),document.removeEventListener("pointermove",t),q.current=null};return null!==q.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}}),[O,$,q]),n.useEffect((()=>{const e=()=>$(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[$]);const[K,X]=Oe((e=>{const t=V().filter((e=>!e.disabled)),r=t.find((e=>e.ref.current===document.activeElement)),n=Te(t,e,r);n&&setTimeout((()=>n.ref.current.focus()))})),Z=n.useCallback(((e,t,r)=>{const n=!G.current&&!r;(void 0!==k.value&&k.value===t||n)&&(M(e),n&&(G.current=!0))}),[k.value]),te=n.useCallback((()=>O?.focus()),[O]),re=n.useCallback(((e,t,r)=>{const n=!G.current&&!r;(void 0!==k.value&&k.value===t||n)&&B(e)}),[k.value]),ne="popper"===i?ee:J,ie=ne===ee?{side:u,sideOffset:h,align:m,alignOffset:y,arrowPadding:v,collisionBoundary:b,collisionPadding:E,sticky:w,hideWhenDetached:S,avoidCollisions:A}:{};return(0,P.jsx)(Q,{scope:r,content:O,viewport:R,onViewportChange:N,itemRefCallback:Z,selectedItem:D,onItemLeave:te,itemTextRefCallback:re,focusSelectedItem:H,selectedItemText:j,position:i,isPositioned:U,searchRef:K,children:(0,P.jsx)(x.A,{as:g.DX,allowPinchZoom:!0,children:(0,P.jsx)(p.n,{asChild:!0,trapped:k.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.m)(o,(e=>{k.trigger?.focus({preventScroll:!0}),e.preventDefault()})),children:(0,P.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:(0,P.jsx)(ne,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:e=>e.preventDefault(),...I,...ie,onPlaced:()=>z(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...I.style},onKeyDown:(0,a.m)(I.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;
vendor: 4,424 bytes, line 2
2if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||X(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=V().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout((()=>W(t))),e.preventDefault()}}))})})})})})}));Z.displayName="SelectContentImpl";var J=n.forwardRef(((e,t)=>{const{__scopeSelect:r,onPlaced:i,...a}=e,s=F(Y,r),l=X(Y,r),[u,d]=n.useState(null),[f,p]=n.useState(null),h=(0,c.s)(t,(e=>p(e))),m=C(r),y=n.useRef(!1),g=n.useRef(!0),{viewport:b,selectedItem:E,selectedItemText:S,focusSelectedItem:A}=l,_=n.useCallback((()=>{if(s.trigger&&s.valueNode&&u&&f&&b&&E&&S){const e=s.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=s.valueNode.getBoundingClientRect(),n=S.getBoundingClientRect();if("rtl"!==s.dir){const i=n.left-t.left,a=r.left-i,s=e.left-a,c=e.width+s,l=Math.max(c,t.width),d=window.innerWidth-K,f=(0,o.q)(a,[K,d-l]);u.style.minWidth=c+"px",u.style.left=f+"px"}else{const i=t.right-n.right,a=window.innerWidth-r.right-i,s=window.innerWidth-e.right-a,c=e.width+s,l=Math.max(c,t.width),d=window.innerWidth-K,f=(0,o.q)(a,[K,d-l]);u.style.minWidth=c+"px",u.style.right=f+"px"}const a=m(),c=window.innerHeight-2*K,l=b.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),g=p+h+l+parseInt(d.paddingBottom,10)+v,w=Math.min(5*E.offsetHeight,g),A=window.getComputedStyle(b),_=parseInt(A.paddingTop,10),x=parseInt(A.paddingBottom,10),P=e.top+e.height/2-K,I=c-P,k=E.offsetHeight/2,O=p+h+(E.offsetTop+k),T=g-O;if(O<=P){const e=E===a[a.length-1].ref.current;u.style.bottom="0px";const t=f.clientHeight-b.offsetTop-b.offsetHeight,r=O+Math.max(I,k+(e?x:0)+t+v);u.style.height=r+"px"}else{const e=E===a[0].ref.current;u.style.top="0px";const t=Math.max(P,p+b.offsetTop+(e?_:0)+k)+T;u.style.height=t+"px",b.scrollTop=O-P+b.offsetTop}u.style.margin=`${K}px 0`,u.style.minHeight=w+"px",u.style.maxHeight=c+"px",i?.(),requestAnimationFrame((()=>y.current=!0))}}),[m,s.trigger,s.valueNode,u,f,b,E,S,s.dir,i]);(0,w.N)((()=>_()),[_]);const[x,I]=n.useState();(0,w.N)((()=>{f&&I(window.getComputedStyle(f).zIndex)}),[f]);const k=n.useCallback((e=>{e&&!0===g.current&&(_(),A?.(),g.current=!1)}),[_,A]);return(0,P.jsx)(te,{scope:r,contentWrapper:u,shouldExpandOnScrollRef:y,onScrollButtonChange:k,children:(0,P.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x},children:(0,P.jsx)(v.sG.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));J.displayName="SelectItemAlignedPosition";var ee=n.forwardRef(((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=K,...o}=e,a=D(r);return(0,P.jsx)(m.UC,{...a,...o,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})}));ee.displayName="SelectPopperPosition";var[te,re]=N(Y,{}),ne="SelectViewport",ie=n.forwardRef(((e,t)=>{const{__scopeSelect:r,nonce:i,...o}=e,s=X(ne,r),l=re(ne,r),u=(0,c.s)(t,s.onViewportChange),d=n.useRef(0);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,P.jsx)(T.Slot,{scope:r,children:(0,P.jsx)(v.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:(0,a.m)(o.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=l;if(n?.current&&r){const e=Math.abs(d.current-t.scrollTop);if(e>0){const n=window.innerHeight-2*K,i=parseFloat(r.style.minHeight),o=parseFloat(r.style.height),a=Math.max(i,o);if(a<n){const i=a+e,o=Math.min(n,i),s=i-o;r.style.height=o+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop}))})})]})}));
2ie.displayName=ne;var oe="SelectGroup",[ae,se]=N(oe),ce=n.forwardRef(((e,t)=>{const{__scopeSelect:r,...n}=e,i=(0,h.B)();return(0,P.jsx)(ae,{scope:r,id:i,children:(0,P.jsx)(v.sG.div,{role:"group","aria-labelledby":i,...n,ref:t})})}));ce.displayName=oe;var le="SelectLabel",ue=n.forwardRef(((e,t)=>{const{__scopeSelect:r,...n}=e,i=se(le,r);return(0,P.jsx)(v.sG.div,{id:i.id,...n,ref:t})}));ue.displayName=le;var de="SelectItem",[fe,pe]=N(de),he=n.forwardRef(((e,t)=>{const{__scopeSelect:r,value:i,disabled:o=!1,textValue:s,...l}=e,u=F(de,r),d=X(de,r),f=u.value===i,[p,m]=n.useState(s??""),[y,g]=n.useState(!1),b=(0,c.s)(t,(e=>d.itemRefCallback?.(e,i,o))),E=(0,h.B)(),w=()=>{o||(u.onValueChange(i),u.onOpenChange(!1))};if(""===i)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,P.jsx)(fe,{scope:r,value:i,disabled:o,textId:E,isSelected:f,onItemTextChange:n.useCallback((e=>{m((t=>t||(e?.textContent??"").trim()))}),[]),children:(0,P.jsx)(T.ItemSlot,{scope:r,value:i,disabled:o,textValue:p,children:(0,P.jsx)(v.sG.div,{role:"option","aria-labelledby":E,"data-highlighted":y?"":void 0,"aria-selected":f&&y,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:b,onFocus:(0,a.m)(l.onFocus,(()=>g(!0))),onBlur:(0,a.m)(l.onBlur,(()=>g(!1))),onPointerUp:(0,a.m)(l.onPointerUp,w),onPointerMove:(0,a.m)(l.onPointerMove,(e=>{o?d.onItemLeave?.():e.currentTarget.focus({preventScroll:!0})}
2)),onPointerLeave:(0,a.m)(l.onPointerLeave,(e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()})),onKeyDown:(0,a.m)(l.onKeyDown,(e=>{""!==d.searchRef?.current&&" "===e.key||(k.includes(e.key)&&w()," "===e.key&&e.preventDefault())}))})})})}));he.displayName=de;var me="SelectItemText",ye=n.forwardRef(((e,t)=>{const{__scopeSelect:r,className:o,style:a,...s}=e,l=F(me,r),u=X(me,r),d=pe(me,r),f=B(me,r),[p,h]=n.useState(null),m=(0,c.s)(t,(e=>h(e)),d.onItemTextChange,(e=>u.itemTextRefCallback?.(e,d.value,d.disabled))),y=p?.textContent,g=n.useMemo((()=>(0,P.jsx)("option",{value:d.value,disabled:d.disabled,children:y},d.value)),[d.disabled,d.value,y]),{onNativeOptionAdd:b,onNativeOptionRemove:E}=f;return(0,w.N)((()=>(b(g),()=>E(g))),[b,E,g]),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(v.sG.span,{id:d.textId,...s,ref:m}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?i.createPortal(s.children,l.valueNode):null]})}));ye.displayName=me;var ve="SelectItemIndicator",ge=n.forwardRef(((e,t)=>{const{__scopeSelect:r,...n}=e;return pe(ve,r).isSelected?(0,P.jsx)(v.sG.span,{"aria-hidden":!0,...n,ref:t}):null}));ge.displayName=ve;var be="SelectScrollUpButton",Ee=n.forwardRef(((e,t)=>{const r=X(be,e.__scopeSelect),i=re(be,e.__scopeSelect),[o,a]=n.useState(!1),s=(0,c.s)(t,i.onScrollButtonChange);return(0,w.N)((()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[r.viewport,r.isPositioned]),o?(0,P.jsx)(Ae,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}));
2Ee.displayName=be;var we="SelectScrollDownButton",Se=n.forwardRef(((e,t)=>{const r=X(we,e.__scopeSelect),i=re(we,e.__scopeSelect),[o,a]=n.useState(!1),s=(0,c.s)(t,i.onScrollButtonChange);return(0,w.N)((()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,r=Math.ceil(t.scrollTop)<e;a(r)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[r.viewport,r.isPositioned]),o?(0,P.jsx)(Ae,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}));Se.displayName=we;var Ae=n.forwardRef(((e,t)=>{const{__scopeSelect:r,onAutoScroll:i,...o}=e,s=X("SelectScrollButton",r),c=n.useRef(null),l=C(r),u=n.useCallback((()=>{null!==c.current&&(window.clearInterval(c.current),c.current=null)}),[]);return n.useEffect((()=>()=>u()),[u]),(0,w.N)((()=>{const e=l().find((e=>e.ref.current===document.activeElement));e?.ref.current?.scrollIntoView({block:"nearest"})}),[l]),(0,P.jsx)(v.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.m)(o.onPointerDown,(()=>{null===c.current&&(c.current=window.setInterval(i,50))})),onPointerMove:(0,a.m)(o.onPointerMove,(()=>{s.onItemLeave?.(),null===c.current&&(c.current=window.setInterval(i,50))})),onPointerLeave:(0,a.m)(o.onPointerLeave,(()=>{u()}))})})),_e=n.forwardRef(((e,t)=>{const{__scopeSelect:r,...n}=e;return(0,P.jsx)(v.sG.div,{"aria-hidden":!0,...n,ref:t})}));_e.displayName="SelectSeparator";var xe="SelectArrow",Pe=n.forwardRef(((e,t)=>{const{__scopeSelect:r,...n}=e,i=D(r),o=F(xe,r),a=X(xe,r);return o.open&&"popper"===a.position?(0,P.jsx)(m.i3,{...i,...n,ref:t}):null}));function Ie(e){return""===e||void 0===e}Pe.displayName=xe;var ke=n.forwardRef(((e,t)=>{const{value:r,...i}=e,o=n.useRef(null),a=(0,c.s)(t,o),s=(0,S.Z)(r);return n.useEffect((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(s!==r&&n){const t=new Event("change",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}}),[s,r]),(0,P.jsx)(A.s,{asChild:!0,children:(0,P.jsx)("select",{...i,ref:a,defaultValue:r})})}));function Oe(e){const t=(0,b.c)(e),r=n.useRef(""),i=n.useRef(0),o=n.useCallback((e=>{const n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout((()=>e("")),1e3))}(n)}),[t]),a=n.useCallback((()=>{r.current="",window.clearTimeout(i.current)}),[]);return n.useEffect((()=>()=>window.clearTimeout(i.current)),[]),[r,o,a]}function Te(e,t,r){const n=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,i=r?e.indexOf(r):-1;let o=(a=e,s=Math.max(i,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===n.length&&(o=o.filter((e=>e!==r)));const c=o.find((e=>e.textValue.toLowerCase().startsWith(n.toLowerCase())));return c!==r?c:void 0}ke.displayName="BubbleSelect";var Ce=V,Re=z,Ne=W,Le=H,De=$,Me=q,Fe=ie,je=ce,Be=ue,Ve=he,Ue=ye,ze=ge,Ge=Ee,We=Se,He=_e},39515:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var n=r(14041),i=r(61601),o=r(31085),a="horizontal",s=["horizontal","vertical"],c=n.forwardRef(((e,t)=>{const{decorative:r,orientation:n=a,...c}=e,l=function(e){return s.includes(e)}(n)?n:a,u=r?{role:"none"}:{"aria-orientation":"vertical"===l?l:void 0,role:"separator"};return(0,o.jsx)(i.sG.div,{"data-orientation":l,...u,...c,ref:t})}));c.displayName="Separator";var l=c},34412:(e,t,r)=>{"use strict";r.d(t,{DX:()=>a,xV:()=>c});var n=r(14041),i=r(23349),o=r(31085),a=n.forwardRef(((e,t)=>{const{children:r,...i}=e,a=n.Children.toArray(r),c=a.find(l);if(c){const e=c.props.children,r=a.map((t=>t===c?n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null:t));return(0,o.jsx)(s,{...i,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,o.jsx)(s,{...i,ref:t,children:r})}));a.displayName="Slot";var s=n.forwardRef(((e,t)=>{const{children:r,...o}=e;if(n.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r);return n.cloneElement(r,{...u(o,r.props),ref:t?(0,i.t)(t,e):e})}return n.Children.count(r)>1?n.Children.only(null):null}));s.displayName="SlotClone";var c=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function l(e){return n.isValidElement(e)&&e.type===c}function u(e,t){const r={...t};for(const n in t){const i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}
2:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}},40276:(e,t,r)=>{"use strict";r.d(t,{bL:()=>S,zi:()=>A});var n=r(14041),i=r(23315),o=r(23349),a=r(65087),s=r(88049),c=r(40763),l=r(87071),u=r(61601),d=r(31085),f="Switch",[p,h]=(0,a.A)(f),[m,y]=p(f),v=n.forwardRef(((e,t)=>{const{__scopeSwitch:r,name:a,checked:c,defaultChecked:l,required:f,disabled:p,value:h="on",onCheckedChange:y,...v}=e,[g,b]=n.useState(null),S=(0,o.s)(t,(e=>b(e))),A=n.useRef(!1),_=!g||Boolean(g.closest("form")),[x=!1,P]=(0,s.i)({prop:c,defaultProp:l,onChange:y});return(0,d.jsxs)(m,{scope:r,checked:x,disabled:p,children:[(0,d.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":x,"aria-required":f,"data-state":w(x),"data-disabled":p?"":void 0,disabled:p,value:h,...v,ref:S,onClick:(0,i.m)(e.onClick,(e=>{P((e=>!e)),_&&(A.current=e.isPropagationStopped(),A.current||e.stopPropagation())}))}),_&&(0,d.jsx)(E,{control:g,bubbles:!A.current,name:a,value:h,checked:x,required:f,disabled:p,style:{transform:"translateX(-100%)"}})]})}));v.displayName=f;var g="SwitchThumb",b=n.forwardRef(((e,t)=>{const{__scopeSwitch:r,...n}=e,i=y(g,r);return(0,d.jsx)(u.sG.span,{"data-state":w(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:t})}));b.displayName=g;var E=e=>{const{control:t,checked:r,bubbles:i=!0,...o}=e,a=n.useRef(null),s=(0,c.Z)(r),u=(0,l.X)(t);return n.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==r&&n){const t=new Event("click",{bubbles:i});n.call(e,r),e.dispatchEvent(t)}}),[s,r,i]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:a,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function w(e){return e?"checked":"unchecked"}var S=v,A=b},38404:(e,t,r)=>{"use strict";r.d(t,{B8:()=>O,UC:()=>C,bL:()=>k,l9:()=>T});var n=r(14041),i=r(23315),o=r(65087),a=r(30804),s=r(80813),c=r(61601),l=r(55865),u=r(88049),d=r(12933),f=r(31085),p="Tabs",[h,m]=(0,o.A)(p,[a.RG]),y=(0,a.RG)(),[v,g]=h(p),b=n.forwardRef(((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:p="automatic",...h}=e,m=(0,l.jH)(s),[y,g]=(0,u.i)({prop:n,onChange:i,defaultProp:o});return(0,f.jsx)(v,{scope:r,baseId:(0,d.B)(),value:y,onValueChange:g,orientation:a,dir:m,activationMode:p,children:(0,f.jsx)(c.sG.div,{dir:m,"data-orientation":a,...h,ref:t})})}));b.displayName=p;var E="TabsList",w=n.forwardRef(((e,t)=>{const{__scopeTabs:r,loop:n=!0,...i}=e,o=g(E,r),s=y(r);return(0,f.jsx)(a.bL,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:n,children:(0,f.jsx)(c.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})}));w.displayName=E;var S="TabsTrigger",A=n.forwardRef(((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...s}=e,l=g(S,r),u=y(r),d=P(l.baseId,n),p=I(l.baseId,n),h=n===l.value;return(0,f.jsx)(a.q7,{asChild:!0,...u,focusable:!o,active:h,children:(0,f.jsx)(c.sG.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(n)})),onKeyDown:(0,i.m)(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(n)})),onFocus:(0,i.m)(e.onFocus,(()=>{const e="manual"!==l.activationMode;h||o||!e||l.onValueChange(n)}))})})}));A.displayName=S;var _="TabsContent",x=n.forwardRef(((e,t)=>{const{__scopeTabs:r,value:i,forceMount:o,children:a,...l}=e,u=g(_,r),d=P(u.baseId,i),p=I(u.baseId,i),h=i===u.value,m=n.useRef(h);return n.useEffect((()=>{const e=requestAnimationFrame((()=>m.current=!1));return()=>cancelAnimationFrame(e)}),[]),(0,f.jsx)(s.C,{present:o||h,children:({present:r})=>(0,f.jsx)(c.sG.div,{"data-state":h?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:p,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&a})})}));function P(e,t){return`${e}-trigger-${t}`}function I(e,t){return`${e}-content-${t}`}x.displayName=_;var k=b,O=w,T=A,C=x},22311:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>W,UC:()=>Y,bL:()=>H,i3:()=>q,l9:()=>$});var n=r(14041),i=r(23315),o=r(23349),a=r(65087),s=r(32932),c=r(12933),l=r(67602),u=r(21322),d=r(80813),f=r(61601),p=r(34412),h=r(88049),m=r(73326),y=r(31085),[v,g]=(0,a.A)("Tooltip",[l.Bk]),b=(0,l.Bk)(),E="TooltipProvider",w=700,S="tooltip.open",[A,_]=v(E),x=e=>{const{__scopeTooltip:t,delayDuration:r=w,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:a}=e,[s,c]=n.useState(!0),l=n.useRef(!1),u=n.useRef(0);return n.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),(0,y.jsx)(A,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:n.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),onClose:n.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),i)}),[i]),isPointerInTransitRef:l,onPointerInTransitChange:n.useCallback((e=>{l.current=e}),[]),disableHoverableContent:o,children:a})};x.displayName=E;var P="Tooltip",[I,k]=v(P),O=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:u}=e,d=_(P,e.__scopeTooltip),f=b(t),[p,m]=n.useState(null),v=(0,c.B)(),g=n.useRef(0),E=s??d.disableHoverableContent,w=u??d.delayDuration,A=n.useRef(!1),[x=!1,k]=(0,h.i)({prop:i,defaultProp:o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(S))):d.onClose(),a?.(e)}}),O=n.useMemo((()=>x?A.current?"delayed-open":"instant-open":"closed"),[x]),T=n.useCallback((()=>{window.clearTimeout(g.current),A.current=!1,k(!0)}),[k]),C=n.useCallback((()=>{window.clearTimeout(g.current),k(!1)}),[k]),R=n.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>{A.current=!0,k(!0)}),w)}),[w,k]);return n.useEffect((()=>()=>window.clearTimeout(g.current)),[]),(0,y.jsx)(l.bL,{...f,children:(0,y.jsx)(I,{scope:t,contentId:v,open:x,stateAttribute:O,trigger:p,onTriggerChange:m,onTriggerEnter:n.useCallback((()=>{d.isOpenDelayed?R():T()}),[d.isOpenDelayed,R,T]),onTriggerLeave:n.useCallback((()=>{E?C():window.clearTimeout(g.current)}),[C,E]),onOpen:T,onClose:C,disableHoverableContent:E,children:r})})};O.displayName=P;var T="TooltipTrigger",C=n.forwardRef(((e,t)=>{const{__scopeTooltip:r,...a}=e,s=k(T,r),c=_(T,r),u=b(r),d=n.useRef(null),p=(0,o.s)(t,d,s.onTriggerChange),h=n.useRef(!1),m=n.useRef(!1),v=n.useCallback((()=>h.current=!1),[]);return n.useEffect((()=>()=>document.removeEventListener("pointerup",v)),[v]),(0,y.jsx)(l.Mz,{asChild:!0,...u,children:(0,y.jsx)(f.sG.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:p,onPointerMove:(0,i.m)(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(m.current||c.isPointerInTransitRef.current||(s.onTriggerEnter(),m.current=!0))})),onPointerLeave:(0,i.m)(e.onPointerLeave,(()=>{s.onTriggerLeave(),m.current=!1})),onPointerDown:(0,i.m)(e.onPointerDown,(()=>{h.current=!0,document.addEventListener("pointerup",v,{once:!0})})),onFocus:(0,i.m)(e.onFocus,(()=>{h.current||s.onOpen()})),onBlur:(0,i.m)(e.onBlur,s.onClose),onClick:(0,i.m)(e.onClick,s.onClose)})})}));C.displayName=T;var R="TooltipPortal",[N,L]=v(R,{forceMount:void 0}),D=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=k(R,t);return(0,y.jsx)(N,{scope:t,forceMount:r,children:(0,y.jsx)(d.C,{present:r||o.open,children:(0,y.jsx)(u.Z,{asChild:!0,container:i,children:n})})})};D.displayName=R;var M="TooltipContent",F=n.forwardRef(((e,t)=>{const r=L(M,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,a=k(M,e.__scopeTooltip);return(0,y.jsx)(d.C,{present:n||a.open,children:a.disableHoverableContent?(0,y.jsx)(U,{side:i,...o,ref:t}):(0,y.jsx)(j,{side:i,...o,ref:t})})})),j=n.forwardRef(((e,t)=>{const r=k(M,e.__scopeTooltip),i=_(M,e.__scopeTooltip),a=n.useRef(null),s=(0,o.s)(t,a),[c,l]=n.useState(null),{trigger:u,onClose:d}=r,f=a.current,{onPointerInTransitChange:p}=i,h=n.useCallback((()=>
vendor: 1,920 bytes, line 2
2{l(null),p(!1)}),[p]),m=n.useCallback(((e,t)=>{const r=e.currentTarget,n={x:e.clientX,y:e.clientY},i=function(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,function(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}(n,r.getBoundingClientRect())),o=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const r=[];for(let t=e.length-1;t>=0;t--){const n=e[t];for(;r.length>=2;){const e=r[r.length-1],t=r[r.length-2];if(!((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x)))break;r.pop()}r.push(n)}return r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}(t)}([...i,...function(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect())]);l(o),p(!0)}),[p]);return n.useEffect((()=>()=>h()),[h]),n.useEffect((()=>{if(u&&f){const e=e=>m(e,f),t=e=>m(e,u);return u.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[u,f,m,h]),n.useEffect((()=>{if(c){const e=e=>{const t=e.target,r={x:e.clientX,y:e.clientY},n=u?.contains(t)||f?.contains(t),i=!function(e,t){const{x:r,y:n}=e;let i=!1;for(let e=0,o=t.length-1;e<t.length;
2o=e++){const a=t[e].x,s=t[e].y,c=t[o].x,l=t[o].y;s>n!=l>n&&r<(c-a)*(n-s)/(l-s)+a&&(i=!i)}return i}(r,c);n?h():i&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,f,c,d,h]),(0,y.jsx)(U,{...e,ref:s})})),[B,V]=v(P,{isInside:!1}),U=n.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:c,...u}=e,d=k(M,r),f=b(r),{onClose:h}=d;return n.useEffect((()=>(document.addEventListener(S,h),()=>document.removeEventListener(S,h))),[h]),n.useEffect((()=>{if(d.trigger){const e=e=>{const t=e.target;t?.contains(d.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[d.trigger,h]),(0,y.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,y.jsxs)(l.UC,{"data-state":d.stateAttribute,...f,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,y.jsx)(p.xV,{children:i}),(0,y.jsx)(B,{scope:r,isInside:!0,children:(0,y.jsx)(m.b,{id:d.contentId,role:"tooltip",children:o||i})})]})})}));F.displayName=M;var z="TooltipArrow",G=n.forwardRef(((e,t)=>{const{__scopeTooltip:r,...n}=e,i=b(r);return V(z,r).isInside?null:(0,y.jsx)(l.i3,{...i,...n,ref:t})}));G.displayName=z;var W=x,H=O,$=C,Y=F,q=G},73645:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(14041);function i(e){const t=n.useRef(e);return n.useEffect((()=>{t.current=e})),n.useMemo((()=>(...e)=>t.current?.(...e)),[])}},88049:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(14041),i=r(73645);function o({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[o,a]=function({defaultProp:e,onChange:t}){const r=n.useState(e),[o]=r,a=n.useRef(o),s=(0,i.c)(t);return n.useEffect((()=>{a.current!==o&&(s(o),a.current=o)}),[o,a,s]),r}({defaultProp:t,onChange:r}),s=void 0!==e,c=s?e:o,l=(0,i.c)(r);return[c,n.useCallback((t=>{if(s){const r="function"==typeof t?t(e):t;r!==e&&l(r)}else a(t)}),[s,e,a,l])]}},60095:(e,t,r)=>{"use strict";r.d(t,{U:()=>o});var n=r(14041),i=r(73645);function o(e,t=globalThis?.document){const r=(0,i.c)(e);n.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[r,t])}},47210:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(14041),i=Boolean(globalThis?.document)?n.useLayoutEffect:()=>{}},40763:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(14041);function i(e){const t=n.useRef({value:e,previous:e});return n.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}},87071:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=r(14041),i=r(47210);function o(e){const[t,r]=n.useState(void 0);return(0,i.N)((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let i,o;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,o=t.blockSize}else i=e.offsetWidth,o=e.offsetHeight;r({width:i,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),t}},73326:(e,t,r)=>{"use strict";r.d(t,{b:()=>s,s:()=>a});var n=r(14041),i=r(61601),o=r(31085),a=n.forwardRef(((e,t)=>(0,o.jsx)(i.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));a.displayName="VisuallyHidden";var s=a},71490:(e,t,r)=>{"use strict";r.d(t,{Nf:()=>i,cy:()=>o,mH:()=>l,un:()=>p});var n=r(14041);const i="undefined"!=typeof window?n.useLayoutEffect:()=>{};new Map;function o(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}new Set(["id"]),new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);let a=new Map,s=new Set;function c(){if("undefined"==typeof window)return;let e=t=>{let r=a.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",e),a.delete(t.target)),0===a.size)){for(let e of s)e();s.clear()}};document.body.addEventListener("transitionrun",(t=>{let r=a.get(t.target);r||(r=new Set,a.set(t.target,r),t.target.addEventListener("transitioncancel",e)),r.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?c():document.addEventListener("DOMContentLoaded",c));function l(e){for(u(e)&&(e=e.parentElement);e&&!u(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function u(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}
2"undefined"!=typeof window&&window.visualViewport;new Map;function d(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function f(){return d(/^Mac/i)}function p(){return d(/^iPhone/i)||d(/^iPad/i)||f()&&navigator.maxTouchPoints>1}},56454:e=>{"use strict";e.exports=function(e){var t=e.tick,r=e.onTick,n=e.duration,i=void 0===n?240:n,o=e.ease,a=void 0===o?function(e){return.5*(1-Math.cos(Math.PI*e))}:o;t=t||r;var s=window.performance&&window.performance.now()||Date.now(),c=void 0;return new Promise((function(e){if(!window.requestAnimationFrame)return t(1),void e();!function r(){c=window.requestAnimationFrame((function(){return r()}));var n=((window.performance&&window.performance.now()||Date.now())-s)/i,o=a(n>1?1:n);t(o),n>=1&&(window.cancelAnimationFrame(c),e())}()}))}},24788:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>u});var n=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},i=new WeakMap,o=new WeakMap,a={},s=0,c=function(e){return e&&(e.host||c(e.parentNode))},l=function(e,t,r,n){var l=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=c(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);a[r]||(a[r]=new WeakMap);var u=a[r],d=[],f=new Set,p=new Set(l),h=function(e){e&&!f.has(e)&&(f.add(e),h(e.parentNode))};l.forEach(h);var m=function(e){e&&!p.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(f.has(e))m(e);else{var t=e.getAttribute(n),a=null!==t&&"false"!==t,s=(i.get(e)||0)+1,c=(u.get(e)||0)+1;i.set(e,s),u.set(e,c),d.push(e),1===s&&a&&o.set(e,!0),1===c&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}}))};return m(t),f.clear(),s++,function(){d.forEach((function(e){var t=i.get(e)-1,a=u.get(e)-1;i.set(e,t),u.set(e,a),t||(o.has(e)||e.removeAttribute(n),o.delete(e)),a||e.removeAttribute(r)})),--s||(i=new WeakMap,i=new WeakMap,o=new WeakMap,a={})}},u=function(e,t,r){void 0===r&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=t||n(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),l(i,o,r,"aria-hidden")):function(){return null}}},89289:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},51592:(e,t,r)=>{"use strict";r.d(t,{W:()=>i,s:()=>n});var n={UVOFORM_SUBMIT_STARTED:"uvoform-start-submit",UVOFORM_SUBMIT_PREVENTED:"uvoform-submit-prevented",USER_AUTH:"authentication",USER_SIGN_IN:"user-sign-in",USER_SIGN_UP:"user-sign-up",USER_LOG_OUT:"user-log-out",FUNNEL_ANONYMOUS:"funnel-anonymous",FUNNEL_CLIENT:"funnel-client",FUNNEL_PAID_CLIENT:"funnel-paid-client",REFERRAL_PROGRAM:"ref_prog"},i={VIEW_ITEM:"ga4.view_item",ADD_TO_CART:"ga4.add_to_cart",BEGIN_CHECKOUT:"ga4.begin_checkout",ADD_PAYMENT_INFO:"ga4.add_payment_info",PURCHASE:"ga4.purchase",REMOVE_FROM_CART:"ga4.remove_from_cart",VIEW_PROMOTION:"ga4.view_promotion",SELECT_PROMOTION:"ga4.select_promotion",CLOSE_PROMOTION:"ga4.close_promotion"}},17198:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});r(97041),r(96152),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(3492),i=r(91222);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=function(e,t){var r=function(){return{event:t,timestamp:Date.now(),orderUuid:e.orderUuid,orderServiceType:e.orderServiceType,currentStep:e.currentStep,currentPrice:e.price,dueDate:e.dueDate,deadline:e.tariff,discipline:e.discipline,hasInstructions:e.hasInstructions,hasInstructionsFile:e.hasInstructionsFile}};(0,i.A)(e.orderServiceTypeId===n.B5.ACADEMIC_WRITING?s(s({},r()),{},{academicLevel:e.academicLevel,typeOfPaper:e.paperType,pages:e.pages,charts:e.charts,slides:e.slides,paperFormatId:e.paperFormatId,referencesToBeUsed:e.sources,paperLevelId:e.paperLevelId,languageStyleId:e.languageStyleId,hasCalculationsAndSubjectExpertise:e.hasCalculationsAndSubjectExpertise}):s(s({},r()),{},{software:e.software||void 0,taskSize:e.size}))}},98725:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(97041),r(96152),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(3492);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=e.isAdditionalPayment?e.additionalPages:e.pages;return{item_name:"Academic writing",item_id:String(e.id||Date.now()),item_parent_id:e.parentId,item_order_uuid:e.orderUuid,price:e.noDiscountPrice,discount:e.discount,item_brand:e.discipline,item_category:e.paperType,item_category2:e.academicLevel,item_category3:e.paperLevelId,item_category4:e.paperFormat,item_category5:e.languageStyleId,item_split_payment:e.hasPayIn2,item_split_payparts:e.payInPartsValue,item_variant:e.deadline,item_list_name:e.formTypeForAnalytics||"AddPaymentLink",index:t,coupon:e.couponCode,quantity:1}}function l(e){if(e.isInquiry)return function(e){return{item_name:"Academic writing",item_id:String(e.id||Date.now()),item_parent_id:e.parentId,item_order_uuid:e.orderUuid,price:e.noDiscountPrice,item_brand:e.discipline,item_category:e.paperType,item_category2:e.academicLevel,item_variant:e.deadline,item_list_name:e.formTypeForAnalytics||"AddPaymentLink",index:e.pages,quantity:1}}(e);switch(e.orderServiceTypeId){case n.B5.PROGRAMMING:return function(e){return{item_name:"Programming",item_id:String(e.id||Date.now()),item_parent_id:e.parentId,item_order_uuid:e.orderUuid,price:e.noDiscountPrice,discount:e.discount,item_brand:e.discipline,item_category:e.language,item_category3:e.size,item_split_payment:e.hasPayIn2,item_variant:e.deadline,item_list_name:e.formTypeForAnalytics||"AddPaymentLink",coupon:e.couponCode,quantity:1}}(e);case n.B5.CALCULATIONS:return function(e){return{item_name:"Calculations",item_id:String(e.id||Date.now()),item_parent_id:e.parentId,item_order_uuid:e.orderUuid,price:e.noDiscountPrice,discount:e.discount,item_brand:e.discipline,item_category:e.software,item_category3:e.size,item_variant:e.deadline,item_list_name:e.formTypeForAnalytics||"AddPaymentLink",coupon:e.couponCode,quantity:1}}(e);case n.B5.REVISION_MINOR:return function(e){return a(a({},c(e)),{},{item_name:"Revision Minor"})}(e);case n.B5.REVISION_MAJOR:return function(e){return a(a({},c(e)),{},{item_name:"Revision Major"})}(e);case n.B5.ACADEMIC_WRITING:default:return c(e)}}},56886:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(59161),r(48851),r(96656),r(94356),r(45993),r(68450),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180);var n,i,o=r(3492);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=(s(n={},o.bv.CHECKOUT,"checkout"),s(n,o.bv.SOLID,"solid"),n),l=(s(i={},o.A8.REDIRECT,"redirect"),s(i,o.A8.SDK,"card"),s(i,o.A8.APPLE_PAY,"applepay"),s(i,o.A8.GOOGLE_PAY,"googlepay"),i);function u(e){var t=e.paymentMethodId,r=e.paymentIntegrationTypeId;return"".concat(c[t],"_").concat(l[r])}},30654:(e,t,r)=>{"use strict";r.r(t),r.d(t,{addPaymentInfo:()=>d,addToCard:()=>c,beginCheckout:()=>u,closePromotion:()=>m,purchase:()=>f,removeFromCart:()=>l,selectPromotion:()=>h,viewItem:()=>s,viewPromotion:()=>p});var n=r(91222),i=r(51592),o=r(98725),a=r(56886);function s(e){(0,n.A)({event:i.W.VIEW_ITEM,ecommerce:{items:[(0,o.A)(e)]}})}function c(e){(0,n.A)({event:i.W.ADD_TO_CART,ecommerce:{items:[(0,o.A)(e)]}})}function l(e){(0,n.A)({event:i.W.REMOVE_FROM_CART,ecommerce:{items:[(0,o.A)(e)]}})}function u(e){(0,n.A)({event:i.W.BEGIN_CHECKOUT,ecommerce:{items:[(0,o.A)(e)]}})}function d(e){(0,n.A)({event:i.W.ADD_PAYMENT_INFO,ecommerce:{payment_type:(0,a.A)(e),items:[(0,o.A)(e)]}})}function f(e){(0,n.A)({event:i.W.PURCHASE,ecommerce:{currency:e.currency||"USD",value:e.price,tax:e.tax,shipping:0,transaction_id:String(e.id),items:[(0,o.A)(e)]}})}function p(e){(0,n.A)({event:i.W.VIEW_PROMOTION,ecommerce:{items:[e]}})}function h(e){(0,n.A)({event:i.W.SELECT_PROMOTION,ecommerce:{items:[e]}})}function m(e){(0,n.A)({event:i.W.CLOSE_PROMOTION,ecommerce:{items:[e]}})}},24289:(e,t,r)=>{"use strict";r.d(t,{Bw:()=>a.B,Cp:()=>i.Cp,Fs:()=>o.Fs,Q5:()=>o.Q5,Rx:()=>o.Rx,TL:()=>i.TL,TQ:()=>s,UQ:()=>o.UQ,WH:()=>o.WH,ZH:()=>o.ZH,ed:()=>i.ed,j8:()=>o.j8,mv:()=>
2o.mv,qf:()=>o.qf,qv:()=>o.qv,sK:()=>n.s});var n=r(51592),i=r(91148),o=r(84189),a=r(17198),s=r(30654)},84189:(e,t,r)=>{"use strict";r.d(t,{Fs:()=>I,Q5:()=>A,Rx:()=>c.A,UQ:()=>g,WH:()=>v,ZH:()=>P,j8:()=>b,mv:()=>E,qf:()=>w,qv:()=>S});r(59161),r(29416),r(25400),r(57931),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993),r(84766),r(96152),r(34237),r(74874),r(93831),r(40890),r(85146),r(54),r(95570),r(37210),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180);var n,i,o=r(3492),a=r(58165),s=r(91222),c=r(25723),l=r(51592),u=r(30654);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===d(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&(0,s.A)(m({event:e},t))},g=function(e){var t=e.location;(0,s.A)({event:"trackNavigation",location:t})},b=function(e){var t=e.GAUserId,r=e.paidOrdersCount;(0,s.A)({event:"paidOrders",paidOrders:r||0,userId:t})},E=function(e){e&&(0,s.A)({event:"discipline",disciplineType:e})},w=function(e){e&&(0,s.A)({event:"typeOfPaper",typeOfPaper:e})},S=function(e){e&&(0,s.A)(m({event:"formInteraction"},e))},A=function(e){var t,r,n,i,o,c=l.s.FUNNEL_ANONYMOUS;e&&(c=e.hasPayments?l.s.FUNNEL_PAID_CLIENT:l.s.FUNNEL_CLIENT),(0,s.A)({event:c,userId:null!==(t=null==e?void 0:e.GAUserId)&&void 0!==t?t:null,paidOrders:null!==(r=null==e?void 0:e.paidOrdersCount)&&void 0!==r?r:null,latestOrderId:null!==(n=null==e?void 0:e.latestOrderId)&&void 0!==n?n:null,country:null!==(i=null==e||null===(o=e.country)||void 0===o?void 0:o.id)&&void 0!==i?i:null,email:null!=e&&e.email?(0,a.ZA)(e.GAUserId,e.email):null,phone:null!=e&&e.phone?(0,a.ZA)(e.GAUserId,e.phone):null,name:null!=e&&e.name?(0,a.ZA)(e.GAUserId,e.name):null})},_=(y(n={},o.o$.TOP,"top"),y(n,o.o$.ADVANCED,"advanced"),y(n,o.o$.PROFICIENT,"proficient"),y(n,o.o$.CHARTS,"charts"),y(n,o.o$.SLIDES,"slides"),y(n,o.o$.SOURCES,"sources"),y(n,o.o$.CALCULATIONS_AND_SUBJECT_EXPERTISE,"calculationsAndSubject"),n),x=(y(i={},o.ks.PAGES_QTY,"Pages"),y(i,o.ks.DISCIPLINE,"Discipline"),y(i,o.ks.TYPE_OF_PAPER,"TypeOfPaper"),y(i,o.ks.ACADEMIC_LEVEL,"Aca
2demicLevel"),i),P=function(e){var t=e.type,r=f(e.triggers,2),n=r[0],i=r[1],o=e.html,a=e.orderUuid,s=[],c=f(n,2),l=c[0],d=c[1],p=x[l],h={promotion_name:[p,d].join("_"),creative_slot:_[t],location_id:o,item_order_uuid:a};if(s.push(p),Array.isArray(i)){var m=f(i,2),y=m[0],v=m[1],g=x[y];s.push(g),h.creative_name=[g,v].join("_")}s.push(_[t]),h.promotion_id=s.join("_"),(0,u.viewPromotion)(h)},I=function(e){var t=e.orderId,r=e.fileId,n=e.userId,i=e.action,o=e.status;(0,s.A)({event:"plag_ai_reports",action:i,status:o,orderId:t,fileId:r,userId:n})}},91222:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});r(95570);const n=function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];window.dataLayer||(window.dataLayer=[]),(e=window.dataLayer).push.apply(e,r)}},25723:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});r(95570);void 0!==window&&(window.hj=window.hj||function(){(hj.q=hj.q||[]).push(arguments)});const n=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(n=window).hj.apply(n,t)}},91148:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>a,TL:()=>i,ed:()=>o});r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var i=function(){return"object"===n(window.Sentry)},o=function(e){i()&&"function"==typeof window.Sentry.withScope&&window.Sentry.withScope(e)},a=function(e){i()&&"function"==typeof window.Sentry.captureException&&window.Sentry.captureException(e)}},33166:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={HIGH_SCHOOL:1,UNDERGRAD_1_2:2,UNDERGRAD_3_4:3,GRADUATE:4,PHD:5}},7914:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={ADD_WRITING_PAGES:"page",ADD_WRITING_SLIDES:"slide",ADD_WRITING_CHARTS:"chart",ADD_PROGRESSIVE_DELIVERY:"progressive",ADD_USED_SOURCES:"sources",ADD_SHORTEN_DEADLINE:"shorten"}},91295:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={GOOGLE:1,APPLE:3}},80903:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={SIGN_IN_AUTH_TYPE:"SIGN_IN_AUTH_TYPE",SIGN_UP_AUTH_TYPE:"SIGN_UP_AUTH_TYPE"}},21287:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={PAPER_FORMAT_OTHER_ID:4,DISCIPLINE_OTHER_ID:52,TYPE_OF_PAPER_OTHER_ID:64,TYPE_OF_PAPER_PRESENTATION_PPT_ID:55,ACADEMIC_LEVEL_COLLAGE_ID:1,ACADEMIC_LEVEL_UNDERGRADUATE_1_2_ID:2,DISSERTATION_PAPERTYPE_MIN_ACADEMIC_LEVEL:3,PROGRAMMING_LANGUAGE_OTHER_ID:24,SOFTWARE_OTHER_ID:12,MOBILE_APPLICATIONS_DEVELOPMENT_ID:84,DESKTOP_APPLICATIONS_DEVELOPMENT_ID:83,DATABASE_DESIGN_AND_OPTIMIZATION_ID:85}},3626:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={PERCENT:1,AMOUNT:3}},40185:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={LIFETIME:15,LOYALTY_PROGRAM_LIFETIME_3:217,LOYALTY_PROGRAM_LIFETIME_5:218,LOYALTY_PROGRAM_LIFETIME_7:219,LOYALTY_PROGRAM_LIFETIME_10:220,LAST_MINUTE_LIFESAVER:213,ADVANCED:214,TOP_LEVEL:215,REFERRAL_REFERRER:21,REFERRAL_REFERRAL:23,MANUAL_REACTIVATION:39,REWARD_FOR_PARTICIPATION_CX_ACTIVITIES:79}},86019:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={ORDER:1,SERVICE:3}},69173:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={USER_LOG_IN:"userLoggedIn",USER_LOG_OUT:"userLoggedOut"}},67372:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={BELOW_EXPECTATIONS:5,AS_EXPECTED:3,ABOVE_EXPECTATIONS:1}},50277:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={JSON_PARSE:"JSON_PARSE",UNAUTHORIZED:"UNAUTHORIZED",HTTP_REQUEST_ABORTED:"HTTP_REQUEST_ABORTED",HTTP_REQUEST_TIMEOUT:"HTTP_REQUEST_TIMEOUT",HTTP_REQUEST_ERROR:"HTTP_REQUEST_ERROR",SERVER_DOWN:"SERVER_DOWN",ACCESS_DENIED:"ACCESS_DENIED",NOT_FOUND:"NOT_FOUND",AUTH_INCORRECT_LOGIN_PASSWORD:"AUTH_INCORRECT_LOGIN_PASSWORD",SERVER_VALIDATION:"SERVER_VALIDATION",VALIDATION_FAILED:"VALIDATION_FAILED",EMAIL_IS_NOT_REGISTERED:"EMAIL_IS_NOT_REGISTERED",EMAIL_IS_ALREADY_REGISTERED:"EMAIL_IS_ALREADY_REGISTERED",INVALID_RECOVERY_HASH:"INVALID_RECOVERY_HASH",INVALID_PHONE_NUMBER:"INVALID_PHONE_NUMBER",UVOFORM_VALIDATION_ALL_ZERO:"UVOFORM_VALIDATION_ALL_ZERO",UVOFORM_UNAUTHORIZED:"UVOFORM_UNAUTHORIZED",UVOFORM_FILES_NOT_UPLOADED:"UVOFORM_FILES_NOT_UPLOADED",UVOFORM_INVA
2LID_FILE:"UVOFORM_INVALID_FILE",OUTDATED_CACHE:"OUTDATED_CACHE",NO_CACHE:"NO_CACHE",INVALID_DATA:"INVALID_DATA",EVAL_JS:"EVAL_JS",NO_INTERNET_CONNECTION:"NO_INTERNET_CONNECTION",NO_USER_POLICY_ACCEPTED:"NO_USER_POLICY_ACCEPTED",NO_USER_PERSONAL_DATA:"NO_USER_PERSONAL_DATA",PERMISSION_DENIED:"PERMISSION_DENIED",FIREBASE_ERROR:"FIREBASE_ERROR",IMPORT_ERROR:"IMPORT_ERROR",THIRD_PARTY_LIBRARY_ERROR:"THIRD_PARTY_LIBRARY_ERROR",WEB_API_ERROR:"WEB_API_ERROR"}},75881:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={PLAGIARISM_REPORT:"PLAGIARISM_REPORT",AI_REPORT:"AI_REPORT"}},42763:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={SELECTED_FILE_FOR_PAID_REVISION:37,UNSELECTED_FILE_FOR_PAID_REVISION:43,BASE_ORDER_FILE_FOR_PAID_REVISION:61,UPLOAD_INSTRUCTIONS_FILE:71}},89081:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={MAX_UPLOADING_FILE_SIZE:103809024,MAX_UPLOADING_FILE_SIZE_FOR_CUSTOMWRITINGS:208666624}},41818:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={DISCIPLINE_IS_NOCOLLAGE:"DISCIPLINE_IS_NOCOLLAGE",ACADEMIC_LEVEL_NO_DISSERTATION:"ACADEMIC_LEVEL_NO_DISSERTATION",DISCIPLINE_REQUIRED:"DISCIPLINE_REQUIRED",TYPE_OF_PAPER_REQUIRED:"TYPE_OF_PAPER_REQUIRED",PAPER_FORMAT_REQUIRED:"PAPER_FORMAT_REQUIRED",ALL_ZERO:"ALL_ZERO",ALL_ZERO_SINGLE_SPACED:"ALL_ZERO_SINGLE_SPACED",FILES_DESCRIPTION_REQUIRED:"FILES_DESCRIPTION_REQUIRED",NO_FILES_AND_INSTRUCTIONS:"NO_FILES_AND_INSTRUCTIONS",FORM_RESTORED:"FORM_RESTORED",DEADLINE_CHANGED:"DEADLINE_CHANGED"}},57098:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={PAPER_DETAILS:"paperDetails",SOFTWARE_OTHER:"softwareOther",LANGUAGE_OTHER:"languageOther",TOPCAT_OTHER:"topcatOther",DISCIPLINE_OTHER:"disciplineOther",TITLE:"title",COUPON_CODE:"couponCode",ORDER_SERVICE_TYPE_ID:"orderServiceTypeId",PAPER_TYPE_ID:"paperTypeId",PAPER_TYPE_OTHER:"paperTypeOther",ACADEMIC_LEVEL_ID:"academicLevelId",DEADLINE_ID:"deadlineId",PAPER_LEVEL_ID:"paperLevelId",LANGUAGE_STYLE:"languageStyleId",PAGES:"pages",PAPER_FORMAT:"paperFormat",PAPER_FORMAT_OTHER:"paperFormatOther",TOPCAT_ID:"topcatId",DISCIPLINE_ID:"disciplineId",SOFTWARE_ID:"softwareId",LANGUAGE_ID:"languageId",SIZE_ID:"sizeId",SPACING:"spacing",SOURCES:"sources",CHARTS:"charts",SLIDES:"slides",REQUESTED_WRITER_ID:"requestedWriterId",SPLIT_PAYMENT:"splitPayment",PAY_IN_PARTS_SWITCH:"payInPartsSwitch",PAY_IN_PARTS:"payInPartsId",USED_SOURCES:"usedsources",PROGRESSIVE_DELIVERY:"progressiveDeliveryHidden",ONLY_OWN_CODE_SOLUTION:"onlyOwnCodeSolution",WELL_COMMENTED_CODE:"wellCommentedCode",TOP_EXPERT:"topExpert",PREMIUM_AI_REPORT:"premiumAIReport",CALCULATIONS_AND_SUBJECT_EXPERTISE:"calculations",FILES:"files"}},46959:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={ORDER_CREATE_FORM:"lightOrderCreate",INQUIRY_CREATE_FORM:"InquiryCreate",ORDER_PAY_FORM:"OrderPay",REORDER_FORM:"Reorder",PAID_REVISION_FORM:"PaidRevision",ADDITIONAL_SERVICES_FORM:"AdditionalPayment",ADD_PAYMENT_LINK_FORM:"AddPaymentLink"}},91573:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={BUTTON:"button",ONE_TAP:"one_tap"}},56498:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={FIRST:"firstInstallment",SECOND:"secondInstallment"}},52802:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={SIMPLE:3,REGULAR:2,PROFICIENT:1}},86775:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={LIFETIME:1,BONUSES:2,POINTS_BASED_LIFETIME:3,COUPONS_FOR_SUBSEQUENT_ORDERS:4}},79903:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={SUPPORT:"send_to_support",WRITER:"send_to_writer"}},1071:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={MODAL_AUTH:"MODAL_AUTH",MODAL_LOST_PASS:"MODAL_LOST_PASS",MODAL_RELOGIN_NEEDED:"MODAL_RELOGIN_NEEDED",MODAL_ORDERFORM_HOURS_PER_PAGE_NOTICE:"MODAL_ORDERFORM_HOURS_PER_PAGE_NOTICE",MODAL_ORDERFORM_PHONE_NUMBER:"MODAL_ORDERFORM_PHONE_NUMBER",MODAL_DELETE_PHONE_NUMBER:"MODAL_DELETE_PHONE_NUMBER",MODAL_PHONE_NUMBER_UPDATE:"MODAL_PHONE_NUMBER_UPDATE",MODAL_NOTIFICATION_PREFERENCES:"MODAL_NOTIFICATION_PREFERENCES",MODAL_ORDERFORM_USER_COUNTRY:"MODAL_ORDERFORM_USER_COUNTRY",MODAL_ORDER_UPLOAD_FILES:"MODAL_ORDER_UPLOAD_FILES",MODAL_ORDER_APPROVE_ORDER:"MODAL_ORDER_APPROVE_ORDER",MODAL_ORDER_APPROVE_PART:"MODAL_ORDER_APPROVE_PART",MODAL_REQUEST_REVISION:"MODAL_REQUEST_REVISION",MODAL_REVISION_SUCCESS:"MODAL_REVISION_SUCCESS",MODAL_REVISION_LATEST_FILE_REVIEW:"MODAL_REVISION_LATEST_FILE_REVIEW",MODAL_ADD_SERVICE_NOTICE_1HOUR_1PAGE:"MODAL_ADD_SERVICE_NOTICE_1HOUR_1PAGE",MODAL_ORDER_REQUEST_REFUND:"MODAL_ORDER_REQUEST_REFUND",MODAL_ORDERFORM_UNPAID_ORDERS:"MODA
2L_ORDERFORM_UNPAID_ORDERS",MODAL_FILES_DELETED:"MODAL_FILES_DELETED",MODAL_ACCEPT_POLICY:"MODAL_ACCEPT_POLICY",MODAL_UPDATE_PERSONAL_DATA:"MODAL_UPDATE_PERSONAL_DATA",MODAL_OTHER_OPTION:"MODAL_OTHER_OPTION",MODAL_TIPS:"MODAL_TIPS",MODAL_CONSENT:"MODAL_CONSENT",MODAL_ADVOCACY_QUESTIONNAIRE:"MODAL_ADVOCACY_QUESTIONNAIRE",MODAL_DELETE_ACCOUNT:"MODAL_DELETE_ACCOUNT",MODAL_HOW_TO_GET_THE_BEST_RESULTS:"MODAL_HOW_TO_GET_THE_BEST_RESULTS",MODAL_CALENDAR:"MODAL_CALENDAR",MODAL_PLAG_AI_REPORT:"MODAL_PLAG_AI_REPORT",MODAL_UNSAVED_CHANGES:"MODAL_UNSAVED_CHANGES",MODAL_PHONE_NOTIFICATION_PREFERENCES_UPDATE:"MODAL_PHONE_NOTIFICATION_PREFERENCES_UPDATE",MODAL_PROFESSORS_FEEDBACK_PROMO:"MODAL_PROFESSORS_FEEDBACK_PROMO",MODAL_AVAILABLE_COUPONS:"MODAL_AVAILABLE_COUPONS"}},6352:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={REFERRAL_PROGRAM:1}},22290:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={INFO:"info",PRIMARY:"primary",WARNING:"warning",DANGER:"danger"}},35434:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});var n={EMAIL_AND_SMS:"EMAIL_AND_SMS",EMAIL_AND_WHATSAPP:"EMAIL_AND_WHATSAPP",ONLY_EMAIL:"ONLY_EMAIL"}},60663:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={PENDING_VERIFICATION:1,ACTIVE:2,SUSPENDED:3,INVALID:4,FAILED:5,EXPIRED:5}},95200:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={PROFESSORS_FEEDBACK:"PROFESSORS_FEEDBACK",UPDATE_CONTACT_INFO:"UPDATE_CONTACT_INFO",CHOOSE_COUPON:"CHOOSE_COUPON",REFERRAL_PROGRAM:"REFERRAL_PROGRAM"}},73909:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={NEW_ORDER:"newOrder",ORDER_PAY:"pay",REORDER:"reorder",NEW_INQUIRY:"newInquiry"}},51899:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={TOP:1,ADVANCED:2,PROFICIENT:3,CHARTS:4,SLIDES:5,SOURCES:6,CALCULATIONS_AND_SUBJECT_EXPERTISE:7}},79556:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={ACADEMIC_WRITING:37,REVISION_MINOR:42,REVISION_MAJOR:43,CALCULATIONS:45,PROGRAMMING:46}},16178:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={DISPUTE:1,FAKE:0,CONFIRMATION_PENDING:2,WRITER_ASSIGNED:6,WRITER_ACCEPTED:7,DONE:8,CANCELLED:9,FINISHED:10,DELIVERED:11,NEW_PAID:12,FREE_INQUIRY:13,REVISION:14,REPLY_PENDING:15,INQUERY_PUBLISHED:16,INQUERY_WRITER_ACCEPTED:17,ORDER_PUBLISHED:19,CONVERT_FAILED:20,CALL_PENDING:21,INQUIRY:13,LACK_OF_INSTRUCTIONS:15}},96895:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={ORDER:1,INQUIRY:2,SHORT_INQUIRY:3,COMPLETED_SHORT_INQUIRY:4,ADDITIONAL_PAYMENT:5,PAID_REVISION:6,MOBILE:7,TIPS_FOR_WRITER:8}},91689:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={ACADEMIC_LEVEL:"academicLevel",TYPE_OF_PAPER:"paperType",TYPE_OF_PAPER_OTHER:"paperTypeOption",DISCIPLINE:"topcatId",DISCIPLINE_OTHER:"topcat",TOPIC:"title",PAPER_INSTRUCTIONS:"paperDetails",FILES:"FILES",PAGES_QTY:"pages",WORDS_QTY:"words",SPACING:"spacing",SOURCES_QTY:"sources",PAPER_FORMAT:"paperFormat",PAPER_FORMAT_OTHER:"paperFormatTypeOption",TARIFF:"tariffId",SLIDES_QTY:"slides",CHARTS_QTY:"charts",GET_COPY_OF_SOURCES:"usedsources",GET_PROGRESSIVE_DELIVERY:"progressiveDeliveryHidden",REQUESTED_WRITER:"requestedWriterId",COUPON_CODE:"couponCode",FID:"id",ORDER_SERVICE_TYPE:"orderServiceTypeId",SOFTWARE:"softwareId",SOFTWARE_OTHER:"softwareOther",TASK_SIZE:"sizeId",PAPER_LEVEL:"paperLevelId",LANGUAGE_STYLE:"languageStyleId",PROGRAMMING_LANGUAGE:"languageId",PROGRAMMING_LANGUAGE_OTHER:"languageOther",SPLIT_PAYMENT:"splitPayment",PAY_IN_PARTS_SWITCH:"payInPartsSwitch",PAY_IN_PARTS:"payInPartsId",ONLY_OWN_CODE_SOLUTION:"onlyOwnCodeSolution",WELL_COMMENTED_CODE:"wellCommentedCode",TOP_EXPERT:"topExpert",PREMIUM_AI_REPORT:"premiumAIReport",CALCULATIONS_AND_SUBJECT_EXPERTISE:"calculations",COUPON_CODE_SWITCH:"couponCodeSwitch"}},3493:()=>{"use strict"},98458:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={OTHER_ERROR:"400000",TRANSACTION_DECLINE:"400001",FAILED_3DS:"400002",INSUFFICIENT_FUNDS:"400003",POSSIBLE_FRAUD:"400004",INVALID_CARD_CREDENTIALS:"400005",EXPIRED_CARD:"400006",NOT_SUPPORTED_CARD:"400007",FRAUD_RULE_TRIGGERED:"400008",PAYMENT_SYSTEM_ERROR:"500001"}},17877:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={REDIRECT:1,SDK:2,APPLE_PAY:3,GOOGLE_PAY:4}},2154:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={SAFECHARGE_PAYPAL:8,SAFECHARGE_CREDITCARD:17,CHECKOUT:22,SOLID:25}},79479:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={FULL_REFUND:"FULL_REFUND",PARTIAL_REFUND:"PARTIAL_REFUND",PROFESSORS_FEEDBACK_REFUND:"PROFESSORS_FEEDBACK_REFUND"}},16534:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={REVISION_FREE:"REVISION_FREE",REVISION_PAID:"REVISION_PAID",REVISION_PROFESSORS_FEEDBACK:"REVISION_PROFESSORS_FEEDBACK"}},22318:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={CARD_NUMBER:"ccNumber",EXPIRATION:"ccExpiration",CVC:"ccCvc"}},69458:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={WRITING_PAGES:1,WRITING_SLIDES:2,WRITING_CHARTS:31,PROGRESSIVE_DELIVERY:5,DISCOUNT:6,USED_SOURCES:21,COMPLEX_ASSIGNMENT:37,COUPON_WRT_PAGES:10,REVISION_MINOR_PAGES:26,REVISION_MINOR_SLIDES:27,REVISION_MINOR_CHARTS:33,REVISION_MAJOR_PAGES:28,REVISION_MAJOR_SLIDES:29,REVISION_MAJOR_CHARTS:35,CALCULATIONS:43,PROGRAMMING:44,SPLIT_PAYMENT:45,LANGUAGE_STYLE:48,PAPER_LEVEL:49,ONLY_OWN_CODE_SOLUTION:100,WELL_COMMENTED_CODE:101,TOP_EXPERT:102,PREMIUM_AI_REPORT:53}},98089:()=>{"use strict"},67241:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={SUCCESS:"success",WARNING:"warning",ERROR:"error"}},58991:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={STEP_ORDER_SERVICE_TYPE:"STEP_ORDER_SERVICE_TYPE",STEP_DEADLINE:"STEP_DEADLINE",STEP_ACADEMIC_DETAILS:"STEP_ACADEMIC_DETAILS",STEP_ACADEMIC_CUSTOMIZATION:"STEP_ACADEMIC_CUSTOMIZATION",STEP_PROGRAMMING_REQUIREMENTS:"STEP_PROGRAMMING_REQUIREMENTS",STEP_
vendor: 1,476 bytes, line 2
2CALCULATIONS_REQUIREMENTS:"STEP_CALCULATIONS_REQUIREMENTS",STEP_PROGRAMMING_EXTRAS:"STEP_PROGRAMMING_EXTRAS",STEP_TASK_SIZE:"STEP_TASK_SIZE",STEP_SUMMARY:"STEP_SUMMARY",STEP_ACCOUNT:"STEP_ACCOUNT",STEP_INQUIRY_DETAILS:"STEP_INQUIRY_DETAILS"}},82259:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={AMOUNT:"amount",PERCENT:"percent",CUSTOM_AMOUNT:"customAmount"}},23679:()=>{"use strict"},12408:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={REGULAR:2,ADVANCED:3,ADVANCED_PROFICIENT:5,TOP_LEVEL:6}},3492:(e,t,r)=>{"use strict";r.d(t,{$2:()=>i.A,A8:()=>a.A,AP:()=>M.A,B5:()=>k.A,CG:()=>y.A,Cr:()=>W.A,ES:()=>P.A,Gi:()=>x.A,HA:()=>U.A,I:()=>A.A,LF:()=>h.L,NS:()=>I.A,Os:()=>m.A,PP:()=>s.A,SS:()=>_.A,TB:()=>d.A,Th:()=>b.A,Tz:()=>Y.A,U1:()=>g.A,UH:()=>S.A,UU:()=>C.A,V8:()=>R.A,XP:()=>n.A,Xx:()=>V.A,_i:()=>B.A,_q:()=>G.A,a0:()=>f.A,bv:()=>o.A,ds:()=>D.A,em:()=>L.A,g5:()=>v.A,gG:()=>p.A,gj:()=>c.A,ks:()=>w.A,kt:()=>O.A,ls:()=>u.A,nl:()=>j.A,o$:()=>T.A,og:()=>H.A,qr:()=>l.A,rU:()=>N.A,w4:()=>$.A,xs:()=>F.A,zv:()=>E.A,zw:()=>z.A});var n=r(56498),i=r(67372),o=r(2154),a=r(17877),s=r(57098),c=r(58991),l=r(67241),u=r(22290),d=r(41818),f=r(42763),p=r(89081),h=r(35434),m=r(86775),y=r(46959),v=r(1071),g=r(79903),b=r(16178),E=r(69458),w=(r(23679),r(91689)),S=r(21287),A=r(50277),_=r(80903),x=r(86019),P=r(40185),I=r(3626),k=r(79556),O=r(96895),T=r(51899),C=r(73909),R=(r(3493),r(52802)),N=r(12408),L=r(91295),D=r(7914),M=r(82259),F=r(22318),j=(r(98089),r(98458)),B=r(79479),V=r(16
2534),U=r(95200),z=r(6352),G=r(60663),W=r(91573),H=r(69173),$=r(75881),Y=r(33166)},69588:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(92221),r(17306);var n=r(14041),i=r(71514);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}var a=function(){};const s=function(e){return n.createElement(i.Ay,o({onBecomeReferral:a},e))}},69616:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(69588).A},83670:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14041);const i=function(e){var t=e.children,r=e.to;return n.createElement("a",{rel:"nofollow noopener noreferrer",className:"text-sm hover:underline",target:"_blank",href:r},t)}},48411:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(25400),r(21555),r(95790);var n=r(14041),i=r(56351),o=r(83670),a=(0,i.PA)((function(e){var t=e.copyrightText,r=e.badge,i=e.configsStore,a=i.configs.isAcademicWritingEnabled,s=i.isIOSapp,c=[{key:"cookie-policy",to:"/cookie-policy.html",text:"Cookie Policy",visible:!0},{key:"terms-conditions",to:"/terms-conditions.html",text:"Terms and Conditions",visible:!0},{key:"money-back-guarantee",to:"/money-back-guarantee.html",text:"MoneyBack Policy",visible:!0},{key:"privacy-policy",to:"/privacy-policy.html",text:"Privacy Policy",visible:!0},{key:"social_responsibility_notice",to:"/social_responsibility_notice.html",text:"Social Responsibility Policy",visible:a}].filter((function(e){return e.visible}));return s?null:n.createElement("footer",{className:"flex flex-col items-center justify-center gap-2 py-8"},n.createElement("div",{className:"flex flex-wrap justify-center gap-4 py-2 lg:flex-nowrap"},c.map((function(e){return n.createElement(o.A,{key:e.key,to:e.to},e.text)}))),n.createElement("div",{className:"text-center text-base text-zinc-500 dark:text-zinc-50"},t),r&&n.createElement("a",{href:r.href,title:r.title,target:"_blank",rel:"nofollow noopener noreferrer"},n.createElement("img",{src:r.imgSrc,alt:null==r?void 0:r.imgAlt})))}));const s=(0,i.WQ)("configsStore")(a)},61008:(e,t,r)=>{"use strict";r.d(t,{ZY:()=>v});r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264),r(5858),r(59161),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(22892),r(11823),r(86940),r(17626),r(85028),r(58948),r(99180);
vendor: 5,297 bytes, line 2
2var n=r(14041),i=r(56351),o=r(24289),a=r(58165),s=r(75933),c=r(3492);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(){d=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};u(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,s){var c=p(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(l(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=u(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),u(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function f(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var m="phoneNotificationPreferencesUpdate_notification",y="wasPhoneNotificationPreferencesUpdateToastShown";function v(){var e=(0,n.useContext)(i.Db),t=e.userProfileStore,r=e.userSettingsStore,l=e.dialogsStore,h=e.signInFormStore,v=p((0,n.useState)(!1),2),g=v[0],b=v[1],E=function(){o.TQ.closePromotion({promotion_id:m,promotion_name:m})},w=function(){o.TQ.selectPromotion({promotion_id:m,promotion_name:m}),l.pushDialog(c.g5.MODAL_PHONE_NOTIFICATION_PREFERENCES_UPDATE)};return(0,n.useEffect)((function(){h.isLoggingOut&&(s.oR.dismiss(m),b(!1))}),[h.isLoggingOut]),(0,n.useEffect)((function(){var e=t.profile;function r(){var e;return e=d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.HZ.getItem(y);case 2:e.sent?b(!1):(b(!0),o.TQ.viewPromotion({promotion_name:m,promotion_id:m}),a.HZ.setItem(y,!0));case 4:case"end":return e.stop()}}),e)})),r=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){f(o,n,i,a,s,"next",e)}function s(e){f(o,n,i,a,s,"throw",e)}a(void 0)}))},r.apply(this,arguments)}!g&&(null==e?void 0:e.approvedOrdersCount)<=1&&null!=e&&e.isPhoneNumberValid&&function(){return r.apply(this,arguments)}().catch((function(){}))}),[t.profile]),(0,n.useEffect)((function(){if(g){var e,t=r.formManager.formValues.preferredNotificationChannel,n=c.LF.EMAIL_AND_SMS,i=c.LF.EMAIL_AND_WHATSAPP,o=c.LF.ONLY_EMAIL,a=(u(e={},n,"Email and SMS"),u(e,i,"Email and WhatsApp"),u(e,o,"Email"),e),l=function(e){switch(e){case n:return a[i];case i:return a[n];default:return"SMS/WhatsApp"}}(t);(0,s.oR)("Weâll notify you via ".concat(a[t]),{id:m,description:"You can switch to ".concat(l," in profile."),action:{label:"Update now",onClick:w},duration:3e4,onDismiss:E})}}),[g]),g}},6772:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(68450);var n=r(14041),i=r(56351),o=r(75933),a=(0,i.PA)((function(e){var t=e.messagingRootStore,r=e.routerStore;return(0,n.useEffect)((function(){var e=function(){};return t.profile&&(e=t.subscribeForNewMessagesForMe((function(e){var n=e.data,i=n.orderId,a=n.message.excerpt,s=n.chat;s===t.chatsStore.activeChatId&&i===t.chatsStore.order.id||(0,o.oR)("New message in #".concat(i),{description:a,action:{label:"Open message",onClick:function(){return r.pushLocation("/order/".concat(i,"/messages#").concat(s))}}})}))),function(){return e()}}),[t.profile]),n.createElement(o._m,{position:"bottom-left",closeButton:!0,pauseWhenPageIsHidden:!0})}));const s=(0,i.WQ)("messagingRootStore","routerStore")(a)},93070:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A,Z:()=>i.ZY});var n=r(6772),i=r(61008)},91930:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});
2r(85146),r(93831),r(11505),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(74874),r(40890),r(66264);var n=r(14041),i=r(10484),o=r(972),a=r(88706),s=r(17987),c=r(56351),l=r(33664),u=r(75933);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const p=function(){var e=(0,c.PA)((function(e){var t=e.signInFormStore,r=e.userProfileStore,c=e.configsStore.configs,f=d((0,n.use
2State)(!1),2),p=f[0],h=f[1],m=(null==c?void 0:c.isAcademicWritingEnabled)||(null==c?void 0:c.isCalculationsEnabled)||(null==c?void 0:c.isProgrammingEnabled);if(!r.profile)return null;var y,v=r.profile,g=(void 0===v?{}:v).name,b=r.profile.email,E=g&&g.charAt(0).toUpperCase()||b&&b.charAt(0).toUpperCase(),w=function(e){var t=e.to,r=e.children;return n.createElement(l.N_,{to:t,className:"mx-1 my-0.5 flex w-48 items-center gap-2 rounded-md px-2 py-1.5 text-sm font-normal text-zinc-950 no-underline transition-all hover:bg-zinc-50 hover:text-zinc-950 hover:no-underline active:no-underline dark:text-slate-50 dark:hover:bg-zinc-800 dark:hover:text-zinc-50"},r)};return n.createElement("div",{className:"apply-preflight rc-user"},n.createElement(u.Yl,null,n.createElement(u.B_,{open:p,onOpenChange:function(e){return h(e)}},n.createElement(u.dj,{asChild:!0},n.createElement(u.$n,{className:"UserBlockButton rounded-full pl-2 pr-4",variant:"outline",size:"sm"},n.createElement("div",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-zinc-100 text-xs font-medium text-zinc-500"},E),n.createElement(i.A,{size:16,className:"UserBlockArrow"}))),n.createElement(u.MO,{className:(0,u.cn)("UserBlockDropdown","flex flex-col rounded-md border border-zinc-200 bg-white shadow-md outline-none dark:border-slate-800 dark:bg-slate-950"),align:"end"},n.createElement(w,{to:"/profile"},n.createElement("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-zinc-100 text-sm font-medium text-zinc-500"},E),n.createElement("div",{className:"-mr-2 overflow-hidden"},n.createElement("div",{className:"truncate text-left font-medium"},g&&(null==g?void 0:g.split(" ")[0])||((y=b.match(/^([^@]+)@/))?y[1]:null)),n.createElement("div",{className:"mt-0.5 text-xs text-zinc-500"},"View profile"))),n.createElement(w,{to:"/orders"},n.createElement(o.A,{size:16}),"My orders"),m&&n.createElement(w,{to:"/coupons"},n.createElement(a.A,{size:16}),"My coupons"),n.createElement(u.wv,null),n.createElement(u.$n,{variant:"ghost",className:"mx-1 my-0.5 w-48 justify-start px-2 py-1.5 font-normal text-zinc-950 dark:hover:text-zinc-50","data-testid":"userBlock__link-sign-out",onClick:function(){h(!1),t.startLoggingOut().catch((function(){}))},asChild:!0},n.createElement("div",{className:"hover:cursor-pointer"},n.createElement(s.A,{size:16}),"Log out"))))))}));return(0,c.WQ)("signInFormStore","userProfileStore","configsStore")(e)}},39943:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(24493),r(21555),r(93831),r(98304),r(37210),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(40890),r(66264);function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o={},a=/^\+\.+[^.]/;[["au","+.. ... ... ..."],["be","+.. ... .. .. .."],["ca","+. (...) ...-....",1,["204","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["bq","",1],["cn","+.. ..-........"],["cr","+... ....-...."],["cw","",0],["dk","+.. .. .. .. .."],["do","",2,["809","829","849"]],["sv","+... ....-...."],["fi","+... .. ... .. .."],["fr","+.. . .. .. .. .."],["de","+.. ... ......."],["gp","",0],["gt","+... ....-...."],["ht","+... ....-...."],["hk","+... .... ...."],["is","+... ... ...."],["in","+.. .....-....."],["ie","+... .. ......."],["it","+.. ... ......",0],["jp","+.. ... .. ...."],["kz","+. ... ...-..-..",1],["my","+.. ..-....-...."],["nl","+.. .. ........"],["nz","+.. ...-...-...."],["no","+.. ... .. ..."],["pk","+.. ...-......."],["ph","+.. ... ...."],["pl","+.. ...-...-..."],["pr","",3,["787","939"]],["Qatar (â«Ùطرâ¬â)","qa","974"],["ru","+. ... ...-..-..",0],["bl","",1],["mf","",2],["sg","+.. ....-...."],["es","+.. ... ... ..."],["se","+.. .. ... .. .."],["ch","+.. .. ... .. .."],["tr","+.. ... ... .. .."],["gb","+.. .... ......"],["us","+. (...) ...-....",0],["va","+.. .. .... ....",1],["ua","+... (..) ...-..-.."]].forEac
2h((function(e){var t=n(e,4),r=t[0],i=t[1],s=t[2],c=t[3],l=i&&i.replace(a,""),u=void 0!==c;o[r]={priority:s,format:i,shortFormat:l,hasAreaCodes:u}}));const s=o},11785:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={wsServerUrl:"wss://".concat(window.location.host,"/connection/websocket"),wsConnectionTokenUrl:"/api/centrifugo/connection",wsSubscriptionTokenUrl:"/centrifugo/subscription.json"}},32026:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});r(93831),r(28882),r(29416),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(40890),r(66264);var n=r(14041),i=r(56351),o=r(83794),a=r(93285),s=r(75933),c=r(58165),l=r(3492),u=r(69616),d=r(48411);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const h=function(e){var t=e.rcappComponents,r=t.headerOptions,p=t.footerOptions,h=null==r?void 0:r.siteLogo;return(0,i.WQ)("userProfileStore","signInFormStore","routerStore","dialogsStore")((0,i.PA)((function(e){var t=e.userProfileStore,r=e.signInFormStore,i=e.routerStore,m=e.dialogsStore,y=e.location,v=f((0,n.useState)(h),2),g=v[0],b=v[1],E=f((0,n.useState)(void 0),2),w=E[0],S=E[1],A=function(){var e=i.isStatic,t=i.replaceLocation,r=i.redirect,n={pathname:"/orders",search:"",hash:"",state:void 0};if(e)n.pathname=i.createHref({pathname:"/"});else{var o=(0,c.JO)(y.search),a=o.redirectAfterAuthTo,s=o.redirectAfterAuth;if(a)return void r(a);if(s){var l=f(s.split("?"),2),u=l[0],d=l[1];n.pathname=u,n.search=d?"?".concat(d):""}}t(n)};return(0,n.useEffect)((function(){var e=(0,c.JO)(y.search),t=e.ID,n=e.signing;(t||n&&"in"===n)&&S(l.SS.SIGN_IN_AUTH_TYPE),n&&"up"===n&&S(l.SS.SIGN_UP_AUTH_TYPE),t&&r.formManager.setSilently("login",t),void 0!==(0,c.JO)(y.search).restore_password&&m.pushDialog(l.g5.MODAL_LOST_PASS)}),[]),(0,n.useEffect)((function(){b(h)}),[h]),(0,n.useEffect)((function(){var e;return null!=t&&t.isAuthorized?A():e=(0,o.mJ)((function(){return null==t?void 0:t.isAuthorized}),(function(e,t,r){r.dispose(),A()})),function(){e&&e()}}),[null==t?void 0:t.isAuthorized]),n.createElement("div",{className:"apply-preflight flex h-screen flex-col items-center justify-between"},n.createElement(a.m,null,n.createElement("title",null,"Authorization")),n.createElement("header",{className:"relative flex min-h-[64px] w-full items-center justify-center bg-white py-3 shadow-sm"},Object.keys(Object(g)).length>0&&n.createElement("a",{href:g.href,title:null==g?void 0:g.title,className:"flex shrink-0 items-center"},n.createElement("img",{src:g.src,width:g.width,height:g.height,alt:g.alt}))),n.createElement(s.YW,null,n.createElement(s.LN,null,n.createElement(s.Zp,{className:"mx-auto w-full max-w-[600px]"},n.createElement(s.aR,{className:"text-center text-lg font-semibold uppercase text-zinc-950 dark:text-zinc-50"},"SIGN IN TO YOUR ACCOUNT"),n.createElement(s.Wu,{className:"p-0 md:p-6 md:pt-0"},n.createElement(u.A,{initialAuthType:w,onBecomeAuthorized:A,authContainerClass:"mx-auto px-2"}))))),n.createElement("div",{className:"w-full"},n.createElement(s.wv,null),n.createElement(s.YW,{className:"relative bottom-0 mt-auto py-0 md:py-0"}
2,n.createElement(s.LN,null,n.createElement(d.A,p)))))})))}},85160:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigAcademicLevel",{id:n.L$.number,title:n.L$.string,tip:n.L$.string.isOptional})},67914:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigAuthenticationProvider",{typeId:n.L$.number,config:n.L$.shape({clientId:n.L$.string,redirectUri:n.L$.string.isOptional})})},42949:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigCountry",{id:n.L$.string,title:n.L$.string,code:n.L$.string,dialCode:n.L$.string,priority:n.L$.number.isOptional,format:n.L$.string.isOptional,shortFormat:n.L$.string.isOptional,hasAreaCodes:n.L$.bool.isOptional})},44840:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigCurrency",{id:n.L$.number,name:n.L$.string,title:n.L$.string,symbol:n.L$.string,rate:n.L$.number,isInverted:n.L$.bool})},79899:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigDeadline",{id:n.L$.number,hours:n.L$.number,name:n.L$.string,priceModifier:n.L$.number})},69354:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigDeliverable",{id:n.L$.number,slug:n.L$.string,name:n.L$.string})},28154:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigDescriptor",{id:n.L$.number,deliverablesIds:n.L$.arrayOf(n.L$.number),example:n.L$.string,taskSizeId:n.L$.number,disciplineId:n.L$.number,title:n.L$.string,examplesIds:n.L$.arrayOf(n.L$.number)})},16137:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigDiscipline",{id:n.L$.number,title:n.L$.string,isOther:n.L$.bool,groupId:n.L$.number.isOptional,isComplexAssignment:n.L$.bool})},59450:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigDisciplineGroup",{id:n.L$.number,name:n.L$.string})},51058:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(58165),i=r(1101);const o=(0,n.t0)("ConfigEvrRate",{id:n.L$.number,description:n.L$.string,reasons:n.L$.arrayOf(n.L$.instanceOf(i.A))})},1101:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigEvrRatesReason",{id:n.L$.number,description:n.L$.string})},35567:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigItemPrice",{id:n.L$.number,disciplineId:n.L$.number,sizeId:n.L$.number,price:n.L$.number})},73437:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigLanguage",{id:n.L$.number,groupId:n.L$.number.isOptional,title:n.L$.string})},23390:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigLanguageGroup",{id:n.L$.number,title:n.L$.string})},7052:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigLanguageStyle",{id:n.L$.number,title:n.L$.string,description:n.L$.string,percent:n.L$.number})},95816:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigOrderServiceType",{id:n.L$.number,name:n.L$.string})},67064:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigPaidRevisionDeadline",{id:n.L$.number,hrs:n.L$.number,pricePerPage:n.L$.number,title:n.L$.string,minPages:n.L$.number,academicLevelId:n.L$.number,serviceTypeId:n.L$.number})},91338:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigPaperFormat",{id:n.L$.number,title:n.L$.string,isOther:n.L$.bool})},37631:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigPaperLevel",{id:n.L$.number,title:n.L$.string,description:n.L$.string,percent:n.L$.number})},96933:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigPaperType",{id:n.L$.any,title:n.L$.string})},92149:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigPaperTypeAndAcademicWithSources",{academic_level_id:n.L$.number,default_source_count:n.L$.number})},28575:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(58165),i=r(92149);const o=(0,n.t0)("ConfigPaperTypeWithSources",{id:n.L$.number,sources_infoIds:n.L$.arrayOf(n.L$.number),sources_info:n.L$.objectOf(n.L$.instanceOf(i.A))})},69025:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigPayInPartsValue",{id:n.L$.number,value:n.L$.number})},31702:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigRevisionDeadline",{id:n.L$.number,title:n.L$.string,hrs:n.L$.number,isActive:n.L$.bool})},13410:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigSize",{id:n.L$.number,name:n.L$.string})},82894:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigSoftware",{id:n.L$.number,title:n.L$.string})},52481:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigTariff",{id:n.L$.number,title:n.L$.string,hrs:n.L$.number,hours:n.L$.number,academicLevel:n.L$.number,pricePerPage:n.L$.number,minPages:n.L$.number})},9357:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ConfigTaskSizeExample",{id:n.L$.number,title:n.L$.string})},3814:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(58165),i=r(52481),o=r(85160),a=r(96933),s=r(91338),c=r(28575),l=r(37631),u=r(7052);const d=(0,n.t0)("ConfigsForAcademicWriting",{defaults:n.L$.shape({academicLevelId:n.L$.number,tariffIds:n.L$.arrayOf(n.L$.number),pages:n.L$.number,paperLevelId:n.L$.number,languageStyleId:n.L$.number}),tariffsIds:n.L$.arrayOf(n.L$.number),tariffsById:n.L$.objectOf(n.L$.instanceOf(i.A)),academicLevelsIds:n.L$.arrayOf(n.L$.number),academicLevelsById:n.L$.objectOf(n.L$.instanceOf(o.A)),disciplinesIds:n.L$.arrayOf(n.L$.number),topDisciplinesIds:n.L$.arrayOf(n.L$.number),disciplinesNocollegeIds:n.L$.arrayOf(n.L$.number),paperTypesIds:n.L$.arrayOf(n.L$.number),paperTypesById:n.L$.objectOf(n.L$.instanceOf(a.A)),topPaperTypesIds:n.L$.arrayOf(n.L$.number),dissertationPaperTypesIds:n.L$.arrayOf(n.L$.number),paperFormatsIds:n.L$.arrayOf(n.L$.number),paperFormatsById:n.L$.objectOf(n.L$.instanceOf(s.A)),papersWithSourcesById:n.L$.objectOf(n.L$.instanceOf(c.A)),urgentDeadlinesMaxPages:n.L$.number,paperLevelsIds:n.L$.arrayOf(n.L$.number),paperLevelsById:n.L$.objectOf(n.L$.instanceOf(l.A)),languageStylesIds:n.L$.arrayOf(n.L$.number),languageStylesById:n.L$.objectOf(n.L$.instanceOf(u.A))})},19613:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});
2var n=r(58165),i=r(35567),o=r(79899),a=r(13410),s=r(28154),c=r(82894);const l=(0,n.t0)("ConfigsForCalculations",{defaults:n.L$.shape({disciplineId:n.L$.number,deadlineId:n.L$.number,sizeId:n.L$.number}),itemPricesIds:n.L$.arrayOf(n.L$.number),itemPricesById:n.L$.objectOf(n.L$.instanceOf(i.A)),deadlinesIds:n.L$.arrayOf(n.L$.number),deadlinesById:n.L$.objectOf(n.L$.instanceOf(o.A)),sizesIds:n.L$.arrayOf(n.L$.number),sizesById:n.L$.objectOf(n.L$.instanceOf(a.A)),disciplinesIds:n.L$.arrayOf(n.L$.number),descriptors:n.L$.arrayOf(n.L$.instanceOf(s.A)),softwareIds:n.L$.arrayOf(n.L$.number),softwareById:n.L$.objectOf(n.L$.instanceOf(c.A))})},7562:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(58165),i=r(35567),o=r(79899),a=r(13410),s=r(28154),c=r(73437);const l=(0,n.t0)("ConfigsForProgramming",{defaults:n.L$.shape({disciplineId:n.L$.number,deadlineId:n.L$.number,sizeId:n.L$.number}),itemPricesIds:n.L$.arrayOf(n.L$.number),itemPricesById:n.L$.objectOf(n.L$.instanceOf(i.A)),deadlinesIds:n.L$.arrayOf(n.L$.number),deadlinesById:n.L$.objectOf(n.L$.instanceOf(o.A)),sizesIds:n.L$.arrayOf(n.L$.number),sizesById:n.L$.objectOf(n.L$.instanceOf(a.A)),disciplinesIds:n.L$.arrayOf(n.L$.number),descriptors:n.L$.arrayOf(n.L$.instanceOf(s.A)),languagesIds:n.L$.arrayOf(n.L$.number),languagesById:n.L$.objectOf(n.L$.instanceOf(c.A))})},94941:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});r(96152);var n=r(58165),i=r(42949),o=r(44840),a=r(16137),s=r(31702),c=r(67064),l=r(51058),u=r(59450),d=r(3814),f=r(19613),p=r(7562),h=r(69354),m=r(95816),y=r(67914);const v=(0,n.t0)("Configs",{isOrderPlacingProhibited:n.L$.bool,isIOSapp:n.L$.bool,hasInquiry:n.L$.bool,isPushNotificationsEnabled:n.L$.bool,messagingSenderId:n.L$.string.isOptional,currencyIds:n.L$.arrayOf(n.L$.number),currencyById:n.L$.objectOf(n.L$.instanceOf(o.A)),defaultCurrencyId:n.L$.number,countriesIds:n.L$.arrayOf(n.L$.string),countries:n.L$.objectOf(n.L$.instanceOf(i.A)),disciplinesById:n.L$.objectOf(n.L$.instanceOf(a.A)),groupsOfDisciplinesById:n.L$.objectOf(n.L$.instanceOf(u.A)),hotSeasonStopAt:n.L$.instanceOf(Date),revisionDeadlinesIds:n.L$.arrayOf(n.L$.number),defaultRevisionDeadlineId:n.L$.number,revisionDeadlinesById:n.L$.objectOf(n.L$.instanceOf(s.A)),paidRevisionDeadlinesIds:n.L$.arrayOf(n.L$.number),paidRevisionDeadlinesById:n.L$.objectOf(n.L$.instanceOf(c.A)),evrRatesIds:n.L$.arrayOf(n.L$.number),evrRatesById:n.L$.objectOf(n.L$.instanceOf(l.A)),siteFullName:n.L$.string,isTipsForWriterEnabled:n.L$.bool,redirectFromDashboardTo:n.L$.string.isOptional,orderServiceTypesIds:n.L$.arrayOf(n.L$.number),orderServiceTypesById:n.L$.objectOf(n.L$.instanceOf(m.A)),defaultOrderServiceTypeId:n.L$.number,isAcademicWritingEnabled:n.L$.bool,isProgrammingEnabled:n.L$.bool,isCalculationsEnabled:n.L$.bool,isApplePayPaymentEnabled:n.L$.bool,isGooglePayPaymentEnabled:n.L$.bool,configsForAcademicWriting:n.L$.instanceOf(d.A),configsForCalculations:n.L$.instanceOf(f.A),configsForProgramming:n.L$.instanceOf(p.A),deliverablesDictionary:n.L$.objectOf(n.L$.instanceOf(h.A)),isAppleSignInEnabled:n.L$.bool,isGoogleSignInEnabled:n.L$.bool,authenticationProvidersById:n.L$.objectOf(n.L$.instanceOf(y.A)),isRecaptchaEnabled:n.L$.bool,reCaptchaSiteKey:n.L$.string,isReferral:n.L$.bool,referrerHash:n.L$.string.isOptional,showPromotionEndedNotification:n.L$.bool,siteEmail:n.L$.string,minDeadline:n.L$.number,isProficientEnglishDisabled:n.L$.bool,isOtherDisciplineDisabled:n.L$.bool,isSplitPaymentEnabled:n.L$.bool,isPayInPartsEnabled:n.L$.bool,isCopyFormURLEnabled:n.L$.bool,isOnlyOwnCodeSolutionEnabled:n.L$.bool,isWellCommentedCodeEnabled:n.L$.bool,isTopExpertEnabled:n.L$.bool,isPremiumAIReportEnabled:n.L$.bool,isStemOriented:n.L$.bool,heartbeatInterval:n.L$.number})},65501:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("ReferrerProfile",{isReferralProgramActive:n.L$.bool,referrerLink:n.L$.string.isOptional,activeCoupons:n.L$.arrayOf(n.L$.object),couponsReceivedCount:n.L$.number,registeredReferralsCount:n.L$.number})},22028:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});r(96152),r(99180),r(34089),r(66264),r(23510),r(85028),r(58948),r(79683),r(69399),r(21555),r(59161),r(5858),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(85146),r(11823),r(86940),r(17626),r(84766);
vendor: 4,828 bytes, line 2
2var n=r(68020),i=r(58165),o=r(24289),a=r(3492);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,c){var l=p(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==s(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(s(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,a,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function p(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var m=(0,i.yk)(),y=function(e){var t="gb_".concat(e),r=(0,i.Ri)(t);if(r)return Number(r)},v=function(){function e(t,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"growthBook",void 0),p(this,"experiments",void 0),p(this,"errorsStore",void 0),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}}}),this.experiments=s,r)try{this.growthBook=new n.N({apiHost:"https://gb.uvo.tools",clientKey:r,enableDevMode:!1,subscribeToChanges:!0,attributes:{id:m,url:window.location.href},trackingCallback:function(e,t){var r=y(t.featureId);void 0===r&&function(e){var t=e.featureId,r=e.variationValue,n=e.cookieExpires,o=void 0===n?60:n;if(t){var a="gb_".concat(t),s=o,c=new Date;c.setTime(c.getTime()+864e5*s),(0,i.TV)({name:a,value:r,options:{expires:c.toUTCString()}})}}({featureId:t.featureId,variationValue:t.value}),(0,o.WH)("optimize_exp_number",{experimentId:e.key,value:r||t.value,uuid:m})}})}catch(e){e.code=a.I.THIRD_PARTY_LIBRARY_ERROR,this.errorsStore.handleError(e)}}var t,r,s,l,h;return t=e,r=[{key:"getFeatureValue",value:(l=c().mark((function e(t){var r,n,i,o=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.growthBook&&void 0!==this.experiments[t]){e.next=6;break}return this.growthBook||(r=new Error("GrowthBook is not initialized")),void 0===this.experiments[t]&&(r=new Error("Experiment testId is not setted")),r.code=a.I.THIRD_PARTY_LIBRARY_ERROR,this.errorsStore.handleError(r),e.abrupt("return",1);case 6:return this.growthBook.setAttributes(u(u({},this.growthBook.getAttributes()),{},{url:window.location.href})),e.next=9,this.growthBook.loadFeatures({timeout:8e3}).catch((function(e){e.code=a.I.THIRD_PARTY_LIBRARY_ERROR,o.errorsStore.handleError(e)}));case 9:return n=1,e.prev=10,e.next=13,this.growthBook.getFeatureValue(this.experiments[t],1);case 13:n=e.sent,e.next=20;break;case 16:e.prev=16,e.t0=e.catch(10),e.t0.code=a.I.THIRD_PARTY_LIBRARY_ERROR,this.errorsStore.handleError(e.t0);case 20:return i=y(this.experiments[t])||n,e.abrupt("return",i);case 22:case"end":return e.stop()}}),e,this,[[10,16]])})),h=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=l.apply(e,t);function o(e){d(i,r,n,o,a,"next",e)}function a(e){d(i,r,n,o,a,"throw",e)}o(void 0)}))},function(e){return h.apply(this,arguments)})}],r&&f(t.prototype,r),s&&f(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},13705:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(34089),r(1569),r(21555),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(70199);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function s(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"configs",void 0),s(this,"userCountryId",void 0),s(this,"isLoadingConfigs",void 0),s(this,"errorsStore",void 0),s(this,"userProfileStore",void 0),s(this,"signUpFormStore",void 0),s(this,"transport",void 0),(0,n.Gn)(this,{configs:n.sH,userCountryId:n.sH,isLoadingConfigs:n.sH,defaultCurrency:n.EW,startLoadingConfigs:n.XI,isProficientEnglishDisabled:n.EW,isOtherDisciplineDisabled:n.EW,isSplitPaymentEnabled:n.EW,isPayInPartsEnabled:n.EW,isPremiumAIReportEnabled:n.EW,isOnlyOwnCodeSolutionEnabled:n.EW,isWellCommentedCodeEnabled:n.EW,isTopExpertEnabled:n.EW,isIOSapp:n.EW,isStemOriented:n.EW,isOrderPlacingProhibited:n.EW,isCustomWritingsCom:n.EW,isAdvancedWritersCom:n.EW}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},userProfileStore:{get:function(){return t.userProfileStore}},signUpFormStore:{get:function(){return t.signUpFormStore}}}),this.transport=r}var t,r,o;return t=e,(r=[{key:"findDeadlineIdForAcademicLevelByHour",value:function(e,t){if(this.configs){var r=this.configs.configsForAcademicWriting,n=r.tariffsIds,i=r.tariffsById;return n.find((function(r){return i[r].hrs===t&&i[r].academicLevel===e}))}}},{key:"setConfigs",value:function(e){this.configs=(0,i.A)(e)}},{key:"defaultCurrency",get:function(){if(this.configs){var e=this.configs,t=e.defaultCurrencyId;return e.currencyById[t]}}},{key:"isProficientEnglishDisabled",get:function(){return!this.configs||this.configs.isProficientEnglishDisabled}},{key:"isOtherDisciplineDisabled",get:function(){return!!this.configs&&this.configs.isOtherDisciplineDisabled}}
2,{key:"isSplitPaymentEnabled",get:function(){return!!this.configs&&this.configs.isSplitPaymentEnabled}},{key:"isPayInPartsEnabled",get:function(){return!!this.configs&&this.configs.isPayInPartsEnabled}},{key:"isPremiumAIReportEnabled",get:function(){return!!this.configs&&this.configs.isPremiumAIReportEnabled}},{key:"isOnlyOwnCodeSolutionEnabled",get:function(){return!!this.configs&&this.configs.isOnlyOwnCodeSolutionEnabled}},{key:"isWellCommentedCodeEnabled",get:function(){return!!this.configs&&this.configs.isWellCommentedCodeEnabled}},{key:"isTopExpertEnabled",get:function(){return!!this.configs&&this.configs.isTopExpertEnabled}},{key:"isIOSapp",get:function(){return!!this.configs&&this.configs.isIOSapp}},{key:"isStemOriented",get:function(){return!!this.configs&&this.configs.isStemOriented}},{key:"isOrderPlacingProhibited",get:function(){return!!this.configs&&this.configs.isOrderPlacingProhibited}},{key:"startLoadingConfigs",value:function(){var e=this;return this.isLoadingConfigs||(this.isLoadingConfigs=this.transport.pullConfigs().then((function(t){(0,n.h5)((function(){e.configs=t}))})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Updating configuration failed."})})).finally((function(){(0,n.h5)((function(){e.isLoadingConfigs=void 0}))}))),this.isLoadingConfigs}},{key:"getUserCountry",value:function(){var e=this;return this.transport.getUserCountry().then((function(t){var r=t.defaultCountry;return(0,n.h5)((function(){return e.userCountryId=r&&r.id,r}))})).catch((function(t){t.presented=!0,e.errorsStore.handleError(t)}))}},{key:"isCustomWritingsCom",get:function(){return!!this.configs&&"customwritings.com"===this.configs.siteFullName.toLowerCase()}},{key:"isAdvancedWritersCom",get:function(){return!!this.configs&&"advancedwriters.com"===this.configs.siteFullName.toLowerCase()}},{key:"isHelpWritingOrg",get:function(){return!!this.configs&&"helpwriting.org"===this.configs.siteFullName.toLowerCase()}},{key:"isPaperWritingHelpOrg",get:function(){return!!this.configs&&"paperwritinghelp.org"===this.configs.siteFullName.toLowerCase()}},{key:"isPaperWritingOrg",get:function(){return!!this.configs&&"paper-writing.org"===this.configs.siteFullName.toLowerCase()}},{key:"isHelpHW",get:function(){return!!this.configs&&"helphw.com"===this.configs.siteFullName.toLowerCase()}},{key:"isOneDayPaper",get:function(){return!!this.configs&&"onedaypaper.org"===this.configs.siteFullName.toLowerCase()}},{key:"isPaperwrtng",get:function(){return!!this.configs&&"paperwrtng.org"===this.configs.siteFullName.toLowerCase()}},{key:"isWritingGuide",get:function(){return!!this.configs&&"writing-guide.me"===this.configs.siteFullName.toLowerCase()}},{key:"isPaperBoost",get:function(){return!!this.configs&&"paperboost.org"===this.configs.siteFullName.toLowerCase()}},{key:"isWeAreWriters",get:function(){return!!this.configs&&"wearewriters.org"===this.configs.siteFullName.toLowerCase()}},{key:"isMyWritingHelp",get:function(){return!!this.configs&&"mywritinghelp.org"===this.configs.siteFullName.toLowerCase()}},{key:"isAcademicWritingSiteForPaidTraffic",get:function(){return this.isHelpWritingOrg||this.isPaperWritingHelpOrg||this.isPaperWritingOrg||this.isHelpHW||this.isOneDayPaper||this.isMyWritingHelp||this.isPaperwrtng||this.isWritingGuide||this.isPaperBoost||this.isWeAreWriters}}])&&a(t.prototype,r),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},47035:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(34089),r(1569),r(21555),r(95570),r(93831),r(98304),r(25400),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(78667);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function s(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var l=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"dialogs",n.sH.array([],{deep:!1})),s(this,"$blocker",void 0),s(this,"routerStore",void 0),s(this,"$popDialog",(function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&r.dialogs.pop()})),(0,n.Gn)(this,{dialogs:n.sH,lastDialog:n.EW,pushDialog:n.XI,$popDialog:n.XI,closeDialog:n.XI}),Object.defineProperties(this,{routerStore:{get:function(){return t.routerStore}}}),(0,n.mJ)((function(){return(0,i.uP)((function(){return r.routerStore.location.pathname}))}),(function(){(r.lastDialog||{}).isGlobal||(r.unblock(),r.dialogs.clear())}))}var t,r,o;return t=e,r=[{key:"lastDialog",get:function(){return this.dialogs[this.dialogs.length-1]}},{key:"pushDialog",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===this.dialogs.find((function(t){return t.key===e}))){var n=r.isStatic,i=void 0!==n&&n,o=r.isGlobal,a=void 0!==o&&o,s=r.animateContent,c=r.onOverlayClick;this.dialogs.push({key:e,data:t,isStatic:i,isGlobal:a,animateContent:s,onOverlayClick:c})}else console.warn("DialogsStore: prevented pushing duplicate dialog ".concat(e))}},{key:"popDialog",value:function(){this.$blocker?this.$blocker(this.$popDialog):this.$popDialog()}},{key:"block",value:function(e){this.unblock(),this.$blocker=e}},{key:"unblock",value:function(){this.$blocker=void 0}},{key:"closeDialog",value:function(e){this.unblock(),this.dialogs.replace(this.dialogs.filter((function(t){return t.key!==e})))}}],r&&a(t.prototype,r),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},87369:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});r(79683),r(69399),r(21555),r(34089),r(84766),r(23510),r(96152),r(34237),r(95570),r(78527),r(85028),r(58948),r(66264),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(3492);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function a(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var c=n.I.UNAUTHORIZED,l=n.I.EMAIL_IS_NOT_REGISTERED,u=n.I.EMAIL_IS_ALREADY_REGISTERED,d=n.I.UVOFORM_VALIDATION_ALL_ZERO,f=n.I.UVOFORM_UNAUTHORIZED,p=n.I.UVOFORM_FILES_NOT_UPLOADED,h=n.I.UVOFORM_INVA
2LID_FILE,m=n.I.VALIDATION_FAILED,y=n.I.HTTP_REQUEST_ABORTED,v=n.I.HTTP_REQUEST_TIMEOUT,g=n.I.HTTP_REQUEST_ERROR,b=n.I.SERVER_DOWN,E=n.I.ACCESS_DENIED,w=n.I.NOT_FOUND,S=n.I.AUTH_INCORRECT_LOGIN_PASSWORD,A=n.I.SERVER_VALIDATION,_=(n.I.EVAL_JS,n.I.INVALID_DATA,n.I.OUTDATED_CACHE),x=n.I.NO_CACHE,P=n.I.NO_INTERNET_CONNECTION,I=n.I.FIREBASE_ERROR,k=n.I.IMPORT_ERROR,O=n.I.INVALID_PHONE_NUMBER,T=n.I.THIRD_PARTY_LIBRARY_ERROR,C=n.I.WEB_API_ERROR,R=Symbol("ErrorsStore id"),N=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"$history",[]),a(this,"$timeouts",{}),a(this,"notificationsStore",void 0),a(this,"userProfileStore",void 0),a(this,"ordersStore",void 0),a(this,"orderFilesStore",void 0),a(this,"couponsStore",void 0),a(this,"$branch",void 0),a(this,"$commit",void 0),Object.defineProperties(this,{notificationsStore:{get:function(){return t.notificationsStore}},userProfileStore:{get:function(){return t.userProfileStore}},ordersStore:{get:function(){return t.ordersStore}},orderFilesStore:{get:function(){return t.orderFilesStore}},couponsStore:{get:function(){return t.couponsStore}},$branch:{get:function(){return t.$branch}},$commit:{get:function(){return t.$commit}}})}var t,r,n;return t=e,r=[{key:"handleError",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).intent;switch(e[R]||(e[R]=Math.random().toString(32).slice(2)),this.$history.push(e),this.$history.length>50&&(this.$history=this.$history.slice(-50)),e.code){case y:case E:case w:case m:case l:case u:case d:case f:case p:case S:case x:case _:case I:case k:case O:case T:case C:break;case c:this.userProfileStore.clear(),this.couponsStore.clear(),this.orderFilesStore.dispose(),this.orderFilesStore.clear(),this.ordersStore.clear();break;case P:case g:case A:case h:this.showNotification(e,{title:t,description:e.message});break;case b:case v:this.showNotification(e,{title:t,description:"Server currently unavailable. Try to reload the page or contact our support team for more information. "});break;default:this.showNotification(e,{title:t,description:"We have been notified about this problem and will try to fix it shortly. Contact our support team for more information. "})}}},{key:"showNotification",value:function(e,t){var r=this,n=t.title,i=void 0===n?"Application stop working.":n,o=t.description,a=t.duration;e.presented||(this.$timeouts[e[R]]=setTimeout((function(){r.$clearTimeout(e),r.notificationsStore.pushNotification({title:i,description:o,view:"error",duration:a}),e.presented=!0}),10))}},{key:"handleAndRethrow",value:function(e){var t=e.error,r=e.intent;throw this.handleError(t,{intent:r}),t}},{key:"$clearTimeout",value:function(e){this.$timeouts[e[R]]&&(clearTimeout(this.$timeouts[e[R]]),delete this.$timeouts[e[R]])}}],r&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},4431:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(21555),r(5858),r(55983),r(96656),r(94356),r(45993),r(5974),r(34089),r(29416),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851);var n=r(83794),i=r(58165),o=r(86229);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function c(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var u="cwt-notification-asked",d="cwt_device_token",f=function(){function e(t,a){var s=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"firebaseManager",void 0),c(this,"transport",void 0),c(this,"configsStore",void 0),c(this,"userProfileStore",void 0),c(this,"errorsStore",void 0),c(this,"$activating",void 0),c(this,"$loading",void 0),c(this,"wasAsked",!0),c(this,"enable",(function(){return s.$loading?s.$loading:s.isSupported?s.firebaseManager?Promise.resolve():(s.$loading=r.e(437).then(r.bind(r,91437)).then((function(e){var t=e.default,r=s.configsStore.configs.messagingSenderId;s.firebaseManager=new t({messagingSenderId:r})})).then(o.kz).catch((function(e){e.presented=!0,s.errorsStore.handleError(e)})).finally((function(){return(0,n.h5)((function(){s.$loading=void 0}))})),s.$loading):Promise.resolve()})),c(this,"activate",(function(){return s.$activating?s.$activating:s.firebaseManager?(s.$activating=i.HZ.getItem(d).c
2atch((function(e){0})).then((function(e){return s.firebaseManager.init({registration:o.QQ(),token:e,onTokenRefresh:s.$handleTokenRefresh})})).catch((function(e){e.presented=!0,s.errorsStore.handleError(e)})).finally((function(){return(0,n.h5)((function(){s.$activating=void 0}))})),s.$activating):Promise.resolve()})),c(this,"dispose",(function(){s.isReady&&s.firebaseManager.reset()})),c(this,"setAsked",(function(){s.wasAsked=!0,i.HZ.setItem(u,JSON.stringify(!0)).catch((function(e){0}))})),c(this,"allow",(function(){return s.transport.updateUserNotifications({pushNotificationsEnabled:!0}).then((function(){return s.userProfileStore.startUpdating()})).catch((function(e){s.errorsStore.handleAndRethrow({error:e,intent:"Updating settings failed."})}))})),c(this,"$handleTokenRefresh",(function(e){return(e?s.transport.registerDevice(e).catch((function(e){e.pesented=!0,s.errorsStore.handleAndRethrow(e)})):Promise.resolve()).then((function(){"string"==typeof e?i.HZ.setItem(d,e):i.HZ.removeItem(d)})).catch((function(e){0}))})),(0,n.Gn)(this,{firebaseManager:n.sH,$activating:n.sH,$loading:n.sH,wasAsked:n.sH,isEnabled:n.EW,isActive:n.EW,isLoading:n.EW,isActivating:n.EW,isReady:n.EW,enable:n.XI,activate:n.XI,dispose:n.XI,setAsked:n.XI}),Object.defineProperties(this,{configsStore:{get:function(){return t.configsStore}},userProfileStore:{get:function(){return t.userProfileStore}},errorsStore:{get:function(){return t.errorsStore}}}
2),this.transport=a,i.HZ.getItem(u).then((function(e){s.wasAsked=!!JSON.parse(e)})).catch((function(e){0})),(0,n.mJ)((function(){return s.isEnabled}),(function(e,t,r){switch(e){case!0:r.dispose(),s.enable();break;case!1:r.dispose()}})),(0,n.mJ)((function(){return!s.isLoading&&s.isReady&&s.isActive}),(function(e){switch(e){case!0:s.activate();break;case!1:s.dispose()}})),(0,n.mJ)((function(){return s.userProfileStore.isAuthorized}),(function(e){return!e&&s.dispose()}))}var t,a,l;return t=e,(a=[{key:"isSupported",get:function(){return o.TT()&&"Notification"in window}},{key:"isGranted",get:function(){if(this.isSupported)switch(window.Notification.permission){case"granted":return!0;case"denied":return!1;default:return}}},{key:"isEnabled",get:function(){if(this.configsStore){var e=this.configsStore.configs;if(e)return e.isPushNotificationsEnabled}}},{key:"isActive",get:function(){if(this.userProfileStore){var e=this.userProfileStore.profile;if(e)return e.pushNotificationsEnabled}}},{key:"isLoading",get:function(){return void 0!==this.$loading}},{key:"isActivating",get:function(){return void 0!==this.$activating}},{key:"isReady",get:function(){return void 0!==this.firebaseManager}}])&&s(t.prototype,a),l&&s(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}()},64730:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(59161),r(29416),r(98140),r(48851),r(96656),r(94356),r(45993),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180);var n=r(75933),i=["view","title"];function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,a=void 0,a=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===o(a)?a:String(a)),n)}var i,a}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,o;return t=e,(r=[{key:"pushNotification",value:function(e){var t=e.view,r=e.title,o=a(e,i);return(t&&n.oR[t]||n.oR)(r,o)}},{key:"removeNotification",value:function(e){n.oR.dismiss(e)}}])&&s(t.prototype,r),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},20043:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(34089),r(21555),r(5858),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(95570),r(22892),r(85146),r(11823),r(86940),r(17626),r(84766);var n=r(58165);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(){o=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof b?t:b,o=Object.create(i.prototype),s=new R(n||[]);return a(o,"_invoke",{value:k(e,r,s)}),o}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,c,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,c)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,571 bytes, line 2
2))}function I(e,t){function r(o,a,s,c){var l=p(e[o],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==i(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(i(t)+" is not iterable")}return E.prototype=w,a(x,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,c,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function a(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function c(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"configsStore",void 0),c(this,"$removeScript",void 0),Object.defineProperties(this,{configsStore:{get:function(){return t.configsStore}}})}var t,r,i,l,u;return t=e,r=[{key:"load",value:function(){var e=this,t=this.configsStore.configs.reCaptchaSiteKey;return new Promise((function(r,i){e.$removeScript=(0,n.ki)("https://www.recaptcha.net/recaptcha/api.js?render=".concat(t),(function(){var e=document.createElement("style");e.innerHTML=".grecaptcha-badge{visibility: hidden;}",document.head.appendChild(e),r()}),i)})).catch((function(e){}))}},{key:"reset",value:function(){void 0!==this.$removeScript&&this.$removeScript()}},{key:"getReCaptchaToken",value:(l=o().mark((function e(){var t,r,n,i,a,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.configsStore.configs,r=t.reCaptchaSiteKey,n=t.isRecaptchaEnabled,i=function(){return"undefined"!=typeof window&&void 0!==window.grecaptcha&&"function"==typeof window.grecaptcha.execute},n&&i()){e.next=4;break}return e.abrupt("return",Promise.resolve());case 4:a=function(){return new Promise((function(e,t){window.grecaptcha.ready((function(){window.grecaptcha.execute(r,{action:"submit"}).then(e).catch((function(r){r?t(r):e(null)}))}))}))},s=null;case 6:if(s){e.next=12;break}return e.next=9,a();case 9:s=e.sent,e.next=6;break;case 12:return e.abrupt("return",Promise.resolve(s));case 13:case"end":return e.stop()}}),e,this)})),u=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=l.apply(e,t);function o(e){a(i,r,n,o,s,"next",e)}function s(e){a(i,r,n,o,s,"throw",e)}o(void 0)}))},function(){return u.apply(this,arguments)})}],r&&s(t.prototype,r),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},11923:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(78527),r(95570),r(93831),r(98304),r(34089),r(28882),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(37210),r(48851),r(96656),r(94356),r(45993),r(84766),r(96152),r(34237),r(85146),r(74874),r(40890);
2var n=r(83794),i=r(98130),o=r(24289),a=r(7102);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function d(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var p=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"action",void 0),d(this,"location",void 0),d(this,"referrer",void 0),d(this,"basename",""),d(this,"url",void 0),d(this,"isRedirecting",!1),d(this,"isStatic",void 0),d(this,"$history",void 0),d(this,"$stopListening",void 0),d(this,"$unblock",void 0),d(this,"userProfileStore",void 0),d(this,"createHref",(function(e){return r.$history.createHref(e)})),d(this,"$updateLocation",(function(e,t){r.referrer=r.location,r.location=e,r.action=t})),d(this,"redirect",(function(e){(0,n.h5)((function(){r.isRedirecting=!0})),window.location=e})),d(this,"pushLocation",(function(e){r.$history.push(e)})),d(this,"replaceLocation",(function(e){r.$history.replace(e)})),d(this,"go",(function(e){r.$history.go(e)})),d(this,"goBack",(function(){r.$history.goBack()})),d(this,"goForward",(function(){r.$history.goForward()})),(0,n.Gn)(this,{action:n.sH,location:n.sH,url:n.sH,isRedirecting:n.sH,configure:n.XI,$updateLocation:n.XI,dispose:n.XI}),this.configure({isStatic:!0}),Object.defineProperties(this,{userProfileStore:{get:function(){return t.userProfileStore}}})}var t,r,s;return t=e,(r=[{key:"history",get:function(){return this.$history}},{key:"configure",value:function(e){var t,r=this,s=e.basename,l=e.isStatic;this.dispose(),l?(t=(0,a.A)({basename:s,context:this}),this.$stopListening=(0,n.mJ)((function(){return r.url}),this.redirect)):(t=(0,i.zR)({basename:s}),this.$stopListening=t.listen(this.$updateLocation)),this.isStatic=l,this.basename="/".concat(s),this.$history=t,this.$updateLocation(t.location,t.action),this.$stopTracking=(0,n.mJ)((function(){return r.location&&[r.location.pathname,r.location.search]}),(function(e,t){var n=c(e,2),i=n[0],a=n[1];if(i+a!==t.pathname+t.search&&!r.isStatic){(0,o.UQ)({location:r.createHref({pathname:i,search:a})});var s=r.userProfileStore,l=s.profile;s.isUpdatingProfile||(0,o.Q5)(l)}}))}},{key:"dispose",value:function(){"function"==typeof this.$stopListening&&this.$stopListening(),"function"==typeof this.$stopTracking&&this.$stopTracking(),this.$stopListening=void 0,this.$stopTracking=void 0,this.$history=void 0,this.action=void 0,this.location=void 0,this.referrer=void 0,this.basename=""}},{key:"disablePrompt",value:function(){this.$unblock&&this.$unblock(),this.$unblock=void 0}},{key:"enablePrompt",value:function(e){this.disablePrompt(),"function"==typeof this.$history.block&&(this.$unblock=this.$history.block((function(){return e})))}}])&&u(t.prototype,r),s&&u(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},23985:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});r(23510),r(96152),r(21555),r(34237),r(97041),r(43659);var n=r(83794),i=r(3492),o=r(31178),a=r(41835),s=r(47990),c=r(61401),l=r(62883),u=r(4182),d=r(87987),f=r(74275),p=r(83060),h=r(39667),m=r(30656),y=r(58165),v=r(32891),g=r(24289),b=r(16388),E=r(15819),w=r(67365),S=r(13705),A=r(11923),_=r(64730),x=r(4431),P=r(87369),I=r(47035),k=r(22028),O=r(20043),T=r(11785),C=function(){var e=new Event(i.og.USER_LOG_IN);window.dispatchEvent(e),y.HZ.setItem(i.og.USER_LOG_IN,Date.now().toString()).catch((function(e){0}))},R={onSignInSucceeded:function(e){(0,g.WH)(g.sK.USER_SIGN_IN,{method:"default",userId:e}),(0,E.v)(),C()},onSignInFailed:function(){},onSignOutSucceeded:function(){var e;(0,g.WH)(g.sK.USER_LOG_OUT),e=new Event(i.og.USER_LOG_OUT),window.dispatchEvent(e),y.HZ.setItem(i.og.USER_LOG_OUT,Date.now().toString()).catch((function(e){}))}},N={onRejectResettingPassword:function(){},onResettingPasswordSuccess:function(){y.HZ.setItem("lastAuthorizedAt",Date.now()).catch((function(e){0}))}},L={};self._____APP_STATE_____=L;const D=L;var M={onSignUpSucceeded:function(e){(0,g.WH)(g.sK.USER_SIGN_UP,{method:"default",userId:e}),(0,E.v)(),C(),y.HZ.setItem("lastAuthorizedAt",Date.now()).catch((function(e){0}))}},F={onThirdPartySignInSuccess:function(e,t,r){var n=t?g.sK.USER_SIGN_UP:g.sK.USER_SIGN_IN;(0,g.WH)(n,{method:e,userId:r}),(0,E.v)(),C(),y.HZ.setItem("lastAuthorizedAt",Date.now()).catch((function(e){0}))},onThirdPartySignInFailed:function(){}},j={onCancelOrder:function(e){return L.ordersStore.getOrderAnalyticsData(e.id).then((function(e){g.TQ.removeFromCart(e)})).catch((function(){}))}},B={onSubmitSucceeded:function(e){var t=e.orderInfoForGA4;g.TQ.addToCard(t)}};
2L.routerStore=new A.A(L),L.configsStore=new S.A(L,w.A),L.couponsStore=new s.f(L,w.e),L.notificationBellStore=new c.e(L,w.e),L.pointsBasedLifetimeStore=new c.V(L,w.e),L.userProfileStore=new o.iG(L,w.e),L.orderformStore=new p.ql(L,w.e),L.signInFormStore=new a.oS(L,w.e,R),L.orderApproveStore=new l.xi(L,w.e),L.orderApprovePartStore=new l.yL(L,w.e),L.signUpFormStore=new a.cl(L,w.e,M),L.thirdPartySignInStore=new a.rr(L,w.e,F),L.changePassFormStore=new u.Tm(L,w.e),L.resetPasswordStore=new u.M4(L,w.e,N),L.userChangePassStore=new o.In(L,w.e),L.userContactsStore=new o.um(L,w.e),L.userSettingsStore=new o.GG(L,w.e),L.userPolicyStore=new o.Z6(L,w.e),L.deleteAccountStore=new o.SL(L,w.e),L.ordersStore=new m.Ll(L,w.e,j),L.notificationsStore=new _.A,L.notificationManager=new x.A(L,w.A),L.errorsStore=new P.A(L),L.dialogsStore=new I.A(L),L.tipsStore=new d.Qt(L,w.e),L.orderFilesStore=new l.n4(L,w.e),L.fileReportStore=new l.Y4(L,w.e),L.requestRefundStore=new l.fz(L,w.e),L.requestRevisionFreeStore=new h.o(L,w.e),L.requestRevisionPaidStore=new h.k(L,w.A,B),L.abTestsStore=new k.A(L,window.GrowthBookSiteKey,window.ABTestsExperiments),L.otherOptionFormStore=new p.PW(L),L.setNewPassStore=new u.Zd(L,w.e),L.referralStore=new f.A(L,w.A),L.paymentStore=new d._3(L,w.e),L.safeChargeFormStore=new d.rC(L,w.e),L.checkOutFormStore=new d.OA(L,w.e),L.solidFormStore=new d.Xm(L,w.e),L.orderFormTipsStore=new p.GM(L),L.applePayStore=new d.Qr(L,w.e),L.googlePayStore=new d.XB(L,w.e),L.$buildDate="9/11/2026, 11:34:53 AM",L.reCaptchaStore=new O.A(L),L.advocacyQuestionnaireStore=new v.b(L,w.e),L.userAuthProvidersStore=new o.fU(L,w.e),L.userPhoneNumberStore=new o._2(L,w.e),L.userCountryStore=new o.vH(L,w.e),T.A.stores=L,L.messagingRootStore=new b.yd(T.A),(0,n.mJ)((function(){return L.userProfileStore.profile}),(function(e){if(e){(0,g.j8)(e);var t=new Date;t.setTime(t.getTime()+31536e6),(0,y.TV)({name:"paidOrders",value:e.paidOrdersCount||0,options:{expires:t.toUTCString()}})}(0,g.Q5)(e)})),(0,n.mJ)((function(){return L.configsStore.configs}),(function(e){return e.isIOSapp&&(0,g.WH)("IOSapp")}))},15819:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});r(9020),r(93831),r(11505),r(97041),r(96152);var n=r(58165),i=function(){return(0,n.dM)()&&!(parseInt((document.cookie.match(/(?:^|; )CookieDialog_agreed=([^;]*)/)||[])[1],10)>0)&&void(document.cookie="CookieDialog_agreed=".concat(Date.now(),";path=/"))}},7102:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(84766),r(93831),r(28882),r(98140),r(73511),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(98130),i=r(83794);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=function(){},u=function(e){return"/"===e.charAt(0)?e:"/".concat(e)},d=function(e,t){return e?s(s({},t),{},{pathname:u(e)+t.pathname}):t},f=function(e){return"string"==typeof e?(0,n.Rr)(e):(r=(t=e).pathname,i=void 0===r?"/":r,o=t.search,a=void 0===o?"":o,s=t.hash,{pathname:i,search:"?"===a?"":a,hash:"#"===(c=void 0===s?"":s)?"":c});var t,r,i,o,a,s,c},p=function(e){return"string"==typeof e?e:(0,n.AO)(e)};const h=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.basename,n=t.context,o=r?"/"===(e=u(r)).charAt(e.length-1)?e.slice(0,-1):e:"",a=function(e,t){if(!e)return t;var r=u(e);return 0!==t.pathname.indexOf(r)?t:s(s({},t),{},{pathname:t.pathname.substr(r.length)})}(o,f(window.location));return{length:void 0,action:"POP",location:a,createHref:function(e){return o+p(e)},push:function(e){(0,i.h5)((function(){n.action="PUSH",n.location=d(o,f(e)),n.url=p(n.location)}))},replace:function(e){(0,i.h5)((function(){n.action="REPLACE",n.location=d(o,f(e)),n.url=p(n.location)}))},go:l,goBack:l,goForward:l,listen:function(){return l},block:function(){return l},isStatic:!0}}},86229:(e,t,r)=>{"use strict";var n;r.d(t,{QQ:()=>a,TT:()=>i,kz:()=>o});
2var i=function(){return"serviceWorker"in window.navigator},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/sw.js";return window.navigator.serviceWorker.register(e).then((function(e){return n=e,e}))},a=function(){return n}},67365:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,e:()=>c});var n=r(88287),i=r(70199),o=r(96741),a=r(8461),s=r(29764),c=(0,n.A)({apiVersion:"v002",apiHost:""});const l={pullConfigs:function(){return c({method:"get",url:"/api/config.json",data:{}}).then(i.A)},getUserCountry:function(){return c({method:"get",url:"/api/config/user_country.json",data:{}})},uploadFile:function(e,t,r){var n=e.instanceId,i=e.blob,s=e.onProgress;return c({method:"post",url:"/api/potato_files/potato_customer_files_upload",data:(0,o.A)({instanceId:n,blob:i}),onProgress:s,token:r,expectSuccessFlag:!1}).then((function(e){return(0,a.A)(e,t.configsStore)}))},deleteFile:function(e){return c({method:"post",url:"/api/potato_files/deleteRequest/".concat(e),data:{},expectSuccessFlag:!1})},updateUserNotifications:function(e){var t=e.pushNotificationsEnabled;return c({method:"put",url:"/api/profile/push_notifications_enabled.json",data:{pushNotificationsEnabled:t?1:0},expectSuccessFlag:!1})},requestRevisionPaid:function(e){var t=e.orderId,r=e.revisionData;return r.id?c({method:"post",url:"/api/orders/".concat(r.id,"/revision_paid_update.json"),data:r}):c({method:"post",url:"/api/orders/".concat(t,"/request_revision_paid.json"),data:r})},registerDevice:function(e){return c({method:"post",url:"/api/device/registerDevice.json",data:{token:e,platform:"web",service:"fcm"},expectSuccessFlag:!1})},pullReferrerProfile:function(){return c({method:"get",url:"/api/referrerProfile.json"}).then((function(e){var t=e.referrerProfile;return(0,s.A)(t)}))},checkAuthStatus:function(){return c({method:"get",url:"/api/isLogged.json"}).then((function(e){return e.isLogged}))}}},70199:(e,t,r)=>{"use strict";r.d(t,{A:()=>_});r(96104),r(21555),r(95790),r(9020),r(99180),r(92221),r(85146),r(96152),r(29416),r(24493),r(22892),r(95570),r(79683),r(69399),r(37210),r(48851),r(96656),r(94356),r(45993),r(74874),r(84766),r(23510),r(34237),r(93831),r(40890),r(66264);var n=r(3492),i=r(94941),o=r(42949),a=r(44840),s=r(16137),c=r(31702),l=r(67064),u=r(51058),d=r(1101),f=r(59450),p=r(95816),h=r(69354),m=r(67914),y=r(9357),v=r(77219),g=r(27566),b=r(60499),E=r(39943),w=r(69025);function S(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const _=function(e){return new i.A({isOrderPlacingProhibited:e.isOrderPlacingProhibited,isIOSapp:e.isIOSapp,deliverablesDictionary:e.deliverablesDictionary.reduce((function(e,t){return e[t.id]=new h.A(t),e}),{}),taskExamplesDictionary:e.taskExamplesDictionary.reduce((function(e,t){return e[t.id]=new y.A(t),e}),{}),hasInquiry:e.hasInquiry,isPushNotificationsEnabled:Boolean(e.isPushNotificationsEnabled),messagingSenderId:e.fcmSenderId,currencyIds:e.siteCurrencies.map((function(e){return parseInt(e.currencyId,10)})),currencyById:e.siteCurrencies.reduce((function(e,t){return e[t.currencyId]=new a.A({id:parseInt(t.currencyId,10),name:t.exchangeRateData.currency,title:t.title,symbol:t.symbols,rate:t.exchangeRateData.rate,isInverted:!!Number(t.exchangeRateData.isInverted)}),e}),{}),defaultCurrencyId:e.siteCurrencyDefault,countriesIds:e.countries.map((function(e){return e.id})),countries:e.countries.reduce((function(e,t){return e[t.id]=new o.A(Object.assign(t,E.A[t.id],{title:t.name,dialCode:t.phoneCode})),e}),{}
2),hotSeasonStopAt:new Date(e.hotSeasonStopAt),defaultRevisionDeadlineId:e.defaultRevisionDeadlineId,revisionDeadlinesIds:e.revisionDeadlines.map((function(e){return e.id})),revisionDeadlinesById:e.revisionDeadlines.reduce((function(e,t){return e[t.id]=new c.A(Object.assign(t,{title:t.name})),e}),{}),paidRevisionDeadlinesIds:Object.keys(e.paidRevisionDeadlines).reduce((function(t,r){var n=e.paidRevisionDeadlines[r];return Object.keys(n).forEach((function(e){var r=n[e].map((function(e){return e.did}));t.push.apply(t,S(r))})),t}),[]),paidRevisionDeadlinesById:Object.keys(e.paidRevisionDeadlines).reduce((function(t,r){var n=e.paidRevisionDeadlines[r];return Object.keys(n).forEach((function(e){n[e].forEach((function(n){t[n.did]=new l.A({id:n.did,hrs:n.hrs,pricePerPage:n.price_per_page,title:n.name,minPages:n.min_pages,academicLevelId:Number(e),serviceTypeId:Number(r)})}))})),t}),{}),evrRatesIds:e.evrRates.map((function(e){return e.id})),evrRatesById:e.evrRates.reduce((function(e,t){var r=t.id,n=t.description,i=t.reasons;return e[r]=new u.A({id:r,description:n,reasons:i.map((function(e){return new d.A(e)}))}),e}),{}),siteFullName:e.siteFullName,isReferralProgramEnabled:Boolean(e.isReferralProgramEnabled),isTipsForWriterEnabled:Boolean(e.isTipsForWriterEnabled),redirectFromDashboardTo:e.redirectFromDashboardTo,disciplinesById:e.disciplines.reduce((function(e,t){return e[t.id]=new s.A({id:t.id,title:t.name,groupId:"number"==typeof t.groupId?t.groupId:void 0,isComplexAssignment:Boolean(t.isComplexAssignment),isOther:t.id===n.UH.DISCIPLINE_OTHER_ID}),e}),{}),groupsOfDisciplinesById:e.groupsOfDisciplines.reduce((function(e,t){return e[t.id]=new f.A(t),e}),{}),orderServiceTypesIds:e.orderServiceTypes.map((function(e){return e.id})),orderServiceTypesById:e.orderServiceTypes.reduce((function(e,t){return e[t.id]=new p.A({id:t.id,name:t.name}),e}),{}),defaultOrderServiceTypeId:e.defaultOrderServiceTypeId,isAcademicWritingEnabled:e.isAcademicWritingEnabled,isProgrammingEnabled:e.isProgrammingEnabled,isCalculationsEnabled:e.isCalculationsEnabled,isApplePayPaymentEnabled:e.isApplePayPaymentEnabled,isGooglePayPaymentEnabled:Boolean(e.isGooglePayPaymentEnabled),configsForAcademicWriting:(0,v.A)(e.configsForAcademicWriting),configsForCalculations:(0,g.A)(e.configsForCalculations),configsForProgramming:(0,b.A)(e.configsForProgramming),isAppleSignInEnabled:e.isAppleSignInEnabled,isGoogleSignInEnabled:e.isGoogleSignInEnabled,authenticationProvidersById:e.authenticationProviders.reduce((function(e,t){return e[t.typeId]=new m.A(t),e}),{}),isRecaptchaEnabled:e.isRecaptchaEnabled,reCaptchaSiteKey:e.recaptchaPublicKey,isReferral:Boolean(e.isReferral),referrerHash:e.referrerHash,showPromotionEndedNotification:Boolean(e.showPromotionEndedNotification),siteEmail:e.siteEmail,minDeadline:(t=e,r=t.is4hoursDeadlineDisabled,t.is8hoursDeadlineDisabled?24:r?8:4),isProficientEnglishDisabled:Boolean(e.isProficientEnglishDisabled),isOtherDisciplineDisabled:Boolean(e.isOtherDisciplineDisabled),isSplitPaymentEnabled:Boolean(e.isSplitPaymentEnabled),isPayInPartsEnabled:Boolean(e.isPayInPartsEnabled),payInPartsValuesIds:e.payInPartsValues.map((function(e){return e.id})),payInPartsValuesById:e.payInPartsValues.reduce((function(e,t){return e[t.id]=new w.A({id:t.id,value:Number(t.value)}),e}),{}),isCopyFormURLEnabled:Boolean(e.isCopyFormURLEnabled),isOnlyOwnCodeSolutionEnabled:Boolean(e.isOnlyOwnCodeSolutionEnabled),isWellCommentedCodeEnabled:Boolean(e.isWellCommentedCodeEnabled),isTopExpertEnabled:Boolean(e.isTopExpertEnabled),isPremiumAIReportEnabled:Boolean(e.isPremiumAIReportEnabled),isStemOriented:Boolean(e.isStemOriented),heartbeatInterval:parseInt(e.heartbeatInterval,10)});var t,r}},77219:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(95570),r(95790),r(96104),r(21555),r(92221),r(85146),r(17626);var n=r(3492),i=r(3814),o=r(52481),a=r(85160),s=r(96933),c=r(91338),l=r(28575),u=r(92149),d=r(37631),f=r(7052);const p=function(e){return e.paperTypes.push({id:n.UH.TYPE_OF_PAPER_OTHER_ID,title:"Other"}),new i.A({defaults:e.defaults,tariffsIds:e.tariffs.map((function(e){return e.id})),tariffsById:e.tariffs.reduce((function(e,t){return e[t.id]=new o.A(Object.assign(t,{title:t.name,academicLevel:t.academicLevel,hrs:t.hrs,hours:t.hrs,id:t.id,minPages:t.minPages,pricePerPage:t.pricePerPage})),e}),{}),academicLevelsIds:e.academicLevels.map((function(e){return e.id})),academicLevelsById:e.academicLevels.reduce((function(e,t){return e[t.id]=new a.A(t),e}),{}),disciplinesIds:e.disciplinesIds,topDisciplinesIds:e.topDisciplinesIds,disciplinesNocollegeIds:e.disciplineFilter.nocollege,paperTypesIds:e.paperTypes.map((function(e){return e.id})),paperTypesById:e.paperTypes.reduce((function(e,t){return e[t.id]=new s.A(Object.assign(t,{isOther:t.id===n.UH.TYPE_OF_PAPER_OTHER_ID})),e}),{}),topPaperTypesIds:e.topPaperTypesIds,dissertationPaperTypesIds:e.dissertationPaperTypesIds,paperFormatsIds:e.paperFormats.map((function(e){return e.id})),paperFormatsById:e.paperFormats.reduce((function(e,t){return e[t.id]=new c.A(Object.assign(t,{isOther:t.id===n.UH.PAPER_FORMAT_OTHER_ID})),e}),{}),papersWithSourcesById:e.papersWithSources.reduce((function(e,t){return e[t.id]=new l.A({id:t.id,sources_infoIds:t.sources_info.map((function(e){return e.academic_level_id})),sources_info:t.sources_info.reduce((function(e,t){return e[t.academic_level_id]=new u.A({academic_level_id:t.academic_level_id,default_source_count:t.default_source_count}),e}),{})}),e}),{}),urgentDeadlinesMaxPages:e.urgentDeadlinesMaxPages,paperLevelsIds:e.paperLevels.map((function(e){return e.id})),paperLevelsById:e.paperLevels.reduce((function(e,t){return e[t.id]=new d.A(t),e}),{}),languageStylesIds:e.languageStyles.reverse().map((function(e){return e.id})),languageStylesById:e.languageStyles.reduce((function(e,t){return e[t.id]=new f.A(t),e}),{})})}},27566:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(95790),r(96104),r(21555),r(95570);
2var n=r(19613),i=r(35567),o=r(79899),a=r(13410),s=r(28154),c=r(82894);const l=function(e){return new n.A({defaults:e.defaults,disciplinesIds:e.disciplinesIds,itemPricesIds:e.itemPrices.map((function(e){return e.id})),itemPricesById:e.itemPrices.reduce((function(e,t){return e[t.id]=new i.A(t),e}),{}),deadlinesIds:e.deadlines.map((function(e){return e.id})),deadlinesById:e.deadlines.reduce((function(e,t){return e[t.id]=new o.A(t),e}),{}),sizesIds:e.sizes.map((function(e){return e.id})),sizesById:e.sizes.reduce((function(e,t){return e[t.id]=new a.A(t),e}),{}),descriptors:e.descriptors.reduce((function(e,t){return e.push(new s.A(t)),e}),[]),softwareIds:e.software.map((function(e){return e.id})),softwareById:e.software.reduce((function(e,t){return e[t.id]=new c.A(t),e}),{})})}},60499:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(95790),r(96104),r(21555),r(95570);var n=r(7562),i=r(35567),o=r(79899),a=r(13410),s=r(28154),c=r(73437),l=r(23390);const u=function(e){return new n.A({defaults:e.defaults,disciplinesIds:e.disciplinesIds,itemPricesIds:e.itemPrices.map((function(e){return e.id})),itemPricesById:e.itemPrices.reduce((function(e,t){return e[t.id]=new i.A(t),e}),{}),deadlinesIds:e.deadlines.map((function(e){return e.id})),deadlinesById:e.deadlines.reduce((function(e,t){return e[t.id]=new o.A(t),e}),{}),sizesIds:e.sizes.map((function(e){return e.id})),sizesById:e.sizes.reduce((function(e,t){return e[t.id]=new a.A(t),e}),{}),descriptors:e.descriptors.reduce((function(e,t){return e.push(new s.A(t)),e}),[]),languagesIds:e.languages.map((function(e){return e.id})),languagesById:e.languages.reduce((function(e,t){return e[t.id]=new c.A(t),e}),{}),groupsOflanguagesById:e.languagesGroups.reduce((function(e,t){return e[t.id]=new l.A(t),e}),{})})}},8461:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(37210);var n=r(30350),i=r.n(n),o=r(3492),a=r(86456);const s=function(e,t){if(void 0===e||!1===Array.isArray(e.files))throw new(i())("Invalid JSON",o.I.JSON_PARSE);if(1!==e.files.length)throw new(i())("Failed to upload file",o.I.INVALID_DATA);return(0,a.A)(e.files[0],t)}},86456:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(85146),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993);var n=r(30350),i=r.n(n),o=r(3492);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}const s=function(e){if(void 0===e||"object"!==a(e))throw new(i())("Invalid JSON",o.I.JSON_PARSE);if(e.error)throw new(i())(e.error,o.I.SERVER_VALIDATION);return{isUploaded:!0,isUploading:!1,id:e.id,deleteUrl:e.deleteUrl,name:e.newName||e.name,size:e.size}}},29764:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(95790);var n=r(65501);const i=function(e){return new n.A({isReferralProgramActive:e.isReferralProgramActive,referrerLink:e.referrerLink||void 0,activeCoupons:e.activeCoupons.map((function(e){return{id:e.coupon_id,createdAt:e.created_at,code:e.code}})),couponsReceivedCount:e.couponsReceivedCount,registeredReferralsCount:e.registeredReferralsCount})}},96741:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){var t=e.blob,r=e.instanceId,n=new window.FormData;return n.append("files[]",t),n.append("file_number[]",r),n}},64575:(e,t,r)=>{"use strict";var n,i,o;function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}e=r.nmd(e),o=function(){var e={},t=function(e){return Math.round(100*e)/100},r=function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e},n=1,i=3,o=5,a=9,s=10,c=11,l=37,u=45,d=46,f={WRITING_PAGES:1,WRITING_SLIDES:2,WRITING_CHARTS:31,PROGRESSIVE_DELIVERY:5,DISCOUNT:6,USED_SOURCES:21,COMPLEX_ASSIGNMENT:37,REVISION_MINOR_PAGES:26,REVISION_MINOR_SLIDES:27,REVISION_MINOR_CHARTS:33,REVISION_MAJOR_PAGES:28,REVISION_MAJOR_SLIDES:29,REVISION_MAJOR_CHARTS:35,CALCULATIONS:43,PROGRAMMING:44,SPLIT_PAYMENT:45,PAY_IN_PARTS:46,LANGUAGE_STYLE:48,PAPER_LEVEL:49,WELL_COMMENTED_CODE:101,TOP_EXPERT:102,PREMIUM_AI_REPORT:53},p={ADD_WRITING_PAGES:"page",ADD_WRITING_SLIDES:"slide",ADD_WRITING_CHARTS:"chart",ADD_PROGRESSIVE_DELIVERY:"progressive",ADD_USED_SOURCES:"sources",ADD_SHORTEN_DEADLINE:"shorten"},h=[p.ADD_WRITING_PAGES,p.ADD_WRITING_SLIDES,p.ADD_WRITING_CHARTS,p.ADD_USED_SOURCES,p.ADD_SHORTEN_DEADLINE,p.ADD_PROGRESSIVE_DELIVERY],m=[p.ADD_SHORTEN_DEADLINE],y=function(e){return e||(e={}),e.orderServiceTypeId=e.orderServiceTypeId||l,{pages:parseInt(e.pages)||0,slides:parseInt(e.slides)||0,coupon:e.coupon||null,charts:p
2arseInt(e.charts)||0,winbackCoupons:e.winbackCoupons||[],tariffPricePerPage:parseFloat(e.tariffPricePerPage)||0,tariffHrs:parseInt(e.tariffHrs)||0,spacing:e.spacing||null,getProgressiveDeliveryOn:Boolean(e.getProgressiveDeliveryOn),getUsedSourcesOn:Boolean(e.getUsedSourcesOn),complexAssignmentDiscipline:Boolean(e.complexAssignmentDiscipline),academicLevelId:parseInt(e.academicLevelId),orderServiceTypeId:parseInt(e.orderServiceTypeId),typeOfPaperId:parseInt(e.typeOfPaperId)||void 0,splitPayment:Boolean(e.splitPayment),paperLevel:e.paperLevel||{id:"noop",percent:0},languageStyle:e.languageStyle||{id:"noop",percent:0},calculationsItemPrice:parseInt(e.calculationsItemPrice)||0,calculationsPriceModifier:parseFloat(e.calculationsPriceModifier)||0,calculationsTitle:e.calculationsTitle||void 0,programmingItemPrice:parseInt(e.programmingItemPrice)||0,programmingPriceModifier:parseFloat(e.programmingPriceModifier)||0,programmingTitle:e.programmingTitle||void 0,hasWellCommentedCode:Boolean(e.hasWellCommentedCode),hasTopExpert:Boolean(e.hasTopExpert),hasPayInParts:Boolean(e.hasPayInParts),payInPartsValue:parseInt(e.payInPartsValue)||void 0,hasPremiumAIReport:Boolean(e.hasPremiumAIReport),hasCalculationsAndSubjectExpertise:Boolean(e.hasCalculationsAndSubjectExpertise)}};e.getFreeThingsFromCoupons=function(e){e||(e=[]);for(var t={},r=[],n=[],i=0;i<e.length;i++)e[i].serviceTypeId===f.PAPER_LEVEL?r.push(e[i].paperLevelId):e[i].serviceTypeId===f.LANGUAGE_STYLE?n.push(e[i].languageStyleId):t[e[i].serviceTypeId]=e[i];return{pages:t[f.WRITING_PAGES]&&t[f.WRITING_PAGES].value||0,slides:t[f.WRITING_SLIDES]&&t[f.WRITING_SLIDES].value||0,charts:t[f.WRITING_CHARTS]&&t[f.WRITING_CHARTS].value||0,progressiveDelivery:void 0!==t[f.PROGRESSIVE_DELIVERY],copyOfSources:void 0!==t[f.USED_SOURCES],paperLevelsIds:r,languageStylesIds:n}};var v=function(e){var r={};if(e.orderServiceTypeId===u){var n=t(e.calculationsItemPrice*e.calculationsPriceModifier);r[f.CALCULATIONS]={cost:n,title:e.calculationsTitle,winbackQuantity:0,winbackReduction:0,quantity:0,itemPrice:0,price:0,pricePercent:0}}else if(e.orderServiceTypeId===d){var i=t(e.programmingItemPrice*e.programmingPriceModifier);r[f.PROGRAMMING]={cost:i,title:e.programmingTitle,winbackQuantity:0,winbackReduction:0,quantity:0,itemPrice:0,price:0,pricePercent:0}}else{var o="single"===e.spacing?2:1,a=e.tariffPricePerPage*o,s=t(.5*e.tariffPricePerPage),c=t(.5*e.tariffPricePerPage),l=t(e.pages*a),p=t(e.slides*s),h=t(e.charts*c);r[f.WRITING_PAGES]={cost:l,winbackQuantity:0,winbackReduction:0,quantity:e.pages,itemPrice:a,price:0,pricePercent:0},r[f.WRITING_SLIDES]={cost:p,winbackQuantity:0,winbackReduction:0,quantity:e.slides,itemPrice:s,price:0,pricePercent:0},r[f.WRITING_CHARTS]={cost:h,winbackQuantity:0,winbackReduction:0,quantity:e.charts,itemPrice:c,price:0,pricePercent:0}}return r},g=function(e,r){for(var n=0;n<e.winbackCoupons.length;n++){var i=e.winbackCoupons[n];if(i.discountTypeId===o){var a,s=r[i.serviceTypeId];s&&([f.WRITING_PAGES,f.WRITING_CHARTS,f.WRITING_SLIDES].includes(i.serviceTypeId)&&(a=Math.min(i.value,s.quantity-2)),a=Math.max(a,0),s.winbackQuantity=a,s.winbackReduction=t(s.itemPrice*a))}}return r},b=function(e,r,i){var o={},u=r-i;if(e.orderServiceTypeId===l){var p=r<200||e.tariffHrs<120?"Available for orders with a deadline of 5 days and longer, and with the value of $200 and more.":void 0,h=r>=600&&e.tariffHrs>=168?"Mandatory for 7 days and longer, with the value of $600 and more.":void 0,m=e.complexAssignmentDiscipline?"Your discipline requires narrow subject expertise or calculations":void 0,y=t(10*u/100),v=t(Math.max(14.95,10*u/100)),g=t(20*u/100);o[f.PROGRESSIVE_DELIVERY]={cost:h||e.getProgressiveDeliveryOn?y:0,winbackQuantity:0,winbackReduction:0,quantity:0,itemPrice:0,price:y,pricePercent:10,disabledReason:p,forcedReason:h},o[f.PAY_IN_PARTS]={cost:0,winbackQuantity:0,winbackReduction:0,quantity:0,itemPrice:0,price:0,pricePercent:0,parts:e.hasPayInParts?e.payInPartsValue:void 0},o[f.LANGUAGE_STYLE]={cost:t(u*e.languageStyle.percent/100),winbackQuantity:0,winbackReduction:0,quantity:0,title:e.languageStyle.title},o[f.PAPER_LEVEL]={cost:t(u*e.paperLevel.percent/100),winbackQuantity:0,winbackReduction:0,quantity:0,title:e.paperLevel.title},o[f.USED_SOURCES]={cost:e.getUsedSourcesOn?v:0,winbackQuantity:0,winbackReduction:0,quantity:0,itemPrice:0,price:v,pricePercent:v>14.95?10:0},o[f.PREMIUM_AI_REPORT]={cost:e.hasPremiumAIReport?19.95:0,winbackQuantity:0,winbackReduction:0,quantity:0,itemPrice:0,price:19.95,pricePercent:0},o[f.COMPLEX_ASSIGNMENT]={cost:m||e.hasCalculationsAndSubjectExpertise?g:0,winbackQuantity:0,winbackReduction:0,quantity:0,itemPrice:0,price:g,pricePercent:20,forcedReason:m}}else if(e.orderServiceTypeId===d){var b=t(5*u/100),E=t(40*u/100);o[f.WELL_COMMENTED_CODE]={cost:e.hasWellCommentedCode?b:0,winbackQuantity:0,winbackReduction:0,quantity:0,itemPrice:0,price:b,pricePercent:5},o[f.TOP_EXPERT]={cost:e.hasTopExpert?E:0,winbackQuantity:0,winbackReduction:0,quantity:0,itemPrice:0,price:E,pricePercent:40}}for(var w=0;w<e.winbackCoupons.length;w++){var S=e.winbackCoupons[w];S.discountTypeId===n?void 0!==o[S.serviceTypeId]&&(o[S.serviceTypeId].winbackReduction=t(o[S.serviceTypeId].cost/100*S.value)):S.discountTypeId===a?e.languageStyle.id===S.languageStyleId&&(o[f.LANGUAGE_STYLE].winbackReduction=t(o[f.LANGUAGE_STYLE].cost/100*S.value)):S.discountTypeId===s?e.paperLevel.id===S.paperLevelId&&(o[f.PAPER_LEVEL].winbackReduction=t(o[f.PAPER_LEVEL].cost/100*S.value)):S.discountTypeId===c&&e.hasTopExpert&&(o[f.TOP_EXPERT].winbackReduction=t(o[f.TOP_EXPERT].cost/100*S.value))}return o},E=function(e,r,n,i){var o={}
2,a=t(r+n-i),s=Math.round(5*a)/100;return o[f.SPLIT_PAYMENT]={cost:e.splitPayment?s:0,winbackQuantity:0,winbackReduction:0,quantity:0,itemPrice:0,price:s,pricePercent:5},o},w=function(e,r,n){var o={},a=0,s=e.coupon;if(function(e,t,r){if(!e)return!1;if(!e.rules)return!0;if(void 0!==e.rules.maxOrderItems){var n=function(e){var t=e.pages||0,r=e.slides||0,n=e.charts||0;return t*("double"===(e.spacing||"double")?1:2)+n/2+r/2}(t);if(n>e.rules.maxOrderItems)return!1}return!(void 0!==e.rules.minDeadline&&t.tariffHrs<e.rules.minDeadline||void 0!==e.rules.maxDeadline&&t.tariffHrs>e.rules.maxDeadline||void 0!==e.rules.minAcademicLevel&&t.academicLevelId<e.rules.minAcademicLevel||void 0!==e.rules.minPrice&&r<e.rules.minPrice||void 0!==e.rules.maxPrice&&r>=e.rules.maxPrice||void 0!==e.rules.orderServiceTypeIds&&!e.rules.orderServiceTypeIds.includes(t.orderServiceTypeId)||void 0!==e.rules.typeOfPaperIds&&!e.rules.typeOfPaperIds.includes(t.typeOfPaperId))}(s,e,r)){var c=r-n;a=s.discountTypeId===i?c-s.value<.99?t(c-.99):s.value:c*s.value/100}return o[f.DISCOUNT]={cost:-t(a),winbackQuantity:0,winbackReduction:0,quantity:0},s&&(o[f.DISCOUNT].title=s.code.code),o},S=function(e){switch(e){case f.WRITING_PAGES:return 1;case f.WRITING_SLIDES:return 2;case f.WRITING_CHARTS:return 3;case f.PROGRESSIVE_DELIVERY:return 4;case f.USED_SOURCES:return 6;case f.COMPLEX_ASSIGNMENT:return 7;case f.PAPER_LEVEL:return 8;case f.LANGUAGE_STYLE:return 9;case f.ADD_SHORTEN_DEADLINE:return 11;case f.CALCULATIONS:return 13;case f.PROGRAMMING:return 14;case f.SPLIT_PAYMENT:return 20;case f.WELL_COMMENTED_CODE:return 22;case f.TOP_EXPERT:return 23;case p.ADD_WRITING_PAGES:return 50;case p.ADD_WRITING_SLIDES:return 51;case p.ADD_WRITING_CHARTS:return 52;case p.ADD_USED_SOURCES:return 53;case p.ADD_PROGRESSIVE_DELIVERY:return 55;case p.ADD_SHORTEN_DEADLINE:return 56;case f.PREMIUM_AI_REPORT:return 60;case f.DISCOUNT:return 100;default:return 0}},A=function(e){return e[f.WRITING_PAGES]?t(e[f.WRITING_PAGES].cost+e[f.WRITING_SLIDES].cost+e[f.WRITING_CHARTS].cost):e[f.CALCULATIONS]?e[f.CALCULATIONS].cost:e[f.PROGRAMMING]?e[f.PROGRAMMING].cost:0},_=function(e){return e[f.WRITING_PAGES]?t(e[f.WRITING_PAGES].winbackReduction+e[f.WRITING_SLIDES].winbackReduction+e[f.WRITING_CHARTS].winbackReduction):e[f.CALCULATIONS]?e[f.CALCULATIONS].winbackReduction:e[f.PROGRAMMING]?e[f.PROGRAMMING].winbackReduction:0},x=function(e){return e[f.WRITING_PAGES]?t(e[f.USED_SOURCES].cost+e[f.PROGRESSIVE_DELIVERY].cost+e[f.PAPER_LEVEL].cost+e[f.LANGUAGE_STYLE].cost+e[f.PREMIUM_AI_REPORT].cost+e[f.COMPLEX_ASSIGNMENT].cost):e[f.WELL_COMMENTED_CODE]||e[f.TOP_EXPERT]?t(e[f.WELL_COMMENTED_CODE].cost+e[f.TOP_EXPERT].cost):0},P=function(e){return e[f.SPLIT_PAYMENT]?e[f.SPLIT_PAYMENT].cost:0},I=function(e){var r=0;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];r=t(r+i.cost-i.winbackReduction)}return r},k=function(e){var r=0;return e[f.PROGRESSIVE_DELIVERY]&&(r=t(e[f.PROGRESSIVE_DELIVERY].winbackReduction+e[f.USED_SOURCES].winbackReduction+e[f.PAPER_LEVEL].winbackReduction+e[f.LANGUAGE_STYLE].winbackReduction+e[f.PREMIUM_AI_REPORT].winbackReduction+e[f.COMPLEX_ASSIGNMENT].winbackReduction)),e[f.TOP_EXPERT]&&(r=t(e[f.TOP_EXPERT].winbackReduction)),t(_(e)+r)};function O(e){e=y(e);var n={};r(n,v(e)),g(e,n);var i=A(n),o=_(n);r(n,b(e,i,o));var a=x(n),s=k(n);r(n,E(e,i,a,s));var c=P(n),l=t(i+a+c);return r(n,w(e,l,s)),T(n)}var T=function(e){for(var t in e)if(e.hasOwnProperty(t)){isNaN(+t)||(t=+t);var r=e[t];if(r.$isFormatted)continue;Object.defineProperty(r,"$isFormatted",{value:!0}),r.winbackReduction=r.winbackReduction||0,r.free=r.cost===r.winbackReduction&&r.cost>0,r.type_id=t,r.priority=S(t),r.active=0!==r.cost||0!==r.winbackReduction}return e};function C(e,n,i){var o=function(e,t){switch(t){case p.ADD_SHORTEN_DEADLINE:return{tariffHrs:e.shortenDeadlineHrs,tariffPricePerPage:e.shortenDeadlinePricePerPage};case p.ADD_WRITING_PAGES:return{pages:e.newPagesQuantity};case p.ADD_WRITING_SLIDES:return{slides:e.newSlidesQuantity};case p.ADD_WRITING_CHARTS:return{charts:e.newChartsQuantity};case p.ADD_USED_SOURCES:return{getUsedSourcesOn:e.getUsedSourcesOn};case p.ADD_PROGRESSIVE_DELIVERY:return{getProgressiveDeliveryOn:e.getProgressiveDeliveryOn}}}(e,i),a=O(n);r(n,o);
2var s=O(n),c=t(A(a)+x(a)+P(a)),l=t(A(s)+x(s)+P(a)),u=t(I(a)),d=t(I(s)),f=R(s,a,i),h={rawCost:t(l-c),cost:t(d-u),winbackQuantity:0,winbackReduction:0};return Object.defineProperty(h,"underlyingServicesById",{value:T(f),enumerable:!1}),h}e.calculate=function(e){var r=O(e=y(e)),n={servicesById:r};return n.baseCost=A(r),n.secondaryCost=x(r),n.fullPriceServicesCost=P(r),n.rawCost=t(n.baseCost+n.secondaryCost+n.fullPriceServicesCost),n.couponsReduction=k(r),n.totalCost=I(r),n.firstInstallmentCost=function(e,t){if(e[f.SPLIT_PAYMENT]&&e[f.SPLIT_PAYMENT].cost>0)return Math.floor(Math.round(100*t)/2)/100;if(e[f.PAY_IN_PARTS]&&e[f.PAY_IN_PARTS].parts>1){var r=e[f.PAY_IN_PARTS].parts;return Math.floor(Math.round(100*t)/r)/100}return 0}(r,n.totalCost),n},e.version=3;var R=function(e,r,n){var i={};for(var o in e)if(e.hasOwnProperty(o)){var a=e[o],s={},c=r[o];c&&(s.cost=t(a.cost-c.cost),s.quantity=a.quantity-c.quantity,s.winbackQuantity=a.winbackQuantity-c.winbackQuantity,s.winbackReduction=t(a.winbackReduction-c.winbackReduction),"price"in a&&(s.price=a.price),"itemPrice"in a&&(s.itemPrice=a.itemPrice),"pricePercent"in a&&(s.pricePercent=a.pricePercent),"disabledReason"in a&&(s.disabledReason=a.disabledReason),"forcedReason"in a&&(s.forcedReason=a.forcedReason),"title"in a&&(s.title=a.title),s.operations||Object.defineProperty(s,"operations",{value:[]}),a.quantity===c.quantity&&a.price===c.price&&a.itemPrice===c.itemPrice&&a.pricePercent===c.pricePercent||(a.price===c.price&&a.itemPrice===c.itemPrice&&a.pricePercent===c.pricePercent?s.operations.push({sign:1,quantity:a.quantity-c.quantity,price:a.price,itemPrice:a.itemPrice,pricePercent:a.pricePercent,causedByServiceId:n}):s.operations.push({sign:1,quantity:a.quantity,price:a.price,itemPrice:a.itemPrice,pricePercent:a.pricePercent,causedByServiceId:n},{sign:-1,quantity:c.quantity,price:c.price,itemPrice:c.itemPrice,pricePercent:c.pricePercent,causedByServiceId:n}))),i[o]=s}return i},N=function(e,n){var i={};for(var o in e)if(e.hasOwnProperty(o)){var a=e[o],s=n[o],c=r({},a);a.operations&&Object.defineProperty(c,"operations",{value:a.operations.slice()}),s&&(c.quantity=c.quantity+s.quantity,c.cost=t(c.cost+s.cost),c.winbackQuantity=c.winbackQuantity+s.winbackQuantity,c.winbackReduction=t(c.winbackReduction+s.winbackReduction),"price"in s&&(c.price=s.price),"itemPrice"in s&&(c.itemPrice=s.itemPrice),"pricePercent"in s&&(c.pricePercent=s.pricePercent),"disabledReason"in s&&(c.disabledReason=s.disabledReason),"forcedReason"in s&&(c.forcedReason=s.forcedReason),"title"in s&&(c.title=s.title),s.operations&&(c.operations||Object.defineProperty(c,"operations",{value:[],enumerable:!1}),Array.prototype.push.apply(c.operations,s.operations))),i[o]=c}return i};return e.calculateAddServices=function(e,t){e=function(e,t){return(e=e||{}).newPagesQuantity||(e.newPagesQuantity=t.pages),e.newSlidesQuantity||(e.newSlidesQuantity=t.slides),e.newChartsQuantity||(e.newChartsQuantity=t.charts),e.getUsedSourcesOn||(e.getUsedSourcesOn=t.getUsedSourcesOn),e.getProgressiveDeliveryOn||(e.getProgressiveDeliveryOn=t.getProgressiveDeliveryOn),e.shortenDeadlinePricePerPage||(e.shortenDeadlinePricePerPage=t.tariffPricePerPage),e.shortenDeadlineHrs||(e.shortenDeadlineHrs=t.tariffHrs),e}(e,t=y(t));for(var n=r({},t),i={},o=0;o<h.length;o+=1){var a=h[o],s=C(e,n,a);i[a]=s}return T(i)}
2,e.extrudeServices=function(e,n){n=y(n);for(var i=O(y()),o={},a=0;a<h.length;a+=1){var s=h[a];if(-1===m.indexOf(s)){var c=e[s];i=N(i,c.underlyingServicesById)}else o[s]=e[s]}r(o,i);var l=function(e){var r=0;for(var n in p)p.hasOwnProperty(n)&&e.hasOwnProperty(p[n])&&(r=t(r+e[p[n]].rawCost));return r}(e),u=0;for(var d in i)i.hasOwnProperty(d)&&(u+=i[d].winbackReduction||0);var f=w(n,l,u);return r(o,f),T(o)},e.getLastCalcServForAddServices=function(e){return e[h[h.length-1]].underlyingServicesById},e.getBaseCost=A,e.getTotalCost=I,e.calculateServices=O,e},"object"===a(t)&&"object"===a(e)?e.exports=o():void 0===(i="function"==typeof(n=o)?n.call(t,r,t,e):n)||(e.exports=i)},30567:(e,t,r)=>{"use strict";r.d(t,{U:()=>n.U});var n=r(34304);r(23827)},23827:(e,t,r)=>{"use strict";r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264),r(5858),r(59161),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(22892),r(11823),r(86940),r(17626),r(14041)},34304:(e,t,r)=>{"use strict";r.d(t,{U:()=>a});r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264);var n=r(14041);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){var t=function(e){return"undefined"!=typeof window&&window.matchMedia(e).matches},r=i((0,n.useState)(t(e)),2),o=r[0],a=r[1];function s(){a(t(e))}return(0,n.useEffect)((function(){var t=window.matchMedia(e);return s(),t.addListener?t.addListener(s):t.addEventListener("change",s),function(){t.removeListener?t.removeListener(s):t.removeEventListener("change",s)}}),[e]),o}},39365:(e,t,r)=>{"use strict";r.d(t,{r:()=>y});r(78527),r(21555),r(5858),r(59161),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(66264),r(23510),r(95570),r(22892),r(85146),r(11823),r(86940),r(17626),r(84766);var n=r(14041),i=r(56351),o=r(92886),a=r(49383),s=r(22604),c=r(92855),l=r(23915),u=r(95474),d=r(20542),f=r(8196);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(){h=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};l(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,571 bytes, line 2
2))}function I(e,t){function r(i,o,a,s){var c=d(e[i],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==p(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=f;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=d(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(p(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=l(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),l(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),l(x,c,"Generator"),l(x,a,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function m(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var y=(0,i.PA)((function(e){var t=e.chatStore,r=(0,l.w)(t),i=(0,u.T)(),p=i.setMessagesContainer,y=i.messagesContainer;function v(){var e;return e=h().mark((function e(){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(null==y?void 0:y.scrollTop)||0,n=(null==y?void 0:y.scrollHeight)||0,e.next=4,t.getMessages();case 4:y&&requestAnimationFrame((function(){var e=y.scrollHeight;y.scrollTop=e-n+r}));case 5:case"end":return e.stop()}}),e)})),v=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){m(o,n,i,a,s,"next",e)}function s(e){m(o,n,i,a,s,"throw",e)}a(void 0)}))},v.apply(this,arguments)}return(0,n.useEffect)((function(){t.isMessagesLoaded?t.scrollToBottom():t.getMessages().then((function(){t.scrollToBottom()}))}),[]),n.createElement("div",{className:"flex flex-col"},n.createElement("div",{className:"relative overflow-hidden"},n.createElement("div",{className:"flex max-h-[60vh] min-h-[360px] flex-col gap-3 overflow-y-auto rounded-lg bg-bg-subtle p-3 pb-0 md:min-h-[560px] dark:bg-zinc-900",ref:p},t.isMessagesLoaded?n.createElement(c.B,{messages:t.messages,hasMore:t.hasMore,getMore:function(){return v.apply(this,arguments)},onResend:function(e){return t.resendMessage(e)},scrollBottom:function(){return t.scrollToBottom()}}):n.createElement(d.a,{className:"m-auto"}),n.createElement("div",{ref:r,className:"min-h-px"})),!t.isBottom&&t.unreadMessagesCount>0&&n.createElement(a.$,{className:"absolute bottom-6 left-1/2 -translate-x-1/2 font-medium",size:"xs",onClick:function(){return t.scrollToBottom()}},n.createElement(o.A,{size:14,className:"mr-1"}),"New unread message"),n.createElement("div",{className:(0,f.cn)("absolute bottom-0 w-full transition",!t.isBottom&&"shadow-[0_0_8px_4px_rgba(0,0,0,0.18)]")})),n.createElement(s.A,{onSend:function(e){t.sendMessage(e),setTimeout((function(){return t.scrollToBottom()}))}}))}))},89181:(e,t,r)=>{"use strict";r.d(t,{r:()=>n.r});var n=r(39365)},71559:(e,t,r)=>{"use strict";r.d(t,{k:()=>l});r(95790),r(79683),r(69399);var n=r(14041),i=r(56351),o=r(27479),a=r(89181),s=r(38478),c=r(54232),l=(0,i.PA)((function(e){var t=e.chatsConfig,r=(0,c.x)(),i=r.chatsStore,l=r.usersStore;return(0,n.useEffect)((function(){return i.configure(t),function(){i.clear(),l.clear()}}),[]),(0,n.useEffect)((function(){t.defaultChatId&&i.setActiveChatId(t.defaultChatId)}),[t]),i.chats?n.createElement(o.tU,{value:i.activeChatId,onValueChange:function(e){return i.setActiveChatId(e)},className:"apply-preflight bg-white p-4 text-zinc-950 sm:p-6 dark:bg-zinc-950 dark:text-zinc-50"},n.createElement(o.j7,null,i.chats.map((function(e){var t=e.id,r=e.title,i=e.description,a=e.unreadMessagesCount;return n.createElement(o.Xi,{key:t,value:t},n.createElement("div",{className:"flex items-center font-medium"},r,a>0&&n.createElement(s.E,{className:"ml-2",variant:"destructive"},a)),n.createElement("div",{className:"mt-1.5 text-wrap text-xs font-normal"},i))}))),i.chats.map((function(e){return n.createElement(o.av,{key:e.id,value:e.id},n.createElement(a.r,{chatStore:e}))}))):null}))},63806:(e,t,r)=>{"use strict";r.d(t,{k:()=>n.k});var n=r(71559)},33087:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});r(30935),r(68291),r(39170),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831
vendor: 5,461 bytes, line 2
2),r(40890),r(66264),r(5858),r(59161),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(22892),r(11823),r(86940),r(17626),r(85028),r(58948),r(99180);var n=r(14041),i=r(56351),o=r(49383),a=r(20542),s=r(58108),c=r(54232);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(){d=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};u(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,s){var c=p(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(l(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=u(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),u(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function f(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){f(o,n,i,a,s,"next",e)}function s(e){f(o,n,i,a,s,"throw",e)}a(void 0)}))}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const y=(0,i.PA)((function(e){var t=e.chatsStore,r=e.message,i=e.chatStore,l=(0,c.x)(),f=l.notificationsStore,m=l.routerStore,y=h((0,n.useState)(null),2),v=y[0],g=y[1],b=h((0,n.useState)(!1),2),E=b[0],w=b[1];if(!t.order)return null;var S=function(e){g(e)},A=function(){var e=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(s.VO.REJECTED),w(!0),e.prev=2,e.next=5,i.sendMessage(" ",r.id,s.VO.REJECTED);case 5:i.updateMessage(r.id,{interactiveMessageResponse:s.VO.REJECTED}),null==f||f.pushNotification({title:"Additional payment request rejected",view:"success"}),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),null==f||f.pushNotification({title:"Something went wrong. Please, refresh the page or check your internet connection and try again.",view:"error"}),g(null);case 13:return e.prev=13,w(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(){return e.apply(this,arguments)}}(),_=function(){null==m||m.pushLocation("/order/".concat(t.order.id,"/info"))},x=function(){var e=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(s.VO.CONFIRMED),w(!0),e.prev=2,e.next=5,i.sendMessage(" ",r.id,s.VO.CONFIRMED);case 5:i.updateMessage(r.id,{interactiveMessageResponse:s.VO.CONFIRMED}
2),null==f||f.pushNotification({title:"Additional payment request confirmed",view:"success"}),t.updateOrder(),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),null==f||f.pushNotification({title:"Something went wrong. Please, refresh the page or check your internet connection and try again.",view:"error"}),g(null);case 14:return e.prev=14,w(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[2,10,14,17]])})));return function(){return e.apply(this,arguments)}}();if(E)return n.createElement("div",{className:"mt-4 flex items-center justify-center"},n.createElement(a.a,null));var P=v||r.interactiveMessageResponse;if(P&&Object.values(s.VO).includes(P)){var I,k=(u(I={},s.VO.PAID,"Paid"),u(I,s.VO.CONFIRMED,"Confirmed"),u(I,s.VO.REJECTED,"Rejected"),u(I,s.VO.CANCELLED,"Cancelled"),I);return n.createElement("div",{className:"mt-4 flex flex-col gap-4 lg:flex-row"},n.createElement(o.$,{variant:"outline",size:"sm",className:"w-full lg:w-auto",disabled:!0},k[P]),n.createElement(o.$,{variant:"outline",size:"sm",className:"w-full lg:w-auto",onClick:_},"Order page"))}return n.createElement("div",{className:"mt-4 flex flex-col gap-4 lg:flex-row"},r.interactiveMessageType===s.ru.ADDITIONAL_PAYMENT_REQUEST&&n.createElement(n.Fragment,null,n.createElement(o.$,{variant:"default",size:"sm",className:"w-full lg:w-auto",onClick:function(){S(s.VO.PAID),r.orderIdToPay&&(null==m||m.pushLocation("/payment/".concat(r.orderIdToPay)))}},"Pay now"),n.createElement(o.$,{variant:"destructive",size:"sm",className:"w-full lg:w-auto",onClick:A,id:"RejectButton"},"Reject")),r.interactiveMessageType===s.ru.CONFIRM_ADDITIONAL_PAYMENT_REQUEST&&n.createElement(n.Fragment,null,n.createElement(o.$,{variant:"default",size:"sm",className:"w-full lg:w-auto",onClick:x,id:"ConfirmButton"},"Confirm"),n.createElement(o.$,{variant:"destructive",size:"sm",className:"w-full lg:w-auto",onClick:A,id:"RejectButton"},"Reject")),n.createElement(o.$,{variant:"outline",size:"sm",className:"w-full lg:w-auto",onClick:_},"Order page"))}))},54279:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(14041),i=r(56351),o=(0,r(7890).F)('relative size-6 rounded-full bg-white text-center shrink-0 text-xs leading-6 text-zinc-500 after:absolute after:bottom-0 after:right-0 after:block after:size-1.5 after:rounded-full after:content-[""] sm:size-10 sm:text-base sm:leading-10 sm:after:size-2.5 dark:bg-zinc-950',{variants:{variant:{offline:"after:bg-zinc-200",online:"after:bg-green-400"}}}),a=(0,i.PA)((function(e){var t=e.message;return n.createElement("div",{className:o({variant:t.sender.presence})},t.sender.initials)}))},78119:(e,t,r)=>{"use strict";r.d(t,{Q:()=>f});r(9098),r(85146);var n=r(14041),i=r(58108),o=r(8196),a=r(54279),s=r(75880),c=r(4445),l=r(54232),u=r(85647),d=r(33087),f=function(e){var t=e.message,r=e.onResend,f=(0,l.x)(),p=(0,n.useCallback)((function(e){e&&f.chatsStore.parseMessageEl(e,t)}),[]);return 0===t.body.trim().length?null:t.isFromMe?n.createElement("div",{className:"flex justify-end text-sm"},n.createElement("div",{className:"flex flex-col items-end"},n.createElement(s.h,{createdAt:t.createdAt,name:"You"}),n.createElement("div",{className:(0,o.cn)("message word-break-anywhere mt-1 max-w-2xl rounded-lg p-3",t.status===i.qp.MODERATION?"bg-red-50 dark:bg-red-950":"bg-secondary-100 dark:bg-secondary-800"),dangerouslySetInnerHTML:{__html:t.body}}),n.createElement(c.n,{message:t,onResend:function(){return r(t.id)}}
2))):n.createElement("div",{className:"flex gap-2 text-sm"},n.createElement(a.e,{message:t}),n.createElement("div",{className:"flex flex-col items-start"},n.createElement(s.h,{createdAt:t.createdAt,name:t.sender.name,department:t.sender.department,departmentTitle:t.sender.departmentTitle,id:t.sender.id}),n.createElement("div",{ref:p,className:"message word-break-anywhere mt-1 flex min-w-0 max-w-2xl flex-col rounded-lg bg-white p-3 shadow-sm dark:bg-zinc-950"},n.createElement("div",{dangerouslySetInnerHTML:{__html:t.body}}),f.chatsStore.activeChatId&&t.interactiveMessageType===i.ru.RECEIVE_NON_CRITICAL_MESSAGES&&!t.interactiveMessageResponse&&n.createElement(u.A,{chatStore:f.chatsStore.chatsById[f.chatsStore.activeChatId],parentMessageId:t.id}),f.chatsStore.activeChatId&&(t.interactiveMessageType===i.ru.ADDITIONAL_PAYMENT_REQUEST||t.interactiveMessageType===i.ru.CONFIRM_ADDITIONAL_PAYMENT_REQUEST)&&n.createElement(d.A,{chatsStore:f.chatsStore,chatStore:f.chatsStore.chatsById[f.chatsStore.activeChatId],message:t}))))}},85647:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(78527),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264);var n=r(14041),i=r(56351),o=r(49383);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const c=(0,i.PA)((function(e){var t=e.chatStore,r=e.parentMessageId,i=a((0,n.useState)(!1),2),s=i[0],c=i[1],l=function(e,n){c(!0),t.sendMessage(e,r,n).then((function(){return t.updateMessage(r,{interactiveMessageResponse:n}),t.getMessages()})).then((function(){setTimeout((function(){return t.scrollToBottom()}))})).catch((function(){}))};return s?null:n.createElement("div",{className:"mt-4 flex flex-col gap-4 lg:flex-row"},n.createElement(o.$,{variant:"outline",size:"sm",className:"w-full lg:w-auto",onClick:function(){return l("Yes, send me all messages","yes")},id:"YesUserEngagementButton"},"Yes, send me all messages"),n.createElement(o.$,{variant:"outline",size:"sm",className:"w-full lg:w-auto",onClick:function(){return l("No, contact me only if it's critical","no")},id:"NoUserEngagementButton"},"No, contact me only if it's critical"))}))},44547:(e,t,r)=>{"use strict";r.d(t,{r:()=>o});var n=r(14041),i=r(86329),o=function(){return n.createElement(i.N,{className:"text-red-500",popoverContent:"Message was blocked by Support team"},"Blocked")}},64691:(e,t,r)=>{"use strict";r.d(t,{$:()=>i});var n=r(14041),i=function(){return n.createElement("div",{className:"text-gray-400"},"Delivered")}},43628:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(14041),i=r(49383),o=r(86329),a=function(e){var t=e.onResend;return n.createElement("div",{className:"flex items-center"},n.createElement(i.$,{onClick:t,size:"xs",className:"mr-1",variant:"outline"},"Resend"),n.createElement(o.N,{className:"text-red-500",popoverContent:"Message delivery failed. Check your connection."},"Not sent"))}},52963:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});var n=r(14041),i=r(86329),o=function(){return n.createElement(i.N,{className:"text-yellow-700",popoverContent:"This message undergoes moderation, and we can change it before delivery to a writer"},"Moderation")}},10354:(e,t,r)=>{"use strict";r.d(t,{U:()=>i});var n=r(14041),i=function(){return n.createElement("div",{className:"text-emerald-700"},"Seen")}},55785:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(14041),i=function(){return n.createElement("div",{className:"text-gray-400"},"Sending...")}},68201:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});var n=r(14041),i=r(58108),o=r(52963),a=r(55785),s=r(43628),c=r(10354),l=r(44547),u=r(64691);var d=function(e){var t=e.message,r=e.onResend;return n.createElement("div",{className:"mt-0.5 flex items-center text-xs"},function(e,t){switch(e){case i.qp.SENDING:return n.createElement(a.f,null);case i.qp.FAILED:return n.createElement(s.c,{onResend:t});case i.qp.MODERATION:return n.createElement(o.L,null);case i.qp.BLOCKED:return n.createElement(l.r,null);case i.qp.DELIVERED:return n.createElement(u.$,null);case i.qp.SEEN:return n.createElement(c.U,null);default:return}}(t.status,r))}},86329:(e,t,r)=>{"use strict";r.d(t,{N:()=>c});var n=r(14041),i=r(6146),o=r(76404),a=r(8196),s=r(95474),c=function(e){var t=e.children,r=e.popoverContent,c=e.className,l=(0,s.T)().messagesContainer;
2return n.createElement(o.AM,null,n.createElement(o.Wv,{className:(0,a.cn)("flex items-center border-0",c)},t,n.createElement(i.A,{size:12,className:"ml-1"})),n.createElement(o.hl,{align:"end",side:"top",collisionBoundary:l,hideWhenDetached:!0},r))}},4445:(e,t,r)=>{"use strict";r.d(t,{n:()=>n.n});var n=r(68201)},75880:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});r(85146),r(96152),r(68450);var n=r(14041),i=r(58108),o=r(23492),a=r(38478),s=function(e){var t,r=e.createdAt,s=e.name,c=e.department,l=e.id,u=e.departmentTitle,d=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"numeric"}).format(r),f=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(r),p=new Date(r);t=(0,o.cK)(p)?"Today at ".concat(d):(0,o.PA)(p)?"Yesterday at ".concat(d):"".concat(f," at ").concat(d);return n.createElement("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1"},(0,o.AH)(c)?n.createElement("div",null,n.createElement("span",{className:"font-semibold"},s)," ",l&&n.createElement(n.Fragment,null,"(",n.createElement("span",{className:"before:content-['#']"},l),")")):c!==i.It.SUPPORT||l?n.createElement("div",{className:"font-semibold"},s):null,u&&n.createElement(a.E,{variant:"outline",className:"text-text-muted"},u),n.createElement("div",{className:"text-xs text-zinc-500"},t))}},78706:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n.Q});var n=r(78119)},78453:(e,t,r)=>{"use strict";r.d(t,{B:()=>f});r(44436),r(78527),r(95790),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264);var n=r(14041),i=r(23929),o=r(41440),a=r(20542),s=r(17885),c=r(78706),l=r(65968);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e){var t=e.messages,r=e.hasMore,d=e.getMore,f=e.onResend,p=e.scrollBottom,h=u((0,n.useState)(),2),m=h[0],y=h[1];return(0,n.useEffect)((function(){if(0!==t.length){var e=t.findIndex((function(e){return!e.isViewed}));e>=0&&(y(e),setTimeout((function(){p()})))}}),[]),0===t.length?n.createElement("div",{className:"m-auto flex flex-col items-center gap-2"},n.createElement(s.L,{icon:o.A,size:"lg",className:"mx-auto mb-2"}),n.createElement("div",{className:"font-medium"},"No messages yet"),n.createElement("div",{className:"text-xs"},"Ask a question about your order")):n.createElement(n.Fragment,null,r&&n.createElement(i.pL,{onChange:function(e){e&&d()}},n.createElement(a.a,null)),t.map((function(e,t){return n.createElement(n.Fragment,{key:e.id},t===m&&n.createElement(l.A,null),n.createElement(c.Q,{message:e,onResend:f}))})))}},92855:(e,t,r)=>{"use strict";r.d(t,{B:()=>n.B});var n=r(78453)},58715:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14041),i=function(){return n.createElement("div",{className:"flex items-center gap-1"},n.createElement("div",{className:"h-px grow bg-zinc-200"}),n.createElement("div",{className:"py-0.4 rounded border border-zinc-200 bg-white px-2 text-sm text-zinc-500"},"New messages"),n.createElement("div",{className:"h-px grow bg-zinc-200"}))}},65968:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A});var n=r(58715)},57115:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(9098),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831
2),r(40890),r(66264);var n=r(14041),i=r(90856),o=r(49383),a=r(46618);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=function(e){var t=e.onSend,r=s((0,n.useState)(""),2),c=r[0],l=r[1];function u(){var e=c.trim();e&&(t(e),l(""))}return n.createElement("form",{onSubmit:function(e){return e.preventDefault()},className:"mt-4 flex w-full max-w-xl flex-col items-stretch gap-2 self-center sm:mt-8 sm:flex-row sm:items-start"},n.createElement(a.N,{value:c,onChange:function(e){var t=e.target.value;l(t)},onSubmit:u,placeholder:"Type your message...",maxHeight:200}),n.createElement(o.$,{type:"button",onClick:u},n.createElement(i.A,{size:20,className:"mr-2"}),"Send"))}},22604:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A});var n=r(57115)},17885:(e,t,r)=>{"use strict";r.d(t,{L:()=>l});
2var n=r(14041),i=r(7890),o=r(8196),a=(0,i.F)("rounded-md flex justify-center items-center border border-blue-600/[.04] bg-[#F0F5FF] dark:border-gray-800/[.24] dark:bg-[#1B2949] shrink-0 box-border",{variants:{size:{sm:"w-12 h-12 rounded-lg p-1",md:"w-[72px] h-[72px] rounded-2xl p-2",lg:"w-24 h-24 rounded-3xl p-2",xl:"w-[120px] h-[120px] rounded-4xl p-2"}},defaultVariants:{size:"sm"}}),s={sm:"rounded",md:"rounded-lg",lg:"rounded-2xl",xl:"rounded-3xl"},c={sm:20,md:24,lg:32,xl:40},l=function(e){var t=e.icon,r=e.size,i=void 0===r?"sm":r,l=e.className;return n.createElement("div",{className:(0,o.cn)(a({size:i}),l)},n.createElement("div",{className:(0,o.cn)("flex h-full w-full items-center justify-center border border-blue-600/[.06] bg-white bg-gradient-to-b from-blue-600/[0.02] to-blue-600/[0.04] shadow-[0_2px_6px_0_rgba(37,99,235,0.16)] dark:border-blue-600/[.06] dark:bg-[#333] dark:from-blue-600/[0.32] dark:to-blue-600/[0.24] dark:shadow-[0_2px_6px_0_rgba(37,99,235,0.24)]",s[i])},n.createElement(t,{className:"text-blue-600 dark:text-white",size:c[i]})))}},46618:(e,t,r)=>{"use strict";r.d(t,{N:()=>u});r(82489),r(99180),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264),r(29416),r(98140),r(92221),r(17306);var n=r(14041),i=r(8196),o=["maxHeight","minHeight","className","onChange","onSubmit","value"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=n.forwardRef((function(e,t){var r=e.maxHeight,l=void 0===r?Number.MAX_SAFE_INTEGER:r,u=e.minHeight,d=void 0===u?42:u,f=e.className,p=e.onChange,h=e.onSubmit,m=e.value,y=s(e,o),v=n.useRef(null),g=c(n.useState(""),2),b=g[0],E=g[1];!function(e){var t=e.textAreaRef,r=e.triggerAutoSize,i=e.maxHeight,o=void 0===i?Number.MAX_SAFE_INTEGER:i,a=e.minHeight,s=void 0===a?0:a,l=c(n.useState(!0),2),u=l[0],d=l[1];n.useEffect((function(){if(t){u&&(t.style.minHeight="".concat(s+2,"px"),o>s&&(t.style.maxHeight="".concat(o,"px")),d(!1)),t.style.height="".concat(s+2,"px");var e=t.scrollHeight;t.style.height="".concat(e>o?o:e+2,"px")}}),[t,r])}({textAreaRef:v.current,triggerAutoSize:b,maxHeight:l,minHeight:d}),n.useImperativeHandle(t,(function(){return{textArea:v.current,focus:function(){var e;return null===(e=v.current)||void 0===e?void 0:e.focus()},maxHeight:l,minHeight:d}})),n.useEffect((function(){E(m)}),[null==y?void 0:y.defaultValue,m]);var w=n.useCallback((function(e){var t;"undefined"!=typeof window&&window.matchMedia("(pointer: coarse)").matches||"Enter"!==e.key||e.shiftKey||(e.preventDefault(),h()),null===(t=y.onKeyDown)||void 0===t||t.call(y,e)}),[h,y.onKeyDown]);return n.createElement("textarea",a({},y,{value:m,ref:v,className:(0,i.cn)("border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex w-full resize-none rounded-md border border-slate-200 px-3 py-2 text-base focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",f),onChange:function(e){E(e.target.value),null==p||p(e)},onKeyDown:w}))}));u.displayName="AutosizeTextarea"},38478:(e,t,r)=>{"use strict";r.d(t,{E:()=>u});r(29416),r(98140),r(79683),r(92221),r(17306);
2var n=r(14041),i=r(7890),o=r(8196),a=["className","variant"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=(0,i.F)("inline-flex items-center rounded-md border border-slate-200 px-1.5 py-[1px] text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-slate-950 focus:ring-offset-2 dark:border-slate-800 dark:focus:ring-slate-300",{variants:{variant:{default:"border-transparent bg-slate-900 text-slate-50 shadow hover:bg-slate-900/80 dark:bg-slate-50 dark:text-slate-900 dark:hover:bg-slate-50/80",secondary:"border-transparent bg-slate-100 text-slate-900 hover:bg-slate-100/80 dark:bg-slate-800 dark:text-slate-50 dark:hover:bg-slate-800/80",destructive:"border-transparent bg-red-600 text-slate-50 shadow hover:bg-red-600/80 dark:bg-red-900 dark:text-slate-50 dark:hover:bg-red-900/80",outline:"bg-white text-slate-950"}},defaultVariants:{variant:"default"}});function u(e){var t=e.className,r=e.variant,i=c(e,a);return n.createElement("div",s({className:(0,o.cn)(l({variant:r}),t)},i))}},49383:(e,t,r)=>{"use strict";r.d(t,{$:()=>d});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(34412),o=r(7890),a=r(8196),s=["className","variant","size","asChild","type"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var u=(0,o.F)("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300",{variants:{variant:{default:"border-0 bg-primary-700 text-white hover:text-white hover:bg-primary-900 dark:bg-slate-50 dark:text-slate-900 dark:hover:bg-slate-50/90",destructive:"bg-red-500 text-slate-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-slate-50 dark:hover:bg-red-900/90",outline:"border text-zinc-950 border-slate-200 bg-white hover:bg-slate-100 hover:text-slate-900 dark:border-slate-800 dark:bg-slate-950 dark:hover:bg-slate-800 dark:hover:text-slate-50",secondary:"bg-slate-100 text-slate-900 hover:bg-slate-100/80 dark:bg-slate-800 dark:text-slate-50 dark:hover:bg-slate-800/80",ghost:"hover:bg-slate-100 hover:text-slate-900 dark:hover:bg-slate-800 dark:hover:text-slate-50",link:"text-slate-900 underline-offset-4 hover:underline dark:text-slate-50"},size:{default:"px-4 py-3",xs:"px-2 py-1 text-xs",sm:"px-3 py-2",lg:"px-8 py-6"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((function(e,t){var r=e.className,o=e.variant,d=e.size,f=e.asChild,p=void 0!==f&&f,h=e.type,m=void 0===h?"button":h,y=l(e,s),v=p?i.DX:"button";return n.createElement(v,c({className:(0,a.cn)(u({variant:o,size:d,className:r})),ref:t,type:m},y))}));d.displayName="Button"},20542:(e,t,r)=>{"use strict";r.d(t,{a:()=>a});var n=r(14041),i=r(14977),o=r(8196),a=function(e){var t=e.className;return n.createElement("div",{className:(0,o.cn)("flex justify-center p-2 text-slate-500",t)},n.createElement(i.A,{className:"animate-spin"}))}},76404:(e,t,r)=>{"use strict";r.d(t,{AM:()=>l,Wv:()=>u,hl:()=>d});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(57829),o=r(8196),a=["className","align","sideOffset","children"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=i.bL,u=i.l9,d=(i.Rp,n.forwardRef((function(e,t){var r=e.className,l=e.align,u=void 0===l?"center":l,d=e.sideOffset,f=void 0===d?0:d,p=e.children,h=c(e,a);return n.createElement(i.ZL,null,n.createElement(i.UC,s({ref:t,align:u,sideOffset:f,className:(0,o.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 w-52 rounded-md bg-black px-3 py-1.5 text-xs font-medium text-white shadow-md outline-none dark:bg-slate-950 dark:text-slate-50",r)},h),p,n.createElement(i.Rp,{className:"fill-black"})))})));d.displayName=i.UC.displayName},27479:(e,t,r)=>{"use strict";r.d(t,{Xi:()=>p,av:()=>h,j7:()=>f,tU:()=>d});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(38404),o=r(8196),a=["className"],s=["className"],c=["className"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var d=i.bL,f=n.forwardRef((function(e,t){var r=e.className,s=u(e,a);return n.createElement(i.B8,l({ref:t,className:(0,o.cn)("flex items-stretch rounded-md bg-zinc-50 p-1 text-slate-500 dark:bg-slate-800 dark:text-slate-400",r)},s))}));f.displayName=i.B8.displayName;var p=n.forwardRef((function(e,t){var r=e.className,a=u(e,s);return n.createElement(i.l9,l({ref:t,className:(0,o.cn)("m-0 flex basis-1/2 flex-col rounded border-0 px-3 py-2 text-left ring-offset-white transition-all before:hidden hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-slate-950 data-[state=active]:shadow-sm dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300 dark:data-[state=active]:bg-slate-950 dark:data-[state=active]:text-slate-50",r)},a))}));p.displayName=i.l9.displayName;var h=n.forwardRef((function(e,t){var r=e.className,a=u(e,c);return n.createElement(i.UC,l({ref:t,className:(0,o.cn)("mt-4 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200 focus-visible:ring-offset-2 sm:mt-6 dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300",r)},a))}));h.displayName=i.UC.displayName},58108:(e,t,r)=>{"use strict";r.d(t,{It:()=>c,VO:()=>d,f7:()=>l,qp:()=>s,ru:()=>u});r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s={SENDING:"sending",FAILED:"failed",DELIVERED:"delivered",MODERATION:"moderation",BLOCKED:"blocked",SEEN:"seen"},c={SUPPORT:8,CLIENT:7,WRITER:6,MENTOR:35,OFFICE:37,MENTORING_PROJECT_WRITERS:39,OFFICES_WRITERS:41,REMOTE_OFFICE_MANAGERS:50,CONGLOMERATE_MANAGERS:52,IN_HOUSE_OFFICE_MANAGERS:54,CD_WRITER:60},l={CHAT_MESSAGE_CREATED:"ChatMessageCreated",CHAT_MESSAGE_UPDATED:"ChatMessageUpdated",CHAT_MESSAGE_DELETED:"ChatMessageDeleted",USER_CHANGED:"UserChanged"},u={RECEIVE_NON_CRITICAL_MESSAGES:"receiveNonCriticalMessages",ADDITIONAL_PAYMENT_REQUEST:"additionalPaymentRequest",CONFIRM_ADDITIONAL_PAYMENT_REQUEST:"confirmAdditionalPaymentRequest"},d={PAID:"paid",REJECTED:"rejected",CONFIRMED:"confirmed",CANCELLED:"cancelled"};o(o({},d),{YES:"yes",NO:"no"})},23915:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var n=r(14041),i=r(23929);function o(e){var t=(0,n.useRef)(),r=(0,i.Wx)({initialInView:!0}),o=r.ref,a=r.inView;return(0,n.useEffect)((function(){e.setIsBottom(a),a&&e.unreadMessagesCount>0&&e.markAllMessagesAsRead()}),[a]),(0,n.useCallback)((function(r){t.current=r,e.setChatBottomEl(r),o(r)}),[o])}},95474:(e,t,r)=>{"use strict";var n;function i(e){n=e}function o(){return{setMessagesContainer:i,messagesContainer:n}}r.d(t,{T:()=>o})},54232:(e,t,r)=>{"use strict";r.d(t,{u:()=>o,x:()=>a});r(66264),r(23510);var n=r(14041),i=(0,n.createContext)(null),o=i.Provider;function a(){var e=(0,n.useContext)(i);if(!e)throw new Error("The hook must be used within a RootProvider.");return e}},8196:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var n=r(9684),i=r(62294);function o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.QP)((0,n.$)(t))}},16388:(e,t,r)=>{"use strict";r.d(t,{kn:()=>o.k,u4:()=>n.u,yd:()=>i.y});var n=r(54232),i=r(2993),o=r(63806);r(58108),r(23492)},83639:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(79683),r(69399),r(78366),r(39170),r(25400),r(21555),r(24493),r(22892),r(78527),r(66264),r(23510),r(97041),r(96152),r(85028),r(58948),r(99180),r(59161),r(5858),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(95570),r(85146),r(11823),r(86940),r(17626),r(84766),r(29416),r(57931),r(44318),r(34089);var n=r(83794),i=r(58108);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,s,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,s)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,571 bytes, line 2
2))}function I(e,t){function r(i,a,s,c){var l=p(e[i],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==o(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,s,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function l(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){l(o,n,i,a,s,"next",e)}function s(e){l(o,n,i,a,s,"throw",e)}a(void 0)}))}}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function f(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var h=function(){function e(t,r,i){var o=t.id,a=t.title,s=t.description;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,"messagesById",{}),f(this,"hasMore",!1),f(this,"isMessagesLoaded",!1),f(this,"isBottom",!0),this.chatsStore=r,this.rootStore=i,(0,n.Gn)(this,{messagesById:n.sH,hasMore:n.sH,isMessagesLoaded:n.sH,isBottom:n.sH,messages:n.EW,unreadMessagesCount:n.EW,getMessages:n.XI,addMessage:n.XI,updateMessage:n.XI,deleteMessage:n.XI,setIsBottom:n.XI,refresh:n.XI}),this.id=o,this.title=a,this.description=s}var t,r,o,a,l,p;return t=e,r=[{key:"messages",get:function(){return Object.values(this.messagesById).sort((function(e,t){return e.id-t.id}))}},{key:"unreadMessagesCount",get:function(){return 0===this.messages.length?this.chatsStore.order.newChatMessagesCount[this.id]:this.messages.filter((function(e){return!e.isViewed})).length}},{key:"oldestMessageId",get:function(){var e;return null===(e=this.messages[0])||void 0===e?void 0:e.id}},{key:"getMessages",value:(p=u(c().mark((function e(){var t,r,i,o=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.chatsStore.getMessages(this.id,this.oldestMessageId);case 2:t=e.sent,r=t.messages,i=t.hasMore,(0,n.h5)((function(){r.forEach((function(e){o.addMessage(e)})),o.hasMore=i,o.isMessagesLoaded=!0}));case 6:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"refresh",value:(l=u(c().mark((function e(){var t=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.messagesById={},this.hasMore=!1,this.isMessagesLoaded=!1,e.next=5,this.getMessages();case 5:setTimeout((function(){return t.scrollToBottom()}));case 6:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"sendMessage",value:(a=u(c().mark((function e(t,r,n){var o,a,s;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.rootStore.profile){e.next=2;break}throw new Error("Profile is required.");case 2:return o=this.rootStore.profile,a=Date.now(),s={id:a,createdAt:a,requestId:a,body:t,status:i.qp.SENDING,sender:o,isFromMe:!0,isViewed:!0,parentMessageId:r,interactiveMessageResponse:n},this.addMessage(s),e.prev=6,e.next=9,this.chatsStore.sendMessage(this.id,t,a,r,n);case 9:e.next=14;break;
2case 11:e.prev=11,e.t0=e.catch(6),this.updateMessage(a,{status:i.qp.FAILED});case 14:case"end":return e.stop()}}),e,this,[[6,11]])}))),function(e,t,r){return a.apply(this,arguments)})},{key:"resendMessage",value:function(e){var t=this.messagesById[e],r=t.body,n=t.parentMessageId,i=t.interactiveMessageResponse;return this.deleteMessage(e),this.sendMessage(r,n,i)}},{key:"addMessage",value:function(e,t){var r=e;e.isFromMe||(r.sender=this.rootStore.usersStore.setUserAndSubscribeForUpdates(e.sender)),t&&this.messagesById[t]&&this.deleteMessage(t),this.messagesById[r.id]=r}},{key:"updateMessage",value:function(e,t){var r=this.messagesById[e];r&&(this.messagesById[e]=s(s({},r),t))}},{key:"deleteMessage",value:function(e){delete this.messagesById[e]}},{key:"markAllMessagesAsRead",value:function(){var e=this;try{this.chatsStore.markAllMessagesForChatAsRead(this.id)}catch(e){}this.messages.forEach((function(t){t.isViewed||e.updateMessage(t.id,{isViewed:!0})}))}},{key:"setChatBottomEl",value:function(e){this.chatBottomEl=e}},{key:"setIsBottom",value:function(e){this.isBottom=e}},{key:"scrollToBottom",value:function(){var e;if(null!==(e=this.chatBottomEl)&&void 0!==e&&e.parentElement){var t=this.chatBottomEl.parentElement,r=t.offsetHeight,n=t.scrollTop,i=t.scrollHeight-r+1;n<i&&(this.chatBottomEl.parentElement.scrollTop=i)}}}],r&&d(t.prototype,r),o&&d(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},99530:(e,t,r)=>{"use strict";r.d(t,{J:()=>w});r(66264),r(23510),r(96104),r(21555),r(1569),r(95790),r(17306),r(95570),r(85146),r(78527),r(24493),r(22892),r(85028),r(58948),r(79683),r(69399),r(99180),r(96656),r(94356),r(95372),r(45993),r(59161),r(29416),r(25400),r(57931),r(44318),r(34089),r(5858),r(48851),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(11823),r(86940),r(17626),r(84766);var n=r(83794),i=r(58108),o=r(23492),a=r(83639);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,c){var l=p(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==s(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&
vendor: 5,416 bytes, line 2
2(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(s(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,a,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function l(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function d(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function f(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,h(e,t,"set"),r),r}function p(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,h(e,t,"get"))}function h(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?m(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var b=new WeakMap,E=new WeakMap,w=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,"chats",void 0),v(this,"activeChatId",void 0),d(this,b,{writable:!0,value:void 0}),d(this,E,{writable:!0,value:void 0}),v(this,"unsubscibers",[]),this.rootStore=t,(0,n.Gn)(this,{chats:n.sH.ref,activeChatId:n.sH,chatsById:n.EW,unreadMessagesCount:n.EW,setActiveChatId:n.XI,configure:n.XI,clear:n.XI})}var t,r,s,h,m;return t=e,r=[{key:"order",get:function(){if(!p(this,b))throw new Error("Order is required.");return p(this,b)}},{key:"services",get:function(){if(!p(this,E))throw new Error("Services is required.");return p(this,E)}},{key:"chatsById",get:function(){if(!this.chats)throw new Error("Chats must be configured first.");return this.chats.reduce((function(e,t){return e[t.id]=t,e}),{})}},{key:"profile",get:function(){if(!this.rootStore.profile)throw new Error("Profile is required.");return this.rootStore.profile}},{key:"unreadMessagesCount",get:function(){return this.chats?this.chats.reduce((function(e,t){return e+=t.unreadMessagesCount}),0):0}},{key:"configure",value:function(e){var t=this,r=e.chats,n=e.defaultChatId,i=e.order,o=e.services,s=r.find((function(e){return e.id===n})),c=s?s.id:r[0].id;f(this,b,function(e){return y(y({},e),{},{chat:e.chat||{isSubscriptionTokenRequired:!1}})}(i)),f(this,E,o),this.chats=r.map((function(e){return new a.A(e,t,t.rootStore)})),this.setActiveChatId(c),this.subscribeForMessages()}},{key:"setActiveChatId",value:function(e){this.activeChatId=e}},{key:"subscribeForMessages",value:function(){var e=this.handleEvent.bind(this),t=this.order.chat;this.unsubscibers.push(this.rootStore.eventDispatcher.subscribeForMessages({handler:e})),t.channel&&this.unsubscibers.push(this.rootStore.eventDispatcher.subscribeForMessages({channelName:t.channel,isSubscriptionTokenRequired:t.isSubscriptionTokenRequired,handler:e}))}},{key:"handleEvent",value:function(e){e.data.orderId===this.order.id&&(e.name===i.f7.CHAT_MESSAGE_CREATED&&this.handleNewMessageEvent(e),e.name===i.f7.CHAT_MESSAGE_UPDATED&&this.handleMessageUpdateEvent(e),e.name===i.f7.CHAT_MESSAGE_DELETED&&this.handleMessageDeleteEvent(e))}},{key:"handleNewMessageEvent",value:function(e){var t=e.data,r=t.chat,n=t.message,i=e.metadata.requestId,o=this.parseMessage(n),a=this.chatsById[r],s=a.isBottom;a.addMessage(o,i),r===this.activeChatId&&s&&setTimeout((function(){a.scrollToBottom(),o.isFromMe||a.markAllMessagesAsRead()}))}},{key:"handleMessageUpdateEvent",value:function(e){var t=e.data,r=t.chat,n=t.messageId,i=t.patch;this.chatsById[r].updateMessage(n,i)}},{key:"handleMessageDeleteEvent",value:function(e){var t=e.data,r=t.chat,n=t.messageId;this.chatsById[r].deleteMessage(n)}},{key:"getMessages",value:function(e,t){return this.services.getMessages(this.profile,this.order.id,e,t)}},{key:"sendMessage",value:function(e,t,r,n,i){return this.services.sendMessage(this.profile,this.order.id,e,t,r,n,i)}},{key:"markAllMessagesForChatAsRead",value:function(e){return this.services.markAllMessagesAsRead(this.order.id,e)}},{key:"parseMessageEl",value:function(e,t){return this.services.parseMessageElement(e,t,this.order)}},{key:"updateOrder",value:(h=c().mark((function e(){var t;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=this.rootStore.orderStore)||void 0===t?void 0:t.loadOrder();case 2:case"end":return e.stop()}}),e,this)})),m=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=h.apply(e,t);function o(e){l(i,r,n,o,a,"next",e)}function a(e){l(i,r,n,o,a,"throw",e)}o(void 0)}))},function(){return m.apply(this,arguments)})},{key:"parseMessage",value:function(e){var t=e.sender,r=this.profile.id===t.id&&this.profile.department===t.department,n=r||e.
vendor: 5,641 bytes, line 2
2isViewed,i=r?"":(t.name||(0,o.Wz)(t.department))[0].toUpperCase();return y(y({},e),{},{isFromMe:r,isViewed:n,sender:y(y({},t),{},{initials:i})})}},{key:"unsubscribe",value:function(){this.unsubscibers.forEach((function(e){return e()})),this.unsubscibers=[]}},{key:"clear",value:function(){this.unsubscribe(),this.chats=void 0,this.activeChatId=void 0,f(this,b,void 0),f(this,E,void 0)}}],r&&u(t.prototype,r),s&&u(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},88085:(e,t,r)=>{"use strict";r.d(t,{Q:()=>y});r(66264),r(23510),r(68450),r(21555),r(5858),r(96656),r(94356),r(45993),r(28344),r(97643),r(6190),r(257),r(85146),r(95372),r(85028),r(58948),r(79683),r(69399),r(99180),r(59161),r(48851),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(95570),r(22892),r(11823),r(86940),r(17626),r(84766);var n=r(40538),i=r(58108),o=r(23492);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(){s=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,c,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,c)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,s,c){var l=p(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==a(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(a(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,c,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function c(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,s,"next",e)}function s(e){c(o,n,i,a,s,"throw",e)}a(void 0)}))}}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===a(o)?o:String(o)),n)}var i,o}function d(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function f(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,h(e,t,"set"),r),r}function p(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,h(e,t,"get"))}function h(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var m=new WeakMap,y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,m,{writable:!0,value:void 0}),this.rootStore=t}var t,r,a,c,h;return t=e,r=[{key:"client",get:function(){if(!p(this,m))throw new Error("Connection required to create a subscription.");return p(this,m)}},{key:"chatMessagesChannelName",get:function(){if(!this.rootStore.profile)throw new Error("Profile is required.");var e=this.rootStore.profile,t=e.id,r=e.department;return"chat:messages#".concat((0,o.Wz)(r),"_").concat(t)}},{key:"connect",value:function(){var e=this;return p(this,m)||f(this,m,new n.Ft(this.rootStore.config.wsServerUrl,{getToken:function(){return e.getConnectionToken()}})),p(this,m).connect()}},{key:"getConnectionToken",value:(h=l(s().mark((function e(){var t,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.rootStore.profile){e.next=2;break}return e.abrupt("return","");case 2:return e.next=4,fetch(this.rootStore.config.wsConnectionTokenUrl);case 4:if((t=e.sent).ok){e.next=9;break}if(403!==t.status){e.next=8;break}throw new n.Ft.UnauthorizedError("Not authorized.");case 8:throw new Error("Unexpected status code ".concat(t.status));case 9:return e.next=11,t.json();case 11:return r=e.sent,e.abrupt("return",r.token);case 13:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"disconnect",value:function(){this.client.disconnect()}},{key:"getSubscription",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.client.getSubscription(e);if(!n){var i=r?{getToken:function(){return t.getSubscriptionToken(e)}}:void 0;(n=this.client.newSubscription(e,i)).subscribe()}return n}},{key:"getSubscriptionToken",value:(c=l(s().mark((function e(t){var r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.rootStore.config.wsSubscriptionTokenUrl,{method:"POST",body:new URLSearchParams({channel:t})});case 2:if((r=e.sent).ok){e.next=5;break}throw new Error("Unexpected status code ".concat(r.status));case 5:return e.next=7,r.json();case 7:if((i=e.sent).success){e.next=10;break}throw new n.Ft.UnauthorizedError("Not authorized.");case 10:return e.abrupt("return",i.token);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"subscribe",value:function(e){var t=e.channelName,r=e.eventName,n=e.isSubscriptionTokenRequired,i=void 0!==n&&n,o=e.handler,a=this.getSubscription(t,i);function s(e){var t=e.data;r&&t.name!==r||o(t)}return a.on("publication",s),function(){return a.off("publication",s)}}},{key:"subscribeForMessages",value:function(e){var t=e.channelName,r=void 0===t?this.chatMessagesChannelName:t,n=e.isSubscriptionTokenRequired,i=e.handler;return this.subscribe({channelName:r,isSubscriptionTokenRequired:n,handler:i})}},{key:"subscribeForNewMessages",value:function(e){return this.subscribe({channelName:this.chatMessagesChannelName,eventName:i.f7.CHAT_MESSAGE_CREATED,handler:e})}},{key:"subscribeForUserUpdate",value:function(e,t){return this.subscribe({channelName:"profile_updates:".concat(e),eventName:i.f7.USER_CHANGED,handler:t})}}
2],r&&u(t.prototype,r),a&&u(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},2993:(e,t,r)=>{"use strict";r.d(t,{y:()=>d});r(66264),r(23510),r(85028),r(58948),r(79683),r(69399),r(21555),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(99530),o=r(88085),a=r(40483);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function l(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var d=function(){function e(t){var r,s,c,u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"chatsStore",new i.J(this)),l(this,"usersStore",new a.S(this)),l(this,"eventDispatcher",new o.Q(this)),l(this,"profile",void 0),(0,n.Gn)(this,{profile:n.sH,setProfile:n.XI}),this.config=t,this.orderStore=null===(r=t.stores)||void 0===r?void 0:r.orderStore,this.ordersStore=null===(s=t.stores)||void 0===s?void 0:s.ordersStore,this.notificationsStore=null===(c=t.stores)||void 0===c?void 0:c.notificationsStore,this.routerStore=null===(u=t.stores)||void 0===u?void 0:u.routerStore}var t,r,s;return t=e,(r=[{key:"setProfile",value:function(e){this.profile=e}},{key:"connect",value:function(){this.eventDispatcher.connect()}},{key:"disconnect",value:function(){this.eventDispatcher.disconnect()}},{key:"subscribeForNewMessagesForMe",value:function(e){var t=this;return this.eventDispatcher.subscribeForNewMessages((function(r){if(!t.profile)throw new Error("Profile is required.");r.data.message.sender.department!==t.profile.department&&e(r)}))}}])&&c(t.prototype,r),s&&c(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},40483:(e,t,r)=>{"use strict";r.d(t,{S:()=>f});r(54),r(95570),r(24493),r(21555),r(22892),r(78370),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(37210),r(48851),r(96656),r(94356),r(45993),r(84766),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890);var n=r(83794),i=r(58108),o=r(23492);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function u(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"usersById",{}
2),u(this,"unsubscibers",[]),this.rootStore=t,(0,n.Gn)(this,{usersById:n.sH,setUser:n.XI,updateUser:n.XI,clear:n.XI})}var t,r,a;return t=e,(r=[{key:"setUserAndSubscribeForUpdates",value:function(e){var t=this,r=[(0,o.Wz)(e.department),e.id].join("_");return this.usersById[r]||(this.setUser(r,e),e.department!==i.It.SUPPORT&&this.unsubscibers.push(this.rootStore.eventDispatcher.subscribeForUserUpdate(r,(function(e){var n=e.data.patch;t.updateUser(r,n)})))),this.usersById[r]}},{key:"setUser",value:function(e,t){this.usersById[e]=t}},{key:"updateUser",value:function(e,t){var r=this;Object.entries(t).forEach((function(t){var n=s(t,2),i=n[0],o=n[1];r.usersById[e][i]=o}))}},{key:"unsubscribe",value:function(){this.unsubscibers.forEach((function(e){return e()})),this.unsubscibers=[]}},{key:"clear",value:function(){this.unsubscribe(),this.usersById={}}}])&&l(t.prototype,r),a&&l(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},23492:(e,t,r)=>{"use strict";r.d(t,{AH:()=>o,PA:()=>c,Wz:()=>a,cK:()=>s});r(30935),r(68291),r(96152);var n=r(58108),i=[n.It.WRITER,n.It.MENTOR,n.It.OFFICE,n.It.MENTORING_PROJECT_WRITERS,n.It.OFFICES_WRITERS,n.It.REMOTE_OFFICE_MANAGERS,n.It.CONGLOMERATE_MANAGERS,n.It.IN_HOUSE_OFFICE_MANAGERS,n.It.CD_WRITER];function o(e){return i.includes(e)}function a(e){return e===n.It.CLIENT?"client":o(e)?"writer":"support"}function s(e){var t=new Date;return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function c(e){var t=new Date,r=new Date(t);return r.setDate(t.getDate()-1),e.getDate()===r.getDate()&&e.getMonth()===r.getMonth()&&e.getFullYear()===r.getFullYear()}},95850:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(34089),r(95790),r(25400),r(21555),r(24493),r(22892),r(1569),r(95570),r(85146),r(96656),r(5858),r(94356),r(45993),r(68450),r(35495),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851);var n=r(83794),i=r(9870),o=r.n(i),a=r(3492),s=r(11864);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function u(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}var f=function(){function e(t){var r=this,i=t.files,o=t.onUpdateFiles,a=t.uploadTransport,s=t.deleteTransport,c=t.onError,l=t.configsStore,d=t.autoUpload;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"files",[]),u(this,"isSomeFileExceededSizeLimit",!1),u(this,"uploadTransport",void 0),u(this,"deleteTransport",void 0),u(this,"handleError",(function(){})),u(this,"configsStore",void 0),u(this,"autoUpload",!0),(0,n.Gn)(this,{files:n.sH,isSomeFileExceededSizeLimit:n.sH,pendingFilesCount:n.EW,addUploadedFiles:n.XI,addFiles:n.XI,removeFile:n.XI,uploadFile:n.XI,reset:n.XI}),Object.defineProperties(this,{configsStore:{get:function(){return l}}}),i&&(0,n.h5)((function(){r.files=i})),this.uploadTransport=a,this.deleteTransport=s,void 0!==d&&(this.autoUpload=d),c&&(this.handleError=c),o&&(0,n.mJ)((function(){return r.files.map((function(e){return e.id}))}),(function(e){return o(e)}),{name:"notify files list changed"})}var t,r,i;return t=e,(r=[{key:"pendingFilesCount",get:function(){return this.files.filter((function(e){return!0!==e.isUploaded&&void 0===e.uploadingPromise})).length}},{key:"addUploadedFiles",value:function(e){var t=this;e.forEach((function(e){void 0===t.files.find((function(t){return t.id===e.id}))&&t.files.push(new s.A({size:e.size,name:e.name,onError:t.handleError,id:e.id,configsStore:t.configsStore}))}))}},{key:"addFiles",value:function(e){var t=this;return Promise.all(e.map((function(e){return new Promise((function(r,i){if(0===e.size){var c='Adding file "'.concat(e.name,'"
2(').concat(o()(e.size),") failed. You can't attach an empty file."),l={code:a.I.UVOFORM_INVALID_FILE};t.handleError(l,{intent:c}),i(l)}try{r(new s.A({blob:e,uploadTransport:t.uploadTransport,onError:t.handleError,configsStore:t.configsStore}))}catch(l){if(l.code===a.I.VALIDATION_FAILED){var u='Adding file "'.concat(e.name,'" (').concat(o()(e.size),") failed.");l.code=a.I.UVOFORM_INVALID_FILE,t.handleError(l,{intent:u}),(0,n.h5)((function(){t.isSomeFileExceededSizeLimit=!0}))}i(l)}})).then((function(e){return(0,n.h5)((function(){t.files.push(e)})),t.uploadTransport&&!e.isUploaded&&t.autoUpload?e.startUpload():e})).catch((function(){}))})))}},{key:"deleteFile",value:function(e){var t=this;return this.deleteTransport(e).catch((function(e){e.presented=!0,t.handleError(e)}))}},{key:"removeFile",value:function(e){var t=this;this.files=this.files.filter((function(r){return r.instanceId!==e||("function"==typeof r.dispose&&r.dispose(),r.isUploaded&&t.deleteTransport&&t.deleteFile(r.id),!1)}))}},{key:"uploadFile",value:function(e){var t=this.files.find((function(t){return t.id===e||t.instanceId===e}));return t?(t.uploadError&&(t.uploadError=void 0,t.progressLoaded=0,t.progressTotal=0),t.startUpload()):Promise.resolve()}},{key:"startUploadingFiles",value:function(){return Promise.all(this.files.map((function(e){return e.startUpload()})))}},{key:"startUploadingAllSettledFiles",value:function(){return Promise.allSettled(this.files.map((function(e){return e.startUpload()})))}},{key:"reset",value:function(){this.files=[],this.isSomeFileExceededSizeLimit=!1}},{key:"dispose",value:function(){this.files.forEach((function(e){"function"==typeof e.dispose&&e.dispose()}))}}])&&l(t.prototype,r),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},11864:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});r(85146),r(34089),r(82489),r(99180),r(21555),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(59161),r(37210),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(96152),r(34237),r(74874),r(93831),r(40890);var n=r(83794),i=r(4518),o=r.n(i),a=r(97057),s=r(3492),c=r(8575);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function p(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var m=s.gG.MAX_UPLOADING_FILE_SIZE,y=s.gG.MAX_UPLOADING_FILE_SIZE_FOR_CUSTOMWRITINGS,v=function(){function e(t){var r=t.blob,i=t.id,s=t.uploadTransport,c=t.name,l=t.size,u=t.onError,d=t.configsStore;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"configsStore",void 0),p(this,"isUploaded",void 0),p(this,"id",void 0),p(this,"instanceId",void 0),p(this,"uploadingPromise",void 0),p(this,"progressLoaded",0),p(this,"progressTotal",0),p(this,"uploadError",void 0),p(this,"deleteUrl",void 0),p(this,"name",void 0),p(this,"size",void 0),(0,n.Gn)(this,{isUploaded:n.sH,id:n.sH,instanceId:n.sH,uploadingPromise:n.sH,progressLoaded:n.sH,progressTotal:n.sH,uploadError:n.sH,deleteUrl:n.sH,name:n.sH,size:n.sH,setProgress:n.XI,startUpload:n.XI}),Object.defineProperties(this,{configsStore:{get:function(){return d}}}),o()("function"==typeof s||Boolean(i),"AttachmentStore constructor: arguments[0].transport must be a function or arguments[0].id should be provided (if the file was already uploaded)"),o()(r instanceof window.Blob||Boolean(i),"AttachmentStore constructor: arguments[0].blob must be an instance of Blob or arguments[0].id should be provided (if the file was already uploaded)");var f=a.ih(this.configsStore.isCustomWritingsCom?y:m,r);if(f)throw f;this.uploadTransport=s,this.handleError=u,this.instanceId=i||Math.round(Math.random()*Number.MAX_SAFE_INTEGER),this.id=i,this.blob=r,this.name=c||r&&r.name,this.size=l||r&&r.size,this.isUploaded=void 0!==i,void 0!==i&&this.restoreFromLocalStorage(i),this.startSavingToLocalStorage()}var t,r,i;return t=e,(r=[{key:"setProgress",value:function(e){var t=e.total,r=e.loaded;this.progressTotal=t,this.progressLoaded=r}},{key:"restoreFromLocalStorage",value:function(e){return(0,c.Qw)().then((function(t){return!!t[e]})).catch(c.OP)}},{key:"startUpload",value:function(){var e=this;return this.uploadingPromise?this.uploadingPromise:this.isUploaded?Promise.resolve():(this.uploadingPromise=this.uploadTransport({blob:this.blob,instanceId:this.instanceId,onProgress:this.setProgress}).then((function(t){(0,n.h5)((function(){e.uploadError=void 0,e.isUploaded=!0,e.id=t.
2id,e.deleteUrl=t.deleteUrl}))})).catch((function(t){throw t.presented=!0,e.uploadError=t,e.handleError(t),t})).finally((function(){(0,n.h5)((function(){e.uploadingPromise=void 0}))})),this.uploadingPromise)}},{key:"startSavingToLocalStorage",value:function(){var e=this;this.$stopSavingToLocalStorage=(0,n.mJ)((function(){return[e.id]}),(function(e){var t=u(e,1)[0];t&&(0,c.DE)(t)}),{name:"reset local storage after successful submition"})}},{key:"dispose",value:function(){this.$stopSavingToLocalStorage()}}])&&f(t.prototype,r),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},98574:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(95850).A},8575:(e,t,r)=>{"use strict";r.d(t,{DE:()=>c,OP:()=>a,Qw:()=>s});r(29416),r(95570),r(94298),r(24493),r(21555),r(22892),r(5974);var n=r(58165),i="attachment-data",o=25;function a(){}function s(){return n.HZ.getItem(i).then((function(e){return JSON.parse(e)||{ids:[]}})).catch((function(){return{ids:[]}}))}function c(e){return s().then((function(t){void 0===t[e]&&(t.ids.push(e),t.ids.length>o&&t.ids.splice(0,t.ids.length-o).forEach((function(e){delete t[e]})));return t[e]={id:e},n.HZ.setItem(i,JSON.stringify(t))})).catch(a)}},86303:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(95790),r(37210),r(24493),r(21555),r(22892),r(59161),r(1569),r(25400),r(66264),r(23510),r(68450),r(74874),r(94356),r(44436),r(29416),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(99180),r(48851),r(96656),r(45993);var n=r(83794),i=r(55571);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function s(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var l=function(e,t){return!t.$formInteractingKeyIsEdited&&(t.formAttemptsToSubmitCount>0||t.formInteractedKeys[e])},u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"$rawValuesByKey",n.sH.map({})),s(this,"$config",{}),s(this,"formValues",{}),s(this,"formInteractingKey",void 0),s(this,"formInteractedKeys",n.sH.object({})),s(this,"formEditedKeys",{}),s(this,"formAttemptsToSubmitCount",0),s(this,"formSubmitsCount",0),s(this,"formErrors",{}),s(this,"formDisabledKeys",{}),s(this,"formDisabledItemsIds",{}),s(this,"$lastSubmitErrors",[]),s(this,"submitting",void 0),s(this,"$formInteractingKeyIsEdited",!1),s(this,"errorHiglightableKeys",{}),s(this,"$addedKeys",{}),(0,n.Gn)(this,{$config:n.sH,formValues:n.sH,formInteractingKey:n.sH,formEditedKeys:n.sH,formAttemptsToSubmitCount:n.sH,formSubmitsCount:n.sH,formErrors:n.sH,formDisabledKeys:n.sH,formDisabledItemsIds:n.sH,$lastSubmitErrors:n.sH,submitting:n.sH,$formInteractingKeyIsEdited:n.sH,errorHiglightableKeys:n.sH,init:n.XI,$addKey:n.XI,formAvailableKeys:n.EW,formAvailableKeysById:n.EW,firstInvalidKey:n.EW,firstError:n.EW,isInteracted:n.EW,$otherValidationErrors:n.EW,otherErrorsList:n.EW,isEdited:n.EW,submit:n.XI,incrementAttemptsToSubmitForm:n.XI,incrementSubmitsCount:n.XI,resetAttemptsToSumbitFormCount:n.XI,resetSubmitsCount:n.XI,setValue:n.XI,updateInitialValue:n.XI,updateAvailableKeys:n.XI,setSilently:n.XI,startInteraction:n.XI,finishInteraction:n.XI,setFormKeyEdited:n.XI,resetFormValues:n.XI,resetFormInteractedKeys:n.XI,resetFormEditedKeys:n.XI,resetLastSubmitErrors:n.XI}),this.init(t)}var t,r,o;return t=e,(r=[{key:"init",value:function(e){var t=this;(0,i.V)(Array.isArray(e.availableKeys),"FormManager constructor: arguments[0].availableKeys must be an array of str
2ings"),this.$config=e,this.formValues={},this.formInteractedKeys={},this.formEditedKeys={},this.formAttemptsToSubmitCount=0,this.formSubmitsCount=0,this.formErrors={},this.formDisabledKeys={},this.formDisabledItemsIds={},this.errorHiglightableKeys={},this.$config.availableKeys.forEach((function(e){return t.$addKey(e)}))}},{key:"$addKey",value:function(e){var t=this;if(this.$addedKeys[e])console.warn("[FormManager]: attemt to reinitialize key `".concat(e,"`"));else{if(void 0===this.$rawValuesByKey.get(e)&&this.$rawValuesByKey.set(e,this.$config.initialValues&&this.$config.initialValues[e]),this.$config.valuesValidator){var r=this.$config.valuesValidator[e];r&&(0,n.kt)(this.formErrors,Object.defineProperty({},e,{get:function(){if(t.formAvailableKeysById[e])return r(t.formValues[e],t.formValues,t)}}))}if(this.$config.keysDisableRules){var i=this.$config.keysDisableRules[e];i&&(0,n.kt)(this.formDisabledKeys,Object.defineProperty({},e,{get:function(){return i()}}))}if(this.$config.itemsIdsDisableRules){var o=this.$config.itemsIdsDisableRules[e];o&&(0,n.kt)(this.formDisabledItemsIds,Object.defineProperty({},e,{get:function(){return o()}}))}(0,n.kt)(this.errorHiglightableKeys,Object.defineProperty({},e,{get:function(){return l(e,t)}})),(0,n.kt)(this.formInteractedKeys,s({},e,!1)),void 0===this.formEditedKeys[e]&&(0,n.kt)(this.formEditedKeys,s({},e,!1));var a=this.$config.itemsValuesSantizer&&this.$config.itemsValuesSantizer[e];(0,n.kt)(this.formValues,Object.defineProperty({},e,{get:function(){if(t.formAvailableKeysById[e]){if(a){var r=t.$rawValuesByKey.get(e);return a(r)}return t.$rawValuesByKey.get(e)}}})),this.$addedKeys[e]=!0}}},{key:"formAvailableKeys",get:function(){return this.$config.availableKeys}},{key:"formAvailableKeysById",get:function(){var e={};return this.formAvailableKeys.forEach((function(t){e[t]=!0})),e}},{key:"firstInvalidKey",get:function(){var e=this;return this.formAvailableKeys.find((function(t){return e.formErrors[t]}))}},{key:"firstError",get:function(){return this.formErrors[this.firstInvalidKey]||(this.otherErrorsList.length>0?this.otherErrorsList[0]:void 0)}},{key:"isInteracted",get:function(){var e=this;return void 0!==this.formAvailableKeys.find((function(t){return e.formEditedKeys[t]}))}},{key:"$otherValidationErrors",get:function(){return this.$config.otherErrorsValidator?this.$config.otherErrorsValidator(this.formValues,this).filter((function(e){return e instanceof Error})):[]}},{key:"otherErrorsList",get:function(){return this.$otherValidationErrors.concat(Array.from(this.$lastSubmitErrors))}},{key:"isEdited",get:function(){var e=this;return Object.keys(this.formEditedKeys).findIndex((function(t){return e.formEditedKeys[t]}))>-1}},{key:"submit",value:function(e){var t=this;return(0,i.V)("function"==typeof e,"FormManager#submit first argument must be a function, returning promise"),this.$lastSubmitErrors=[],this.firstError?(this.incrementAttemptsToSubmitForm(),Promise.reject(this.firstError)):(this.submitting=e().then((function(e){return t.incrementSubmitsCount(),t.resetForm(),e})).catch((function(e){throw(0,n.h5)((function(){t.$lastSubmitErrors=[e]})),t.incrementAttemptsToSubmitForm(),e})).finally((function(){(0,n.h5)((function(){t.submitting=void 0}))})),this.submitting)}},{key:"incrementAttemptsToSubmitForm",value:function(){this.formAttemptsToSubmitCount+=1}},{key:"incrementSubmitsCount",value:function(){this.formSubmitsCount+=1}},{key:"resetAttemptsToSumbitFormCount",value:function(){this.formAttemptsToSubmitCount=0}},{key:"resetSubmitsCount",value:function(){this.formSubmitsCount=0}},{key:"resetLastSubmitErrors",value:function(){this.$lastSubmitErrors=[]}},{key:"setValue",value:function(e,t){this.$rawValuesByKey.set(e,t),this.formEditedKeys[e]=!0,this.formInteractingKey===e&&(this.$formInteractingKeyIsEdited=!0),this.$lastSubmitErrors.length>0&&(this.$lastSubmitErrors=[]),this.$config.onValueChange&&this.$config.onValueChange(e,t)}},{key:"updateInitialValue",value:function(e,t){this.$config.initialValues[e]=t,this.formEditedKeys[e]||this.setSilently(e,t)}},{key:"updateInitialValues",value:function(e){var t=this;Object.keys(e).forEach((function(r){t.updateInitialValue(r,e[r])}))}},{key:"updateAvailableKeys",value:function(e){var t=this;this.$config.availableKeys=e,e.forEach((function(e){t.$addedKeys[e]||t.$addKey(e)}))}},{key:"setSilently",value:function(e,t){this.$rawValuesByKey.set(e,t)}},{key:"startInteraction",value:function(e){this.formInteractingKey=e}},{key:"finishInteraction",value:function(e){this.setFormKeyEdited(e),this.formInteractingKey===e&&(this.formInteractingKey=void 0,this.$formInteractingKeyIsEdited=!1),this.formInteractedKeys[e]=!0}},{key:"setFormKeyEdited",value:function(e){this.formEditedKeys[e]=!0}},{key:"resetForm",value:function(){this.resetFormInteractedKeys(),this.resetFormEditedKeys(),this.resetFormValues(),this.resetSubmitsCount(),this.resetAttemptsToSumbitFormCount(),this.resetLastSubmitErrors()}},{key:"resetFormValues",value:function(){var e=this;
2this.$rawValuesByKey.forEach((function(t,r){var n=e.$config.initialValues;e.$rawValuesByKey.set(r,n&&n[r])})),this.$config.onResetValues&&this.$config.onResetValues()}},{key:"resetFormInteractedKeys",value:function(){var e=this;Object.keys(this.formInteractedKeys).forEach((function(t){e.formInteractedKeys[t]=!1}))}},{key:"resetFormEditedKeys",value:function(){var e=this;Object.keys(this.formEditedKeys).forEach((function(t){e.formEditedKeys[t]=!1}))}},{key:"getRawFormValues",value:function(){var e={};return this.$rawValuesByKey.forEach((function(t,r){e[r]=t})),e}}])&&a(t.prototype,r),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},61938:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(86303).A},55571:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});r(66264),r(23510);function n(e,t){if(!e)throw new Error(t)}},14679:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(34089),r(21555),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(61938);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function s(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"formManager",new i.A({availableKeys:["confirmDeletion"],initialValues:{confirmDeletion:void 0}})),s(this,"isDeletingAccount",!1),s(this,"notificationsStore",void 0),s(this,"userProfileStore",void 0),s(this,"errorsStore",void 0),s(this,"routerStore",void 0),s(this,"transport",void 0),(0,n.Gn)(this,{isDeletingAccount:n.sH,deleteAccount:n.XI}),Object.defineProperties(this,{notificationsStore:{get:function(){return t.notificationsStore}},userProfileStore:{get:function(){return t.userProfileStore}},errorsStore:{get:function(){return t.errorsStore}},routerStore:{get:function(){return t.routerStore}}}),this.transport=r}var t,r,o;return t=e,(r=[{key:"deleteAccount",value:function(){var e=this;return this.isDeletingAccount=!0,this.transport({method:"delete",url:"/api/profile"}).then((function(){e.userProfileStore.clear(),e.notificationsStore.pushNotification({title:"The account has been successfully deleted",view:"success"}),e.routerStore.replaceLocation("/authorization")})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Something went wrong. Please, refresh the page or check your internet connection and try again."})})).finally((function(){(0,n.h5)((function(){e.isDeletingAccount=!1}))}))}},{key:"reset",value:function(){this.formManager.resetForm()}}])&&a(t.prototype,r),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},80802:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(34089),r(21555),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(89497);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function s(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"authProvidersIds",[]),s(this,"authProvidersById",{}),s(this,"isLoadingAuthProviders",!1),s(this,"unlinkingProvidersById",{}),s(this,"errorsStore",void 0),s(this,"transport",void 0),(0,n.Gn)(this,{authProvidersIds:n.sH,authProvidersById:n.sH,isLoadingAuthProviders:n.sH,unlinkingProvidersById:n.sH,startLoadingAuthProviders:n.XI,unlink:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r}var t,r,o;return t=e,(r=[{key:"startLoadingAuthProviders",value:function(){var e=this;return this.$loadingAuthProviders||(this.isLoadingAuthProviders=!0,this.$loadingAuthProviders=this.transport({method:"get",url:"/api/profile/authentication-providers"}).then((function(t){var r=t.data,o=(0,i.A)(r),a=o.authProvidersIds,s=o.authProvidersById;(0,n.h5)((function(){e.authProvidersIds=a,e.authProvidersById=s}))})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Loading authentication providers failed."})})).finally((function(){e.$loadingAuthProviders=void 0,(0,n.h5)((function(){e.isLoadingAuthProviders=!1}))}
2))),this.$loadingAuthProviders}},{key:"unlink",value:function(e){var t=this;return this.unlinkingProvidersById[e]=!0,this.transport({method:"delete",url:"/api/profile/authentication-providers/".concat(e)}).catch((function(e){t.errorsStore.handleAndRethrow({error:e,intent:"Unlinking failed."})})).finally((function(){(0,n.h5)((function(){t.unlinkingProvidersById[e]=!1}))}))}}])&&a(t.prototype,r),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},33677:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(34089),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(13229),i=r(61938),o=r(97057);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function c(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var u=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"errorsStore",void 0),c(this,"notificationsStore",void 0),c(this,"transport",void 0),c(this,"validateNewPassword",(function(e){return o.mw(e)||o.wJ(e)||o.Bp(7)(e)||o.Ce(e)})),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},notificationsStore:{get:function(){return t.notificationsStore}}}),this.transport=r;this.formManager=new i.A({availableKeys:["oldPassword","newPassword"],initialValues:{oldPassword:"",newPassword:""},valuesValidator:{oldPassword:o.mw,newPassword:this.validateNewPassword}})}var t,r,a;return t=e,(r=[{key:"updateUserPassword",value:function(e){var t=this,r=e.oldPassword,i=e.newPassword;return this.transport({method:"put",url:"/api/profile/password.json",data:{oldPassword:(new n.sha256).update(r).digest("hex"),newPassword:(new n.sha256).update(i).digest("hex"),confirmPassword:(new n.sha256).update(i).digest("hex")},expectSuccessFlag:!1}).then((function(){t.notificationsStore.pushNotification({title:"Password was updated",view:"success"})})).catch((function(e){t.errorsStore.handleAndRethrow({error:e,intent:"Updating password failed."})}))}},{key:"startUpdating",value:function(){var e=this,t=this.formManager.formValues,r=t.oldPassword,n=t.newPassword;return this.formManager.submit((function(){return e.updateUserPassword({oldPassword:r,newPassword:n})}))}}])&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},55065:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(34089),r(85146),r(21555),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(30350),o=r.n(i),a=r(3492),s=r(61938),c=r(97057);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function d(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var p=new(o())("Your email is already registered",a.I.EMAIL_IS_ALREADY_REGISTERED),h=function(){function e(t,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"emailExist",!1),d(this,"isUpdating",!1),d(this,"phoneInputEl",void 0),d(this,"errorsStore",void 0),d(this,"notificationsStore",void 0),d(this,"userProfileStore",void 0),d(this,"transport",void 0),d(this,"isEmailKeyDisabled",(function(){var e=i.userProfileStore.profile;return!e||e.hasPersonalData})),d(this,"validateEmail",(function(e){return i.emailExist?p:c.mw(e)||c.Rp(e)||c.Ru(64)(e)})),d(this,"handleValueChange",(function(e){"email"===e&&(i.emailExist=!1)})),d(this,"setPhoneInputEl",(function(e){i.phoneInputEl=e})),d(this,"focusPhoneInput",(function(){i.phoneInputEl&&i.phoneInputEl.focus()})),(0,n.Gn)(this,{emailExist:n.sH,isUpdating:n.sH,handleValueChange:n.XI,$checkEmailExists:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},notificationsStore:{get:function(){return t.notificationsStore}},userProfileStore:{get:function(){return t.userProfileStore}}}),this.transport=r;var o={email:"",userName:"",phone:"",countryId:void 0};this.formManager=new s.A({availableKeys:["email","userName","phone","countryId"],initialValues:o,keysDisableRules:{email:this.isEmailKeyDisabled},valuesValidator:{email:this.validateEmail,userName:c.Bh,phone:c.lZ},onValueChange:this.handleValueChange}),(0,n.mJ)((function(){return i.userProfileStore&&i.userProfileStore.profile}),(function(e){if(e){var t=e.email,r=e.name,n=e.phone,o=e.country,a=o&&o.id;i.formManager.updateInitialValues({email:t,userName:r,countryId:a,phone:n})}}),{name:"Set profile-dependant form default values when profile updated",fireImmediately:!0})}var t,r,i;return t=e,(r=[{key:"$checkEmailExists",value:function(){var e=this,t=this.formManager.formValues.email;if(!t||t.length<2)return this.emailExist=!1,Promise.resolve();var r=this.userProfileStore.profile;return r&&r.email===t?(this.emailExist=!1,Promise.resolve()):this.transport({method:"post",url:"/api/registration/validate_email.json",data:{email:t}}).then((function(e){return e.data.existing_client})).then((function(t){e.emailExist=!!t})).catch((function(t){t.presented=!0,e.errorsStore.handleAndRethrow({error:t})}))}}
2,{key:"$startUpdating",value:function(e){var t=this,r=e.name,n=e.phone,i={name:r};return n&&(i.phone=n),this.transport({method:"put",url:"/api/profile/contacts.json",data:i,expectSuccessFlag:!1}).then((function(){return t.userProfileStore.startUpdating()})).then((function(){t.notificationsStore.pushNotification({title:"Contact information was updated",view:"success"})})).catch((function(e){t.errorsStore.handleAndRethrow({error:e,intent:"Updating contacts failed."})}))}},{key:"$startRestoring",value:function(e){var t=this,r=e.email,n=e.name,i=e.phone;return this.transport({method:"put",url:"/api/profile/restore.json",data:{email:r,name:n,phone:i},expectSuccessFlag:!1}).then((function(){return t.userProfileStore.startUpdating()})).then((function(){t.notificationsStore.pushNotification({title:"User profile was restored",view:"success"})})).catch((function(e){t.errorsStore.handleAndRethrow({error:e,intent:"Restoring user profile failed."})}))}},{key:"startUpdating",value:function(){var e=this,t=this.formManager.formValues,r=t.email,i=t.userName,o=t.phone,a=this.userProfileStore.profile;return(0,n.h5)((function(){e.isUpdating=!0})),a&&a.hasPersonalData?this.formManager.submit((function(){return e.$startUpdating({name:i,phone:o})})).finally((function(){(0,n.h5)((function(){e.isUpdating=!1}))})):this.$checkEmailExists().then((function(){return e.formManager.submit((function(){return e.$startRestoring({email:r,name:i,phone:o})}))})).finally((function(){(0,n.h5)((function(){e.isUpdating=!1}))}))}},{key:"startUpdatingWithNoUpdatingProfile",value:function(){var e=this,t=this.formManager.formValues,r=t.userName,i=t.phone,o=this.userProfileStore.profile;return(0,n.h5)((function(){e.isUpdating=!0})),o&&o.hasPersonalData?this.formManager.submit((function(){var t={name:r};return i&&(t.phone=i),e.transport({method:"put",url:"/api/profile/contacts.json",data:t,expectSuccessFlag:!1}).then((function(){e.notificationsStore.pushNotification({title:"Contact information was updated",view:"success"})})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Updating contacts failed."})}))})).finally((function(){(0,n.h5)((function(){e.isUpdating=!1}))})):null}}])&&u(t.prototype,r),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},3760:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(34089),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(97057),i=r(61938);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function s(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"formManager",void 0),s(this,"configsStore",void 0),s(this,"transport",void 0),Object.defineProperties(this,{configsStore:{get:function(){return t.configsStore}}}),this.transport=r,this.formManager=new i.A({availableKeys:["country"],initialValues:{country:""},valuesValidator:{country:n.mw}})}var t,r,o;return t=e,(r=[{key:"startUpdating",value:function(){var e=this,t=this.formManager.formValues.country,r=this.configsStore.configs.countries[t],n=r?r.code:void 0;return this.formManager.submit((function(){return e.transport({method:"post",url:"/api/profile/country_code.json",data:{countryCode:n}})})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Submitting country failed."})}))}}])&&a(t.prototype,r),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},67929:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(34089),r(21555),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);
2var n=r(97057),i=r(61938),o=r(83794);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function c(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var u=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"isDeletingPhoneNumber",void 0),c(this,"formManager",void 0),c(this,"userProfileStore",void 0),c(this,"userContactsStore",void 0),c(this,"errorsStore",void 0),c(this,"transport",void 0),(0,o.Gn)(this,{isDeletingPhoneNumber:o.sH,deletePhoneNumber:o.XI}),Object.defineProperties(this,{userProfileStore:{get:function(){return t.userProfileStore}},userContactsStore:{get:function(){return t.userContactsStore}},errorsStore:{get:function(){return t.errorsStore}}}),this.formManager=new i.A({availableKeys:["phone"],initialValues:{phone:""},valuesValidator:{phone:function(e){return n.mw(e)||n.lZ(e)}}}),this.transport=r}var t,r,a;return t=e,(r=[{key:"init",value:function(){var e,t=null===(e=this.userProfileStore.profile)||void 0===e||null===(e=e.country)||void 0===e?void 0:e.phoneCode;t&&this.formManager.setSilently("phone",String(t))}},{key:"startUpdating",value:function(){var e=this;return this.formManager.submit((function(){return e.userContactsStore.formManager.setSilently("phone",e.formManager.formValues.phone),e.userContactsStore.startUpdating()}))}},{key:"deletePhoneNumber",value:function(){var e=this;return this.isDeletingPhoneNumber||(this.isDeletingPhoneNumber=this.transport({method:"delete",url:" /api/profile/phone"}).then((function(){return e.userContactsStore.formManager.resetForm(),e.userProfileStore.startLoadingProfile()})).catch((function(t){e.errorsStore.handleError(t,{intent:"Something went wrong. Please, refresh the page or check your internet connection and try again."})})).finally((function(){(0,o.h5)((function(){e.isDeletingPhoneNumber=void 0}))}))),this.isDeletingPhoneNumber}}])&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},45848:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(34089),r(21555),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(37210),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890);var n=r(83794),i=r(3492);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function l(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var d=function(){function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"policyAutoCheck",!1),l(this,"policyForceAccept",!1),l(this,"$acceptingPolicy",void 0),l(this,"errorsStore",void 0),l(this,"userProfileStore",void 0),l(this,"dialogsStore",void 0),l(this,"routerStore",void 0),l(this,"notificationsStore",void 0),l(this,"transport",void 0),(0,n.Gn)(this,{policyAutoCheck:n.sH,policyForceAccept:n.sH,$acceptingPolicy:n.sH,shouldAcceptPolicy:n.EW,shouldUpdatePersonalData:n.EW,isAccepting:n.EW,setPolicyRules:n.XI,$acceptPolicy:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},userProfileStore:{get:function(){return t.userProfileStore}},dialogsStore:{get:function(){return t.dialogsStore}},routerStore:{get:function(){return t.routerStore}},notificationsStore:{get:function(){return t.notificationsStore}}}),this.transport=r,(0,n.mJ)((function(){return[o.shouldAcceptPolicy,o.shouldUpdatePersonalData]}),(function(e){var t=a(e,2),r=t[0],n=t[1];if(r)o.dialogsStore.pushDialog(i.g5.MODAL_ACCEPT_POLICY,{},{isStatic:o.policyForceAccept,isGlobal:!0});else if(n){if("/profile"===o.routerStore.location.pathname)return;o.dialogsStore.pushDialog(i.g5.MODAL_UPDATE_PERSONAL_DATA)}}),{delay:100})}var t,r,o;return t=e,r=[{key:"shouldAcceptPolicy",get:function(){if(!this.policyAutoCheck)return!1;var e=this.userProfileStore.profile;return!!e&&e.privacyOrTermsConfirmRequired}},{key:"shouldUpdatePersonalData",get:function(){return!!this.policyAutoCheck&&this.userProfileStore.shouldUpdatePersonalData}},{key:"isAccepting",get:function(){return void 0!==this.$acceptingPolicy}},{key:"setPolicyRules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoCheck,r=void 0!==t&&t,n=e.forceAccept,i=void 0!==n&&n;this.policyAutoCheck=r,this.policyForceAccept=i}},{key:"$acceptPolicy",value:function(){var e=this;return this.$acceptingPolicy||(this.$acceptingPolicy=this.transport({method:"patch",url:"/api/policy_confirmation.json",expectSuccessFlag:!1}
vendor: 5,781 bytes, line 2
2).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Accepting Privacy Policy failed."})})).finally((function(){(0,n.h5)((function(){e.$acceptingPolicy=void 0}))}))),this.$acceptingPolicy}},{key:"startUpdating",value:function(){var e=this;return this.$acceptPolicy().then((function(){e.notificationsStore.pushNotification({title:"New Terms&Conditions and Privacy Policy were accepted.",view:"success"})})).then((function(){return e.userProfileStore.startLoadingProfile()}))}}],r&&c(t.prototype,r),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},10681:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});r(75947),r(34089),r(30935),r(68291),r(21555),r(5858),r(55983),r(96656),r(94356),r(45993),r(78527),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(95570),r(22892),r(85146),r(11823),r(86940),r(17626),r(84766);var n=r(83794),i=r(58165),o=r(3492),a=r(80717),s=r(50986),c=r(86609);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(){u=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,s){var c=p(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(l(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,c,"Generator"),d(x,a,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function p(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var m=function(){function e(t,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"profile",void 0),p(this,"requestWritersIds",Object.freeze([])),p(this,"requestWritersById",Object.freeze({})),p(this,"totalSpent",void 0),p(this,"discountPercent",void 0),p(this,"unpaidOrders",[]),p(this,"isUpdatingProfile",void 0),p(this,"isUpdatingWriters",void 0),p(this,"isUpdatingCoupons",void 0),p(this,"isCheckingAuthStatus",!1),p(this,"authType",o.SS.SIGN_UP_AUTH_TYPE),p(this,"isLoadingUnpaidOrders",void 0),p(this,"$hasPaidButNotInProgressOrder",!1),p(this,"isCheckingFirstPaidOrder",!1),p(this,"configsStore",void 0),p(this,"ordersStore",void 0),p(this,"messagingRootStore",void 0),p(this,"errorsStore",void 0),p(this,"transport",void 0),(0,n.Gn)(this,{profile:n.sH,requestWritersIds:n.sH.ref,requestWritersById:n.sH.ref,totalSpent:n.sH.ref,discountPercent:n.sH.ref,unpaidOrders:n.sH,isUpdatingProfile:n.sH,isUpdatingWriters:n.sH,isUpdatingCoupons:n.sH,authType:n.sH,isLoadingUnpaidOrders:n.sH,isAuthorized:n.EW,isBanned:n.EW,countryId:n.EW,shouldUpdatePersonalData:n.EW,setLastAuthType:n.XI,setProfile:n.XI,setUnpaidOrders:n.XI,hasLifetimeLoyaltyProgram:n.EW,hasPointsBasedLifetimeLoyaltyProgram:n.EW,startLoadingUnpaidOrders:n.XI,startLoadingProfile:n.XI,startLoadingCoupons:n.XI,startLoadingWriters:n.XI,isSignUpAuthType:n.EW,isShowAdvocacyQuestionnaire:n.EW,checkPaidButNotInProgressOrder:n.XI,$hasPaidButNotInProgressOrder:n.sH,isCheckingFirstPaidOrder:n.sH,checkAuthStatus:n.XI,isCheckingAuthStatus:n.sH,setWriters:n.XI,showNotificationPreferencesUpdateHint:n.EW,availableCouponsCount:n.EW}),Object.defineProperties(this,{configsStore:{get:function(){return t.configsStore}},ordersStore:{get:function(){return t.ordersStore}},messagingRootStore:{get:function(){return t.messagingRootStore}},errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r,(0,n.mJ)((function(){return i.isAuthorized&&!!i.configsStore.configs}),(function(e){e?(i.messagingRootStore.setProfile({id:i.profile.id,department:7}),i.messagingRootStore.connect(),i.startHeartbeat()):(i.messagingRootStore.disconnect(),i.messagingRootStore.setProfile(),i.stopHeartbeat())}))}var t,r,l,h,m;return t=e,r=[{key:"isAuthorized",get:function(){return void 0!==this.profile}},{key:"isBanned",get:function(){return!!this.profile&&this.profile.isBanned}},{key:"countryId",get:function(){if(this.configsStore.configs&&this.profile){var e=this.configsStore.configs.countriesIds,t=this.profile.country&&this.profile.country.id;return e.includes(t)?t:void 0}}},{key:"shouldUpdatePersonalData",get:function(){return this.profile&&!this.profile.hasPersonalData}},{key:"isSignUpAuthType",get:function(){return this.authType===o.SS.SIGN_UP_AUTH_TYPE}},{key:"showNotificationPreferencesUpdateHint",get:function(){var e=this.profile,t=e.wasNotificationPreferencesUpdateHintClosed,r=e.phone,n=e.notifications.transactional,i=n.sms,o=n.whatsApp;return!(t||r&&(i.value||o.value))}},{key:"setLastAuthType",value:function(e){this.authType=e}},{key:"setProfile",value:function(e){this.profile=e}},{key:"setUnpaidOrders",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.unpaidOrders=e}},{key:"setWriters",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{requestWritersIds:Object.freeze([]),requestWritersById:Object.freeze({})},t=e.requestWritersIds,r=e.requestWritersById;this.requestWritersIds=t,this.requestWritersById=r}},{key:"clear",value:function(){this.setProfile(),this.setUnpaidOrders(),this.setWriters()}},{key:"getUnpaidOrders",value:function(){var e=this;return this.isLoadingUnpaidOrders?this.isLoadingUnpaidOrders.then((function(){return e.unpaidOrders})):Promise.resolve(this.unpaidOrders)}},{key:"hasLifetimeLoyaltyProgram",get:function(){return!!this.profile&&this.profile.customerLoyaltyProgramsIds.includes(o.Os.LIFETIME)}},{key:"hasPointsBasedLifetimeLoyaltyProgram",get:function(){return!!this.profile&&this.profile.customerLoyaltyProgramsIds.includes(o.Os.POINTS_BASED_LIFETIME)}},{key:"availableCouponsCount",get:function(){return this.profile?this.profile.availableCouponsCount:0}},{key:"isShowAdvocacyQuestionnaire",get:function(){return!!this.profile&&this.profile.showAdvocacyQuestionnaire}},{key:"sendFingerprint",value:function(e){var t=this,r=e.submitAction,n=e.orderId;return(0,i.Hd)().then((function(e){var i=e.fingerprintHash,o=e.fingerprintData;return t.transport({method:"post",url:"/api/profile/createTrackingEvent.json",data:{action:r,fingerprintHash:i,fingerprintData:o,orderId:n}})})).catch((function(e){e.presented=!0,t.errorsStore.handleError(e)}))}},{key:"closeActiveCouponBanner",value:function(){var e=this;return this.transport({method:"get",url:"/api/profile/referralActiveCouponBanner.json"}).catch((function(t){t.presented=!0,e.errorsStore.handleError(t)}))}},{key:"startLoadingUnpaidOrders",value:function(){var e=this;return this.isLoadingUnpaidOrders||(this.isLoadingUnpaidOrders=this.transport({method:"get",url:"/api/profile/unpaid_orders.json"}).then((function(t){var r=t.unpaidOrders;return e.setUnpaidOrders(r)}
2)).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Loading unpaid orders failed."})})).finally((function(){(0,n.h5)((function(){e.isLoadingUnpaidOrders=void 0}))}))),this.isLoadingUnpaidOrders}},{key:"startLoadingProfile",value:function(){var e=this;return this.isUpdatingProfile||(this.isUpdatingProfile=this.transport({method:"get",url:"/api/profile.json"}).then((function(e){var t=e.profile;return(0,a.A)(t)})).then((function(t){e.setProfile(t)})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Updating profile failed."})})).finally((function(){(0,n.h5)((function(){e.isUpdatingProfile=void 0}))}))),this.isUpdatingProfile}},{key:"startLoadingCoupons",value:function(){var e=this;return this.isUpdatingCoupons||(this.isUpdatingCoupons=this.transport({method:"get",url:"/api/profile/discounts.json"}).then(s.A).then((function(t){var r=t.totalSpent,i=t.discountPercent;return(0,n.h5)((function(){e.totalSpent=r,e.discountPercent=i}))})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Updating coupons failed."})})).finally((function(){(0,n.h5)((function(){e.isUpdatingCoupons=void 0}))}))),this.isUpdatingCoupons}},{key:"startLoadingWriters",value:function(){var e=this;return this.isUpdatingWriters||(this.isUpdatingWriters=this.transport({method:"get",url:"/api/profile/writers.json"}).then(c.A).then((function(t){e.setWriters(t)})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Updating writers failed."})})).finally((function(){(0,n.h5)((function(){e.isUpdatingWriters=void 0}))}))),this.isUpdatingWriters}},{key:"startUpdating",value:function(){return Promise.all([this.startLoadingUnpaidOrders(),this.startLoadingProfile(),this.startLoadingWriters()])}},{key:"checkPaidButNotInProgressOrder",value:(h=u().mark((function e(){var t=this;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isCheckingFirstPaidOrder=!0,e.prev=1,e.next=4,this.startLoadingProfile();case 4:if(1!==this.profile.paidOrdersCount){e.next=12;break}return e.next=7,this.ordersStore.loadPaidButNotInProgressOrders();case 7:1===e.sent.orders.length&&(0,n.h5)((function(){t.$hasPaidButNotInProgressOrder=!0})),e.next=13;break;case 12:(0,n.h5)((function(){t.$hasPaidButNotInProgressOrder=!1}));case 13:e.next=19;break;case 15:e.prev=15,e.t0=e.catch(1),e.t0.presented=!0,this.errorsStore.handleError(e.t0);case 19:return e.prev=19,(0,n.h5)((function(){t.isCheckingFirstPaidOrder=!1})),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[1,15,19,22]])})),m=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=h.apply(e,t);function o(e){d(i,r,n,o,a,"next",e)}function a(e){d(i,r,n,o,a,"throw",e)}o(void 0)}))},function(){return m.apply(this,arguments)})},{key:"checkAuthStatus",value:function(){var e=this;return this.$checkingAuthStatus||(this.isCheckingAuthStatus=!0,this.$checkingAuthStatus=this.transport({method:"get",url:"/api/isLogged.json"}).then((function(e){return e.isLogged})).finally((function(){e.$checkingAuthStatus=void 0,(0,n.h5)((function(){e.isCheckingAuthStatus=!1}))}))),this.$checkingAuthStatus}},{key:"heartbeat",value:function(){var e=this;return this.transport({method:"post",url:"/api/heartbeat",expectSuccessFlag:!1}).catch((function(t){e.errorsStore.handleError(t)}))}},{key:"startHeartbeat",value:function(){var e=this,t=this.configsStore.configs.heartbeatInterval;this.heartbeat(),this.heartbeatIntervalId=setInterval((function(){e.heartbeat()}),1e3*t)}},{key:"stopHeartbeat",value:function(){clearInterval(this.heartbeatIntervalId)}},{key:"sendNotificationPreferencesUpdateDialogWasShown",value:function(){var e=this;return this.transport({method:"get",url:"/api/profile/notificationPreferencesUpdateDialogWasShown"}).then((function(){return e.startLoadingProfile()})).catch((function(){}))}},{key:"sendNotificationPreferencesUpdateHintWasClosed",value:function(){var e=this;return this.transport({method:"get",url:"/api/profile/closeNotificationPreferencesUpdateHint"}).then((function(){return e.startLoadingProfile()})).catch((function(){}))}}],r&&f(t.prototype,r),l&&f(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}()},26417:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(95570),r(34089),r(66542),r(21555),r(39170),r(5974),r(5858),r(96656),r(94356),r(45993),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851);
2var n=r(83794),i=r(61938),o=r(3492);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function c(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var u=o.LF.ONLY_EMAIL,d=o.LF.EMAIL_AND_SMS,f=o.LF.EMAIL_AND_WHATSAPP,p=function(){function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"formManager",new i.A({availableKeys:["isTransactionalSubscriptions","isMarketingSubscriptions","isUnreadMessagesSubscriptions","preferredNotificationChannel","pushNotificationsEnabled"],initialValues:{isTransactionalSubscriptions:!0,isUnreadMessagesSubscriptions:!0,isMarketingSubscriptions:!1,preferredNotificationChannel:u,pushNotificationsEnabled:!1},itemsIdsDisableRules:{preferredNotificationChannel:function(){var e=o.userProfileStore.profile.notifications.transactional,t=[];return e.sms.enabled&&e.sms.editable||t.push(d),e.whatsApp.enabled&&e.whatsApp.editable||t.push(f),t}},keysDisableRules:{isTransactionalSubscriptions:function(){return!o.userProfileStore.profile.notifications.transactional.email.editable},isUnreadMessagesSubscriptions:function(){return!o.userProfileStore.profile.notifications.unreadMessages.email.editable},isMarketingSubscriptions:function(){return!o.userProfileStore.profile.notifications.marketing.email.editable}}})),c(this,"errorsStore",void 0),c(this,"userProfileStore",void 0),c(this,"notificationsStore",void 0),c(this,"transport",void 0),(0,n.Gn)(this,{isNotificationChannelSubscriptionsStatusInvalid:n.EW}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},userProfileStore:{get:function(){return t.userProfileStore}},notificationsStore:{get:function(){return t.notificationsStore}}}),this.transport=r,(0,n.mJ)((function(){return o.userProfileStore&&o.userProfileStore.profile}),(function(e){e&&o.updateFormInitialValues()}),{name:"Set profile-dependant form default values when profile updated",fireImmediately:!0})}var t,r,a;return t=e,(r=[{key:"updateFormInitialValues",value:function(){var e=this.userProfileStore.profile,t=e.notifications,r=e.pushNotificationsEnabled,n=t.transactional,i=t.marketing,o=t.unreadMessages,a=n.whatsApp.value&&f,s=n.sms.value&&d;this.formManager.updateInitialValues({isTransactionalSubscriptions:n.email.value,isUnreadMessagesSubscriptions:o.email.value,isMarketingSubscriptions:i.email.value,preferredNotificationChannel:a||s||u,pushNotificationsEnabled:r})}},{key:"isNotificationChannelSubscriptionsStatusInvalid",get:function(){var e=this.userProfileStore.profile;if(!e)return!1;var t=e.notifications,r=o._q.INVALID;return Object.values(t).some((function(e){return["whatsApp","sms"].some((function(t){return e[t].value&&e[t].status.id===r}))}))}},{key:"$startUpdatingSubscription",value:function(){var e=this.userProfileStore.profile.notifications,t=e.transactional,r=e.marketing,n=e.unreadMessages,i=this.formManager.formValues,o=i.isTransactionalSubscriptions,a=i.isUnreadMessagesSubscriptions,s=i.isMarketingSubscriptions,c=i.preferredNotificationChannel,l=c===d,u=c===f,p={transactional:{email:t.email.value,sms:t.sms.value,whatsApp:t.whatsApp.value},unreadMessages:{email:n.email.value,sms:n.sms.value,whatsApp:n.whatsApp.value},marketing:{email:r.email.value,sms:r.sms.value,whatsApp:r.whatsApp.value}},h={transactional:{email:o,sms:l&&o,whatsApp:u&&o},unreadMessages:{email:a,sms:l&&a,whatsApp:u&&a},marketing:{email:s,sms:l&&s,whatsApp:u&&s}};return JSON.stringify(p)===JSON.stringify(h)?Promise.resolve():this.transport({method:"post",url:"/api/profile/subscribe.json",data:{notifications:h},expectSuccessFlag:!1})}}
2,{key:"$startUpdatingPushNofications",value:function(){var e=this.userProfileStore.profile.pushNotificationsEnabled,t=this.formManager.formValues.pushNotificationsEnabled;return e===t?Promise.resolve():this.transport({method:"put",url:"/api/profile/push_notifications_enabled.json",data:{pushNotificationsEnabled:t?1:0},expectSuccessFlag:!1})}},{key:"$startUpdating",value:function(){var e=this;return Promise.all([this.$startUpdatingSubscription(),this.$startUpdatingPushNofications()]).then((function(){return e.userProfileStore.startUpdating()})).then((function(){e.notificationsStore.pushNotification({title:"Preferences were updated",view:"success"})})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Updating settings failed."})}))}},{key:"startUpdating",value:function(){var e=this;return this.formManager.submit((function(){return e.$startUpdating()}))}}])&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},31178:(e,t,r)=>{"use strict";r.d(t,{GG:()=>a.A,In:()=>o.A,SL:()=>l.A,Z6:()=>s.A,_2:()=>u.A,fU:()=>c.A,iG:()=>n.A,um:()=>i.A,vH:()=>d.A});var n=r(10681),i=r(55065),o=r(33677),a=r(26417),s=r(45848),c=r(80802),l=(r(86609),r(14679)),u=r(67929),d=r(3760)},89497:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(96104),r(21555),r(95570);var n=r(74510);const i=function(e){return new n.A(e.reduce((function(e,t){return e.authProvidersIds.push(t.id),e.authProvidersById[t.id]=new n.D(t),e}),{authProvidersIds:[],authProvidersById:{}}))}},50986:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});r(9020);const n=function(e){return{totalSpent:parseInt(e.user_coupons.totalSpent,10)||0,discountPercent:parseInt(e.user_coupons.discountPercent,10)||0}}},80717:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(93831),r(98304),r(99180),r(9098),r(85146),r(96152),r(95790),r(96104),r(21555),r(9020),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(3492),i=r(86365),o=r(49088),a=r(63814);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d=function(e){var t=(e.phone||"").replace(/[^\d]*/g,"");return new i.A({id:e.id,GAUserId:e.GAUserId,country:e.country&&e.country.id?{id:e.country.id,phoneCode:Number(e.country.phoneCode),code:Number(e.country.code)}:void 0,email:e.email||void 0,lastAcademicLevel:0===e.lastAcademicLevel?void 0:e.lastAcademicLevel,name:e.name.trim(),phone:t,isTest:1===e.isTest,hasPayments:e.hasPayments,hasPersonalData:!!e.hasPersonalData,isOtherSubscribed:!!e.isOtherSubscribed,isEmailSubscribed:!!e.isEmailSubscribed,showPlatinumBanner:!!e.showPlatinumBanner,pushNotificationsEnabled:!!e.pushNotificationsEnabled,privacyOrTermsConfirmRequired:!!e.privacyOrTermsConfirmRequired,policyAcceptedAt:e.policyAcceptedAt&&new Date(e.policyAcceptedAt)||void 0,siteFullName:e.siteFullName,ordersInProgressCount:e.ordersInProgressCount,customerLoyaltyProgramsIds:(e.customerLoyaltyPrograms||[]).map((function(e){return e.loyaltyProgramId})),customerLoyaltyProgramsById:(e.customerLoyaltyPrograms||[]).reduce((function(e,t){var r=t.loyaltyProgramId;return r===n.Os.LIFETIME?e[r]=new o.A({id:r}):r===n.Os.POINTS_BASED_LIFETIME&&(e[r]=new a.A(l(l({},t),{},{id:r}))),e}),{}),showReferralInvitationBanner:Boolean(e.showReferralInvitationBanner),showReferralHasActiveCouponBanner:Boolean(e.showReferralHasActiveCouponBanner),showAdvocacyQuestionnaire:Boolean(e.showAdvocacyQuestionnaire),isBanned:!!e.isBanned,paidOrdersCount:e.paidOrdersCount,latestOrderId:e.latestOrderId,mostUsedDisciplineId:e.mostUsedDisciplineId||void 0,showDissertationBoostBanner:Boolean(e.showDissertationBoostBanner),approvedOrdersCount:e.approvedOrdersCount,googleReviewBannerUrl:e.googleReviewBannerUrl||void 0,notifications:e.notifications,isPhoneNumberValid:e.isPhoneNumberValid,showNotificationPreferencesUpdateDialog:Boolean(e.showNotificationPreferencesUpdateDialog),wasNotificationPreferencesUpdateHintClosed:Boolean(e.wasNotificationPreferencesUpdateHintClosed),availableCouponsCount:parseInt(e.availableCouponsCount,10)||0,availableOrdersWithProfessorsFeedback:e.availableOrdersWithProfessorsFeedback,wasProfessorsFeedbackRevisionRequested:Bo
2olean(e.wasProfessorsFeedbackRevisionRequested),showProfessorsFeedbackBanner:Boolean(e.showProfessorsFeedbackBanner),showHeavyUsersSurvey:Boolean(e.showHeavyUsersSurvey),hasSecond10Coupon:Boolean(e.hasSecond10Coupon),showReferralProgramNotification:Boolean(e.showReferralProgramNotification)})}},86609:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(95790),r(96104),r(21555),r(85146);var n=r(79887);const i=function(e){return{requestWritersIds:(e.writers||[]).map((function(e){return e.id})),requestWritersById:(e.writers||[]).reduce((function(e,t){return e[t.id]=new n.A({id:t.id,name:t.name,languageStyleId:t.languageStyleId,paperLevelId:t.paperLevelId,assignedOrders:t.assignedOrders,workedWithServices:t.workedWithServices,category:t.category,categoryTitle:t.categoryTitle}),e}),{})}}},91500:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("AssignedOrders",{orderServiceTypeId:n.L$.number,ordersCount:n.L$.number,lastOrderDisciplineTitle:n.L$.string.isOptional})},79887:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(58165),i=r(91500);const o=(0,n.t0)("RequestableWriter",{id:n.L$.number,name:n.L$.string,paperLevelId:n.L$.number,languageStyleId:n.L$.number,categoryTitle:n.L$.string,assignedOrders:n.L$.arrayOf(n.L$.instanceOf(i.A)),workedWithServices:n.L$.arrayOf(n.L$.number)})},74510:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,D:()=>i});var n=r(58165),i=(0,n.t0)("UserAuthenticationProvider",{id:n.L$.number,isLinked:n.L$.bool});const o=(0,n.t0)("UserAuthenticationProviders",{authProvidersIds:n.L$.arrayOf(n.L$.number),authProvidersById:n.L$.objectOf(n.L$.instanceOf(i))})},86365:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(96152);var n=r(58165),i=r(49088),o=r(63814);const a=(0,n.t0)("UserProfile",{id:n.L$.number,GAUserId:n.L$.string,email:n.L$.string.isOptional,name:n.L$.string.isOptional,phone:n.L$.string.isOptional,isTest:n.L$.bool,hasPayments:n.L$.bool,hasPersonalData:n.L$.bool,lastAcademicLevel:n.L$.number.isOptional,isOtherSubscribed:n.L$.bool,isEmailSubscribed:n.L$.bool,pushNotificationsEnabled:n.L$.bool,privacyOrTermsConfirmRequired:n.L$.bool,policyAcceptedAt:n.L$.instanceOf(Date).isOptional,siteFullName:n.L$.string,country:n.L$.shape({id:n.L$.string,phoneCode:n.L$.number,code:n.L$.number}).isOptional,customerLoyaltyProgramsIds:n.L$.arrayOf(n.L$.number),customerLoyaltyProgramsById:n.L$.objectOf(n.L$.oneOfType([n.L$.instanceOf(i.A),n.L$.instanceOf(o.A)])),showReferralInvitationBanner:n.L$.bool,showReferralHasActiveCouponBanner:n.L$.bool,showAdvocacyQuestionnaire:n.L$.bool,isBanned:n.L$.bool,showPlatinumBanner:n.L$.bool,latestOrderId:n.L$.number.isOptional,mostUsedDisciplineId:n.L$.number.isOptional,showDissertationBoostBanner:n.L$.bool,notifications:n.L$.shape({transactional:n.L$.shape({email:n.L$.shape({enabled:n.L$.bool,value:n.L$.bool,editable:n.L$.bool,status:n.L$.shape({id:n.L$.number,name:n.L$.string})}),sms:n.L$.shape({enabled:n.L$.bool,value:n.L$.bool,editable:n.L$.bool,status:n.L$.shape({id:n.L$.number,name:n.L$.string})}),whatsApp:n.L$.shape({enabled:n.L$.bool,value:n.L$.bool,editable:n.L$.bool,status:n.L$.shape({id:n.L$.number,name:n.L$.string})})}
2),unreadMessages:n.L$.shape({email:n.L$.shape({enabled:n.L$.bool,value:n.L$.bool,editable:n.L$.bool,status:n.L$.shape({id:n.L$.number,name:n.L$.string})}),sms:n.L$.shape({enabled:n.L$.bool,value:n.L$.bool,editable:n.L$.bool,status:n.L$.shape({id:n.L$.number,name:n.L$.string})}),whatsApp:n.L$.shape({enabled:n.L$.bool,value:n.L$.bool,editable:n.L$.bool,status:n.L$.shape({id:n.L$.number,name:n.L$.string})})}),marketing:n.L$.shape({email:n.L$.shape({enabled:n.L$.bool,value:n.L$.bool,editable:n.L$.bool,status:n.L$.shape({id:n.L$.number,name:n.L$.string})}),sms:n.L$.shape({enabled:n.L$.bool,value:n.L$.bool,editable:n.L$.bool,status:n.L$.shape({id:n.L$.number,name:n.L$.string})}),whatsApp:n.L$.shape({enabled:n.L$.bool,value:n.L$.bool,editable:n.L$.bool,status:n.L$.shape({id:n.L$.number,name:n.L$.string})})})}),isPhoneNumberValid:n.L$.bool,googleReviewBannerUrl:n.L$.string.isOptional,showNotificationPreferencesUpdateDialog:n.L$.bool,wasNotificationPreferencesUpdateHintClosed:n.L$.bool,availableCouponsCount:n.L$.number,availableOrdersWithProfessorsFeedback:n.L$.arrayOf(n.L$.number),wasProfessorsFeedbackRevisionRequested:n.L$.bool,showProfessorsFeedbackBanner:n.L$.bool,showHeavyUsersSurvey:n.L$.bool,hasSecond10Coupon:n.L$.bool,showReferralProgramNotification:n.L$.bool})},49088:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("LifetimeLoyaltyProgram",{id:n.L$.number})},63814:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("PointsBasedLifetimeLoyaltyProgram",{id:n.L$.number,discountLevels:n.L$.arrayOf(n.L$.shape({id:n.L$.number,percent:n.L$.number,rangeOfRewardPoints:n.L$.arrayOf(n.L$.number)})),currentDiscountLevelId:n.L$.number.isOptional,rewardPointsEarned:n.L$.number,targetActions:n.L$.arrayOf(n.L$.string),earningHistory:n.L$.arrayOf(n.L$.shape({text:n.L$.string,points:n.L$.number}))})},22846:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(98140),r(34089),r(99180),r(97041),r(96152),r(21555),r(5858),r(55983),r(93831),r(40890),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(13229),o=r(61938),a=r(97057),s=r(58165),c=r(35638);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function d(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}function p(e){return a.mw(e)||(-1!==e.indexOf("@")?a.Rp(e)||a.Ru(64)(e):void 0)}var h=function(){function e(t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"isLoggingIn",!1),d(this,"isLoggingOut",!1),d(this,"errorsStore",void 0),d(this,"userProfileStore",void 0),d(this,"ordersStore",void 0),d(this,"routerStore",void 0),d(this,"couponsStore",void 0),d(this,"reCaptchaStore",void 0),d(this,"thirdPartySignInStore",void 0),d(this,"transport",void 0),d(this,"options",void 0),(0,n.Gn)(this,{isLoggingIn:n.sH,isLoggingOut:n.sH}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},userProfileStore:{get:function(){return t.userProfileStore}},ordersStore:{get:function(){return t.ordersStore}},routerStore:{get:function(){return t.routerStore}},couponsStore:{get:function(){return t.couponsStore}},reCaptchaStore:{get:function(){return t.reCaptchaStore}},thirdPartySignInStore:{get:function(){return t.thirdPartySignInStore}}}),this.transport=r,this.options=i;this.formManager=new o.A({availableKeys:["login","password","rememberFor2Weeks"],initialValues:{login:"",password:"",rememberFor2Weeks:!1},valuesValidator:{login:p,password:a.mw}})}var t,r,l;return t=e,(r=[{key:"startLoadingUser",value:function(){var e=this;return(0,c.a)((function(){return e.userProfileStore.startLoadingUnpaidOrders()})),(0,c.a)((function(){return e.userProfileStore.startLoadingWriters()})),(0,c.a)((function(){return e.userProfileStore.sendFingerprint({submitAction:"login"})})),this.userProfileStore.startLoadingProfile()}},{key:"signIn",value:function(e){var t=this,r=e.login,n=e.password,o=this.options,a=o.onSignInSucceeded,l=o.onSignInFailed;return this.reCaptchaStore.getReCaptchaToken().then((function(e){return t.transport({method:"post",url:"/api/login.json",data:{login:r,password:(new i.sha256).update(n).digest("hex"),recaptchaToken:e,rememberFor2Weeks:Number(t.formManager.formValues.rememberFor2Weeks||0)}})})).then((function(){return(0,c.a)((function(){s.sZ.setItem("RememberFor2Weeks",t.formManager.formValues.rememberFor2Weeks)})),(0,c.a)((function(){s.HZ.setItem("lastAuthorizedAt",Date.now())})),t.thirdPartySignInStore.setIsGoogleOneTapSignInEnabled(!1),t.startLoadingUser()})).then((function(){a&&a(t.userProfileStore.profile.GAUserId)})).catch((function(e){l&&l(e),t.errorsStore.handleAndRethrow({error:e,intent:"Signing in failed."})}))}},{key:"startSigningIn",value:function(){var e=this,t=this.formManager.formValues,r=t.login,i=t.password;return(0,n.h5)((function(){e.isLoggingIn=!0})),this.formManager.submit((function(){return e.signIn({login:r,password:i})})).finally((function(){(0,n.h5)((function(){e.isLoggingIn=!1}))}
2))}},{key:"startLoggingOut",value:function(){var e=this,t=this.options,r=t.onSignOutSucceeded,i=t.onSignOutFailed;return(0,n.h5)((function(){e.isLoggingOut=!0})),this.transport({method:"post",url:"/api/logout.json"}).then((function(t){r&&r(t),e.userProfileStore.clear(),e.couponsStore.clear(),e.ordersStore.clear(),e.routerStore.isStatic?window.location.reload():/^\/orders\/create/.test(e.routerStore.location.pathname)&&(0,c.a)((function(){return e.couponsStore.loadPublicCoupons()}))})).catch((function(t){i&&i(t),e.errorsStore.handleAndRethrow({error:t,intent:"Logging out failed."})})).finally((function(){(0,n.h5)((function(){e.isLoggingOut=!1}))}))}}])&&u(t.prototype,r),l&&u(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}()},75088:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});r(34089),r(21555),r(5858),r(85146),r(55983),r(99180),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(59161),r(37210),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(96152),r(34237),r(74874),r(93831),r(40890);var n=r(83794),i=r(30350),o=r.n(i),a=r(13229),s=r(61938),c=r(97057),l=r(35638);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function h(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}var y=new(o())('Your email is already registered. Use "Returning customer" tab to sign in.',"EMAIL_IS_ALREADY_REGISTERED"),v=function(){function e(t,r,i){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"emailExist",void 0),h(this,"requirePhone",!1),h(this,"requireName",!1),h(this,"isSigningUp",!1),h(this,"errorsStore",void 0),h(this,"configsStore",void 0),h(this,"userProfileStore",void 0),h(this,"signInFormStore",void 0),h(this,"orderFormStore",void 0),h(this,"reCaptchaStore",void 0),h(this,"thirdPartySignInStore",void 0),h(this,"transport",void 0),h(this,"validateEmail",(function(e){return o.emailExist?y:c.mw(e)||c.Rp(e)||c.Ru(64)(e)})),h(this,"validatePassword",(function(e){return c.mw(e)||c.wJ(e)||c.Bp(7)(e)||c.Ce(e)})),h(this,"validateName",(function(e){var t=o.requireName&&c.mw(e);return t||c.Bh(e)})),h(this,"validatePhone",(function(e){var t=o.requirePhone&&(c.mw(e)||c.lZ(e));if(t)return t;if(o.selectedCountry&&o.selectedCountry.dialCode!==e)return c.lZ(e)})),h(this,"validateAgreeTermsAndPrivacy",(function(e){return c.Z3("You must agree to the Terms & Conditions and Privacy Policy before registering")(e)})),h(this,"handleValueChange",(function(e,t){if("email"===e)return o.signInFormStore.formManager.setSilently("login",t),void(o.emailExist=void 0);if("countryId"===e&&!o.formManager.formValues.phone){var r=o.configsStore.configs.countries[t];r&&o.formManager.setSilently("phone",r.dialCode)}})),h(this,"setDefaultsForConfigs",(function(){var e=o.configsStore,t=e.configs,r=e.userCountryId;if(void 0!==t&&r){var n=o.configsStore.configs.countries[r];n&&o.formManager.setSilently("phone",n.dialCode),o.formManager.setSilently("countryId",r)}})),(0,n.Gn)(this,{emailExist:n.sH,requirePhone:n.sH,requireName:n.sH,isSigningUp:n.sH,handleValueChange:n.XI,init:n.XI,reset:n.XI,selectedCountry:n.EW,checkEmailExists:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},configsStore:{get:function(){return t.configsStore}},userProfileStore:{get:function(){return t.userProfileStore}},signInFormStore:{get:function(){return t.signInFormStore}},orderFormStore:{get:function(){return t.orderformStore}},reCaptchaStore:{get:function(){return t.reCaptchaStore}},thirdPartySignInStore:{get:function(){return t.thirdPartySignInStore}}}),this.transport=r,this.options=i,this.formManager=new s.A({availableKeys:["email","password","name","countryId","phone","agreeTermsAndPrivacy","agreeSubscription"],initialValues:{email:"",password:"",name:"",countryId:void 0,phone:"",agreeTermsAndPrivacy:!1,agreeSubscription:!1},onResetValues:this.setDefaultsForConfigs,valuesValidator:{email:this.validateEmail,password:this.validatePassword,name:this.validateName,phone:this.validatePhone,agreeTermsAndPrivacy:this.validateAgreeTermsAndPrivacy},onValueChange:this.handleValueChange}),(0,n.mJ)((function(){return o.configsStore&&[o.configsStore.configs,o.configsStore.userCountryId]}),(function(e,t,r){var n=d(e,2),i=n[0],a=n[1];i&&void 0!==a&&(r.dispose(),o.setDefaultsForConfigs())}),{name:"Update SignUpFormStore on configs ready"})}var t,r,i;return t=e,r=[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.requirePhone,r=e.requireName;this.requirePhone=t,this.requireName=r}},{key:"reset",value:function(){this.requirePhone=!1,this.requireName=!1}},{key:"selectedCountry",get:function(){var e=this.configsStore.configs,t=this.formManager.formValues.countryId;if(e&&t)return e.countries[t]}},{key:"checkEmailExists",value:function(){var e=this;return this.formManager.formValues.email.length<2?(this.emailExist=void 0,Promise.resolve()):this.transport({method:"post",url:"/api/registration/validate_email.json",data:{email:this.formManager.formValues.email}}).then((function(e){return e.data.existing_client})).then((function(t){(0,n.h5)((function(){e.emailExist=t}))})).catch((function(t){t.presented=!0,e.errorsStore.handleError(t)}))}},{key:"signUp",value:function(e){var t=this,r=e.email,n=e.password,i=e.name,o=e.countryCode,s=e.phone,c=e.agreeTermsAndPrivacy,u=e.agreeSubscription,d=this.options,f=d.onSignUpSucceeded,p=d.onSignUpFailed;return this.reCaptchaStore.getReCaptchaToken().then((function(e){return t.transport({method:"post",url:"/api/registration.json",data:{email:r,password:(new a.sha256).update(n).digest("hex"),confirmPassword:(new a.sha256).update(n).digest("hex"),fn
2ame:i,mobilePhoneCountryHidden:o,phone:s,agreeTermsAndConditions:c,agreePrivacyPolicy:c,agreeSubscription:u,recaptchaToken:e}})})).then((function(){return(0,l.a)((function(){return t.userProfileStore.startLoadingUnpaidOrders()})),(0,l.a)((function(){return t.userProfileStore.startLoadingWriters()})),t.thirdPartySignInStore.setIsGoogleOneTapSignInEnabled(!1),t.userProfileStore.startLoadingProfile()})).then((function(){f&&f(t.userProfileStore.profile.GAUserId)})).catch((function(e){p&&p(e),t.errorsStore.handleAndRethrow({error:e,intent:"Signing up failed."})}))}},{key:"startSigningUp",value:function(){var e=this,t=this.formManager.formValues,r=t.email,i=t.password,o=t.name,a=t.agreeTermsAndPrivacy,s=t.agreeSubscription,c=this.formManager.formValues.phone,l=this.selectedCountry||{},u=l.code,d=l.dialCode;return 0!==c.length&&c===d&&(c=""),(0,n.h5)((function(){e.isSigningUp=!0})),this.checkEmailExists().then((function(){return e.formManager.submit((function(){return e.signUp({countryCode:u,phone:c,email:r,password:i,name:o,agreeTermsAndPrivacy:Number(a||0),agreeSubscription:Number(s||0)})}))})).finally((function(){(0,n.h5)((function(){e.isSigningUp=!1}))}))}}],r&&p(t.prototype,r),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},51325:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});r(34089),r(21555),r(5858),r(99180),r(55983),r(96656),r(94356),r(45993),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(59161),r(48851),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(95570),r(22892),r(85146),r(11823),r(86940),r(17626),r(84766),r(37210),r(96152),r(34237),r(74874),r(93831),r(40890);var n=r(83794),i=r(3492),o=r(58165),a=r(35638);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(){u=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,c){var l=p(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==s(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&
vendor: 5,791 bytes, line 2
2(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(s(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,c,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,l,"Generator"),d(x,a,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){d(o,n,i,a,s,"next",e)}function s(e){d(o,n,i,a,s,"throw",e)}a(void 0)}))}}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function h(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var y=1,v=3,g=function(){function e(t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"isSubmitting",!1),h(this,"isGoogleOneTapSignInEnabled",!1),h(this,"googleSDKLoaded",!1),h(this,"currentGoogleSignInMethod",void 0),h(this,"onBecomeAuthorizedGlobal",void 0),h(this,"configsStore",void 0),h(this,"userProfileStore",void 0),h(this,"signUpFormStore",void 0),h(this,"signInFormStore",void 0),h(this,"dialogsStore",void 0),h(this,"errorsStore",void 0),h(this,"reCaptchaStore",void 0),(0,n.Gn)(this,{isSubmitting:n.sH,isAppleSign
2InAvailable:n.EW,isGoogleSignInAvailable:n.EW,isThirdPartySignInAvailable:n.EW,authTypeString:n.EW,thirdPartySignIn:n.XI,isGoogleOneTapSignInEnabled:n.sH,currentGoogleSignInMethod:n.sH,setCurrentGoogleSignInMethod:n.XI,setIsGoogleOneTapSignInEnabled:n.XI,googleSDKLoaded:n.sH,loadGoogleSDK:n.XI,clearGoogleSignIn:n.XI}),Object.defineProperties(this,{configsStore:{get:function(){return t.configsStore}},userProfileStore:{get:function(){return t.userProfileStore}},signUpFormStore:{get:function(){return t.signUpFormStore}},signInFormStore:{get:function(){return t.signInFormStore}},dialogsStore:{get:function(){return t.dialogsStore}},errorsStore:{get:function(){return t.errorsStore}},reCaptchaStore:{get:function(){return t.reCaptchaStore}}}),this.transport=r,this.options=i}var t,r,s,l,d,m,g,b,E,w;return t=e,r=[{key:"isAppleSignInAvailable",get:function(){var e=this.configsStore.configs;return!!e&&e.isAppleSignInEnabled}},{key:"isGoogleSignInAvailable",get:function(){var e=this.configsStore.configs;return!!e&&e.isGoogleSignInEnabled}},{key:"isThirdPartySignInAvailable",get:function(){return this.isAppleSignInAvailable||this.isGoogleSignInAvailable}},{key:"authTypeString",get:function(){return this.userProfileStore.isSignUpAuthType?"up":"in"}},{key:"initAppleSignIn",value:function(){var e=this,t=this.configsStore.configs.authenticationProvidersById[v].config,r=t.clientId,n=t.redirectUri;return new Promise((function(t,i){e.$removeAppleSignInScript=(0,o.ki)("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",(function(){window.AppleID.auth.init({clientId:r,redirectURI:n,scope:"name email",usePopup:!0}),t()}),i)})).catch((function(t){e.errorsStore.handleError(t,{intent:"Apple sign in script loading failed."})}))}},{key:"onClickAppleSignIn",value:(w=f(u().mark((function e(){var t,r,n,i,o,a;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getConsent();case 2:return t=e.sent,r=this.signInFormStore.formManager.formValues,e.prev=4,e.next=7,window.AppleID.auth.signIn();case 7:return n=e.sent,i=n.user,o=n.authorization,e.next=12,this.reCaptchaStore.getReCaptchaToken();case 12:return a=e.sent,e.next=15,this.thirdPartySignIn({typeId:v,rememberFor2Weeks:Number(r.rememberFor2Weeks||0),data:{authorization:{token:o.code},user:i,consent:t,recaptchaToken:a}});case 15:e.next=22;break;case 17:e.prev=17,e.t0=e.catch(4),"popup_closed_by_user"===e.t0.error&&(e.t0.presented=!0),this.errorsStore.handleAndRethrow({error:e.t0,intent:"Apple sign in failed."});case 22:case"end":return e.stop()}}),e,this,[[4,17]])}))),function(){return w.apply(this,arguments)})},{key:"clearAppleSignIn",value:function(){this.$removeAppleSignInScript&&this.$removeAppleSignInScript()}},{key:"setCurrentGoogleSignInMethod",value:function(e){this.currentGoogleSignInMethod=e}},{key:"setIsGoogleOneTapSignInEnabled",value:function(e){this.isGoogleOneTapSignInEnabled=e}},{key:"loadGoogleSDK",value:(E=f(u().mark((function e(){var t,r,i=this;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.googleSDKLoaded){e.next=2;break}return e.abrupt("return");case 2:if(t="https://accounts.google.com/gsi/client?hl=en_US",!(r=document.querySelector('script[src="'.concat(t,'"]')))||this.googleSDKLoaded){e.next=9;break}return e.next=7,new Promise((function(e,t){r.onload=e,r.onerror=t}));case 7:return(0,n.h5)((function(){i.googleSDKLoaded=!0})),e.abrupt("return");case 9:return e.prev=9,e.next=12,new Promise((function(e,r){i.$removeGoogleSignInScript=(0,o.ki)(t,e,r)}));case 12:(0,n.h5)((function(){i.googleSDKLoaded=!0})),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(9),this.errorsStore.handleError(e.t0,{intent:"Google sign in script loading failed."});case 18:case"end":return e.stop()}}),e,this,[[9,15]])}))),function(){return E.apply(this,arguments)})},{key:"initGoogleSDK",value:(b=f(u().mark((function e(t){var r=this;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.googleInitPromise){e.next=2;break}return e.abrupt("return",this.googleInitPromise);case 2:return this.googleInitPromise=f(u().mark((function e(){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.loadGoogleSDK();case 2:r.googleSDKLoaded&&(n=r.configsStore.configs.authenticationProvidersById[y].config.clientId,r.onBecomeAuthorizedGlobal="function"==typeof t?t:void 0,window.google.accounts.id.initialize({client_id:n,cancel_on_tap_outside:!1,callback:function(){var e=f(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.handleGoogleCredentialResponse(t);case 2:r.onBecomeAuthorizedGlobal&&r.onBecomeAuthorizedGlobal();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}));case 3:case"end":return e.stop()}}),e)})))(),e.abrupt("return",this.googleInitPromise);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"initGoogleSignInButton",value:(g=f(u().mark((function e(t,r){var o=this;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initGoogleSDK(r);case 2:if(this.googleSDKLoaded){e.next=4;break}return e.abrupt("return");case 4:this.$renderButtonDisposer=(0,n.mJ)((function(){return o.userProfileStore.isSignUpAuthType}),(function(e){t&&window.google.accounts.id.renderButton(t,{theme:"outline",logo_alignment:"center",text:e?"signup_with":"signin_with",locale:"en_US",width:220,click_listener:function(){o.currentGoogleSignInMethod===i.Cr.O
2NE_TAP&&o.cancelGoogleOneTap(),o.setCurrentGoogleSignInMethod(i.Cr.BUTTON)}})}),{fireImmediately:!0});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"renderOneTapPrompt",value:(m=f(u().mark((function e(t){var r=this;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initGoogleSDK(t);case 2:if(this.googleSDKLoaded){e.next=4;break}return e.abrupt("return");case 4:this.$renderOneTapPromptDisposer=(0,n.mJ)((function(){return r.isGoogleOneTapSignInEnabled}),(function(e){e?r.showGoogleOneTap():(r.cancelGoogleOneTap(),r.setCurrentGoogleSignInMethod(i.Cr.BUTTON))}),{fireImmediately:!0});case 5:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"initGoogleOneTapSignIn",value:(d=f(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.userProfileStore.isUpdatingProfile){e.next=3;break}return e.next=3,this.userProfileStore.isUpdatingProfile;case 3:if(this.userProfileStore.isAuthorized||!this.isGoogleSignInAvailable){e.next=7;break}return this.setIsGoogleOneTapSignInEnabled(!0),e.next=7,this.renderOneTapPrompt(t);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"showGoogleOneTap",value:function(){try{window.google.accounts.id.prompt(),this.setCurrentGoogleSignInMethod(i.Cr.ONE_TAP)}catch(e){e.presented=!0,this.errorsStore.handleError(e)}}},{key:"cancelGoogleOneTap",value:function(){try{var e;null===(e=window.google)||void 0===e||null===(e=e.accounts)||void 0===e||e.id.cancel()}catch(e){e.presented=!0,this.errorsStore.handleError(e)}}},{key:"clearGoogleSignIn",value:function(){this.$renderButtonDisposer&&(this.$renderButtonDisposer(),this.$renderButtonDisposer=void 0),this.isGoogleOneTapSignInEnabled||(this.$removeGoogleSignInScript&&this.$removeGoogleSignInScript(),this.$renderOneTapPromptDisposer&&(this.$renderOneTapPromptDisposer(),this.$renderOneTapPromptDisposer=void 0),this.cancelGoogleOneTap(),this.googleSDKLoaded=!1,this.googleInitPromise=void 0)}},{key:"handleGoogleCredentialResponse",value:(l=f(u().mark((function e(t){var r,n,i,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.signUpFormStore.formManager.formValues,n=this.signInFormStore.formManager.formValues,i={agreeTermsAndPrivacy:1,agreeSubscription:Number(r.agreeSubscription||0)},e.prev=3,e.next=6,this.reCaptchaStore.getReCaptchaToken();case 6:return o=e.sent,e.next=9,this.thirdPartySignIn({typeId:y,rememberFor2Weeks:Number(n.rememberFor2Weeks||0),data:{authorization:{token:t.credential},consent:i,recaptchaToken:o}});case 9:e.next=15;break;case 11:e.prev=11,e.t0=e.catch(3),this.errorsStore.handleAndRethrow({error:e.t0,intent:"Google sign in failed."});case 15:case"end":return e.stop()}}),e,this,[[3,11]])}))),function(e){return l.apply(this,arguments)})},{key:"thirdPartySignIn",value:function(e){var t=this,r=this.options,s=r.onThirdPartySignInSuccess,l=r.onThirdPartySignInFailed;return this.isSubmitting=!0,this.transport({method:"post",url:"/api/authentication/thirdPartySignIn.json",data:e}).then((function(e){var r=e.isSignUp;return(0,a.a)((function(){o.sZ.setItem("RememberFor2Weeks",t.signInFormStore.formManager.formValues.rememberFor2Weeks)})),(0,a.a)((function(){return t.userProfileStore.startLoadingUnpaidOrders()})),(0,a.a)((function(){return t.userProfileStore.startLoadingWriters()})),Promise.all([t.userProfileStore.startLoadingProfile(),r])})).then((function(r){var n,o=c(r,2),a=(o[0],o[1]);s&&(e.typeId===v?n="apple":e.typeId===y&&t.currentGoogleSignInMethod===i.Cr.BUTTON?n="google":e.typeId===y&&t.currentGoogleSignInMethod===i.Cr.ONE_TAP&&(n="google_one_tap"),s(n,a,t.userProfileStore.profile.GAUserId)),t.setIsGoogleOneTapSignInEnabled(!1)})).catch((function(e){throw l&&l(),e})).finally((function(){(0,n.h5)((function(){t.isSubmitting=!1}))}))}},{key:"getConsent",value:function(){var e=this;if(!this.userProfileStore.isSignUpAuthType)return Promise.resolve({agreeTermsAndPrivacy:1,agreeSubscription:0});var t=this.signUpFormStore.formManager.formValues;return t.agreeTermsAndPrivacy?Promise.resolve({agreeTermsAndPrivacy:Number(t.agreeTermsAndPrivacy||0),agreeSubscription:Number(t.agreeSubscription||0)}):new Promise((function(t,r){e.dialogsStore.pushDialog(i.g5.MODAL_CONSENT,{onSubmit:function(e){return t({agreeTermsAndPrivacy:Number(e.agreeTermsAndPrivacy||0),agreeSubscription:Number(e.agreeSubscription||0)})},onCancel:r})}))}}],r&&p(t.prototype,r),s&&p(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},41835:(e,t,r)=>{"use strict";r.d(t,{cl:()=>i.A,oS:()=>n.A,rr:()=>o.A});var n=r(22846),i=r(75088),o=r(51325)},35638:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});r(21555),r(5858);function n(){}function i(e){return Promise.resolve(e()).catch(n)}},42344:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(34089),r(21555),r(5858),r(55983),r(1569),r(78366),r(25400),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(58165),o=r(3492),a=r(24446);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function l(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var d=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"coupons",[]),l(this,"isLoadingCoupons",!1),l(this,"errorsStore",void 0),l(this,"transport",void 0),(0,n.Gn)(this,{coupons:n.sH,isLoadingCoupons:n.sH,availableCoupons:n.EW,oldLifetimeCoupon:n.EW,$loadCoupons:n.XI,clear:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r}var t,r,s;return t=e,(r=[{key:"refreshCancellationToken",value:function(){var e;null===(e=this.$token)||void 0===e||e.cancel(),this.$token=new i.XO}},{key:"$loadCoupons",value:function(e){var t=this;return this.refreshCancellationToken(),this.isLoadingCoupons=!0,this.coupons=[],this.transport({method:"get",url:e,token:this.$token}).then((function(e){var r=e.coupons;(0,n.h5)((function(){t.coupons=(0,a.A)(r)}))}
2)).catch((function(e){e.code!==o.I.HTTP_REQUEST_ABORTED&&t.errorsStore.handleAndRethrow({error:e,intent:"Loading coupons failed."})})).finally((function(){(0,n.h5)((function(){t.isLoadingCoupons=!1}))}))}},{key:"oldLifetimeCoupon",get:function(){return this.availableCoupons.find((function(e){return e.isLifetime}))}},{key:"availableCoupons",get:function(){return this.coupons.filter((function(e){return e.isAvailableForUsage})).sort((function(e,t){return t.isLifetime-e.isLifetime}))}},{key:"loadPublicCoupons",value:function(){return this.$loadCoupons("/api/coupons/public")}},{key:"loadOrderCoupons",value:function(e){var t=e?"/api/coupons/order/".concat(e):"/api/coupons/order";return this.$loadCoupons(t)}},{key:"loadCustomerCoupons",value:function(){return this.$loadCoupons("/api/coupons/customer")}},{key:"clear",value:function(){this.coupons.clear()}}])&&c(t.prototype,r),s&&c(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},47990:(e,t,r)=>{"use strict";r.d(t,{f:()=>n.A});var n=r(42344)},24446:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});r(95790),r(96152),r(30935),r(68291);var n=r(3492),i=r(89795);const o=function(e){return e.map((function(e){var t=e.id,r=e.originId,o=e.discountTypeId,a=e.typeId,s=e.serviceTypeId,c=e.value,l=e.createdAt,u=e.expiredAt,d=e.isAvailableForUsage,f=e.code,p=e.orders,h={id:t,originId:r,discountTypeId:o,typeId:a,serviceTypeId:s||void 0,value:c,paperLevelId:e.paperLevelId||void 0,languageStyleId:e.languageStyleId||void 0,createdAt:l?new Date(l):void 0,expiredAt:u?new Date(u):void 0,isAvailableForUsage:d,code:f,orders:p.map((function(e){return{id:e.id,appliedAt:new Date(e.appliedAt)}})),isLifetime:[n.ES.LIFETIME,n.ES.LOYALTY_PROGRAM_LIFETIME_3,n.ES.LOYALTY_PROGRAM_LIFETIME_5,n.ES.LOYALTY_PROGRAM_LIFETIME_7,n.ES.LOYALTY_PROGRAM_LIFETIME_10].includes(r)};if(r===n.ES.MANUAL_REACTIVATION&&"99OFF"===f.code&&(h.rules={maxOrderItems:3,minDeadline:120}),r===n.ES.MANUAL_REACTIVATION&&"20OFF"===f.code&&(h.rules={minAcademicLevel:2}),[n.ES.REFERRAL_REFERRER,n.ES.REFERRAL_REFERRAL].includes(r)&&(h.rules={minPrice:25}),r===n.ES.REWARD_FOR_PARTICIPATION_CX_ACTIVITIES){var m=c+5;h.rules={minPrice:m}}return"STUDYBUDDY99"===f.code&&(h.rules={maxPrice:100,orderServiceTypeIds:[n.B5.ACADEMIC_WRITING],typeOfPaperIds:[2,13,16,39,59,61,79]}),"FIRST30OFF"===f.code&&(h.rules={orderServiceTypeIds:[n.B5.PROGRAMMING,n.B5.CALCULATIONS]}),"NOEFFORTCODE"===f.code&&(h.rules={orderServiceTypeIds:[n.B5.PROGRAMMING]}),"LIFESAVER"===f.code&&(h.rules={minDeadline:24,maxDeadline:24}),new i.A(h)}))}},89795:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(96152);var n=r(58165);const i=(0,n.t0)("Coupon",{id:n.L$.number,typeId:n.L$.number,discountTypeId:n.L$.number,serviceTypeId:n.L$.number.isOptional,originId:n.L$.number,value:n.L$.number,paperLevelId:n.L$.number.isOptional,languageStyleId:n.L$.number.isOptional,expiredAt:n.L$.instanceOf(Date).isOptional,isAvailableForUsage:n.L$.bool,code:n.L$.shape({id:n.L$.number,code:n.L$.string,title:n.L$.string,description:n.L$.string}),orders:n.L$.arrayOf(n.L$.shape({id:n.L$.number,appliedAt:n.L$.instanceOf(Date)})),isLifetime:n.L$.bool,rules:n.L$.object.isOptional})},54634:(e,t,r)=>{"use strict";r.d(t,{e:()=>y});r(59161),r(29416),r(57931),r(95570),r(44318),r(48851),r(96656),r(94356),r(45993),r(95790),r(34089),r(66542),r(21555),r(39170),r(96104),r(25400),r(24493),r(22892),r(54),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180);var n,i=r(83794),o=r(58165),a=r(24289),s=r(3492);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function f(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}var h=(f(n={},s.HA.PROFESSORS_FEEDBACK,"professorFeedback"),f(n,s.HA.UPDATE_CONTACT_INFO,"contactInfoUpdate"),f(n,s.HA.CHOOSE_COUPON,"second10Coupon"),f(n,s.HA.REFERRAL_PROGRAM,"referralProgram"),n),m={promotion_name:"notification bell",promotion_id:"notification_bell"},y=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,"cacheNotificationsVisibility",i.sH.map({})),(0,i.Gn)(this,{bellNotificationsCount:i.EW,$notifications:i.EW,notificationsById:i.EW,isAnyNotificationAvailable:i.EW,setBellNotificationAsSeen:i.XI,trackNotificationBellAttention:i.XI}),Object.defineProperties(this,{userProfileStore:{get:function(){return t.userProfileStore}},errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r,o.HZ.getItem(s.HA.PROFESSORS_FEEDBACK).then((function(e){e&&n.cacheNotificationsVisibility.set(s.HA.PROFESSORS_FEEDBACK,!1)}))}var t,r,n;return t=e,(r=[{key:"$notifications",get:function(){var e=s.HA.PROFESSORS_FEEDBACK,t=s.HA.UPDATE_CONTACT_INFO,r=s.HA.CHOOSE_COUPON,n=s.HA.REFERRAL_PROGRAM,i=this.userProfileStore.profile,o=i.availableOrdersWithProfessorsFeedback,a=i.wasProfessorsFeedbackRevisionRequested,c=i.notifications,l=i.isPhoneNumberValid,u=i.hasSecond10Coupon,d=i.showReferralProgramNotification,f=u,p=(null==o?void 0:o.length)||0,h=p>=1&&p<=3&&!a&&(!this.cacheNotificationsVisibility.has(e)||this.cacheNotificationsVisibility.get(e)),m=!l||Object.values(c).some((function(e){return["whatsApp","sms"].some((function(t){return e[t].value&&e[t].status.id===s._q.SUSPENDED}))}));return[{id:r,isAvailable:f,isActive:f&&(!this.cacheNotificationsVisibility.has(r)||this.cacheNotificationsVisibility.get(r))},{id:e,isAvailable:h,isActive:h},{id:t,isAvailable:m,isActive:m},{id:n,isAvailable:d,isActive:d}]}},{key:"notificationsById",get:function(){return this.$notifications.reduce((function(e,t){return e[t.id]=t,e}),{})}},{key:"isAnyNotificationAvailable",get:function(){return this.$notifications.some((function(e){return e.isAvailable}))}},{key:"bellNotificationsCount",get:function(){return this.$notifications.filter((function(e){return e.isActive})).length}},{key:"trackNotificationBellEvent",value:function(){var e=m.promotion_id;this.$notifications.forEach((function(t){var r=t.id;t.isAvailable&&(e=[e,h[r]].join("_"))})),a.TQ.viewPromotion(u(u({},m),{},{promotion_id:e}))}},{key:"trackNotificationBellAttention",value:function(){this.bellNotificationsCount>0&&a.TQ.viewPromotion(u(u({},m),{},{promotion_id:"".concat(m.promotion_id,"_attention")}))}},{key:"setBellNotificationAsSeen",value:function(e){this.cacheNotificationsVisibility.set(s.HA[e],!1),a.TQ.selectPromotion(u(u({},m),{},{promotion_id:[m.promotion_id,h[e]].join("_")}))}},{key:"markNotificationAsEngaged",value:function(e){var t=this;if(e)return this.transport({method:"post",url:"/api/notification/engage",data:{notificationTypeId:e}}).then((function(){t.userProfileStore.startLoadingProfile()})).catch((function(e){e.presented=!0,t.errorsStore.handleError(e)}))}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},96703:(e,t,r)=>{"use strict";r.d(t,{V:()=>s});r(34089),r(30935),r(68291),r(1569),r(21555),r(44436),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(3492);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,a=void 0,a=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===o(a)?a:String(a)),n)}var i,a}var s=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,n.Gn)(this,{$program:n.EW,isPhoneNumberActionAvailable:n.EW,earningHistory:n.EW,rewardPointsEarned:n.EW,currentDiscountLevelId:n.EW,discountLevels:n.EW,currentDiscountLevel:n.EW,nextDiscountLevel:n.EW,couponCode:n.EW}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},userProfileStore:{get:function(){return t.userProfileStore}},dialogsStore:{get:function(){return t.dialogsStore}}}),this.transport=r}var t,r,o;return t=e,(r=[{key:"$program",get:function(){return this.userProfileStore.profile.customerLoyaltyProgramsById[i.Os.POINTS_BASED_LIFETIME]}},{key:"isPhoneNumberActionAvailable",get:function(){return this.$program.targetActions.includes("add-phone-number")}},{key:"earningHistory",get:function(){return this.$program.earningHistory}},{key:"rewardPointsEarned",get:function(){return this.$program.rewardPointsEarned}},{key:"currentDiscountLevelId",get:function(){return this.$program.currentDiscountLevelId}},{key:"discountLevels",get:function(){return this.$program.discountLevels}},{key:"couponCode",get:function(){return this.$program.couponCode}},{key:"currentDiscountLevel",get:function(){var e=this;return this.discountLevels.find((function(t){var r=t.id;return e.currentDiscountLevelId===r}))}},{key:"nextDiscountLevel",get:function(){var e=this,t=this.discountLevels.findIndex((function(t){return t===e.currentDiscountLevel}))+1;return this.discountLevels[t]}},{key:"handleClickAddPhoneNumber",value:function(){this.dialogsStore.pushDialog(i.g5.MODAL_PHONE_NUMBER_UPDATE)}}])&&a(t.prototype,r),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},61401:(e,t,r)=>{"use strict";r.d(t,{V:()=>n.V,e:()=>i.e});var n=r(96703),i=r(54634)},56637:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function a(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var c=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"report",null),a(this,"hoveredReliabilityId",null),a(this,"onHoverReliability",(function(e){t.hoveredReliabilityId=e})),a(this,"onHoverOff",(function(){t.hoveredReliabilityId=null})),(0,n.Gn)(this,{hoveredReliabilityId:n.sH,setReport:n.XI,onHoverReliability:n.XI,onHoverOff:n.XI,reset:n.XI})}var t,r,i;return t=e,(r=[{key:"setReport",value:function(e){this.report=e}},{key:"reset",value:function(){this.report=null,this.hoveredReliabilityId=null}}])&&o(t.prototype,r),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},31114:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(24493),r(21555),r(22892),r(38415),r(96104),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(83794);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?o(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function c(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var u=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"report",null),c(this,"checkedGroupsById",{}),c(this,"checkedSourcesById",{}),c(this,"hoveredSourcesIds",[]),c(this,"onGroupChange",(function(e,r){if(t.report){t.checkedGroupsById=a(a({},t.checkedGroupsById),{},c({},e,r));var n=t.report.sourceTypesById[e].sourcesIds,i=a({},t.checkedSourcesById);n.forEach((function(e){i[e]=r})),t.checkedSourcesById=i}})),c(this,"onSourceChange",(function(e,r){if(t.report){var n=a(a({},t.checkedSourcesById),{},c({},e,r));t.checkedSourcesById=n;var i=t.report.sourcesById[e].sourceTypeId,o=t.report.sourceTypesById[i].sourcesIds.every((function(e){return n[e]}));t.checkedGroupsById=a(a({},t.checkedGroupsById),{},c({},i,o))}})),c(this,"onHoverOnSource",(function(e){t.hoveredSourcesIds=e})),c(this,"onHoverOffSource",(function(){t.hoveredSourcesIds=[]})),(0,n.Gn)(this,{checkedGroupsById:n.sH,checkedSourcesById:n.sH,hoveredSourcesIds:n.sH,setReport:n.XI,onGroupChange:n.XI,onSourceChange:n.XI,onHoverOnSource:n.XI,onHoverOffSource:n.XI,reset:n.XI})}var t,r,i;return t=e,(r=[{key:"setReport",value:function(e){this.report=e,this.checkedGroupsById=this.getAllCheckedObject(e.sourceTypesIds),this.checkedSourcesById=this.getAllCheckedObject(e.sourcesIds),this.hoveredSourcesIds=[]}},{key:"getAllCheckedObject",value:function(e){return e.reduce((function(e,t){return e[t]=!0,e}),{})}},{key:"reset",value:function(){this.report=null,this.checkedGroupsById={},this.checkedSourcesById={},this.hoveredSourcesIds=[]}}])&&s(t.prototype,r),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},22878:(e,t,r)=>{"use strict";r.d(t,{E:()=>i.A,n:()=>n.A});var n=r(31114),i=r(56637)},12870:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(34089),r(96656),r(21555),r(5858),r(35495),r(94356),r(45993),r(38415),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(95570),r(22892),r(85146),r(11823),r(86940),r(17626),r(84766);var n=r(83794),i=r(22878),o=r(64829),a=r(84827);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,571 bytes, line 2
2))}function I(e,t){function r(i,o,a,c){var l=p(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==s(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(s(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,a,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function l(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function d(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var p=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"isLoading",!0),d(this,"plagiarismReportManager",new i.n),d(this,"aiReportManager",new i.E),d(this,"transport",void 0),d(this,"errorsStore",void 0),(0,n.Gn)(this,{isLoading:n.sH,setPlagiarismReport:n.XI,setAIReport:n.XI,setLoading:n.XI,getReports:n.XI,reset:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r}var t,r,s,f,p;
2return t=e,r=[{key:"setLoading",value:function(e){this.isLoading=e}},{key:"setPlagiarismReport",value:function(e){this.plagiarismReportManager.reset(),this.plagiarismReportManager.setReport(e)}},{key:"setAIReport",value:function(e){this.aiReportManager.reset(),this.aiReportManager.setReport(e)}},{key:"getPlagiarismReport",value:function(e){var t=this;return this.transport({method:"get",url:"/api/files/".concat(e,"/plagiarismReport")}).then(o.A).then((function(e){return t.setPlagiarismReport(e)})).catch((function(e){throw t.errorsStore.handleAndRethrow({error:e,intent:"Loading report failed."}),e}))}},{key:"getAIReport",value:function(e){var t=this;return this.transport({method:"get",url:"/api/files/".concat(e,"/aiReport")}).then(a.A).then((function(e){return t.setAIReport(e)})).catch((function(e){throw e.presented=!0,t.errorsStore.handleError(e),e}))}},{key:"getReports",value:(f=c().mark((function e(t,r){var i=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setLoading(!0),e.prev=1,e.next=4,Promise.allSettled([this.getPlagiarismReport(t),this.getAIReport(t)]);case 4:e.sent.every((function(e){return"rejected"===e.status}))&&"function"==typeof r&&r();case 7:return e.prev=7,(0,n.h5)((function(){i.setLoading(!1)})),e.finish(7);case 10:case"end":return e.stop()}}),e,this,[[1,,7,10]])})),p=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=f.apply(e,t);function o(e){l(i,r,n,o,a,"next",e)}function a(e){l(i,r,n,o,a,"throw",e)}o(void 0)}))},function(e,t){return p.apply(this,arguments)})},{key:"reset",value:function(){this.isLoading=!0,this.plagiarismReportManager.reset(),this.aiReportManager.reset()}}],r&&u(t.prototype,r),s&&u(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},35490:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(34089),r(96656),r(21555),r(5858),r(94356),r(45993),r(1569),r(68450),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851);var n=r(83794),i=r(61938);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function s(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"orderId",void 0),s(this,"fileId",void 0),s(this,"options",[{id:"niceJob",title:"Nice job! Continue writing.",placeholder:"You can add any comments you consider important here."},{id:"willReview",title:"I will review this part and get back to you with comments soon.",placeholder:"Write anything you feel necessary for the writer to know here."}]),s(this,"formManager",new i.A({availableKeys:["comment","commentType"],initialValues:{comment:"",commentType:"niceJob"}})),s(this,"ordersStore",void 0),s(this,"orderFilesStore",void 0),s(this,"userProfileStore",void 0),s(this,"errorsStore",void 0),s(this,"transport",void 0),(0,n.Gn)(this,{orderId:n.sH,fileId:n.sH,currentOption:n.EW,noteBody:n.EW,init:n.XI,reset:n.XI}),Object.defineProperties(this,{ordersStore:{get:function(){return t.ordersStore}},orderFilesStore:{get:function(){return t.orderFilesStore}},userProfileStore:{get:function(){return t.userProfileStore}},errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r}var t,r,o;return t=e,(r=[{key:"approvePart",value:function(){var e=this,t=this.orderId,r=this.fileId;return this.formManager.submit((function(){return e.transport({method:"post",url:"/api/orders/".concat(t,"/approve_part.json"),data:{fileId:r,noteBody:e.n
2oteBody}}).then((function(){var r=e.ordersStore.getOrderStore(t);return e.userProfileStore.sendFingerprint({submitAction:"approve",orderId:t}),Promise.all([r.loadOrder(),e.orderFilesStore.loadOrderFiles()])})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Approving order part failed."})}))}))}},{key:"currentOption",get:function(){var e=this;return this.options.find((function(t){return t.id===e.formManager.formValues.commentType}))}},{key:"noteBody",get:function(){var e=this.formManager.formValues.comment;return e?'"'.concat(this.currentOption.title,'" - ').concat(e):'"'.concat(this.currentOption.title,'"')}},{key:"init",value:function(e){var t=e.orderId,r=e.fileId;this.orderId=t,this.fileId=r}},{key:"reset",value:function(){this.orderId=void 0,this.fileId=void 0,this.formManager.resetForm()}}])&&a(t.prototype,r),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},63029:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(25400),r(21555),r(66542),r(34089),r(24493),r(22892),r(96656),r(5858),r(94356),r(45993),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851);var n=r(83794),i=r(3492),o=r(61938),a=r(97057),s=r(58165);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function u(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}var f=function(e){switch(e){case i.$2.BELOW_EXPECTATIONS:return"Thanks! We will consider your feedback to become better.";case i.$2.AS_EXPECTED:return"Thank you for sharing your feedback!";case i.$2.ABOVE_EXPECTATIONS:return"We are happy when you are happy âºï¸";default:return"Enjoy your paper!"}},p=function(){function e(t,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"orderId",void 0),u(this,"formManager",new o.A({availableKeys:["rate","rateReasonsIds","commentText"],initialValues:{rate:void 0,rateReasonsIds:[],commentText:""},valuesValidator:{rate:function(e){if(i.isLargeOrder)return a.mw(e)},rateReasonsIds:function(e,t){if(i.isLargeOrder&&t.rate){var r=i.configsStore.configs.evrRatesById,n=e.filter((function(e){return r[t.rate].reasons.some((function(t){return t.id===e}))}));return a.OR(n,"reason")}}}})),u(this,"errorsStore",void 0),u(this,"ordersStore",void 0),u(this,"orderFilesStore",void 0),u(this,"configsStore",void 0),u(this,"transport",void 0),u(this,"notificationsStore",void 0),u(this,"userProfileStore",void 0),(0,n.Gn)(this,{orderId:n.sH,order:n.EW,isLargeOrder:n.EW,isLowRating:n.EW,reasons:n.EW,showTipsDialog:n.EW,init:n.XI,reset:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},ordersStore:{get:function(){return t.ordersStore}},orderFilesStore:{get:function(){return t.orderFilesStore}},configsStore:{get:function(){return t.configsStore}},notificationsStore:{get:function(){return t.notificationsStore}},userProfileStore:{get:function(){return t.userProfileStore}}}),this.transport=r}var t,r,c;return t=e,(r=[{key:"order",get:function(){if(this.orderId)return this.ordersStore.getOrderStore(this.orderId)}},{key:"isLargeOrder",get:function(){if(this.order){var e=this.order,t=e.pages,r=e.spacing,n=e.charts,i=e.slides;return(0,s.ri)({pages:t,spacing:r,charts:n,slides:i})>=30}}},{key:"isLowRating",get:function(){return this.formManager.formValues.rate===i.$2.BELOW_EXPECTATIONS}},{key:"reasons",get:function(){if(this.configsStore.configs){var e=this.configsStore.configs.evrRatesById,t=this.formManager.formValues.rate;return t&&e[t].reasons}}},{key:"showTipsDialog",get:function(){var e=this.configsStore.configs;return!!e&&e.isTipsForWriterEnabled}},{key:"startApprove",value:function(e){var t=this,r=this.configsStore.configs.evrRatesById,n=this.formManager.formValues,i={evrRateId:n.rate,noteBody:n.commentText};return n.rateReasonsIds.forEach((function(e){r[n.rate].reasons.some((function(t){return t.id===e}))&&(i["evrReasonIds[".concat(e,"]")]=e)})),this.formManager.submit((function(){return t.transport({method:"post",url:"/api/orders/".concat(e,"/approve_order.json"),data:i}).then((function(){var r=t.ordersStore.setOrderStore(e);return t.notificationsStore.pushNotification({title:f(n.rate),view:"success"}),t.userProfileStore.sendFingerprint({submitAction:"approve",orderId:e}),Promise.all([r.loadOrder(),t.orderFilesStore.loadOrderFiles()]).then((function(){return{showTipsDialog:t.showTipsDialog}}))})).catch((function(e){t.errorsStore.handleAndRethrow({error:e,intent:"Approving order failed."})}))}))}},{key:"init",value:function(e){var t=e.orderId;this.orderId=t}},{key:"reset",value:function(){this.orderId=void 0,this.formManager.resetForm()}}])&&l(t.prototype,r),c&&l(t,c),Object.defineProperty(t,"prototype",{writable:!1}),e}()},27039:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});r(95790),r(34089),r(25400),r(21555),r(44436),r(1569),r(5858),r(55983),r(78366),r(93831
2),r(98304),r(97041),r(96152),r(85146),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(29416),r(57931),r(95570),r(24493),r(22892),r(44318),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(3492),o=r(58165),a=r(98574),s=r(52606),c=r(69623),l=r(27094),u=r(27028),d=r(23853),f=r(64545),p=r(25216);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function g(e,t,r){return(t=b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===h(t)?t:String(t)}var E=function(){function e(t,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"orderId",void 0),g(this,"isLoadingFiles",!1),g(this,"isLoadingSources",!1),g(this,"sources",void 0),g(this,"beingDeletedById",n.sH.map({})),g(this,"$lastFilesUpdateTS",0),g(this,"errorsStore",void 0),g(this,"ordersStore",void 0),g(this,"dialogsStore",void 0),g(this,"configsStore",void 0),g(this,"transport",void 0),g(this,"$token",void 0),g(this,"files",[]),g(this,"filesManager",void 0),(0,n.Gn)(this,{orderId:n.sH,isLoadingFiles:n.sH,isLoadingSources:n.sH,sources:n.sH,files:n.sH,beingDeletedById:n.sH,$lastFilesUpdateTS:n.sH,configure:n.XI,siteFiles:n.EW,customerFiles:n.EW,originalOrderFiles:n.EW,lastSiteFileId:n.EW,patchSiteFile:n.XI,markFileAsDownloaded:n.XI,markSourceAsDownloaded:n.XI,loadOrderFiles:n.XI,deleteFile:n.XI,loadOrderSources:n.XI,clear:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},ordersStore:{get:function(){return t.ordersStore}},dialogsStore:{get:function(){return t.dialogsStore}},configsStore:{get:function(){return t.configsStore}}}),this.filesManager=new a.A({uploadTransport:function(e){return i.$uploadFileInOrder(e)},deleteTransport:function(e){return i.$deleteFile(e)},onError:function(){var e;(e=i.errorsStore).handleError.apply(e,arguments)},configsStore:this.configsStore,autoUpload:!1}),this.transport=r}var t,r,h;return t=e,(r=[{key:"configure",value:function(e){this.clear(),this.orderId=e,this.$token=new o.XO}},{key:"siteFiles",get:function(){return this.files.filter((function(e){return!e.isUploadedByCustomer&&e.fileTypeId!==i.a0.UNSELECTED_FILE_FOR_PAID_REVISION&&e.fileTypeId!==i.a0.SELECTED_FILE_FOR_PAID_REVISION}))}},{key:"customerFiles",get:function(){return this.files.filter((function(e){return e.isUploadedByCustomer&&e.fileTypeId!==i.a0.UNSELECTED_FILE_FOR_PAID_REVISION&&e.fileTypeId!==i.a0.SELECTED_FILE_FOR_PAID_REVISION}))}},{key:"originalOrderFiles",get:function(){return this.files.filter((function(e){return e.fileTypeId===i.a0.SELECTED_FILE_FOR_PAID_REVISION||e.fileTypeId===i.a0.UNSELECTED_FILE_FOR_PAID_REVISION}))}},{key:"lastSiteFileId",get:function(){return this.siteFiles.length>0?this.siteFiles[0].id:void 0}},{key:"$uploadFileInOrder",value:function(e){var t=this,r=e.instanceId,n=e.blob,i=e.onProgress;return this.transport({method:"post",url:"/api/order_files/customer_files_upload/".concat(this.orderId),data:(0,c.A)({instanceId:r,blob:n},this.configsStore),onProgress:i,token:this.$token,expectSuccessFlag:!1}).then((function(e){return(0,l.A)(e,t.configsStore)}))}},{key:"$deleteFile",value:function(e){return this.transport({method:"post",url:"/api/potato_files/deleteRequest/".concat(e),data:{},expectSuccessFlag:!1})}},{key:"patchSiteFile",value:function(e,t){var r=this.siteFiles.findIndex((function(t){return t.id===e}));r>-1&&(this.siteFiles[r]=new f.t(y(y({},this.siteFiles[r]),t)))}},{key:"markFileAsDownloaded",value:function(e){var t=this.siteFiles.find((function(t){return t.id===e}));t&&t.isNew&&(this.ordersStore.getOrderStore(this.orderId).newFilesCount-=1,this.patchSiteFile
2(e,{isNew:!1,isDownloaded:!0}))}},{key:"markSourceAsDownloaded",value:function(e){var t=this.sources.files.findIndex((function(t){return t.id===e}));if(-1!==t){var r=this.sources.files[t];r&&r.isNew&&(this.sources.files[t]=new p.k(y(y({},r),{},{isNew:!1})))}}},{key:"loadOrderFiles",value:function(){var e=this,t=this.orderId;return this.isLoadingFiles=!0,this.transport({method:"get",url:"/api/orders/".concat(t,"/files.json"),token:this.$token}).then((function(e){return(0,u.v)(e)})).then((function(t){var r=t.files.sort((function(e,t){return t.createdAt.getTime()-e.createdAt.getTime()}));(0,n.h5)((function(){e.files.replace(r),e.$lastFilesUpdateTS=Date.now()}))})).catch((function(r){var n=t?"order #".concat(t):"order",i="Loading ".concat(n," files failed.");e.errorsStore.handleAndRethrow({error:r,intent:i})})).finally((function(){(0,n.h5)((function(){e.isLoadingFiles=!1}))}))}},{key:"loadFilesIfNeeded",value:function(){return this.$lastFilesUpdateTS>Date.now()-6e5?Promise.resolve():this.loadOrderFiles()}},{key:"deleteFile",value:function(e){var t=this,r=this.files.find((function(t){return t.id===e})),o=r?r.name:"";return this.beingDeletedById.set(e,!0),this.$deleteFile(e).then((function(e){return e.orderPayed&&t.dialogsStore.pushDialog(i.g5.MODAL_FILES_DELETED,{fileName:o}),t.loadOrderFiles()})).catch((function(e){t.errorsStore.handleAndRethrow({error:e,intent:"Deleting file failed."})})).finally((function(){(0,n.h5)((function(){t.beingDeletedById.delete(e)}))}))}},{key:"loadOrderSources",value:function(){var e=this;if(!this.sources&&!this.isLoadingSources){var t=this.orderId;return this.isLoadingSources=!0,this.transport({method:"get",url:"/api/orders/".concat(t,"/files/sources.json"),token:this.$token}).then(d.A).then((function(t){return(0,n.h5)((function(){e.sources={available:t.hasSources,files:t.hasSources?t.files:void 0,message:t.hasSources?void 0:(0,s.a)(t.message)}})),e.sources})).catch((function(r){var n=t?"order #".concat(t):"order",i="Loading ".concat(n," sources failed.");e.errorsStore.handleAndRethrow({error:r,intent:i})})).finally((function(){(0,n.h5)((function(){e.isLoadingSources=!1}))}))}return Promise.resolve()}},{key:"dispose",value:function(){this.$token&&this.$token.cancel(),this.filesManager.dispose()}},{key:"clear",value:function(){this.orderId=void 0,this.isLoadingFiles=!1,this.isLoadingSources=!1,this.$lastFilesUpdateTS=0,this.sources=void 0,this.files.clear(),this.beingDeletedById.clear(),this.filesManager.reset()}}])&&v(t.prototype,r),h&&v(t,h),Object.defineProperty(t,"prototype",{writable:!1}),e}()},73411:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});r(34089),r(68450),r(96104),r(21555),r(95790),r(25400),r(79683),r(69399),r(96656),r(5858),r(94356),r(45993),r(85028),r(58948),r(66264),r(23510),r(99180),r(59161),r(48851);var n=r(83794),i=r(61938),o=r(30350),a=r.n(o),s=r(97057),c=r(3492),l=r(98574),u=r(58165),d=r(69623),f=r(27094);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function m(e,t,r){return(t=y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===p(t)?t:String(t)}var v=function(){function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),m(this,"orderId",void 0),m(this,"formManager",void 0),m(this,"filesManager",void 0),m(this,"configsStore",void 0),m(this,"errorsStore",void 0),m(this,"ordersStore",void 0),m(this,"orderFilesStore",void 0),m(this,"transport",void 0),m(this,"$token",void 0),(0,n.Gn)(this,{orderId:n.sH,formManager:n.sH,init:n.XI,charactersLeftCount:n.EW,clear:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},ordersStore:{get:function(){return t.ordersStore}},orderFilesStore:{get:function(){return t.orderFilesStore}},configsStore:{get:function(){return t.configsStore}}}),this.formManager=new i.A({availableKeys:["refundType","reasonContent","reasonSources","reasonFormat","reasonGrammar","reasonInstructions","reasonOther","reasonContentChecked","reasonSourcesChecked","reasonFormatChecked","reasonGrammarChecked","reasonInstructionsChecked","reasonOtherChecked","uploadedFilesIds"],initialValues:{uploadedFilesIds:[],refundType:void 0},valuesValidator:{refundType:function(e){return s.mw(e)},uploadedFilesIds:function(e,t){return t.refundType===c._i.PROFESSORS_FEEDBACK_REFUND?s.OR(e,"file"):null}},otherErrorsValidator:function(){return[!o.formManager.formValues.reasonContentChecked&&!o.formManager.formValues.reasonSourcesChecked&&!o.formManager.formValues.reasonFormatChecked&&!o.formManager.formValues.reasonGrammarChecked&&!o.formManager.formValues.reasonInstructionsChecked&&!o.formManager.formValues.reasonOtherChecked&&new(a())("You have to select at least 1 section",c.I.VALIDATION_FAILED),o.charactersLeftCount>0&&new(a())("You have to write at least 300 characters",c.I.VALIDATION_FAILED)]}}),this.filesManager=new l.A({onUpdateFiles:function(e){return o.formManager.setSilently("uploadedFilesIds",e)},uploadTransport:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.$uploadFile.apply(o,t.concat([o,o.$token]))}
2,deleteTransport:function(e){return o.$deleteFile(e)},onError:function(){var e;(e=o.errorsStore).handleError.apply(e,arguments)},configsStore:this.configsStore}),this.transport=r}var t,r,o;return t=e,(r=[{key:"init",value:function(e){this.orderId=e,this.$token=new u.XO}},{key:"$uploadFile",value:function(e,t,r){var n=e.instanceId,i=e.blob,o=e.onProgress;return this.transport({method:"post",url:"/api/potato_files/potato_customer_files_upload",data:(0,d.A)({instanceId:n,blob:i}),onProgress:o,token:r,expectSuccessFlag:!1}).then((function(e){return(0,f.A)(e,t.configsStore)}))}},{key:"$deleteFile",value:function(e){return this.transport({method:"post",url:"/api/potato_files/deleteRequest/".concat(e),data:{},expectSuccessFlag:!1})}},{key:"charactersLeftCount",get:function(){var e=this;return 300-["reasonContentChecked","reasonSourcesChecked","reasonFormatChecked","reasonGrammarChecked","reasonInstructionsChecked","reasonOtherChecked"].filter((function(t){return e.formManager.formValues[t]})).map((function(e){switch(e){case"reasonContentChecked":return"reasonContent";case"reasonSourcesChecked":return"reasonSources";case"reasonFormatChecked":return"reasonFormat";case"reasonGrammarChecked":return"reasonGrammar";case"reasonInstructionsChecked":return"reasonInstructions";case"reasonOtherChecked":return"reasonOther";default:return Symbol("reasonUndefined")}})).reduce((function(t,r){return t+(e.formManager.formValues[r]||"").length}),0)}},{key:"startRefund",value:function(){var e=this;return this.formManager.submit((function(){var t=e.orderId,r=e.formManager.formValues,i={refundType:r.refundType===c._i.FULL_REFUND?1:2,withProfessorsFeedback:r.refundType===c._i.PROFESSORS_FEEDBACK_REFUND,"fileIds[]":r.uploadedFilesIds.length>0&&(0,n.HO)(r.uploadedFilesIds),noteBody:{content:r.reasonContent,sources:r.reasonSources,format:r.reasonFormat,grammar:r.reasonGrammar,instructions:r.reasonInstructions,other:r.reasonOther}};return e.formManager.submit((function(){return e.filesManager.startUploadingAllSettledFiles().then((function(){return e.transport({method:"post",url:"/api/orders/".concat(t,"/request_refund.json"),data:i})})).then((function(){var r=e.ordersStore.setOrderStore(t);return Promise.all([r.loadOrder(),e.orderFilesStore.loadOrderFiles()])})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Requesting order refund failed."})}))}))}))}},{key:"clear",value:function(){this.orderId=void 0,this.formManager.resetForm(),this.filesManager.dispose(),this.$token.cancel(),this.filesManager.reset()}}])&&h(t.prototype,r),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},62883:(e,t,r)=>{"use strict";r.d(t,{Y4:()=>s.A,fz:()=>a.A,n4:()=>n.A,xi:()=>i.A,yL:()=>o.A});var n=r(27039),i=r(63029),o=r(35490),a=r(73411),s=r(12870)},84827:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(95790),r(28443);var n=r(93117);function i(e){var t=e.data;return new n.jx({status:t.status,conclusion:t.conclusion,chunks:t.chunks.map((function(e){return new n.L2(e)})),content:t.content,processedPercent:parseFloat(t.processedPercent),strongPercent:parseFloat(t.strongPercent),likelyPercent:parseFloat(t.likelyPercent)})}},27094:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(37210);var n=r(30350),i=r.n(n),o=r(3492),a=r(24049);const s=function(e,t){if(void 0===e||!1===Array.isArray(e.files))throw new(i())("Invalid JSON",o.I.JSON_PARSE);if(1!==e.files.length)throw new(i())("Failed to upload file",o.I.INVALID_DATA);return(0,a.A)(e.files[0],t)}},24049:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(85146),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993);var n=r(30350),i=r.n(n),o=r(3492);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}const s=function(e){if(void 0===e||"object"!==a(e))throw new(i())("Invalid JSON",o.I.JSON_PARSE);if(e.error)throw new(i())(e.error,o.I.SERVER_VALIDATION);return{isUploaded:!0,isUploading:!1,id:e.id,deleteUrl:e.deleteUrl,name:e.newName||e.name,size:e.size}}},27028:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});r(85146),r(96152),r(95790);var n=r(64545),i=function(e,t){return new n.K({files:e.files?e.files.map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new n.t({id:e.id,downloadId:e.downloadId,name:e.name,fileType:e.fileType,fileTypeId:e.fileTypeId,isApprovedByCustomer:!!e.isApprovedByCustomer,approvedAt:e.clientApprovedAtUnixTime?new Date(e.clientApprovedAtUnixTime):void 0,createdAt:new Date(e.createdAtUnixTime),size:e.size,isPart:!!e.isPart,isUploadedByCustomer:e.isUploadedByCustomer||t,downloadLink:e.downloadLink,isDownloaded:!!e.isDownloaded,isNew:!!e.isNew,hoursAgoUploaded:e.hoursAgoUploaded,actionLabel:e.actionLabel||void 0,downloadButtonVisible:!!e.downloadButtonVisible,words:(e.words&&e.words)>0?e.words:void 0,wordsText:e.wordsText||void 0,hasPlagiarismReport:B
2oolean(e.hasPlagiarismReport)})}(e,t)})):[]})}},23853:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(85146),r(79683),r(69399),r(96152),r(95790);var n=r(25216);const i=function(e){return new n.b({hasSources:e.sources&&e.sources.length>0||!1,message:e.message||void 0,files:e.sources&&e.sources.length>0?e.sources.map((function(e){return function(e){return new n.k({id:e.id,name:e.name,description:e.description,isNew:e.isNew,createdAt:new Date(e.createdAt)})}(e)})):[]})}},64829:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(95790),r(96104),r(21555),r(25400),r(28443),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(29416),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(40760);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=e.data,r=t.sourceTypes,i=t.sources,o=t.nodes,s=t.percent;return new n.hl({sourceTypesIds:r.map((function(e){return e.id})),sourceTypesById:r.reduce((function(e,t){return e[t.id]=a(a({},t),{},{sourcesIds:i.filter((function(e){return e.sourceTypeId===t.id})).map((function(e){return e.id}))}),e}),{}),sourcesIds:i.map((function(e){return e.id})),sourcesById:i.reduce((function(e,t){return e[t.id]=t,e}),{}),nodes:o.map((function(e){return new n.bP(e)})),percent:parseFloat(s)})}},93117:(e,t,r)=>{"use strict";r.d(t,{L2:()=>i,jx:()=>o});var n=r(58165),i=(0,n.t0)("Chunks",{reliability:n.L$.number,position:n.L$.arrayOf(n.L$.number)}),o=((0,n.t0)("Conclusion",{conclusion:n.L$.string,conclusionColor:n.L$.string}),(0,n.t0)("AIReport",{status:n.L$.string,likelyPercent:n.L$.number.isOptional,processedPercent:n.L$.number.isOptional,strongPercent:n.L$.number.isOptional,conclusion:n.L$.shape({conclusion:n.L$.string,conclusionColor:n.L$.string}).isOptional,chunks:n.L$.arrayOf(n.L$.instanceOf(i)).isOptional,content:n.L$.string.isOptional}))},64545:(e,t,r)=>{"use strict";r.d(t,{K:()=>o,t:()=>i});r(96152);var n=r(58165),i=(0,n.t0)("OrderFile",{id:n.L$.number,downloadId:n.L$.number.isOptional,name:n.L$.string,fileType:n.L$.string,fileTypeId:n.L$.number.isOptional,isApprovedByCustomer:n.L$.bool,approvedAt:n.L$.instanceOf(Date).isOptional,createdAt:n.L$.instanceOf(Date),size:n.L$.number.isOptional,isUploadedByCustomer:n.L$.bool,downloadLink:n.L$.string,isDownloaded:n.L$.bool,isNew:n.L$.bool,hoursAgoUploaded:n.L$.string,actionLabel:n.L$.string.isOptional,downloadButtonVisible:n.L$.bool.isOptional,words:n.L$.number.isOptional,wordsText:n.L$.string.isOptional,hasPlagiarismReport:n.L$.bool}),o=(0,n.t0)("OrderFiles",{orders:n.L$.arrayOf(n.L$.instanceOf(i)).isOptional})},25216:(e,t,r)=>{"use strict";r.d(t,{b:()=>o,k:()=>i});r(96152);var n=r(58165),i=(0,n.t0)("OrderSource",{id:n.L$.number,name:n.L$.string,description:n.L$.string,createdAt:n.L$.instanceOf(Date),isNew:n.L$.bool}),o=(0,n.t0)("OrderSources",{hasSources:n.L$.bool,message:n.L$.string.isOptional,files:n.L$.arrayOf(n.L$.instanceOf(i)).isOptional})},40760:(e,t,r)=>{"use strict";r.d(t,{bP:()=>a,hl:()=>s});var n=r(58165),i=(0,n.t0)("SourceType",{id:n.L$.number,title:n.L$.string,sourcesIds:n.L$.arrayOf(n.L$.number)}),o=(0,n.t0)("Source",{id:n.L$.number,title:n.L$.string,sourceTypeId:n.L$.number,url:n.L$.string,percent:n.L$.number.isOptional}),a=(0,n.t0)("Node",{text:n.L$.string,sourceIds:n.L$.arrayOf(n.L$.number)}),s=(0,n.t0)("PlagReport",{sourceTypesIds:n.L$.arrayOf(n.L$.number),sourceTypesById:n.L$.objectOf(n.L$.instanceOf(i)),sourcesIds:n.L$.arrayOf(n.L$.number),sourcesById:n.L$.objectOf(n.L$.instanceOf(o)),nodes:n.L$.arrayOf(n.L$.instanceOf(a)),percent:n.L$.number})},69623:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){var t=e.blob,r=e.instanceId,n=new window.FormData;return n.append("files[]",t),n.append("file_number[]",r),n}},52606:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});var n=function(e){return"SOURCES_NOT_READY"===e?"The sources that the writer has used in your order will be uploaded here when the writer finishes the work.":"Unknown sources ErrorCode"}},14517:(e,t,r)=>{"use strict";r.d(t,{A:()=>S});r(30935),r(68291),r(25400),r(21555),r(39170),r(95570),r(24493),r(22892),r(68450),r(5858),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(29416),r(57931),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(85146),r(11823),r(86940),r(17626),r(84766),r(37210),r(74874),r(96152),r(34237),r(93831
vendor: 5,604 bytes, line 2
2),r(40890);var n=r(83794),i=r(3492),o=r(58165),a=r(65135);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(){u=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,c){var l=p(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==s(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(s(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,c,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,l,"Generator"),d(x,a,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function h(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}function y(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){y(o,n,i,a,s,"next",e)}function s(e){y(o,n,i,a,s,"throw",e)}a(void 0)}))}}var g="uof-closed-notifications";function b(){return E.apply(this,arguments)}function E(){return E=v(u().mark((function e(){var t,r,n=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="local"===(n.length>0&&void 0!==n[0]?n[0]:"local")?o.HZ:o.sZ,e.next=4,t.getItem(g);case 4:return r=e.sent,e.abrupt("return",r||[]);case 6:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function w(e){return("local"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"local")?o.HZ:o.sZ).setItem(g,e)}var S=function(){function e(t){var r,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"$disposers",[]),h(this,"notificationsById",(h(r={},i.TB.DISCIPLINE_IS_NOCOLLAGE,{id:i.TB.DISCIPLINE_IS_NOCOLLAGE,isActive:!1,props:{type:i.ls.DANGER,title:"Year of study doesnât fit",text:"The Discipline youâve selected is not typical for the given Year of study. Change either of them to fix it.",primaryButton:{text:"Change Year of study",onClick:function(){o.formState.stepsManager.goToStepWithFeature(i.ks.ACADEMIC_LEVEL)}},secondaryButton:{text:"Change Discipline",onClick:function(){o.formState.stepsManager.goToStepWithFeature(i.ks.DISCIPLINE)}}}}),h(r,i.TB.ACADEMIC_LEVEL_NO_DISSERTATION,{id:i.TB.ACADEMIC_LEVEL_NO_DISSERTATION,isActive:!1,props:{type:i.ls.DANGER,title:"Year of study doesnât fit",text:"Your Year of study is not typical for the Type of paper youâve selected. Change either of them to fix it.",primaryButton:{text:"Change Year of study",onClick:function(){o.formState.stepsManager.goToStepWithFeature(i.ks.ACADEMIC_LEVEL)}},secondaryButton:{text:"Change Type of paper",onClick:function(){o.formState.stepsManager.goToStepWithFeature(i.ks.TYPE_OF_PAPER)}}}}),h(r,i.TB.DISCIPLINE_REQUIRED,{id:i.TB.DISCIPLINE_REQUIRED,isActive:!1,props:{type:i.ls.DANGER,title:"Discipline is required",text:"Fill out the field, itâs essential.",primaryButton:{text:"Select Discipline",onClick:function(){o.formState.stepsManager.goToStepWithFeature(i.ks.DISCIPLINE)}}}}),h(r,i.TB.TYPE_OF_PAPER_REQUIRED,{id:i.TB.TYPE_OF_PAPER_REQUIRED,isActive:!1,props:{type:i.ls.DANGER,title:"Type of paper is required",text:"Fill out the field, itâs essential.",primaryButton:{text:"Select Type of paper",onClick:function(){o.formState.stepsManager.goToStepWithFeature(i.ks.TYPE_OF_PAPER)}}}}),h(r,i.TB.PAPER_FORMAT_REQUIRED,{id:i.TB.PAPER_FORMAT_REQUIRED,isActive:!1,props:{type:i.ls.DANGER,title:"Paper format is required",text:"Fill out the field, itâs essential.",primaryButton:{text:"Select Paper format",onClick:function(){o.formState.stepsManager.goToStepWithFeature(i.ks.PAPER_FORMAT)}}}}),h(r,i.TB.ALL_ZERO,{id:i.TB.ALL_ZERO,isActive:!1,props:{type:i.ls.DANGER,title:"Add pages, slides, or charts",text:"At least 1 page (100 words or more), slide, or chart should be selected for us to proceed with your order.",primaryButton:{text:"Add items",onClick:function(){o.formState.stepsManager.goToStepWithFeature(i.ks.PAGES_QTY)}}}}),h(r,i.TB.ALL_ZERO_SINGLE_SPACED,{id:i.TB.ALL_ZERO_SINGLE_SPACED,isActive:!1,props:{type:i.ls.DANGER,title:"Add pages, slides, or charts",text:"At least 1 page (200 words or more), slide, or chart should be selected for us to proceed with your order.",primaryButton:{text:"Add items",onClick:function(){o.formState.stepsManager.goToStepWithFeature(i.ks.PAGES_QTY)}}}}),h(r,i.TB.FILES_DESCRIPTION_REQUIRED,{id:i.TB.FILES_DESCRIPTION_REQUIRED,isActive:!1,props:{type:i.ls.DANGER,title:"File description is required",text:"Fill out the field, itâs essential.",primaryButton:{text:"Select File description",onClick:function(){o.formState.stepsManager.goToStepWithFeature(i.ks.FILES)}}}}),h(r,i.TB.NO_FILES_AND_INSTRUCTIONS,{id:i.TB.NO_FILES_AND_INSTRUCTIONS,isActive:!1,props:{type:i.ls.WARNING,title:"No instructions or files added",text:"Provide instructions or upload files to let us create an assignment you would love â¤ï¸",primaryButton:{text:"Add instructions",onClick:function(){o.formState.stepsManager.goToStepWithFeature(i.ks.PAPER_INSTRUCTIONS)}}}}),h(r,i.TB.FORM_RESTORED,{id:i.TB.FORM_RESTORED,isActive:!1,props:{type:i.ls.PRIMARY,title:"Form restored",primaryButton:{text:"OK",onClick:function(){o.removeNotification(i.TB.FORM_RESTORED)}},secondaryButton:{text:"Clear form",onClick:function(){return o.formState.clearForm()}}}}),h(r,i.TB.DEADLINE_CHANGED,{id:i.TB.DEADLINE_CHANGED,isActive:!1,props:{type:i.ls.WARNING,title:"Deadline changed",text:"The deadline has been changed to deliver your order by the requested date.",primaryButton:{text:"Check deadline",onClick:function(){o.removeNotification(i.TB.DEADLINE_CHANGED).then((function(){o.formState.stepsManager.goToStepWithFeature(i.ks.TARIFF)}))}}}}),r)),h(this,"formState",void 0),(0,n.Gn)(this,{notificationsById:n.sH,isDisciplineIsNoCollage:n.EW,isAcademicLevelNoDissertation:n.EW,isDisciplineRequiredError:n.EW,isTypeOfPaperRequiredError:n.EW,isPaperFormatRequiredError:n.EW,isAllZeroError:n.EW,isNoInstructionsAndFilesWarning:n.EW,activeNotifications:n.EW,pushNotification:n.XI,removeNotification:n.XI,reset:n.XI}),this.formState=t,(0,n.tC)(this,"activeNotifications",(function(){return o.$startReactions()})),(0,n.q$)(this,"activeNotifications",(function(){return o.$stopReactions()}))}var t,r,o,s,l;return t=e,r=[{key:"isDisciplineIsNoCollage",get:function(){return this.formState.checkDisciplineIsNoCollage()}},{key:"isAcademicLevelNoDissertation",get:function(){var e=this.formState.configsStore.configs.configsForAcademicWriting.dissertationPaperTypesIds,t=this.formState.formManager.formValues[i.ks.ACADEMIC_LEVEL],r=this.formState.formManager.formValues[i.ks.TYPE_OF_PAPER];return e.includes(r)&&t<i.UH.DISSERTATION_PAPERTYPE_MIN_ACADEMIC_LEVEL}},{key:"isDisciplineRequiredError",get:function(){return!this.isDisciplineIsNoCollage&&this.checkFieldForError(i.ks.DISCIPLINE)}},{key:"isTypeOfPaperRequiredError",get:function(){return!this.isAcademicLevelNoDissertation&&this.checkFieldForError(i.ks.TYPE_OF_PAPER)}},{key:"isPaperFormatRequiredError",get:function(){return this.checkFieldForError(i.ks.PAPER_FORMAT_OTHER)}},{key:"isAllZeroError",get:function(){return this.formState.isAllZeroError}},{key:"isNoInstructionsAndFilesWarning",get:function(){var e;return this.formState.isNoFilesAndInstructionsAdded&&(null===(e=this.formState.stepsManager.activeStepWithInstructionsAndFiles)||void 0===e?void 0:e.isChecked)}},{key:"activeNotifications",get:function(){return Object.values(this.notificationsById).filter((function(e){return e.isActive}))}},{key:"$startReactions",value:function(){var e=this;this.$disposers.push((0,n.mJ)((function(){return e.isDisciplineIsNoCollage}),(function(t){e.toggleNotification(i.TB.DISCIPLINE_IS_NOCOLLAGE,t)})),(0,n.mJ)((function(){return e.isAcademicLevelNoDissertation}),(function(t){e.toggleNotification(i.TB.ACADEMIC_LEVEL_NO_DISSERTATION,t)})),(0,n.mJ)((function(){return e.isDisciplineRequiredError}),(function(t){e.toggleNotification(i.TB.DISCIPLINE_REQUIRED,t)})),(0,n.mJ)((function(){return e.isTypeOfPaperRequiredError}),(function(t){e.toggleNotification(i.TB.TYPE_OF_PAPER_REQUIRED,t)})),(0,n.mJ)((function(){return e.isPaperFormatRequiredError}),(function(t){e.toggleNotification(i.TB.PAPER_FORMAT_REQUIRED,t)})),(0,n.mJ)((function(){return e.isAllZeroError&&!e.formState.isInquiryForm&&"double"===e.formState.formManager.formValues[i.ks.SPACING]}),(function(t){e.toggleNotification(i.TB.ALL_ZERO,t)})),(0,n.mJ)((function(){return e.isAllZeroError&&!e.formState.isInquiryForm&&"single"===e.formState.formManager.formValues[i.ks.SPACING]}),(function(t){e.toggleNotification(i.TB.ALL_ZERO_SINGLE_SPACED,t)})),(0,n.mJ)((function(){return e.isNoInstructionsAndFilesWarning}),(function(t){e.toggleNotification(i.TB.NO_FILES_AND_INSTRUCTIONS,t)}),{fireImmediately:!0}),(0,n.mJ)((function(){return e.formState.wasDeadlineChanged}),(function(t){t&&e.pushNotification(i.TB.DEADLINE_CHANGED).then((function(){return e.formState.setTariffWithClosestHours()}))})),(0,n.mJ)((function(){return a.G[i.ks.TARIFF].includes(e.formState.stepsManager.activeStepId)}),(function(t){t&&e.removeNotification(i.TB.DEADLINE_CHANGED)})))}}
2,{key:"$stopReactions",value:function(){this.$disposers.forEach((function(e){return e()}))}},{key:"checkFieldForError",value:function(e){return Boolean(this.formState.formManager.formErrors[e])&&Boolean(this.formState.formManager.errorHiglightableKeys[e])}},{key:"pushNotification",value:(l=v(u().mark((function e(t){var r,i,o=this,a=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(a.length>1&&void 0!==a[1]?a[1]:{}).props,!(i=this.notificationsById[t].shouldBeSavedOnRemoveInStorage)){e.next=8;break}return e.next=5,b(i);case 5:if(!e.sent.includes(t)){e.next=8;break}return e.abrupt("return");case 8:r&&(this.notificationsById[t].props=f(f({},this.notificationsById[t].props),r)),(0,n.h5)((function(){o.notificationsById[t].isActive=!0}));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"removeNotification",value:(s=v(u().mark((function e(t){var r,n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.notificationsById[t].isActive=!1,!(r=this.notificationsById[t].shouldBeSavedOnRemoveInStorage)){e.next=8;break}return e.next=5,b(r);case 5:return n=e.sent,e.next=8,w([].concat(c(n),[t]),r);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"toggleNotification",value:function(e,t){t?this.pushNotification(e):this.removeNotification(e)}},{key:"reset",value:function(){var e=this;this.activeNotifications.forEach((function(t){var r=t.id;e.notificationsById[r].isActive=!1}))}}],r&&p(t.prototype,r),o&&p(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},86437:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>qe});r(97041),r(96152),r(78527),r(93831),r(40890),r(21555),r(5858),r(34089),r(68450),r(30935),r(68291),r(79683),r(69399),r(66264),r(23510),r(25400),r(54),r(1569),r(85146),r(78366),r(95790),r(29416),r(66542),r(84766),r(99180),r(56460),r(24493),r(22892),r(92221),r(55983),r(96656),r(94356),r(45993),r(85028),r(58948),r(59161),r(57931),r(95570),r(44318),r(48851),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(11823),r(86940),r(17626);var n=r(83794),i=r(30350),o=r.n(i),a=r(94321),s=r(86450),c=r(93718),l=r.n(c),u=r(64575),d=r(61938),f=r(58165),p=r(98574),h=r(24289),m=r(3492),y=r(78855),v=r(96262),g=r(12200),b=r(92091),E=r(83246),w=r(17278),S=r(33651),A=r(64542),_=r(98095),x=r(12235),P=r(35546),I=r(46980),k=r(78120),O=r(8643),T=r(89950),C=r(59955),R=r(11310),N=r(11577),L=r(86510),D=r(32894),M=r(50121),F=r(78843),j=r(18083),B=r(14517),V=r(18235);function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function z(){z=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new T(n||[]);return i(a,"_invoke",{value:P(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var E={};l(E,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(C([])));S&&S!==r&&n.call(S,a)&&(E=S);var A=b.prototype=v.prototype=Object.create(E);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(i,o,a,s){var c=d(e[i],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==U(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function P(t,r,n){var i=f;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=I(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var l=d(t,r,n);if("normal"===l.type){if(i=n.done?m:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=m,n.method="throw",n.arg=l.arg)}}}function I(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&
vendor: 4,894 bytes, line 2
2(r.method="return",r.arg=e,I(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(U(t)+" is not iterable")}return g.prototype=b,i(A,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},_(x.prototype),l(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new x(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(A),l(A,c,"Generator"),l(A,a,(function(){return this})),l(A,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=C,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function G(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function W(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){G(o,n,i,a,s,"next",e)}function s(e){G(o,n,i,a,s,"throw",e)}a(void 0)}))}}function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?H(Object(r),!0).forEach((function(t){q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K(n.key),n)}}function q(e,t,r){return(t=K(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(e){var t=function(e,t){if("object"!==U(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===U(t)?t:String(t)}var Q=m.ks.ACADEMIC_LEVEL,X=m.ks.TYPE_OF_PAPER,Z=m.ks.DISCIPLINE,J=m.ks.TOPIC,ee=m.ks.PAPER_INSTRUCTIONS,te=m.ks.FILES,re=m.ks.PAGES_QTY,ne=m.ks.WORDS_QTY,ie=m.ks.SPACING,oe=m.ks.SOURCES_QTY,ae=m.ks.PAPER_FORMAT,se=m.ks.TARIFF,ce=m.ks.SLIDES_QTY,le=m.ks.CHARTS_QTY,ue=m.ks.GET_PROGRESSIVE_DELIVERY,de=m.ks.REQUESTED_WRITER,fe=m.ks.FID,pe=m.ks.TYPE_OF_PAPER_OTHER,he=m.ks.DISCIPLINE_OTHER,me=m.ks.PAPER_FORMAT_OTHER,ye=m.ks.GET_COPY_OF_SOURCES,ve=m.ks.COUPON_CODE,ge=m.ks.ORDER_SERVICE_TYPE,be=m.ks.SOFTWARE,Ee=m.ks.SOFTWARE_OTHER,we=m.ks.TASK_SIZE,Se=m.ks.PAPER_LEVEL,Ae=m.ks.LANGUAGE_STYLE,_e=m.ks.PROGRAMMING_LANGUAGE,xe=m.ks.PROGRAMMING_LANGUAGE_OTHER,Pe=m.ks.SPLIT_PAYMENT,Ie=m.ks.ONLY_OWN_CODE_SOLUTION,ke=m.ks.WELL_COMMENTED_CODE,Oe=m.ks.TOP_EXPERT,Te=m.ks.COUPON_CODE_SWITCH,Ce=m.ks.PAY_IN_PARTS_SWITCH,Re=m.ks.PAY_IN_PARTS,Ne=m.ks.PREMIUM_AI_REPORT,Le=m.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE,De=m.B5.ACADEMIC_WRITING,Me=m.B5.CALCULATIONS,Fe=m.B5.PROGRAMMING,je=m.g5.MODAL_ORDERFORM_UNPAID_ORDERS,Be=m.g5.MODAL_ORDERFORM_PHONE_NUMBER,Ve=m.g5.MODAL_ACCEPT_POLICY,Ue=m.g5.MODAL_UPDATE_PERSONAL_DATA,ze=m.g5.MODAL_ORDERFORM_USER_COUNTRY,Ge="rcapp-values",We=["chart","diagram","excel","graph","plot","table"],He=["slide","ppt","presentation","preso","powerpoint","power point"],$e=["attach","upload","send","sent","file","draft","sample"],Ye=function(){var e;return q(e={},Q,void 0),q(e,Z,void 0),q(e,he,""),q(e,X,void 0),q(e,pe,""),q(e,J,""),q(e,ee,""),q(e,ae,void 0),q(e,me,""),q(e,re,void 0),q(e,ne,void 0),q(e,oe,0),q(e,ce,0),q(e,le,0),q(e,ie,"double"),q(e,se,void 0),q(e,ye,!1),q(e,ue,!1),q(e,de,void 0),q(e,ve,""),q(e,fe,void 0),q(e,ge,void 0),q(e,be,void 0),q(e,Ee,""),q(e,we,void 0),q(e,Se,void 0),q(e,Ae,void 0),q(e,_e,void 0),q(e,xe,""),q(e,Pe,!1),q(e,Ie,!1),q(e,ke,!1),q(e,Oe,!1),q(e,Ne,!1),q(e,Le,!1),q(e,Te,!1),q(e,Ce,!1),q(e,Re,void 0),e},qe=function(){function e(t,r){var i,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),q(this,"isPhoneDialogSkipped",!1),q(this,"shouldResetPagesAndSlides",!1),q(this,"purpose",m.UU.NEW_ORDER),q(this,"isLoadingFiles",!1),q(this,"isLoading",!1),q(this,"isSubmitting",!1),q(this,"isForcedChooseTopExpert",!1),q(this,"orderUuid",void 0),q(this,"isPagesWereCalculatedByWords",!1),q(this,"formManager",void 0),q(this,"filesManager",void 0),q(this,"viewItemTracker",void 0),q(this,"startDate",Date.now()),q(this,"$dueDate",void 0),q(this,"isControlsTriggered",(q(i={},m.ks.PAPER_FORMAT,!1),q(i,m.ks.SOURCES_QTY,!1),i)),q(this,"notificationsManager",new B.A(this)),q(this,"stepsManager",new V.A(this)),q(this,"configsStore",void 0),q(this,"errorsStore",void 0),q(this,"userProfileStore",void 0),q(this,"ordersStore",void 0),q(this,"signInFormStore",void 0),q(this,"signUpFormStore",void 0),q(this,"dialogsStore",void 0),q(this,"routerStore",void 0),q(this,"notificationsStore",void 0),q(this,"couponsStore",void 0),q(this,"transport",void 0),q(this,"$token",void 0),q(this,"storage",void 0),q(this,"startUpdatindStartDate",(function(){a.setStartDate();var e=6e4-(Date.now()-(new Date).setSeconds(0));a.$updatingStartDateTimerId=setTimeout((function(){a.setStartDate(),a.$updatingStartDateIntervalId=setInterval((function(){a.setStartDate()}),6e4)}),e)})),q(this,"stopUpdatindStartDate",(function(){a.$updatingStartDateTimerId&&clearTimeout(a.$updatingStartDateTimerId),a.$updatingStartDateIntervalId&&clearInterval(a.$updatingStartDateIntervalId)})),q(this,"firstInstallmentForPayInParts",(function(e){return e&&a.totalCost?Math.floor(Math.round(100*a.totalCost)/e)/100:0})),q(this,"handleSuccessfulSubmit",(function(e){var t=e.newOrderId;a.storage&&a.storage.clear(),a.formManager.incrementSubmitsCount(),(0,h.WH)("splitPayment",{value:a.formManager.formValues[Pe]?1:0}),(0,h.WH)("hasPayInParts",{value:a.formManager.formValues[m.ks.PAY_IN_PARTS_SWITCH]?1:0}),h.TQ.addToCard($($({},a.orderInfoForGA4),{},{formTypeForAnalytics:a.formTypeForAnalytics,id:t})),a.purpose===m.UU.NEW_INQUIRY?a.routerStore.pushLocation("/orders"):a.routerStore.pushLocation("/payment/".concat(t))})),q(this,"$showPhoneNumberDialog",(function(){a.dialogsStore.pushDialog(Be,{onSubmit:function(){a.startSubmitting()},onContinue:function(){a.isPhoneDialogSkipped=!0,a.startSubmitting()}},{isStatic:!0})})),q(this,"handleFailedSubmit",(function(e){var t="Submitting order failed.";if(e.code===m.I.SERVER_VALIDATION&&/coupon/.test(e.message))return a.errorsStore.handleError(e,{intent:t}),a.loadCouponsForOrder();e.code===m.I.UVOFORM_FILES_NOT_UPLOADED&&(a.notificationsStore.pushNotification({title:t,description:e.message,view:"error"}),e.presented=!0),/user country is not defined./.test(e.message)?a.dialogsStore.pushDialog(ze,{onSubmit:function(){a.startSubmitting()}}):/urgent order without a phone number/.test(e.message)?a.$showPhoneNumberDialog():a.errorsStore.handleAndRethrow({error:e,intent:t})})),q(this,"tryAutoAuthorize",(function(e){if(e)switch(a.userProfileStore.authType){case m.SS.SIGN_IN_AUTH_TYPE:return a.signInFormStore.formManager.firstError&&(0,h.qv)({formType:a.formTypeForAnalytics,action:h.sK.UVOFORM_SUBMIT_PREVENTED,label:"autosignin_".concat(a.signInFormStore.formManager.firstInvalidKey)}),a.signInFormStore.startSigningIn().then((function(){return a.loadCouponsForOrder()})).then((function(){return a.startSubmitting({autoAuth:!1})}));case m.SS.SIGN_UP_AUTH_TYPE:return a.signUpFormStore.formManager.firstError&&(0,h.qv)({formType:a.formTypeForAnalytics,action:h.sK.UVOFORM_SUBMIT_PREVENTED,label:"autosignup-".concat(a.signUpFormStore.formManager.firstInvalidKey)}),a.signUpFormStore.startSigningUp().then((function(){return a.loadCouponsForOrder()})).then((function(){return a.startSubmitting({autoAuth:!1})}))}return Promise.reject(new(o())("You have to to sign in / sign up to proceed",m.I.UVOFORM_UNAUTHORIZED))})),q(this,"setIsPagesWereCalculatedByWords",(function(e){a.isPagesWereCalculatedByWords=e,a.formManager.formDisabledKeys[m.ks.SPACING]&&a.formManager.setValue(m.ks.SPACING,"double")})),q(this,"setFilesFromInitialValues",W(z().mark((function e(){var t;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.formManager.formValues[m.ks.FILES],e.next=3,a.$loadFilesWithIds(t);case 3:case"end":return e.stop()}}),e)})))),(0,n.Gn)(this,{purpose:n.sH,isLoadingFiles:n.sH,isLoading:n.sH,isSubmitting:n.sH,couponCodeError:n.EW,showCouponCodeError:n.EW,formSubmitAnalyticsLabel:n.EW,spacingFactor:n.EW,wordsCount:n.EW,canRequestWriter:n.EW,coupon:n.EW,winbackCoupons:n.EW,freeThings:n.EW,cost:n.EW,totalCost:n.EW,discount:n.EW,activeServices:n.EW,availableTariffsIds:n.EW,availableProgrammingDeadlinesIds:n.EW,availableCalculationsDeadlinesIds:n.EW,deadlineDate:n.EW,deliveryTime:n.EW,complexAssignmentDiscipline:n.EW,instructions:n.EW,chartsValueProbablyMissing:n.EW,slidesValueProbablyMissing:n.EW,filesProbablyMissing:n.EW,currency:n.EW,availableKeysPresetsByOrderServiceType:n.EW,availableKeys:n.EW,currentAcademicLevel:n.EW,currentAcademicLevelTitle:n.EW,firstNoCollageAcademicLevelId:n.EW,paperTypeTitle:n.EW,currentDisciplineTitle:n.EW,currentProgrammingLanguageTitle:n.EW,currentSoftwareTitle:n.EW,currentPaperFormatTitle:n.EW,currentPaperLevelTitle:n.EW,currentLanguageStyleTitle:n.EW,tariff:n.EW,isUrgentDeadlinesAvailable:n.EW,maxPages:n.EW,orderItemsAmount:n.EW,availableAmou
2ntOfItems:n.EW,pagesMaxAvailable:n.EW,wordsMaxAvailable:n.EW,chartsMaxAvailable:n.EW,slidesMaxAvailable:n.EW,sourcesMaxAvailable:n.EW,lifetimeCoupon:n.EW,availableCoupons:n.EW,isInquiryForm:n.EW,isNewOrderForm:n.EW,isReorderForm:n.EW,isPayOrderForm:n.EW,formTypeForAnalytics:n.EW,currentCouponData:n.EW,orderFormValuesForAnalytics:n.EW,reset:n.XI,configure:n.XI,currentOrderServiceTypeConfig:n.EW,isProgrammingForm:n.EW,isCalculationsForm:n.EW,isAcademicWritingForm:n.EW,orderServiceTypeTitle:n.EW,currentDeadline:n.EW,currentTaskSize:n.EW,itemPrice:n.EW,currentOrderServiceTypeId:n.EW,availableWriters:n.EW,experiencedWritersForCurrentOrderServiceType:n.EW,currentTariffTitle:n.EW,isDiscountInfoVisible:n.EW,orderInfoForGA4:n.EW,freeInvoiceServiceTitle:n.EW,isForcedChooseTopExpert:n.sH,setForcedChooseTopExpert:n.XI,isPagesWereCalculatedByWords:n.sH,setIsPagesWereCalculatedByWords:n.XI,setFilesFromInitialValues:n.XI,hoursPerPage:n.EW,filesUploadedCount:n.EW,isComplexDisciplineHintDisplayed:n.EW,isCouponForStemDisabled:n.EW,isCouponHintDisplayed:n.EW,couponCodeDescription:n.EW,orderFormTitle:n.EW,isCopyFormUrlBlockDisplayed:n.EW,isWriterSelected:n.EW,isControlsTriggered:n.sH,setIsControlsTriggered:n.XI,availableDeadlines:n.EW,startDate:n.sH,setStartDate:n.XI,$dueDate:n.sH,dueDate:n.EW,$setDueDate:n.XI,availableDeliveryOptions:n.EW,isDeliveryOptionsAvailable:n.EW,timestampOfFirstAvailableDeadline:n.EW,isChosenDeliveryOptionObsolete:n.EW,hydrateFromData:n.XI,wasDeadlineChanged:n.EW,isAllZeroError:n.EW,showVat:n.EW,isNoFilesAndInstructionsAdded:n.EW,currentTaskSizeTitle:n.EW,isCouponForProgrammingOnly:n.EW}),Object.defineProperties(this,{configsStore:{get:function(){return t.configsStore}},errorsStore:{get:function(){return t.errorsStore}},userProfileStore:{get:function(){return t.userProfileStore}},ordersStore:{get:function(){return t.ordersStore}},signInFormStore:{get:function(){return t.signInFormStore}},signUpFormStore:{get:function(){return t.signUpFormStore}},dialogsStore:{get:function(){return t.dialogsStore}},routerStore:{get:function(){return t.routerStore}},notificationsStore:{get:function(){return t.notificationsStore}},couponsStore:{get:function(){return t.couponsStore}}}),this.transport=r,this.formManager=new d.A({availableKeys:[],initialValues:Ye(),onValueChange:(0,w.A)(this),valuesValidator:(0,S.F)(this),otherErrorsValidator:S.i,keysDisableRules:(0,E.A)(this),itemsIdsDisableRules:(0,g.A)(this),itemsValuesSantizer:(0,b.A)(this)}),this.filesManager=new p.A({onUpdateFiles:function(e){return a.formManager.setSilently(te,e)},uploadTransport:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return a.$uploadFile.apply(a,t.concat([a,a.$token]))},deleteTransport:function(e){return a.$deleteFile(e)},onError:function(){var e;(e=a.errorsStore).handleError.apply(e,arguments)},configsStore:this.configsStore}),this.formManager.updateAvailableKeys(this.availableKeys),this.viewItemTracker=new D.A(this),(0,n.tC)(this,"startDate",this.startUpdatindStartDate),(0,n.q$)(this,"startDate",this.stopUpdatindStartDate),(0,n.mJ)((function(){return a.formManager.formSubmitsCount}),(function(){return a.removeStoredData()}),{name:"reset local storage after successful submition"}),(0,n.mJ)((function(){return a.availableKeys}),(function(e){return a.formManager.updateAvailableKeys(e)}),{fireImmediately:!0}),(0,n.mJ)((function(){return a.currentDisciplineTitle}),(function(e){return e&&(0,h.mv)(e)})),(0,n.mJ)((function(){return a.paperTypeTitle}),(function(e){return e&&(0,h.qf)(e)})),(0,n.mJ)((function(){return void 0!==a.formManager.formValues[m.ks.GET_PROGRESSIVE_DELIVERY]}),(function(e){e&&(0,N.A)(a)})),(0,n.mJ)((function(){return void 0!==a.formManager.formValues[m.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE]}),(function(e){e&&(0,L.A)(a)}))}var t,r,i,c,U,G,H,K,de;return t=e,r=[{key:"setForcedChooseTopExpert",value:function(e){this.isForcedChooseTopExpert=e}},{key:"currentOrderServiceTypeConfig",get:function(){var e=this.configsStore.configs,t=e.configsForProgramming,r=e.configsForCalculations,n=e.configsForAcademicWriting;switch(this.formManager.formValues[m.ks.ORDER_SERVICE_TYPE]){case m.B5.PROGRAMMING:return t;case m.B5.CALCULATIONS:return r;default:return n}}},{key:"isPayInPartsAvailable",get:function(){var e;return(null===(e=this.configsStore.configs)||void 0===e?void 0:e.isPayInPartsEnabled)&&this.formManager.formValues[m.ks.GET_PROGRESSIVE_DELIVERY]}},{key:"isCouponForStemDisabled",get:function(){var e;return!!this.coupon&&(this.coupon.rules?this.coupon.typeId===m.Gi.SERVICE&&!this.isAcademicWritingForm&&1===this.coupon.rules.orderServiceTypeIds.length&&(null===(e=this.coupon.rules.orderServiceTypeIds)||void 0===e?void 0:e.includes(m.B5.ACADEMIC_WRITING)):this.coupon.typeId===m.Gi.SERVICE&&!this.isAcademicWritingForm)}},{key:"isCouponForProgrammingOnly",get:function(){return!!this.coupon&&!!this.coupon.rules&&this.coupon.typeId===m.Gi.SERVICE&&1===this.coupon.rules.orderServiceTypeIds.length&&this.coupon.rules.orderServiceTypeIds.includes(m.B5.PROGRAMMING)}},{key:"isCouponHintDisplayed",get:function(){return!!this.coupon&&!this.discount}}
2,{key:"couponCodeDescription",get:function(){return!!this.coupon&&!(this.isCouponForProgrammingOnly&&!this.isProgrammingForm)&&!this.isCouponForStemDisabled&&this.coupon.code.description}},{key:"couponCodeError",get:function(){if(this.formManager.formValues[ve]&&void 0===this.coupon)return new Error("Coupon code is not valid")}},{key:"showCouponCodeError",get:function(){return!this.couponsStore.isLoadingCoupons&&!!this.couponCodeError&&this.formManager.formInteractedKeys[ve]}},{key:"formSubmitAnalyticsLabel",get:function(){var e=[this.formManager.formValues[ye]&&"copyOfSources",this.formManager.formValues[ue]&&"progressiveDelivery",this.formManager.formValues[Ie]&&"onlyOwnCodeSolution",this.formManager.formValues[ke]&&"wellCommentedCode",this.formManager.formValues[Oe]&&"topExpert"].filter(Boolean);return e.length?"uvoform-services-".concat(e.join("-")):"uvoform-services-default"}},{key:"spacingFactor",get:function(){return"double"===this.formManager.formValues[ie]?1:2}},{key:"wordsCount",get:function(){return(0,j.S)(this.formManager.formValues[re],this.spacingFactor)}},{key:"canRequestWriter",get:function(){return this.availableWriters.length>0}},{key:"coupon",get:function(){var e=this;return this.couponsStore.coupons.find((function(t){return t.code.code===e.formManager.formValues[ve]}))}},{key:"winbackCoupons",get:function(){return this.coupon&&this.coupon.typeId===m.Gi.SERVICE?[this.coupon]:[]}},{key:"freeThings",get:function(){return u.getFreeThingsFromCoupons(this.winbackCoupons)}},{key:"currentDeadline",get:function(){if(this.isProgrammingForm||this.isCalculationsForm){var e=this.formManager.formValues[m.ks.TARIFF];return this.currentOrderServiceTypeConfig.deadlinesById[e]}}},{key:"currentTaskSize",get:function(){if(this.isProgrammingForm||this.isCalculationsForm){var e=this.formManager.formValues[m.ks.TASK_SIZE];return this.currentOrderServiceTypeConfig.sizesById[e]}}},{key:"currentTaskSizeTitle",get:function(){var e;return null===(e=this.currentTaskSize)||void 0===e?void 0:e.name}},{key:"filesUploadedCount",get:function(){var e=this.formManager.formValues[m.ks.FILES];return e?e.length:0}},{key:"itemPrice",get:function(){var e;if(this.isProgrammingForm||this.isCalculationsForm){var t=this.currentOrderServiceTypeConfig,r=t.itemPricesById,n=t.itemPricesIds,i=this.formManager.formValues[m.ks.DISCIPLINE],o=this.formManager.formValues[m.ks.TASK_SIZE],a=n.find((function(e){var t=r[e];return t.disciplineId===i&&t.sizeId===o}));return null===(e=r[a])||void 0===e?void 0:e.price}}},{key:"cost",get:function(){return this.isProgrammingForm?(0,y.Gs)(this):this.isCalculationsForm?(0,y.VK)(this):(0,y.mK)(this)}},{key:"totalCost",get:function(){return this.cost&&this.cost.totalCost}},{key:"discount",get:function(){return void 0===this.cost?0:this.cost.servicesById[m.zv.DISCOUNT].cost||-this.cost.couponsReduction}},{key:"rawCost",get:function(){return this.cost&&this.cost.rawCost}},{key:"isDiscountInfoVisible",get:function(){return!(!this.discount||!this.coupon||this.coupon.typeId!==m.Gi.ORDER||this.coupon.discountTypeId!==m.NS.AMOUNT)&&this.coupon.value+this.discount!==0}},{key:"showVat",get:function(){var e,t=(null===(e=this.userProfileStore.profile)||void 0===e||null===(e=e.country)||void 0===e?void 0:e.id)||this.configsStore.userCountryId;return Boolean(t)&&this.configsStore.configs.countries[t].vat>0}},{key:"activeServices",get:function(){var e=this;return void 0===this.cost?[]:Object.keys(this.cost.servicesById).map((function(t){return e.cost.servicesById[t]})).filter((function(e){return e.active})).sort((function(e,t){return e.priority-t.priority}))}},{key:"availableTariffsIds",get:function(){var e=this;if(!this.configsStore.configs)return[];var t=this.configsStore.configs,r=t.configsForAcademicWriting,n=r.tariffsIds,i=r.tariffsById,o=t.minDeadline;return n.filter((function(t){return i[t].academicLevel===e.formManager.formValues[Q]&&e.orderItemsAmount>=i[t].minPages&&i[t].hrs>=o&&(i[t].hrs>4||e.isUrgentDeadlinesAvailable)})).sort((function(e,t){return i[e].hrs-i[t].hrs}))}},{key:"availableProgrammingDeadlinesIds",get:function(){if(!this.configsStore.configs)return[];var e=this.configsStore.configs.configsForProgramming,t=e.deadlinesIds,r=e.deadlinesById;return t.filter((function(e){return r[e].hours>4}))}},{key:"availableCalculationsDeadlinesIds",get:function(){var e=this;if(!this.configsStore.configs)return[];var t=this.configsStore.configs.configsForCalculations,r=t.deadlinesIds,n=t.deadlinesById;return r.filter((function(t){return n[t].hours>=e.configsStore.configs.minDeadline}))}},{key:"availableDeadlines",get:function(){if(this.isProgrammingForm){var e=this.configsStore.configs.configsForProgramming.deadlinesById;return this.availableProgrammingDeadlinesIds.map((function(t){return e[t]}))}if(this.isCalculationsForm){var t=this.configsStore.configs.configsForCalculations.deadlinesById;return this.availableCalculationsDeadlinesIds.map((function(e){return t[e]}))}var r=this.configsStore.configs.configsForAcademicWriting.tariffsById;return this.availableTariffsIds.map((function(e){return r[e]}))}},{key:"deadlineDate",get:function(){var e,t,r=(null===(e=this.tariff)||void 0===e?void 0:e.hrs)||(null===(t=this.currentDeadline)||void 0===t?void 0:t.hours);if(r)return new Date(Date.now()+1e3*r*60*60)}},{key:"deliveryTime",get:function(){var e=this,t=this.availableDeliveryOptions.find((function(t){return t.id===e.formManager.formValues[m.ks.TARIFF]}));if(t){var r=t.hours,n=t.deadlineTimestamp,i=t.startDateTimestamp,o=Math.floor((n-i)/864e5);return r<=24?"".concat(r,"-hour delivery"):"".concat(o,"-day delivery")}}},{key:"complexAssignmentDiscipline",get:function(){if(this.configsStore.configs){var e=this.formManager.formValues[Z],t=this.configsStore.configs.disciplinesById[e];return void 0!==t&&t.isComplexAssignment}}},{key:"isComplexDisciplineHintDisplayed",get:function(){return this.formManager.formValues[m.ks.DISCIPLINE]===m.UH.DISCIPLINE_OTHER_ID}},{key:"instructions",get:function(){return this.formManager.formValues[ee]+this.formManager.formValues[J]}},{key:"chartsValueProbablyMissing",get:function(){return!(this.formManager.formValues[le]>0)&&(0,A.A)(We,this.instructions)}},{key:"slidesValueProbablyMissing",get:function(){return!(this.formManager.formValues[ce]>0)&&(0,A.A)(He,this.instructions+this.paperTypeTitle)}},{key:"filesProbablyMissing",get:function(){return!(this.formManager.formValues[te]>0)&&(0,A.A)($e,this.instructions)}},{key:"isAllZeroError",get:function(){return this.formManager.otherErrorsList.some((function(e){return e.code===m.I.UVOFORM_VALIDATION_ALL_ZERO}))}},{key:"currency",get:function(){return this.configsStore.defaultCurrency}},{key:"availableKeysPresetsByOrderServiceType",get:function(){switch(this.formManager.formValues[ge]){case Fe:return(0,_._x)(this.configsStore);case Me:return(0,_.r0)(this.configsStore);default:return(0,_.eB)(this.configsStore)}}},{key:"availableKeys",get:function(){var e=[];switch(this.purpose){case m.UU.NEW_INQUIRY:e=e.concat(_.k);break;case m.UU.NEW_ORDER:case m.UU.ORDER_PAY:case m.UU.REORDER:default:e=e.concat(this.availableKeysPresetsByOrderServiceType)}return e}},{key:"currentAcademicLevel",get:function(){var e=this.formManager.formValues,t=this.configsStore.configs;if(t&&e[Q]){var r=e[Q];return t.configsForAcademicWriting.academicLevelsById[r]}}},{key:"currentAcademicLevelTitle",get:function(){return this.currentAcademicLevel&&this.currentAcademicLevel.title}},{key:"firstNoCollageAcademicLevelId",get:function(){return this.configsStore.configs.configsForAcademicWriting.academicLevelsIds.filter((function(e){return e!==m.UH.ACADEMIC_LEVEL_COLLAGE_ID}))[0]}},{key:"paperTypeTitle",get:function(){var e=this.formManager.formValues;if(this.configsStore.configs&&e[X])return e[X]===m.UH.TYPE_OF_PAPER_OTHER_ID?e[pe]:this.configsStore.configs.configsForAcademicWriting.paperTypesById[e[X]].title}},{key:"currentDisciplineTitle",get:function(){var e,t=this.formManager.formValues;if(this.configsStore.configs&&t[Z])return t[Z]===m.UH.DISCIPLINE_OTHER_ID?t[he]:null===(e=this.configsStore.configs.disciplinesById[t[Z]])||void 0===e?void 0:e.title}},{key:"currentProgrammingLanguageTitle",get:function(){var e,t=this.formManager.formValues;if(this.configsStore.configs&&t[_e])return t[_e]===m.UH.PROGRAMMING_LANGUAGE_OTHER_ID?t[xe]:null===(e=this.configsStore.configs.configsForProgramming.languagesById[t[_e]])||void 0===e?void 0:e.title}},{key:"currentSoftwareTitle",get:function(){var e,t=this.formManager.formValues;if(this.configsStore.configs&&t[be])return t[be]===m.UH.SOFTWARE_OTHER_ID?t[Ee]:null===(e=this.configsStore.configs.configsForCalculations.softwareById[t[be]])||void 0===e?void 0:e.title}},{key:"currentPaperFormatTitle",get:function(){var e,t=this.formManager.formValues;if(this.configsStore.configs&&void 0!==t[ae])return t[ae]===m.UH.PAPER_FORMAT_OTHER_ID?t[me]:null===(e=this.configsStore.configs.configsForAcademicWriting.paperFormatsById[t[ae]])||void 0===e?void 0:e.title}},{key:"currentPaperLevelTitle",get:function(){var e,t=this.formManager.formValues[m.ks.PAPER_LEVEL];return null===(e=this.configsStore.configs.configsForAcademicWriting.paperLevelsById[t])||void 0===e?void 0:e.title}},{key:"currentLanguageStyleTitle",get:function(){var e,t=this.formManager.formValues[m.ks.LANGUAGE_STYLE];return null===(e=this.configsStore.configs.configsForAcademicWriting.languageStylesById[t])||void 0===e?void 0:e.title}},{key:"tariff",get:function(){if(this.configsStore.configs)return this.configsStore.configs.configsForAcademicWriting.tariffsById[this.formManager.formValues[se]]}},{key:"isUrgentDeadlinesAvailable",get:function(){return!(this.orderItemsAmount>this.maxPages)}},{key:"wasDeadlineChanged",get:function(){var e=this.formManager.formValues[m.ks.TARIFF],t=this.formManager.getRawFormValues()[m.ks.TARIFF];if(void 0===t||e===t)return!1;var r=this.configsStore.configs,n=r.configsForAcademicWriting.tariffsById,i=r.configsForProgramming,o=r.configsForCalculations,a=function(e){return n[e]||i.deadlinesById[e]||o.deadlinesById[e]},s=a(t),c=a(e);return!(!s||!c)&&s.hours!==c.hours}},{key:"availableDeliveryOptions",get:function(){var e=this;if(!this.deadlineDate)return[];var t,r=this.dueDate-this.startDate;return t=this.availableDeadlines.filter((function(e){return 60*e.hours*60*1e3<r})),r>
2=1008e5&&(t=t.slice(-2)),t.map((function(t){var r=e.startDate+60*t.hours*60*1e3;return{id:t.id,hours:t.hours,deadlineTimestamp:r,startDateTimestamp:e.startDate}}))}},{key:"isDeliveryOptionsAvailable",get:function(){return this.availableDeliveryOptions.length>0}},{key:"isChosenDeliveryOptionObsolete",get:function(){var e=this;return!this.availableDeliveryOptions.some((function(t){return t.id===e.formManager.formValues[m.ks.TARIFF]}))}},{key:"timestampOfFirstAvailableDeadline",get:function(){var e=60*this.availableDeadlines[0].hours*60*1e3;return Date.now()+e}},{key:"maxPages",get:function(){var e=this.configsStore.configs;return e&&e.configsForAcademicWriting.urgentDeadlinesMaxPages}},{key:"orderItemsAmount",get:function(){var e=this.formManager.formValues,t=e[re],r=e[le],n=e[ce],i=e[ie];return(0,f.ri)({pages:t,charts:r,slides:n,spacing:i})}},{key:"availableAmountOfItems",get:function(){}},{key:"pagesMaxAvailable",get:function(){}},{key:"wordsMaxAvailable",get:function(){return(0,j.S)(this.pagesMaxAvailable||999,this.spacingFactor)}},{key:"chartsMaxAvailable",get:function(){}},{key:"slidesMaxAvailable",get:function(){}},{key:"hoursPerPage",get:function(){if(!this.orderItemsAmount)return 0;var e=Number((this.tariff.hrs/this.orderItemsAmount).toFixed(2));return e>0?e:.01}},{key:"sourcesMaxAvailable",get:function(){}},{key:"availableCoupons",get:function(){return this.couponsStore.availableCoupons}},{key:"lifetimeCoupon",get:function(){return this.availableCoupons.find((function(e){return e.isLifetime}))}},{key:"orderFormTitle",get:function(){switch(this.purpose){case m.UU.NEW_INQUIRY:return"Place a free inquiry";case m.UU.REORDER:return"Re-order";case m.UU.ORDER_PAY:return"Complete your order #".concat(this.formManager.formValues[m.ks.FID]);case m.UU.NEW_ORDER:default:return"Place a new order"}}},{key:"isCopyFormUrlBlockDisplayed",get:function(){var e;return(null===(e=this.configsStore.configs)||void 0===e?void 0:e.isCopyFormURLEnabled)&&![m.UU.ORDER_PAY,m.UU.REORDER,m.UU.NEW_INQUIRY].includes(this.purpose)}},{key:"isNoFilesAndInstructionsAdded",get:function(){var e=!this.formManager.formValues[m.ks.PAPER_INSTRUCTIONS],t=!this.formManager.formValues[m.ks.TOPIC],r=void 0===this.formManager.formValues[m.ks.FILES]||0===this.formManager.formValues[m.ks.FILES].length;return e&&t&&r}},{key:"isInquiryForm",get:function(){return this.purpose===m.UU.NEW_INQUIRY}},{key:"isNewOrderForm",get:function(){return"newOrder"===this.purpose}},{key:"isReorderForm",get:function(){return this.purpose===m.UU.REORDER}},{key:"isPayOrderForm",get:function(){return this.purpose===m.UU.ORDER_PAY}},{key:"isProgrammingForm",get:function(){return this.formManager.formValues[ge]===Fe}},{key:"isCalculationsForm",get:function(){return this.formManager.formValues[ge]===Me}},{key:"isAcademicWritingForm",get:function(){return this.formManager.formValues[ge]===De}},{key:"currentOrderServiceTypeId",get:function(){return this.formManager.formValues[m.ks.ORDER_SERVICE_TYPE]}},{key:"orderServiceTypeTitle",get:function(){return this.isProgrammingForm?"Programming":this.isCalculationsForm?"Calculations":"Writing"}},{key:"freeInvoiceServiceTitle",get:function(){return this.isProgrammingForm?"Code commenting, Video preview":this.isCalculationsForm?void 0:"Title page, Reference page, Formatting"}},{key:"formTypeForAnalytics",get:function(){var e;switch(this.purpose){case m.UU.NEW_ORDER:e=m.CG.ORDER_CREATE_FORM;break;case m.UU.NEW_INQUIRY:e=m.CG.INQUIRY_CREATE_FORM;break;case m.UU.ORDER_PAY:e=m.CG.ORDER_PAY_FORM;break;case m.UU.REORDER:e=m.CG.REORDER_FORM}return e}},{key:"currentTariffTitle",get:function(){var e,t;return this.isProgrammingForm||this.isCalculationsForm?null===(e=this.currentDeadline)||void 0===e?void 0:e.name:null===(t=this.tariff)||void 0===t?void 0:t.title}},{key:"currentCouponData",get:function(){var e=this.formManager.formValues,t=this.couponsStore.coupons;if(t)return t.find((function(t){return t.code.code===e[ve]}))}},{key:"orderFormValuesForAnalytics",get:function(){var e=this,t=this.formManager.formValues,r=function(){return{id:t[fe],orderServiceTypeId:e.currentOrderServiceTypeId,tariff:e.currentTariffTitle,price:e.totalCost}},n=function(){var t;return $($({},r()),{},{discipline:e.currentDisciplineTitle,size:null===(t=e.currentTaskSize)||void 0===t?void 0:t.name,coupon:e.currentCouponData})},i=n;switch(this.currentOrderServiceTypeId){case m.B5.PROGRAMMING:return n();case m.B5.CALCULATIONS:return i();case m.B5.ACADEMIC_WRITING:default:return $($({},r()),{},{paperType:e.paperTypeTitle,discipline:e.currentDisciplineTitle,academicLevel:e.currentAcademicLevelTitle,pages:t[re],spacing:t[ie],sources:t[oe],charts:t[le],slides:t[ce],paperLevelId:t[Se],languageStyleId:t[Ae],hasCopyOfSources:t[ye],hasProgressiveDelivery:t[ue],coupon:e.currentCouponData})}}},{key:"orderInfoForGA4",get:function(){var e,t=this.formManager.formValues;return{orderServiceTypeId:this.currentOrderServiceTypeId,isInquiry:this.purpose===m.UU.NEW_INQUIRY,id:t[m.ks.FID],orderUuid:this.orderUuid,noDiscountPrice:this.rawCost,discount:Math.abs(this.discount),formTypeForAnalytics:this.formTypeForAnalytics,discipline:this.currentDisciplineTitle,paperType:this.paperTypeTitle,academicLevel:this.currentAcademicLevelTitle,pages:t[m.ks.PAGES_QTY],paperLevelId:t[Se],languageStyleId:t[Ae],paperFormat:this.currentPaperFormatTitle,deadline:this.currentTariffTitle,couponCode:t[m.ks.COUPON_CODE]||void 0,size:null===(e=this.currentTaskSize)||void 0===e?void 0:e.name,language:this.currentProgrammingLanguageTitle,software:this.currentSoftwareTitle,hasPayIn2:Boolean(t[m.ks.SPLIT_PAYMENT]),payInPartsValue:this.payInPartsValue}}},{key:"payInPartsValue",get:function(){var e,t=this.formManager.formValues[m.ks.PAY_IN_PARTS];if(t)return null===(e=this.configsStore.configs.payInPartsValuesById[t])||void 0===e?void 0:e.value}},{key:"availableWriters",get:function(){var e=this,t=this.userProfileStore,r=t.requestWritersIds,n=t.requestWritersById,i=this.configsStore.isProficientEnglishDisabled,o=r.map((function(e){return n[e]})).filter((function(t){return t.workedWithServices.includes(e.currentOrderServiceTypeId)}));return i?o.filter((function(e){return e.languageStyleId!==m.V8.PROFICIENT})):o}},{key:"experiencedWritersForCurrentOrderServiceType",get:function(){var e=this.currentOrderServiceTypeId;return this.availableWriters.filter((function(t){return t.assignedOrders.some((function(t){return t.orderServiceTypeId===e}))}))}},{key:"isWriterSelected",get:function(){return Boolean(this.formManager.formValues[m.ks.REQUESTED_WRITER])}},{key:"formTypeId",get:function(){return M.Ly}},{key:"dueDate",get:function(){return this.$dueDate?this.$dueDate:this.deadlineDate?new Date(this.deadlineDate.getTime()).setHours(24,0,0,0)-1e3:void 0}},{key:"$setDueDate",value:function(e){var t=e?new Date(e).setHours(24,0,0,0)-1e3:void 0;this.$dueDate=t}},{key:"setStartDate",value:function(){this.startDate=Date.now()}},{key:"setClickedDueDate",value:function(e){this.$setDueDate(e),this.formManager.setValue(m.ks.TARIFF,this.availableDeliveryOptions[0].id)}},{key:"setIsControlsTriggered",value:function(e,t){this.isControlsTriggered[e]=t}},{key:"resetAllTriggeredControls",value:function(){var e=this;
2Object.keys(this.isControlsTriggered).forEach((function(t){e.setIsControlsTriggered(t,!1)}))}},{key:"$uploadFile",value:function(e,t,r){var n=e.instanceId,i=e.blob,o=e.onProgress;return this.transport({method:"post",url:"/api/potato_files/potato_customer_files_upload",data:(0,T.A)({instanceId:n,blob:i}),onProgress:o,token:r,expectSuccessFlag:!1}).then((function(e){return(0,C.A)(e,t.configsStore)}))}},{key:"$deleteFile",value:function(e){return this.transport({method:"post",url:"/api/potato_files/deleteRequest/".concat(e),data:{},expectSuccessFlag:!1})}},{key:"setOrderUuid",value:function(e){(0,a.A)(e)&&(this.orderUuid=e)}},{key:"trackFormChangeOnStepClose",value:function(e){var t,r=this.formManager.formValues;(0,h.Bw)($($({},this.orderFormValuesForAnalytics),{},{orderUuid:this.orderUuid,orderServiceType:this.orderServiceTypeTitle,currentStep:e,dueDate:this.dueDate,hasInstructions:!!r[m.ks.PAPER_INSTRUCTIONS],hasInstructionsFile:!(null===(t=r[m.ks.FILES])||void 0===t||!t.length),paperFormatId:r[m.ks.PAPER_FORMAT],paperLevelId:r[m.ks.PAPER_LEVEL],languageStyleId:r[m.ks.LANGUAGE_STYLE],hasCalculationsAndSubjectExpertise:!!r[m.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE],software:this.isProgrammingForm?this.currentProgrammingLanguageTitle:this.currentSoftwareTitle}),"close_light_step")}},{key:"trackFormChangeOnStepOpen",value:function(e){var t,r=this.formManager.formValues;(0,h.Bw)($($({},this.orderFormValuesForAnalytics),{},{orderUuid:this.orderUuid,orderServiceType:this.orderServiceTypeTitle,currentStep:e,dueDate:this.dueDate,hasInstructions:!!r[m.ks.PAPER_INSTRUCTIONS],hasInstructionsFile:!(null===(t=r[m.ks.FILES])||void 0===t||!t.length),paperFormatId:r[m.ks.PAPER_FORMAT],paperLevelId:r[m.ks.PAPER_LEVEL],languageStyleId:r[m.ks.LANGUAGE_STYLE],hasCalculationsAndSubjectExpertise:!!r[m.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE],software:this.isProgrammingForm?this.currentProgrammingLanguageTitle:this.currentSoftwareTitle}),"open_light_step")}},{key:"configure",value:function(e){var t=this,r=e.initialValues,i=e.purpose,o=e.orderUuid,a=e.isPagesWereCalculatedByWords;if(null!=r&&r.orderServiceTypeId){var c=this.configsStore.configs;if(r.orderServiceTypeId===Me&&(null==c||!c.isCalculationsEnabled)||r.orderServiceTypeId===Fe&&(null==c||!c.isProgrammingEnabled))return Promise.resolve()}this.$token=new f.XO,i&&(this.purpose=i),this.isReorderForm&&(this.$reorderOriginalOrderId=r[fe]);var l=Ye();return r&&(l=Object.assign(l,q({},m.ks.FILES,(0,n.sH)([])),r),this.isReorderForm&&(l[m.ks.FID]=void 0,l[m.ks.PAY_IN_PARTS]=void 0),(0,N.A)(this)),this.formManager.updateInitialValues(l),(r&&r[m.ks.FID]||this.isReorderForm)&&(this.$savingValuesPrevented=!0),this.filesUploadedCount&&this.purpose===m.UU.NEW_ORDER&&this.setFilesFromInitialValues().catch((function(){})),(!o&&!this.isPayOrderForm||this.isReorderForm)&&this.setOrderUuid((0,s.A)()),o&&this.isPayOrderForm&&this.setOrderUuid(o),this.stepsManager.configure({hasPreconfiguredFormState:Boolean(r)}),this.isInquiryForm&&this.stepsManager.setActiveStepId(m.gj.STEP_INQUIRY_DETAILS),a&&this.setIsPagesWereCalculatedByWords(!0),this.startSpyingOnDeliveryOptions(),Object.keys(Object(r)).length>0&&setTimeout((function(){t.viewItemTracker.pushEvent()}),100),this.load()}},{key:"configureFromOrder",value:function(e){var t=this;(0,n.h5)((function(){t.isLoading=!0}));var r=this.ordersStore.setOrderStore(e);return r.loadOrderIfNeeded().then((function(){var e=(0,v.A)(r),n=e.initialValues,i=e.purpose,o=e.isPagesWereCalculatedByWords,a=r.orderUuid;return t.configure({initialValues:n,purpose:i,orderUuid:a,isPagesWereCalculatedByWords:o})})).finally((function(){(0,n.h5)((function(){t.isLoading=!1}))}))}},{key:"tryRestoreFromStorage",value:(de=W(z().mark((function e(){var t;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storage.get();case 2:if(null==(t=e.sent)||!t.timestamp){e.next=6;break}return this.hydrateFromData(t),e.abrupt("return",t.timestamp);case 6:return e.abrupt("return",void 0);case 7:case"end":return e.stop()}}),e,this)}))),function(){return de.apply(this,arguments)})},{key:"removeStoredData",value:function(){var e;return null===(e=this.storage)||void 0===e?void 0:e.clear()}},{key:"saveToStorage",value:function(e){return this.storage.save(e)}},{key:"startSavingToStorage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.$savingValuesPrevented||this.storage.startSaving((function(){return e.getDataForSavingToStorage()}),$({debounce:2e3},t))}},{key:"stopSavingToStorage",value:function(){var e;return null===(e=this.storage)||void 0===e?void 0:e.stopSaving()}},{key:"getDataForSavingToStorage",value:function(){return{formValues:this.formManager.getRawFormValues(),formEditedKeys:this.formManager.formEditedKeys,timestamp:Date.now(),dueDate:this.dueDate,stepsState:this.stepsManager.stepsState,orderUuid:this.orderUuid,isPagesWereCalculatedByWords:this.isPagesWereCalculatedByWords,isControlsTriggered:this.isControlsTriggered}}},{key:"hydrateFromData",value:function(e){var t=this,r=e.formValues,n=e.formEditedKeys,i=e.dueDate,o=e.stepsState,a=e.orderUuid,s=e.isPagesWereCalculatedByWords,c=e.isControlsTriggered;Object.keys(r).forEach((function(e){if(e!==te){if(e!==fe){var i=r[e];t.formManager.setSilently(e,i),!0===n[e]&&t.formManager.finishInteraction(e)}}else{var o=r[e];o&&o.length>0&&t.$loadFilesWithIds(o)}})),a&&this.setOrderUuid(a),void 0!==i&&i>Date.now()&&(this.$dueDate=i),o&&this.stepsManager.configureFromState(o),s&&this.setIsPagesWereCalculatedByWords(!0),c&&Object.keys(c).forEac
2h((function(e){c[e]&&t.setIsControlsTriggered(e,!0)})),this.viewItemTracker.pushEvent()}},{key:"setPublicStorage",value:function(){var e=this;this.storage=new f.wc({storageKey:Ge,type:"session"}),this.$disposeChangeStorage=(0,n.z7)((function(){return e.userProfileStore.isAuthorized}),W(z().mark((function t(){var r;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.stopSavingToStorage(),t.next=3,e.storage.get();case 3:if(!(r=t.sent)){t.next=7;break}return t.next=7,e.storage.clear();case 7:e.setPrivateStorage(),e.startSavingToStorage({fireImmediately:Boolean(r)});case 9:case"end":return t.stop()}}),t)}))),{name:"change storage to private for authenticated user"})}},{key:"setPrivateStorage",value:function(){var e=this,t=this.userProfileStore.profile.id;this.storage=new f.wc({storageKey:Ge,type:"local",isEncrypted:!0,encryptionKey:t}),this.$disposeChangeStorage=(0,n.z7)((function(){return!e.userProfileStore.isAuthorized}),W(z().mark((function t(){return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.setFormManagerToDefaultInitialValues(),e.reset(),e.startSpyingOnDeliveryOptions(),e.stepsManager.setDefaultInitialStep(),e.$token=new f.XO,e.setOrderUuid((0,s.A)()),e.setPublicStorage(),e.startSavingToStorage();case 8:case"end":return t.stop()}}),t)}))),{name:"change storage to public for non-authenticated user"})}},{key:"setStorage",value:(K=W(z().mark((function e(){var t=this;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,n.h5)((function(){t.isLoading=!0})),e.next=3,this.userProfileStore.isUpdatingProfile;case 3:(0,n.h5)((function(){t.isLoading=!1})),this.userProfileStore.isAuthorized?this.setPrivateStorage():this.setPublicStorage();case 5:case"end":return e.stop()}}),e,this)}))),function(){return K.apply(this,arguments)})},{key:"initStorage",value:(H=W(z().mark((function e(t){var r;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.setStorage();case 3:if(t){e.next=8;break}return e.next=6,this.tryRestoreFromStorage();case 6:(r=e.sent)&&this.showRestoredNotification(r);case 8:this.startSavingToStorage({fireImmediately:t}),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(0),e.t0.presented=!0,this.errorsStore.handleError(e.t0);case 15:case"end":return e.stop()}}),e,this,[[0,11]])}))),function(e){return H.apply(this,arguments)})},{key:"showRestoredNotification",value:function(e){this.notificationsManager.pushNotification(m.TB.FORM_RESTORED,{props:{text:"We restored form you've entered on ".concat(l()(e,"dddd, mmm d 'at' H:MM:ss"))}})}},{key:"startSpyingOnDeliveryOptions",value:function(){var e=this;this.$spyOnDeliveryOptionsDisposer=(0,n.mJ)((function(){return e.isChosenDeliveryOptionObsolete&&e.formManager.formEditedKeys[m.ks.TARIFF]}),(function(t){t&&(0===e.availableDeliveryOptions.length?e.$setDueDate(e.timestampOfFirstAvailableDeadline):e.setTariffWithClosestHours(),e.notificationsManager.pushNotification(m.TB.DEADLINE_CHANGED))}),{name:"Change deadline if there is no delivery options available."})}},{key:"stopSpyingOnDeliveryOptions",value:function(){void 0!==this.$spyOnDeliveryOptionsDisposer&&this.$spyOnDeliveryOptionsDisposer()}},{key:"getDeadlineIdWithClosestHrs",value:function(e){if(void 0===this.configsStore.configs)return[];if(this.isProgrammingForm){var t=this.configsStore.configs.configsForProgramming.deadlinesById;return(0,R.A)(e,this.availableProgrammingDeadlinesIds,t)}if(this.isCalculationsForm){var r=this.configsStore.configs.configsForCalculations.deadlinesById;return(0,R.A)(e,this.availableCalculationsDeadlinesIds,r)}var n=this.configsStore.configs.configsForAcademicWriting.tariffsById;return(0,R.A)(e,this.availableTariffsIds,n)}},{key:"checkDisciplineIsNoCollage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disciplineId,r=void 0===t?this.formManager.formValues[Z]:t,n=e.academicLevelId,i=void 0===n?this.formManager.formValues[Q]:n,o=this.configsStore.configs.configsForAcademicWriting.disciplinesNocollegeIds;return i===m.UH.ACADEMIC_LEVEL_COLLAGE_ID&&o.includes(r)}},{key:"checkPagesPerHour",value:function(){var e=this.isPagesWereCalculatedByWords?(0,j.C)(this.formManager.formValues[ne],this.spacingFactor):this.formManager.formValues[re],t=this.configsStore.configs.configsForAcademicWriting.tariffsById[this.formManager.formValues[se]];if(t.hrs<=8)return e*this.spacingFactor>t.hrs}},{key:"getDeadlineWithClosestHours",value:function(e){return this.availableDeliveryOptions.slice().sort((function(t,r){return Math.abs(e-t.hours)-Math.abs(e-r.hours)}))[0]}},{key:"setTariffWithClosestHours",value:function(){var e,t,r=(null===(e=this.tariff)||void 0===e?void 0:e.hrs)||(null===(t=this.currentDeadline)||void 0===t?void 0:t.hours),n=this.getDeadlineWithClosestHours(r);this.formManager.setSilently(m.ks.TARIFF,n.id)}},{key:"load",value:function(){return Promise.all([this.$loadFilesIfNeeded(),this.loadCouponsForOrder(),this.userProfileStore.isAuthorized&&this.userProfileStore.startLoadingUnpaidOrders(),this.userProfileStore.isAuthorized&&this.userProfileStore.startLoadingWriters()])}},{key:"loadCouponsForOrder",value:(G=W(z().mark((function e(){return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.userProfileStore.isUpdatingProfile;case 2:if(!this.userProfileStore.isAuthorized){e.next=8;break}return e.next=5,this.couponsStore.loadOrderCoupons(this.formManager.formValues[fe]);case 5:!this.formManager.formValues[ve]&&this.lifetimeCoupon&&(this.formManager.setSilently(ve,this.lifetimeCoupon.code.code),this.formManager.setSilently(Te,!0)),e.next=10;break;case 8:return e.next=10,this.couponsStore.loadPublicCoupons();case 10:case"end":return e.stop()}}),e,this)}))),function(){return G.apply(this,arguments)})},{key:"onAuthorized",value:function(){this.isInquiryForm?this.stepsManager.goToInquiryDetailStep():(this.stepsManager.setStepAfterAuthorization(),this.loadCouponsForOrder())}},{key:"$loadFilesIfNeeded",value:function(){var e=this,t=this.isReorderForm&&this.$reorderOriginalOrderId||this.formManager.formValues[fe];return t?((0,n.h5)((function(){e.isLoadingFiles=!0})),this.transport({method:"get",url:"/api/orders/".concat(t,"/").concat(this.isReorderForm?"reorder_":"","files.json")}).then((function(t){return(0,x.v)(t,e.isReorderForm)})).then((function(t){var r=t.files;e.filesManager.addUploadedFiles(r.filter((function(e){return e.isUploadedByCustomer})))})).catch((function(t){t.presented=!0,e.errorsStore.handleError(t)})).finally((function(){(0,n.h5)((function(){e.isLoadingFiles=!1}))}
2))):Promise.resolve()}},{key:"$loadFilesWithIds",value:function(e){var t=this;return(0,n.h5)((function(){t.isLoadingFiles=!0})),this.transport({method:"post",url:"/api/get_files_info.json",data:{"filesToCheck[]":e}}).then((function(e){return Object.keys(e.files).filter((function(t){return null!==e.files[t]})).map((function(r){return(0,P.A)(e.files[r],t.configsStore)}))})).then((function(e){t.filesManager.addUploadedFiles(e)})).catch((function(e){e.presented=!0,t.errorsStore.handleError(e)})).finally((function(){(0,n.h5)((function(){t.isLoadingFiles=!1}))}))}},{key:"startSubmitting",value:function(){var e=this,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoAuth,r=void 0===t||t;return void 0===this.userProfileStore.profile?this.tryAutoAuthorize(r):this.formManager.firstError?((0,h.qv)({formType:this.formTypeForAnalytics,action:h.sK.UVOFORM_SUBMIT_PREVENTED,label:"".concat(this.formSubmitAnalyticsLabel,"-").concat(this.formManager.firstInvalidKey)}),this.formManager.incrementAttemptsToSubmitForm(),this.filesManager.files.forEach((function(e){return e.formManager.incrementAttemptsToSubmitForm()})),Promise.reject(this.formManager.firstError)):this.userProfileStore.profile.privacyOrTermsConfirmRequired?(this.dialogsStore.pushDialog(Ve),Promise.reject(new(o())("Please accept Terms & Conditions and Privacy Policy to proceed with your order.",m.I.NO_USER_POLICY_ACCEPTED))):this.userProfileStore.shouldUpdatePersonalData?(this.dialogsStore.pushDialog(Ue),Promise.reject(new(o())("Please update your email, name, and phone number.",m.I.NO_USER_PERSONAL_DATA))):((0,h.qv)({formType:this.formTypeForAnalytics,action:h.sK.UVOFORM_SUBMIT_STARTED,label:this.formSubmitAnalyticsLabel}),(0,n.h5)((function(){e.isSubmitting=!0})),this.filesManager.startUploadingAllSettledFiles().then((function(){var t=e.formManager.formValues[fe];return e.isProgrammingForm?void 0===t||e.isReorderForm?e.transport({method:"post",url:"/api/order/createProgramming.json",data:(0,k.A)(e)}):e.transport({method:"put",url:"/api/order/".concat(t,"/updateProgramming.json"),data:(0,k.A)(e)}):e.isCalculationsForm?void 0===t||e.isReorderForm?e.transport({method:"post",url:"/api/order/createCalculations.json",data:(0,O.A)(e)}):e.transport({method:"put",url:"/api/order/".concat(t,"/updateCalculations.json"),data:(0,O.A)(e)}):e.transport({method:"post",url:"/api/orders.json",data:(0,I.A)(e)})})).then(this.handleSuccessfulSubmit).catch(this.handleFailedSubmit).finally((function(){(0,n.h5)((function(){e.isSubmitting=!1}))})))}},{key:"showUnpaidDialogIfNeeded",value:(U=W(z().mark((function e(){return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.userProfileStore.getUnpaidOrders();case 2:e.sent.length&&this.dialogsStore.pushDialog(je);case 4:case"end":return e.stop()}}),e,this)}))),function(){return U.apply(this,arguments)})},{key:"shortenFormUrl",value:function(){var e=(0,F.A)(this.formManager.formValues,{utm_source:"twillo",utm_medium:"chat",utm_campaign:"chat"});return this.transport({method:"post",url:"/api/urlShortener.json",data:{url:e}})}},{key:"setFormManagerToDefaultInitialValues",value:function(){this.formManager.updateInitialValues(Ye())}},{key:"clearForm",value:(c=W(z().mark((function e(){return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setFormManagerToDefaultInitialValues(),this.reset(),e.next=4,this.removeStoredData();case 4:this.$token=new f.XO,this.startSpyingOnDeliveryOptions(),this.isInquiryForm?this.stepsManager.goToStepWithFeature(m.ks.ACADEMIC_LEVEL):this.stepsManager.setDefaultInitialStep(),this.setOrderUuid((0,s.A)()),this.startSavingToStorage();case 9:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"dispose",value:function(){this.stopSavingToStorage(),this.$disposeChangeStorage&&this.$disposeChangeStorage(),this.filesManager.dispose(),this.$token.cancel(),this.stopSpyingOnDeliveryOptions()}},{key:"reset",value:function(){this.dispose(),this.$savingValuesPrevented=!1,this.$dueDate=void 0,this.isLoadingFiles=!1,this.isSubmitting=!1,this.isPagesWereCalculatedByWords=!1,this.orderUuid=void 0,this.purpose=m.UU.NEW_ORDER,this.stepsManager.reset(),this.notificationsManager.reset(),this.formManager.resetForm(),this.filesManager.reset(),this.setIsPagesWereCalculatedByWords(!1),this.resetAllTriggeredControls(),this.viewItemTracker.reset()}}],r&&Y(t.prototype,r),i&&Y(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},77731:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(34089),r(95570),r(96104),r(21555),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(3492),o=r(41540);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var l=function(){function e(t){var r,i,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=this,o=void 0,(i=c(i="orderformStore"))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,(0,n.Gn)(this,{activeTips:n.EW,activeTipsByType:n.EW,advancedTip:n.EW,proficientTip:n.EW,chartsTip:n.EW,slidesTip:n.EW,sourcesTip:n.EW,calculationsTip:n.EW}),Object.defineProperties(this,{orderformStore:{get:function(){return t.orderformStore}}})}var t,r,a;return t=e,(r=[{key:"activeTips",get:function(){for(var e=[],t=0;t<o.A.length;t+=1){var r=(0,o.A[t])(this.orderformStore);if(r&&(e.push(r),1===e.length))break}return e}},{key:"activeTipsByType",get:function(){return this.activeTips.reduce((function(e,t){return e[t.type]=t,e}),{})}},{key:"topTip",get:function(){return this.activeTipsByType[i.o$.TOP]}
2},{key:"advancedTip",get:function(){return this.activeTipsByType[i.o$.ADVANCED]}},{key:"proficientTip",get:function(){return this.activeTipsByType[i.o$.PROFICIENT]}},{key:"chartsTip",get:function(){return this.activeTipsByType[i.o$.CHARTS]}},{key:"slidesTip",get:function(){return this.activeTipsByType[i.o$.SLIDES]}},{key:"sourcesTip",get:function(){return this.activeTipsByType[i.o$.SOURCES]}},{key:"calculationsTip",get:function(){return this.activeTipsByType[i.o$.CALCULATIONS_AND_SUBJECT_EXPERTISE]}}])&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},76224:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A});var n=r(77731)},41540:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});r(30935),r(68291);var n=r(3492),i=r(92227);const o=[function(e){var t=e.formManager,r=e.currentAcademicLevelTitle,o=e.orderUuid;if(t.formValues[n.ks.ACADEMIC_LEVEL]===n.Tz.GRADUATE){var a=[[n.ks.ACADEMIC_LEVEL,r]];return(0,i.a)({type:n.o$.TOP,percentRange:[43,52],triggers:a,orderUuid:o,actionButtons:void 0})}},function(e){var t=e.formManager,r=e.currentAcademicLevelTitle,o=e.orderUuid;if(t.formValues[n.ks.ACADEMIC_LEVEL]===n.Tz.PHD){var a=[[n.ks.ACADEMIC_LEVEL,r]];return(0,i.a)({type:n.o$.TOP,percentRange:[67,77],triggers:a,orderUuid:o,actionButtons:void 0})}},function(e){var t=e.formManager,r=e.orderUuid,o=t.formValues;if(o[n.ks.PAGES_QTY]>=4&&o[n.ks.PAGES_QTY]<=9){var a=[[n.ks.PAGES_QTY,"4-9"]];return(0,i.a)({type:n.o$.ADVANCED,percentRange:[43,52],triggers:a,orderUuid:r,actionButtons:void 0})}},function(e){var t=e.formManager,r=e.orderUuid;if(t.formValues[n.ks.PAGES_QTY]>=10){var o=[[n.ks.PAGES_QTY,"10+"]];return(0,i.a)({type:n.o$.TOP,percentRange:[23,32],triggers:o,orderUuid:r,actionButtons:void 0})}},function(e){var t=e.formManager.formValues,r=e.paperTypeTitle,o=e.orderUuid;if(15===t[n.ks.TYPE_OF_PAPER])return(0,i.a)({type:n.o$.SOURCES,percentRange:[23,32],triggers:[[n.ks.TYPE_OF_PAPER,r]],orderUuid:o})},function(e){var t=e.formManager.formValues,r=e.paperTypeTitle,o=e.orderUuid;if([11,49,65,57].includes(t[n.ks.TYPE_OF_PAPER]))return(0,i.a)({type:n.o$.CHARTS,percentRange:[43,52],triggers:[[n.ks.TYPE_OF_PAPER,r]],orderUuid:o})},function(e){var t=e.formManager.formValues,r=e.paperTypeTitle,o=e.orderUuid;if(4===t[n.ks.TYPE_OF_PAPER])return(0,i.a)({type:n.o$.SLIDES,percentRange:[67,77],triggers:[[n.ks.TYPE_OF_PAPER,r]],orderUuid:o})},function(e){var t=e.formManager.formValues,r=e.currentDisciplineTitle,o=e.orderUuid;if([9,72,12,74,19,24,28,37].includes(t[n.ks.DISCIPLINE]))return(0,i.a)({type:n.o$.CHARTS,percentRange:[43,52],triggers:[[n.ks.DISCIPLINE,r]],orderUuid:o})},function(e){var t=e.formManager,r=e.paperTypeTitle,o=e.currentAcademicLevelTitle,a=e.orderUuid,s=t.formValues;if(s[n.ks.ACADEMIC_LEVEL]===n.Tz.UNDERGRAD_3_4&&[13,35,43,65,57,8].includes(s[n.ks.TYPE_OF_PAPER])){var c=[[n.ks.TYPE_OF_PAPER,r],[n.ks.ACADEMIC_LEVEL,o]];return(0,i.a)({type:n.o$.TOP,percentRange:[23,32],triggers:c,orderUuid:a,actionButtons:void 0})}},function(e){var t=e.formManager,r=e.paperTypeTitle,o=e.currentAcademicLevelTitle,a=e.orderUuid,s=t.formValues;if(s[n.ks.ACADEMIC_LEVEL]===n.Tz.UNDERGRAD_3_4&&[53,16,11,7,18,9,73,45,51,63,55,3,4,6,10].includes(s[n.ks.TYPE_OF_PAPER])){var c=[[n.ks.TYPE_OF_PAPER,r],[n.ks.ACADEMIC_LEVEL,o]];return(0,i.a)({type:n.o$.ADVANCED,percentRange:[23,32],triggers:c,orderUuid:a,actionButtons:void 0})}},function(e){var t=e.formManager,r=e.currentDisciplineTitle,o=e.currentAcademicLevelTitle,a=e.orderUuid,s=t.formValues;if(s[n.ks.ACADEMIC_LEVEL]===n.Tz.UNDERGRAD_3_4&&3===s[n.ks.DISCIPLINE]){var c=[[n.ks.DISCIPLINE,r],[n.ks.ACADEMIC_LEVEL,o]];return(0,i.a)({type:n.o$.TOP,percentRange:[23,32],triggers:c,orderUuid:a,actionButtons:void 0})}},function(e){var t=e.formManager,r=e.currentDisciplineTitle,o=e.currentAcademicLevelTitle,a=e.orderUuid,s=t.formValues;if(s[n.ks.ACADEMIC_LEVEL]===n.Tz.UNDERGRAD_3_4&&[1,2,71,42,8,72,73,48,15,16,74,19,49,53,75,62,39,21,80,25,47,29,79,54,35,37].includes(s[n.ks.DISCIPLINE])){var c=[[n.ks.DISCIPLINE,r],[n.ks.ACADEMIC_LEVEL,o]];return(0,i.a)({type:n.o$.ADVANCED,percentRange:[23,32],triggers:c,orderUuid:a,actionButtons:void 0})}},function(e){var t=e.formManager.formValues,r=e.paperTypeTitle,o=e.orderUuid;if([53,71,35,73].includes(t[n.ks.TYPE_OF_PAPER]))return(0,i.a)({type:n.o$.CHARTS,percentRange:[23,32],triggers:[[n.ks.TYPE_OF_PAPER,r]],orderUuid:o})},function(e){var t=e.formManager.formValues,r=e.paperTypeTitle,o=e.orderUuid;if([7,9,3,10].includes(t[n.ks.TYPE_OF_PAPER]))return(0,i.a)({type:n.o$.SOURCES,percentRange:[23,32],triggers:[[n.ks.TYPE_OF_PAPER,r]],orderUuid:o})},function(e){var t=e.formManager,r=t.formValues,o=t.formDisabledItemsIds,a=e.paperTypeTitle,s=e.orderUuid,c=o[n.ks.LANGUAGE_STYLE].includes(n.V8.PROFICIENT);
2if(67===r[n.ks.TYPE_OF_PAPER]&&!c)return(0,i.a)({type:n.o$.PROFICIENT,percentRange:[23,32],triggers:[[n.ks.TYPE_OF_PAPER,a]],orderUuid:s})},function(e){var t=e.formManager,r=e.currentDisciplineTitle,o=e.orderUuid,a=t.formDisabledItemsIds[n.ks.LANGUAGE_STYLE].includes(n.V8.PROFICIENT);if([59,81,10,57,65,41,27,60,31,34].includes(t.formValues[n.ks.DISCIPLINE])&&!a)return(0,i.a)({type:n.o$.PROFICIENT,percentRange:[23,32],triggers:[[n.ks.DISCIPLINE,r]],orderUuid:o})},function(e){var t=e.formManager.formValues,r=e.currentDisciplineTitle,o=e.orderUuid;if([15,8,22,23,38,63,80,25,47,53,50,69,67,79,44,75,17,70,71].includes(t[n.ks.DISCIPLINE]))return(0,i.a)({type:n.o$.CALCULATIONS_AND_SUBJECT_EXPERTISE,percentRange:[40,55],triggers:[[n.ks.DISCIPLINE,r]],orderUuid:o})},function(e){var t=e.formManager.formValues,r=e.currentDisciplineTitle,o=e.orderUuid;if([1,5,42,39].includes(t[n.ks.DISCIPLINE]))return(0,i.a)({type:n.o$.CHARTS,percentRange:[23,32],triggers:[[n.ks.DISCIPLINE,r]],orderUuid:o})},function(e){var t=e.formManager.formValues,r=e.currentDisciplineTitle,o=e.orderUuid;if(20===t[n.ks.DISCIPLINE])return(0,i.a)({type:n.o$.SOURCES,percentRange:[23,32],triggers:[[n.ks.DISCIPLINE,r]],orderUuid:o})}]},92227:(e,t,r)=>{"use strict";r.d(t,{a:()=>c});r(68450),r(66264),r(23510),r(96656),r(37729),r(21555),r(94356),r(45993),r(54),r(95790),r(37210),r(79683),r(69399),r(48851),r(95570),r(84766),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890);var n=r(3492),i=r(58165);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=new Map;function c(e){if(!e.triggers)return e;var t=e.type,r=o(e.percentRange,2),a=r[0],c=r[1],l=o(e.triggers,1),u=o(l[0],2),d=u[0],f=u[1],p=e.orderUuid,h=e.actionButtons,m=void 0===h?void 0:h,y="".concat(t,"_").concat(a,"_").concat(c,"_").concat(f).concat("_",m?m.map((function(e){return"".concat(e.id,"_").concat(e.isVisible)})).join("_"):""),v=s.get(y);if(v)return v;var g=function(e){var t=e.type,r=e.percent,i=e.key,o=e.value;if(t===n.o$.TOP){var a=i===n.ks.PAGES_QTY?"tasks of ".concat(o," pages"):"<strong>".concat(o,"</strong> assignments");return"".concat(r,"% of our clients choose <strong>Top-level</strong> paper for ").concat(a)}if(t===n.o$.ADVANCED){var s=i===n.ks.PAGES_QTY?"tasks of ".concat(o," pages"):"<strong>".concat(o,"</strong> assignments");return"".concat(r,"% of our clients choose <strong>Advanced</strong> paper for ").concat(s)}if(t===n.o$.PROFICIENT)return"".concat(r,"% of our clients order <strong>Proficient English</strong> for <b>").concat(o,"</b> assignments");if(t===n.o$.SOURCES)return"".concat(r,"% of our clients order <strong>Printable sources</strong> for <b>").concat(o,"</b> papers");if(t===n.o$.CHARTS)return"".concat(r,"% of our clients order charts for <b>").concat(o,"</b> papers");if(t===n.o$.SLIDES)return"".concat(r,"% of our clients order slides for <b>").concat(o,"</b> papers");if(t===n.o$.CALCULATIONS_AND_SUBJECT_EXPERTISE)return"".concat(r,"% of our clients add Calculations & Subject Expertise service for <b>").concat(o,"</b> assignments");throw new Error("Unknown tip type: ".concat(t))}({type:t,percent:(0,i.rV)(a,c),key:d,value:f}),b={type:t,html:g,triggers:e.triggers,orderUuid:p,actionButtons:m};return s.set(y,b),b}},50121:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,Ly:()=>a});r(24493),r(21555),r(22892),r(29416),r(66264),r(23510),r(85028),r(58948),r(79683),r(69399),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];
2i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(o=i.key,a=void 0,a=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===n(a)?a:String(a)),i)}var o,a}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var a=19;const s=new(o((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Object.keys(t).forEach((function(e){var n=t[e];r[e]=n,r[n]=e}))})))({"api/react":a,"api/react-short":21})},38674:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(34089),r(21555),r(5858),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(61938),i=r(97057),o=r(3492);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var l=function(){function e(t){var r,o,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=this,o="formManager",a=new n.A({availableKeys:["text"],initialValues:{text:""},valuesValidator:{text:function(e){return i.Ru(100)(e)||i.mw(e)}}}),(o=c(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,Object.defineProperties(this,{dialogsStore:{get:function(){return t.dialogsStore}}})}var t,r,a;return t=e,r=[{key:"setValue",value:function(e){this.formManager.setValue("text",e)}},{key:"create",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(n){t.dialogsStore.pushDialog(o.g5.MODAL_OTHER_OPTION,{title:e,initialValue:r,onSubmit:function(e){n(e)}})}))}},{key:"submit",value:function(){var e=this;return this.formManager.submit((function(){return Promise.resolve(e.formManager.formValues.text)}))}},{key:"reset",value:function(){this.formManager.resetForm()}}],r&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},32894:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(66542),r(21555),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(5858),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(95570),r(22892),r(85146),r(11823),r(86940),r(17626),r(84766);var n=r(83794),i=r(24289),o=r(3492);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(){s=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,c,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,c)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,571 bytes, line 2
2))}function I(e,t){function r(i,o,s,c){var l=p(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==a(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(a(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,c,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function c(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function u(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}const f=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"pushedEventsByServiceType",{}),u(this,"formStore",void 0),(0,n.Gn)(this,{pushedEventsByServiceType:n.sH,currentOrderServiceType:n.EW,isSomeKeyInteracted:n.EW,isSomeKeyInteracting:n.EW,hasBeenInteracted:n.EW,pushEvent:n.XI,reset:n.XI}),this.formStore=t,(0,n.fm)((function(){r.hasBeenInteracted&&r.pushEvent()}),{delay:100})}var t,r,a,d,f;return t=e,r=[{key:"currentOrderServiceType",get:function(){return this.formStore.formManager.formValues[o.ks.ORDER_SERVICE_TYPE]}},{key:"isSomeKeyInteracted",get:function(){var e=this;return this.formStore.availableKeys.some((function(t){return t!==o.ks.ORDER_SERVICE_TYPE&&e.formStore.formManager.formInteractedKeys[t]}))}},{key:"isSomeKeyInteracting",get:function(){var e=this.formStore.formManager.formInteractingKey;return!!e&&e!==o.ks.ORDER_SERVICE_TYPE}},{key:"hasBeenInteracted",get:function(){return!this.pushedEventsByServiceType[this.currentOrderServiceType]&&(this.isSomeKeyInteracted||this.isSomeKeyInteracting)}},{key:"pushEvent",value:(d=s().mark((function e(){var t=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.pushedEventsByServiceType[this.currentOrderServiceType]=!0,e.next=3,(0,n.z7)((function(){return!t.formStore.couponsStore.isLoadingCoupons}));case 3:i.TQ.viewItem(this.formStore.orderInfoForGA4);case 4:case"end":return e.stop()}}),e,this)})),f=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=d.apply(e,t);function o(e){c(i,r,n,o,a,"next",e)}function a(e){c(i,r,n,o,a,"throw",e)}o(void 0)}))},function(){return f.apply(this,arguments)})},{key:"reset",value:function(){this.pushedEventsByServiceType={}}}],r&&l(t.prototype,r),a&&l(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},7010:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(64575),i=r(3492);const o=function(e){var t,r=e.formManager,o=e.complexAssignmentDiscipline,a=e.configsStore,s=e.winbackCoupons,c=e.coupon,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=r.formValues,d=a.configs.configsForAcademicWriting,f=d.tariffsById,p=d.paperLevelsById,h=d.languageStylesById,m=f[l.tariffId||u[i.ks.TARIFF]],y=c&&c.typeId===i.Gi.ORDER?c:void 0,v=u[i.ks.ORDER_SERVICE_TYPE],g=u[i.ks.TYPE_OF_PAPER],b=null===(t=a.configs.payInPartsValuesById[u[i.ks.PAY_IN_PARTS]])||void 0===t?void 0:t.value,E={pages:u[i.ks.PAGES_QTY],slides:u[i.ks.SLIDES_QTY],charts:u[i.ks.CHARTS_QTY],tariffPricePerPage:null==m?void 0:m.pricePerPage,tariffHrs:null==m?void 0:m.hrs,spacing:u[i.ks.SPACING],getProgressiveDeliveryOn:u[i.ks.GET_PROGRESSIVE_DELIVERY],getUsedSourcesOn:u[i.ks.GET_COPY_OF_SOURCES],coupon:y,winbackCoupons:s,academicLevelId:u[i.ks.ACADEMIC_LEVEL],orderServiceTypeId:v,typeOfPaperId:g,splitPayment:u[i.ks.SPLIT_PAYMENT],paperLevel:p[u[i.ks.PAPER_LEVEL]],languageStyle:h[u[i.ks.LANGUAGE_STYLE]],hasPremiumAIReport:u[i.ks.PREMIUM_AI_REPORT],complexAssignmentDiscipline:o,hasCalculationsAndSubjectExpertise:u[i.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE],hasPayInParts:u[i.ks.PAY_IN_PARTS_SWITCH],payInPartsValue:b};try{return n.calculate(E)}catch(e){console.error(e)}}},33865:(e,t,r)=>{"use strict";r.d(t,{A:()=>
2o});var n=r(64575),i=r(3492);const o=function(e){var t=e.itemPrice,r=e.currentDeadline.priceModifier,o=e.coupon,a=e.currentDisciplineTitle,s=e.winbackCoupons,c=e.formManager.formValues,l=e.configsStore.configs.configsForCalculations.deadlinesById,u=o&&o.typeId===i.Gi.ORDER?o:void 0,d=l[c[i.ks.TARIFF]],f={calculationsItemPrice:t,calculationsPriceModifier:r,calculationsTitle:a,coupon:u,winbackCoupons:s,orderServiceTypeId:c[i.ks.ORDER_SERVICE_TYPE],splitPayment:c[i.ks.SPLIT_PAYMENT],tariffHrs:d.hours};try{return n.calculate(f)}catch(e){console.error(e)}}},85886:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(64575),i=r(3492);const o=function(e){var t=e.itemPrice,r=e.currentDeadline.priceModifier,o=e.coupon,a=e.currentDisciplineTitle,s=e.winbackCoupons,c=e.formManager.formValues,l=e.configsStore.configs.configsForProgramming.deadlinesById,u=o&&o.typeId===i.Gi.ORDER?o:void 0,d=l[c[i.ks.TARIFF]],f={programmingItemPrice:t,programmingPriceModifier:r,programmingTitle:a,coupon:u,winbackCoupons:s,orderServiceTypeId:c[i.ks.ORDER_SERVICE_TYPE],splitPayment:c[i.ks.SPLIT_PAYMENT],hasWellCommentedCode:c[i.ks.WELL_COMMENTED_CODE],hasTopExpert:c[i.ks.TOP_EXPERT],tariffHrs:d.hours};try{return n.calculate(f)}catch(e){console.error(e)}}},78855:(e,t,r)=>{"use strict";r.d(t,{Gs:()=>i.A,VK:()=>o.A,mK:()=>n.A});var n=r(7010),i=r(85886),o=r(33865)},33651:(e,t,r)=>{"use strict";r.d(t,{F:()=>u,i:()=>l});r(25400),r(21555),r(95790),r(95570),r(54),r(66542),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(30350),i=r.n(n),o=r(97057),a=r(3492);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=function(e,t){var r=a.ks.PAGES_QTY,n=a.ks.SLIDES_QTY,o=a.ks.CHARTS_QTY,s=a.I.UVOFORM_VALIDATION_ALL_ZERO,c=[r,n,o],l=[];if((e[r]||0)<1&&(e[n]||0)<1&&(e[o]||0)<1){var u=c.filter((function(e){return t.formAvailableKeysById[e]}));if(u.length){var d=u.map((function(e){switch(e){case r:return"1 page";case n:return"1 slide";case o:return"1 chart";default:return"1 ".concat(e)}}));l.push(new(i())({message:"You need to order at least ".concat(d.join(" or ")),code:s}))}}return l},u=function(e){var t,r=a.ks.ACADEMIC_LEVEL,n=a.ks.TYPE_OF_PAPER,i=a.ks.TYPE_OF_PAPER_OTHER,s=a.ks.DISCIPLINE,l=a.ks.DISCIPLINE_OTHER,u=a.ks.TOPIC,d=a.ks.PAGES_QTY,f=a.ks.SPACING,p=a.ks.SOURCES_QTY,h=a.ks.PAPER_FORMAT,m=a.ks.PAPER_FORMAT_OTHER,y=a.ks.TARIFF,v=a.ks.SLIDES_QTY,g=a.ks.CHARTS_QTY,b=a.ks.REQUESTED_WRITER,E=a.ks.PAPER_LEVEL,w=a.ks.LANGUAGE_STYLE,S=a.ks.PROGRAMMING_LANGUAGE,A=a.ks.PROGRAMMING_LANGUAGE_OTHER,_=a.ks.SOFTWARE,x=a.ks.SOFTWARE_OTHER,P=a.I.UVOFORM_VALIDATION_ALL_ZERO,I=a.UH.DISCIPLINE_OTHER_ID,k=a.UH.TYPE_OF_PAPER_OTHER_ID,O=a.UH.PAPER_FORMAT_OTHER_ID,T=a.UH.PROGRAMMING_LANGUAGE_OTHER_ID,C=a.UH.SOFTWARE_OTHER_ID,R=function(e){return e.otherErrorsList.some((function(e){return e.code===P}))};return c(t={},r,(function(e,t,n){return o.mw(e)||o.r9(e,n.formDisabledItemsIds[r])})),c(t,n,(function(e,t,r){return o.mw(e)||o.r9(e,r.formDisabledItemsIds[n])})),c(t,i,(function(e,t){if(t[n]===k)return o.Ru(100)(e)||o.mw(e)})),c(t,s,(function(e,t,r){return o.mw(e)||o.r9(e,r.formDisabledItemsIds[s])})),c(t,l,(function(e,t){if(t[s]===I)return o.Ru(100)(e)||o.mw(e)})),c(t,u,(function(e){return o.Ru(100)(e)})),c(t,d,(function(t,r,n){return R(n)||o.mw(t)||t>e.pagesMaxAvailable})),c(t,f,o.mw),c(t,p,(function(t){return o.mw(t)||t>e.sourcesMaxAvailable})),c(t,h,o.mw),c(t,m,(function(e,t){if(t[h]===O)return o.mw(e)})),c(t,y,o.mw),c(t,v,(function(e,t,r){return R(r)||o.mw(e)})),c(t,g,(function(e,t,r){return R(r)||o.mw(e)})),c(t,b,(function(){})),c(t,E,o.mw),c(t,w,o.mw),c(t,A,(function(e,t){if(t[S]===T)return o.Ru(100)(e)||o.mw(e)})),c(t,x,(function(e,t){if(t[_]===C)return o.Ru(100)(e)||o.mw(e)})),t}},12200:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(30935),r(68291),r(25400),r(21555),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(3492);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const a=function(e){var t;return o(t={},n.ks.ACADEMIC_LEVEL,(function(){var t=e.configsStore.configs,r=e.formManager.formValues[n.ks.TYPE_OF_PAPER];return t.configsForAcademicWriting.dissertationPaperTypesIds.includes(r)?[n.UH.ACADEMIC_LEVEL_COLLAGE_ID,n.UH.ACADEMIC_LEVEL_UNDERGRADUATE_1_2_ID]:e.checkDisciplineIsNoCollage({academicLevelId:n.UH.ACADEMIC_LEVEL_COLLAGE_ID})?[n.UH.ACADEMIC_LEVEL_COLLAGE_ID]:[]})),o(t,n.ks.DISCIPLINE,(function(){return e.configsStore.configs.configsForAcademicWriting.disciplinesIds.filter((function(t){return e.checkDisciplineIsNoCollage({disciplineId:t})}))})),o(t,n.ks.TYPE_OF_PAPER,(function(){var t=e.configsStore.configs,r=e.formManager.formValues[n.ks.ACADEMIC_LEVEL];return t&&r<n.UH.DISSERTATION_PAPERTYPE_MIN_ACADEMIC_LEVEL?t.configsForAcademicWriting.dissertationPaperTypesIds:[]})),o(t,n.ks.LANGUAGE_STYLE,(function(){return void 0!==e.formManager.formValues[n.ks.REQUESTED_WRITER]?[n.V8.PROFICIENT]:[]})),t}},92091:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(30935),r(68291),r(1569),r(21555),r(66542),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(3492);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const a=function(e){var t;return o(t={},n.ks.ORDER_SERVICE_TYPE,(function(t){var r=e.configsStore.configs;return t&&null!=r&&r.orderServiceTypesIds.includes(t)?t:null==r?void 0:r.defaultOrderServiceTypeId})),o(t,n.ks.ACADEMIC_LEVEL,(function(t){var r=e.userProfileStore.profile,i=e.configsStore.configs;if(void 0===t&&!e.formManager.formEditedKeys[n.ks.ACADEMIC_LEVEL]){if(r&&"number"==typeof r.lastAcademicLevel&&i&&i.configsForAcademicWriting.academicLevelsIds.includes(r.lastAcademicLevel))return r.lastAcademicLevel;var o=i&&i.configsForAcademicWriting.defaults.academicLevelId;
2return i&&i.configsForAcademicWriting.academicLevelsIds.includes(o)?o:i&&i.configsForAcademicWriting.academicLevelsIds[0]}if(i&&i.configsForAcademicWriting.academicLevelsIds.includes(t))return t})),o(t,n.ks.DISCIPLINE,(function(t){return e.isProgrammingForm?e.configsStore.configs.configsForProgramming.disciplinesIds.includes(t)?t:e.configsStore.configs.configsForProgramming.defaults.disciplineId:e.isCalculationsForm?e.configsStore.configs.configsForCalculations.disciplinesIds.includes(t)?t:e.configsStore.configs.configsForCalculations.defaults.disciplineId:e.isAcademicWritingForm?e.configsStore.configs.configsForAcademicWriting.disciplinesIds.includes(t)?t:e.configsStore.configs.configsForAcademicWriting.defaults.disciplineId:t})),o(t,n.ks.TARIFF,(function(t){var r,i,o;if(void 0===t){if(e.isProgrammingForm||e.isCalculationsForm)return e.currentOrderServiceTypeConfig.defaults.deadlineId;var a=e.availableTariffsIds.find((function(t){return e.configsStore.configs.configsForAcademicWriting.defaults.tariffIds.includes(t)}));if(a)return a;var s=e.formManager.formValues[n.ks.ACADEMIC_LEVEL],c=e.configsStore.findDeadlineIdForAcademicLevelByHour(s,72);return c&&e.availableTariffsIds.includes(c)?c:e.availableTariffsIds[0]}if(e.isAcademicWritingForm){if(e.availableTariffsIds.includes(t))return t}else if(e.isProgrammingForm){if(e.availableProgrammingDeadlinesIds.includes(t))return t}else if(e.isCalculationsForm&&e.availableCalculationsDeadlinesIds.includes(t))return t;var l=(null===(r=e.configsStore.configs)||void 0===r?void 0:r.configsForAcademicWriting.tariffsById[t])||(null===(i=e.configsStore.configs)||void 0===i?void 0:i.configsForProgramming.deadlinesById[t])||(null===(o=e.configsStore.configs)||void 0===o?void 0:o.configsForCalculations.deadlinesById[t]);return l?e.getDeadlineIdWithClosestHrs(l.hours):e.isProgrammingForm||e.isCalculationsForm?e.currentOrderServiceTypeConfig.defaults.deadlineId:void 0})),o(t,n.ks.TASK_SIZE,(function(t){return e.isProgrammingForm?e.configsStore.configs.configsForProgramming.sizesIds.includes(t)?t:e.configsStore.configs.configsForProgramming.defaults.sizeId:e.isCalculationsForm?e.configsStore.configs.configsForCalculations.sizesIds.includes(t)?t:e.configsStore.configs.configsForCalculations.defaults.sizeId:t})),o(t,n.ks.TYPE_OF_PAPER,(function(t){return void 0===t?e.configsStore.isAcademicWritingSiteForPaidTraffic?1:e.configsStore.configs.configsForAcademicWriting.defaults.paperTypeId:t})),o(t,n.ks.PAPER_FORMAT,(function(t){return void 0!==t&&e.configsStore.configs.configsForAcademicWriting.paperFormatsById[t]?t:e.configsStore.configs.configsForAcademicWriting.defaults.paperFormatId})),o(t,n.ks.REQUESTED_WRITER,(function(t){if(e.availableWriters.some((function(e){return e.id===t})))return t})),o(t,n.ks.COUPON_CODE,(function(t){if(e.formManager.formValues[n.ks.COUPON_CODE_SWITCH])return t?t.toUpperCase():t})),o(t,n.ks.SPLIT_PAYMENT,(function(t){return!e.formManager.formValues[n.ks.GET_PROGRESSIVE_DELIVERY]&&t})),o(t,n.ks.PAY_IN_PARTS_SWITCH,(function(t){return!!e.formManager.formValues[n.ks.GET_PROGRESSIVE_DELIVERY]&&t})),o(t,n.ks.PREMIUM_AI_REPORT,(function(e){return e})),o(t,n.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE,(function(e){return e})),o(t,n.ks.ONLY_OWN_CODE_SOLUTION,(function(e){return e})),o(t,n.ks.WELL_COMMENTED_CODE,(function(e){return e})),o(t,n.ks.TOP_EXPERT,(function(t){var r=e.formManager.formValues[n.ks.REQUESTED_WRITER];if(void 0===r)return e.setForcedChooseTopExpert(!1),t;var i=e.userProfileStore.requestWritersById[r].category,o=![n.rU.REGULAR].includes(i);return o&&e.setForcedChooseTopExpert(!0),o})),o(t,n.ks.PAPER_LEVEL,(function(t){var r=e.configsStore.configs.configsForAcademicWriting.defaults.paperLevelId,i=e.formManager.formValues[n.ks.REQUESTED_WRITER];return void 0!==i?e.userProfileStore.requestWritersById[i].paperLevelId:void 0===t?r:t})),o(t,n.ks.LANGUAGE_STYLE,(function(t){var r=e.configsStore.configs.configsForAcademicWriting.defaults.languageStyleId,i=e.formManager.formValues[n.ks.REQUESTED_WRITER];if(void 0!==i){var o=e.userProfileStore.requestWritersById[i].languageStyleId;if(o===n.V8.PROFICIENT)return o;if(t===n.V8.PROFICIENT)return r}return void 0===t?r:t})),o(t,n.ks.PAGES_QTY,(function(t){return void 0===t?e.configsStore.configs.configsForAcademicWriting.defaults.pages:t})),o(t,n.ks.WORDS_QTY,(function(t){return void 0!==t&&e.isPagesWereCalculatedByWords?t:e.wordsCount})),o(t,n.ks.SOFTWARE,(function(t){return void 0===t?e.configsStore.configs.configsForCalculations.defaults.softwareId:t})),o(t,n.ks.PROGRAMMING_LANGUAGE,(function(t){return void 0===t?e.configsStore.configs.configsForProgramming.defaults.programmingLanguageId:t})),t}},83246:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(30935),r(68291),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(3492);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const a=function(e){var t;return o(t={},n.ks.GET_PROGRESSIVE_DELIVERY,(function(){if(e.cost){var t=e.cost.servicesById[n.zv.PROGRESSIVE_DELIVERY];if(t.disabledReason||t.forcedReason)return!0}return!1})),o(t,n.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE,(function(){if(e.cost&&e.cost.servicesById[n.zv.COMPLEX_ASSIGNMENT].forcedReason)return!0;return!1})),o(t,n.ks.SPLIT_PAYMENT,(function(){return e.formManager.formValues[n.ks.GET_PROGRESSIVE_DELIVERY]})),o(t,n.ks.TOP_EXPERT,(function(){return Boolean(e.formManager.formValues[n.ks.REQUESTED_WRITER])})),o(t,n.ks.REQUESTED_WRITER,(function(){return Boolean(e.formManager.formValues[n.ks.TOP_EXPERT])&&!e.isForcedChooseTopExpert})),o(t,n.ks.PAPER_LEVEL,(function(){return void 0!==e.formManager.formValues[n.ks.REQUESTED_WRITER]})),o(t,n.ks.LANGUAGE_STYLE,(function(){var t=e.formManager.formValues[n.ks.REQUESTED_WRITER];if(void 0===t)return!1;var r=e.userProfileStore.requestWritersById[t].languageStyleId;return![n.V8.REGULAR,n.V8.SIMPLE].includes(r)})),o(t,n.ks.SPACING,(function(){return!!e.isPagesWereCalculatedByWords})),t}},17278:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(3492),i=r(11577),o=r(86510),a=r(18083);const s=function(e){return function(t,r){if(t===n.ks.TYPE_OF_PAPER&&(e.shouldResetPagesAndSlides&&(e.formManager.setSilently(n.ks.SLIDES_QTY,0),e.formManager.setSilently(n.ks.PAGES_QTY,2),e.shouldResetPagesAndSlides=!1),r===n.UH.TYPE_OF_PAPER_PRESENTATION_PPT_ID&&(e.formManager.setSilently(n.ks.SPACING,"double"),e.formManager.setSilently(n.ks.PAGES_QTY,0),e.formManager.setSilently(n.ks.SLIDES_QTY,4),e.shouldResetPagesAndSlides=!0)),e.formManager.formAvailableKeysById[n.ks.WORDS_QTY]){
2if(t===n.ks.PAGES_QTY){var s=(0,a.S)(r,e.spacingFactor);e.formManager.setSilently(n.ks.WORDS_QTY,s)}if(t===n.ks.WORDS_QTY){var c=(0,a.C)(r,e.spacingFactor);e.formManager.setSilently(n.ks.PAGES_QTY,c)}if(t===n.ks.SPACING)if(e.isPagesWereCalculatedByWords){var l=e.formManager.formValues[n.ks.WORDS_QTY];l>e.wordsMaxAvailable&&(l=e.wordsMaxAvailable,e.formManager.setSilently(n.ks.WORDS_QTY,l));var u=(0,a.C)(l,e.spacingFactor);e.formManager.setSilently(n.ks.PAGES_QTY,u)}else{var d=e.formManager.formValues[n.ks.PAGES_QTY],f=(0,a.S)(d,e.spacingFactor);e.formManager.setSilently(n.ks.WORDS_QTY,f)}}(0,o.A)(e),(0,i.A)(e)}}},43443:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(3492);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function s(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var l=function(){},u=function(){function e(t){var r=t.id,i=t.stepsManager,o=t.validator,a=t.onContentMount,c=t.onContentUnmount,u=t.getIsCollapsible,d=t.getDescriptor,f=void 0===d?l:d;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"id",void 0),s(this,"wasOpen",!1),s(this,"isChecked",!1),s(this,"number",void 0),s(this,"stepsManager",void 0),s(this,"validator",void 0),s(this,"onContentMount",void 0),s(this,"onContentUnmount",void 0),s(this,"getDescriptor",void 0),s(this,"stepRef",void 0),(0,n.Gn)(this,{wasOpen:n.sH,isChecked:n.sH,number:n.sH,stepRef:n.sH,isActive:n.EW,validationStatus:n.EW,isCollapsible:n.EW,descriptor:n.EW,isSkipped:n.EW,setNumber:n.XI,setStepRef:n.XI,markAsChecked:n.
2XI,setWasOpen:n.XI,handleContentMount:n.XI.bound,handleContentUnmount:n.XI.bound,reset:n.XI}),this.id=r,this.stepsManager=i,this.validator=o,this.onContentMount=a,this.onContentUnmount=c,this.getDescriptor=f,this.getIsCollapsible=u}var t,r,o;return t=e,(r=[{key:"isActive",get:function(){return this.id===this.stepsManager.activeStepId}},{key:"isCollapsible",get:function(){return!this.getIsCollapsible||this.getIsCollapsible()}},{key:"descriptor",get:function(){if(!this.isActive&&void 0!==this.validationStatus)return this.getDescriptor()||"None"}},{key:"isSkipped",get:function(){return!this.wasOpen&&(this.validationStatus===i.qr.SUCCESS||this.validationStatus===i.qr.WARNING)}},{key:"validationStatus",get:function(){var e=this.validator(this);return e||(this.isChecked?i.qr.SUCCESS:void 0)}},{key:"isSubtitleVisible",get:function(){return this.stepsManager.isStepSubtitleVisible}},{key:"markAsChecked",value:function(){this.isChecked=!0}},{key:"markAsOpened",value:function(){this.setWasOpen(!0)}},{key:"setWasOpen",value:function(e){this.wasOpen=e}},{key:"setNumber",value:function(e){this.number=e}},{key:"setStepRef",value:function(e){this.stepRef=e}},{key:"scrollIntoView",value:function(){if(this.stepRef){var e=this.stepRef.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:e,behavior:"smooth"})}}},{key:"handleContentMount",value:function(){this.markAsOpened(),this.onContentMount&&this.onContentMount()}},{key:"handleContentUnmount",value:function(){this.markAsChecked(),this.onContentUnmount&&this.onContentUnmount()}},{key:"reset",value:function(){this.wasOpen=!1,this.isChecked=!1}}])&&a(t.prototype,r),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},18235:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});r(78527),r(44436),r(39170),r(25400),r(21555),r(95790),r(1569),r(30935),r(68291),r(38415),r(84766),r(24493),r(22892),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(29416),r(57931),r(95570),r(44318),r(34089),r(5858),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(85146),r(11823),r(86940),r(17626),r(37210),r(96152),r(34237),r(74874),r(93831),r(40890);var n=r(83794),i=r(3492),o=r(43443),a=r(83106),s=r(711),c=r(65135);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(){f=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};u(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,571 bytes, line 2
2))}function I(e,t){function r(i,o,a,s){var c=p(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(l(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=u(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),u(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(d(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),u(x,c,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function p(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){p(o,n,i,a,s,"next",e)}function s(e){p(o,n,i,a,s,"throw",e)}a(void 0)}))}}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function v(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var b=[i.gj.STEP_INQUIRY_DETAILS,i.gj.STEP_ACCOUNT],E=[i.gj.STEP_ORDER_SERVICE_TYPE,i.gj.STEP_ACADEMIC_DETAILS,i.gj.STEP_ACADEMIC_CUSTOMIZATION,i.gj.STEP_SUMMARY,i.gj.STEP_ACCOUNT],w=[i.gj.STEP_ORDER_SERVICE_TYPE,i.gj.STEP_DEADLINE,i.gj.STEP_PROGRAMMING_REQUIREMENTS,i.gj.STEP_TASK_SIZE,i.gj.STEP_PROGRAMMING_EXTRAS,i.gj.STEP_SUMMARY,i.gj.STEP_ACCOUNT],S=[i.gj.STEP_ORDER_SERVICE_TYPE,i.gj.STEP_DEADLINE,i.gj.STEP_CALCULATIONS_REQUIREMENTS,i.gj.STEP_TASK_SIZE,i.gj.STEP_SUMMARY,i.gj.STEP_ACCOUNT],A=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,"activeStepId",""),v(this,"prevStepId",""),v(this,"isOnlyOrderServiceTypeStepDisplayed",!1),v(this,"formState",void 0),v(this,"validators",void 0),v(this,"descriptorsGetters",void 0),v(this,"stepsById",void 0),v(this,"goToInquiryDetailStep",(function(){r.setActiveStepIdAndScrollSmooth(i.gj.STEP_INQUIRY_DETAILS)})),v(this,"goToSummaryStep",(function(){r.setActiveStepIdAndScrollSmooth(i.gj.STEP_SUMMARY)})),v(this,"collapseAllSteps",(function(){r.setActiveStepId("")})),v(this,"setActiveStepIdAndScrollSmooth",(function(e){r.setActiveStepId(e),setTimeout((function(){r.stepsById[e].scrollIntoView()}),200)})),v(this,"goToNextStep",(function(){r.activeStepId===i.gj.STEP_ORDER_SERVICE_TYPE&&(r.isOnlyOrderServiceTypeStepDisplayed=!1,r.formState.viewItemTracker.pushEvent());var e=r.availableStepsIds.findIndex((function(e){return e===r.activeStepId}))+1;r.setActiveStepIdAndScrollSmooth(r.availableStepsIds[e])})),(0,n.Gn)(this,{activeStepId:n.sH,prevStepId:n.sH,isOnlyOrderServiceTypeStepDisplayed:n.sH,steps:n.EW,availableStepsIds:n.EW,availableSteps:n.EW,stepsState:n.EW,activeStepWithInstructionsAndFiles:n.EW,isStepSubtitleVisible:n.EW,isExcludedStepExtrasFromProgramming:n.EW,setActiveStepId:n.XI,setPrevStepId:n.XI,setActiveStepIdAndScrollSmooth:n.XI,goToNextStep:n.XI,setDefaultInitialStep:n.XI,configure:n.XI,configureFromState:n.XI,reset:n.XI}),this.formState=t,this.validators=(0,a.A)(this.formState),this.descriptorsGetters=(0,s.A)(this.formState),this.createAllSteps()}var t,r,l,d,p;return t=e,r=[{key:"createStep",value:function(e){var t=this;return new o.A(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?m(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({stepsManager:this,validator:this.validators[e.id],getDescriptor:this.descriptorsGetters[e.id],onContentMount:function(){return t.formState.trackFormChangeOnStepOpen(e.id)},onContentUnmount:function(){return t.formState.trackFormChangeOnStepClose(e.id)}},e))}},{key:"createAllSteps",value:function(){var e,t,r=this;this.stepsById=(v(e={},i.gj.STEP_ORDER_SERVICE_TYPE,this.createStep({id:i.gj.STEP_ORDER_SERVICE_TYPE,getIsCollapsible:function(){return!r.isOnlyOrderServiceTypeStepDisplayed&&!r.formState.isPayOrderForm}})),v(e,i.gj.STEP_DEADLINE,this.createStep({id:i.gj.STEP_DEADLINE})),v(e,i.gj.STEP_ACADEMIC_DETAILS,this.createStep({id:i.gj.STEP_ACADEMIC_DETAILS})),v(e,i.gj.STEP_ACADEMIC_CUSTOMIZATION,this.createStep({id:i.gj.STEP_ACADEMIC_CUSTOMIZATION})),v(e,i.gj.STEP_PROGRAMMING_REQUIREMENTS,this.createStep({id:i.gj.STEP_PROGRAMMING_REQUIREMENTS})),v(e,i.gj.STEP_CALCULATIONS_REQUIREMENTS,this.createStep({id:i.gj.STEP_CALCULATIONS_REQUIREMENTS})),v(e,i.gj.STEP_PROGRAMMING_EXTRAS,this.createStep({id:i.gj.STEP_PROGRAMMING_EXTRAS})),v(e,i.gj.STEP_TASK_SIZE,this.createStep({id:i.gj.STEP_TASK_SIZE})),v(e,i.gj.STEP_SUMMARY,this.createStep({id:i.gj.STEP_SUMMARY,onContentMount:function(){r.formState.trackFormChangeOnStepOpen(i.gj.STEP_SUMMARY),r.markAvailableStepsAsChecked()}})),v(e,i.gj.STEP_INQUIRY_DETAILS,this.createStep({id:i.gj.STEP_INQUIRY_DETAILS,onContentMount:(t=h(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.formState.trackFormChangeOnStepOpen(i.gj.STEP_INQUIRY_DETAILS),e.next=3,r.markAccountStepAsCheckedIfNeeded();case 3:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})})),v(e,i.gj.STEP_ACCOUNT,this.createStep({id:i.gj.STEP_ACCOUNT,getIsCollapsible:function(){return!r.formState.userProfileStore.isAuthorized}})),e)}},{key:"steps",get:function(){return Object.values(this.stepsById)}},{key:"availableStepsIds",get:function(){var e=[];if(this.formState.isInquiryForm)e=b;else if(this.isOnlyOrderServiceTypeStepDisplayed)e=[i.gj.STEP_ORDER_SERVICE_TYPE];else if(this.isExcludedStepExtrasFromProgramming)e=w.filter((function(e){return e!==i.gj.STEP_PROGRAMMING_EXTRAS}));else switch(this.formState.formManager.formValues[i.ks.ORDER_SERVICE_TYPE]){case i.B5.PROGRAMMING:e=w;break;case i.B5.CALCULATIONS:e=S;break;case i.B5.ACADEMIC_WRITING:default:e=E}return this.formState.configsStore.isAcademicWritingSiteForPaidTraffic&&!this.formState.userProfileStore.isAuthorized?e.filter((function(e){return e!==i.gj.STEP_SUMMARY})):e}},{key:"availableSteps",get:function(){var e=this;return this.availableStepsIds.map((function(t,r){var n=e.stepsById[t];return n.setNumber(r+1),n}))}},{key:"stepsState",get:function(){return{activeStepId:this.activeStepId,prevStepId:this.prevStepId,steps:this.steps.map((function(e){return{id:e.id,isChecked:e.isChecked,wasOpen:e.wasOpen}}))}}},{key:"activeStepWithInstructionsAndFiles",get:function(){return this.availableSteps.find((function(e){var t=e.id;return[i.gj.STEP_PROGRAMMING_REQUIREMENTS,i.gj.STEP_CALCULATIONS_REQUIREMENTS,i.gj.STEP_ACADEMIC_CUSTOMIZATION,i.gj.STEP_INQUIRY_DETAILS
2].includes(t)}))}},{key:"isStepSubtitleVisible",get:function(){return!this.formState.isAcademicWritingForm}},{key:"isExcludedStepExtrasFromProgramming",get:function(){var e=this.formState.formManager,t=e.formValues,r=e.formAvailableKeysById,n=[r[i.ks.TOP_EXPERT],r[i.ks.WELL_COMMENTED_CODE]];return t[i.ks.ORDER_SERVICE_TYPE]===i.B5.PROGRAMMING&&n.every((function(e){return void 0!==e&&!e}))}},{key:"configure",value:function(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{hasPreconfiguredFormState:!1}).hasPreconfiguredFormState){var e,t;if(this.isOnlyOrderServiceTypeStepDisplayed=!1,this.markAccountStepAsCheckedIfNeeded(),this.formState.isPayOrderForm)e=i.gj.STEP_SUMMARY;else if(this.formState.isReorderForm){var r=u(this.availableStepsIds,2);e=r[1]}else e=this.formState.isAcademicWritingForm?i.gj.STEP_ACADEMIC_DETAILS:i.gj.STEP_DEADLINE;if(this.formState.isReorderForm)t=this.availableSteps;else{var n=this.availableStepsIds.findIndex((function(t){return t===e}));t=this.availableSteps.slice(0,n)}t.forEach((function(e){e.markAsChecked(),e.markAsOpened()})),this.setActiveStepIdAndScrollSmooth(e)}else this.setDefaultInitialStep()}},{key:"setDefaultInitialStep",value:function(){if(this.formState.isNewOrderForm)if(this.formState.configsStore.isCustomWritingsCom){var e=this.formState.isAcademicWritingForm?i.gj.STEP_ACADEMIC_DETAILS:i.gj.STEP_DEADLINE,t=this.stepsById[i.gj.STEP_ORDER_SERVICE_TYPE];t&&(t.markAsChecked(),t.markAsOpened()),this.setActiveStepIdAndScrollSmooth(e)}else this.setActiveStepIdAndScrollSmooth(i.gj.STEP_ORDER_SERVICE_TYPE)}},{key:"excludeStepExtrasFromProgramming",value:function(){return this.formState.formManager.formAvailableKeysById[i.ks.TOP_EXPERT]||this.formState.formManager.formAvailableKeysById[i.ks.WELL_COMMENTED_CODE]?w:w.filter((function(e){return e!==i.gj.STEP_PROGRAMMING_EXTRAS}))}},{key:"configureFromState",value:function(e){var t=this,r=e.activeStepId,n=e.prevStepId,i=e.steps;this.isOnlyOrderServiceTypeStepDisplayed=!1,this.setActiveStepId(r),this.setPrevStepId(n),i.forEach((function(e){var r=e.id,n=e.isChecked,i=e.wasOpen,o=t.stepsById[r];n&&o.markAsChecked(),o.setWasOpen(i)}))}},{key:"setActiveStepId",value:function(e){var t=this.stepsById[this.activeStepId];t&&(this.setPrevStepId(t.id),t.handleContentUnmount()),this.activeStepId=e;var r=this.stepsById[e];r&&r.handleContentMount()}},{key:"setPrevStepId",value:function(e){this.prevStepId=e}},{key:"setStepAfterAuthorization",value:(p=h(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.stepsById[i.gj.STEP_SUMMARY].wasOpen||this.formState.configsStore.isAcademicWritingSiteForPaidTraffic?this.goToSummaryStep():this.activeStepId===i.gj.STEP_ACCOUNT&&this.prevStepId&&this.setActiveStepIdAndScrollSmooth(this.prevStepId),e.next=3,this.markAccountStepAsCheckedIfNeeded();case 3:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"markAvailableStepsAsChecked",value:function(){this.availableSteps.forEach((function(e){e.markAsChecked(),e.id===i.gj.STEP_ACCOUNT&&e.markAsOpened()}))}},{key:"setFirstStepWithErrorAsActive",value:function(){var e=this.availableSteps.find((function(e){return e.validationStatus===i.qr.ERROR}));e&&this.setActiveStepIdAndScrollSmooth(e.id)}},{key:"markAccountStepAsCheckedIfNeeded",value:(d=h(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.formState.userProfileStore.isUpdatingProfile){e.next=3;break}return e.next=3,this.formState.userProfileStore.isUpdatingProfile;case 3:this.formState.userProfileStore.isAuthorized&&(this.stepsById[i.gj.STEP_ACCOUNT].markAsChecked(),this.stepsById[i.gj.STEP_ACCOUNT].markAsOpened());case 4:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"goToStepWithFeature",value:function(e){var t=c.G[e],r=this.availableStepsIds.find((function(e){return t.includes(e)}));r&&this.setActiveStepIdAndScrollSmooth(r)}},{key:"reset",value:function(){this.activeStepId="",this.prevStepId="",this.isOnlyOrderServiceTypeStepDisplayed=!1,this.stepsById&&Object.values(this.stepsById).forEac
2h((function(e){return e.reset()}))}}],r&&y(t.prototype,r),l&&y(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}()},711:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(54),r(25400),r(21555),r(68450),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(93718),i=r.n(n),o=r(3492),a=r(58165);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return e.filter(Boolean).join(", ")}function u(e){var t;return c(t={},o.gj.STEP_ORDER_SERVICE_TYPE,(function(){return e.configsStore.isAcademicWritingSiteForPaidTraffic&&e.isAcademicWritingForm?"Humanities":e.orderServiceTypeTitle})),c(t,o.gj.STEP_DEADLINE,(function(){return"".concat(e.deliveryTime," (").concat(i()(e.deadlineDate,"mmm dd, h:MM TT"),")")})),c(t,o.gj.STEP_ACADEMIC_DETAILS,(function(){var t=e.formManager.formValues[o.ks.PAGES_QTY],r=e.formManager.formValues[o.ks.WORDS_QTY],n=e.formManager.formValues[o.ks.SLIDES_QTY],i=e.formManager.formValues[o.ks.CHARTS_QTY],s=e.formManager.formValues[o.ks.SPACING],c=t>0&&"".concat(t," ").concat((0,a.fk)("page",t)," (").concat(s,"-spaced)"),u=r>0&&"".concat(r," ").concat((0,a.fk)("word",r)," (").concat(s,"-spaced)");return l([e.currentAcademicLevelTitle,e.paperTypeTitle,e.currentDisciplineTitle,e.isPagesWereCalculatedByWords?u:c,n>0&&"".concat(n," ").concat((0,a.fk)("slide",n)),i>0&&"".concat(i," ").concat((0,a.fk)("chart",i))])})),c(t,o.gj.STEP_INQUIRY_DETAILS,(function(){var t=e.formManager.formValues[o.ks.PAGES_QTY],r=e.formManager.formValues[o.ks.WORDS_QTY],n=e.formManager.formValues[o.ks.SPACING],s=t>0&&"".concat(t," ").concat((0,a.fk)("page",t)," (").concat(n,"-spaced)"),c=r>0&&"".concat(r," ").concat((0,a.fk)("word",r)," (").concat(n,"-spaced)");return l([e.currentAcademicLevelTitle,e.paperTypeTitle,e.currentDisciplineTitle,e.isPagesWereCalculatedByWords?c:s,"".concat(e.deliveryTime," (").concat(i()(e.deadlineDate,"mmm dd, h:MM TT"),")")])})),c(t,o.gj.STEP_ACADEMIC_CUSTOMIZATION,(function(){var t="".concat(e.deliveryTime," (").concat(i()(e.deadlineDate,"mmm dd, h:MM TT"),")"),r=e.formManager.formValues[o.ks.PREMIUM_AI_REPORT],n=e.formManager.formValues[o.ks.GET_COPY_OF_SOURCES],s=e.formManager.formValues[o.ks.GET_PROGRESSIVE_DELIVERY],c=e.formManager.formValues[o.ks.SOURCES_QTY],u=e.formManager.formValues[o.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE],d=e.formManager.formValues[o.ks.REQUESTED_WRITER];return l([t,e.currentPaperLevelTitle,e.currentLanguageStyleTitle,!!d&&"#".concat(d),r&&"Premium AI report",u&&"Calculations",n&&"Printable sources",s&&"Progressive delivery",e.currentPaperFormatTitle,c>0&&"".concat(c," ").concat((0,a.fk)("reference",c))])})),c(t,o.gj.STEP_PROGRAMMING_REQUIREMENTS,(function(){return l([e.currentProgrammingLanguageTitle,e.currentDisciplineTitle])})),c(t,o.gj.STEP_CALCULATIONS_REQUIREMENTS,(function(){return l([e.currentDisciplineTitle,e.currentSoftwareTitle])})),c(t,o.gj.STEP_PROGRAMMING_EXTRAS,(function(){var t=e.formManager.formValues[o.ks.WELL_COMMENTED_CODE];return l([e.formManager.formValues[o.ks.TOP_EXPERT]&&"Top programming level",t&&"Well-commented code"])})),c(t,o.gj.STEP_TASK_SIZE,(function(){return l([e.currentTaskSizeTitle,e.canRequestWriter&&e.formManager.formValues[o.ks.REQUESTED_WRITER]])})),c(t,o.gj.STEP_SUMMARY,(function(){var t=e.cost,r=t.firstInstallmentCost,n=t.totalCost,i=r||n;return(0,a.$g)(i)})),c(t,o.gj.STEP_ACCOUNT,(function(){var t=e.userProfileStore,r=t.isAuthorized,n=t.profile;return r?n.email:"Sign up or Sign in"})),t}},83106:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(66542),r(21555),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(3492);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){var t;function r(t){return t.some((function(t){return Boolean(e.formManager.formErrors[t])&&Boolean(e.formManager.errorHiglightableKeys[t])}))}return o(t={},n.gj.STEP_ORDER_SERVICE_TYPE,(function(){if(r([n.ks.ORDER_SERVICE_TYPE]))return n.qr.ERROR})),o(t,n.gj.STEP_DEADLINE,(function(){return r([n.ks.TARIFF])?n.qr.ERROR:e.notificationsManager.notificationsById[n.TB.DEADLINE_CHANGED].isActive?n.qr.WARNING:void 0})),o(t,n.gj.STEP_ACADEMIC_DETAILS,(function(){if(r([n.ks.ACADEMIC_LEVEL,n.ks.TYPE_OF_PAPER,n.ks.TYPE_OF_PAPER_OTHER,n.ks.DISCIPLINE,n.ks.DISCIPLINE_OTHER,n.ks.PAGES_QTY,n.ks.SLIDES_QTY,n.ks.CHARTS_QTY]))return n.qr.ERROR})),o(t,n.gj.STEP_INQUIRY_DETAILS,(function(t){var i=t.isChecked;return r([n.ks.ACADEMIC_LEVEL,n.ks.TOPIC,n.ks.PAPER_INSTRUCTIONS,n.ks.TYPE_OF_PAPER,n.ks.TYPE_OF_PAPER_OTHER,n.ks.DISCIPLINE,n.ks.DISCIPLINE_OTHER,n.ks.TARIFF])?n.qr.ERROR:e.isNoFilesAndInstructionsAdded&&i?n.qr.WARNING:void 0})),o(t,n.gj.STEP_ACADEMIC_CUSTOMIZATION,(function(t){var i=t.isChecked;return r([n.ks.TARIFF,n.ks.TOPIC,n.ks.PAPER_INSTRUCTIONS,n.ks.PAPER_LEVEL,n.ks.LANGUAGE_STYLE,n.ks.PREMIUM_AI_REPORT,n.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE,n.ks.GET_COPY_OF_SOURCES,n.ks.GET_PROGRESSIVE_DELIVERY])?n.qr.ERROR:e.isNoFilesAndInstructionsAdded&&i||e.notificationsManager.notificationsById[n.TB.DEADLINE_CHANGED].isActive?n.qr.WARNING:void 0})),o(t,n.gj.STEP_PROGRAMMING_REQUIREMENTS,(function(t){var i=t.isChecked;return r([n.ks.PROGRAMMING_LANGUAGE,n.ks.PROGRAMMING_LANGUAGE_OTHER,n.ks.DISCIPLINE,n.ks.DISCIPLINE_OTHER])?n.qr.ERROR:e.isNoFilesAndInstructionsAdded&&i?n.qr.WARNING:void 0})),o(t,n.gj.STEP_CALCULATIONS_REQUIREMENTS,(function(t){var i=t.isChecked;return r([n.ks.DISCIPLINE,n.ks.DISCIPLINE_OTHER,n.ks.SOFTWARE,n.ks.SOFTWARE_OTHER])?n.qr.ERROR:e.isNoFilesAndInstructionsAdded&&i?n.qr.WARNING:void 0})),o(t,n.gj.STEP_PROGRAMMING_EXTRAS,(function(){if(r([n.ks.WELL_COMMENTED_CODE,n.ks.TOP_EXPERT]))return n.qr.ERROR})),o(t,n.gj.STEP_TASK_SIZE,(function(){if(r([n.ks.TASK_SIZE]))return n.qr.ERROR})),o(t,n.gj.STEP_SUMMARY,(function(){})),o(t,n.gj.STEP_ACCOUNT,(function(t){var r=t.wasOpen;if(!e.userProfileStore.isAuthorized&&r)return n.qr.ERROR})),t}},65135:(e,t,r)=>{"use strict";r.d(t,{G:()=>d});r(96104),r(21555),r(78370),r(24493),r(22892),r(37210),r(95570),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831
2),r(40890),r(66264),r(85028),r(58948),r(99180),r(59161);var n,i=r(3492);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l,u=(a(n={},i.gj.STEP_ORDER_SERVICE_TYPE,[i.ks.ORDER_SERVICE_TYPE]),a(n,i.gj.STEP_DEADLINE,[i.ks.TARIFF]),a(n,i.gj.STEP_ACADEMIC_DETAILS,[i.ks.ACADEMIC_LEVEL,i.ks.TYPE_OF_PAPER,i.ks.TYPE_OF_PAPER_OTHER,i.ks.DISCIPLINE,i.ks.DISCIPLINE_OTHER,i.ks.PAGES_QTY,i.ks.SPACING,i.ks.CHARTS_QTY,i.ks.SLIDES_QTY]),a(n,i.gj.STEP_INQUIRY_DETAILS,[i.ks.TOPIC,i.ks.ACADEMIC_LEVEL,i.ks.TYPE_OF_PAPER,i.ks.TYPE_OF_PAPER_OTHER,i.ks.DISCIPLINE,i.ks.DISCIPLINE_OTHER,i.ks.PAGES_QTY,i.ks.SPACING,i.ks.PAPER_INSTRUCTIONS,i.ks.TARIFF,i.ks.FILES]),a(n,i.gj.STEP_ACADEMIC_CUSTOMIZATION,[i.ks.TARIFF,i.ks.TOPIC,i.ks.PAPER_INSTRUCTIONS,i.ks.FILES,i.ks.PAPER_FORMAT,i.ks.SOURCES_QTY,i.ks.REQUESTED_WRITER,i.ks.PAPER_LEVEL,i.ks.LANGUAGE_STYLE,i.ks.PREMIUM_AI_REPORT,i.ks.GET_COPY_OF_SOURCES,i.ks.GET_PROGRESSIVE_DELIVERY]),a(n,i.gj.STEP_PROGRAMMING_REQUIREMENTS,[i.ks.PROGRAMMING_LANGUAGE,i.ks.PROGRAMMING_LANGUAGE_OTHER,i.ks.DISCIPLINE,i.ks.DISCIPLINE_OTHER,i.ks.PAPER_INSTRUCTIONS,i.ks.FILES]),a(n,i.gj.STEP_CALCULATIONS_REQUIREMENTS,[i.ks.SOFTWARE,i.ks.SOFTWARE_OTHER,i.ks.DISCIPLINE,i.ks.DISCIPLINE_OTHER,i.ks.PAPER_INSTRUCTIONS,i.ks.FILES]),a(n,i.gj.STEP_PROGRAMMING_EXTRAS,[i.ks.WELL_COMMENTED_CODE,i.ks.TOP_EXPERT]),a(n,i.gj.STEP_TASK_SIZE,[i.ks.TASK_SIZE,i.ks.REQUESTED_WRITER]),a(n,i.gj.STEP_SUMMARY,[i.ks.COUPON_CODE]),a(n,i.gj.STEP_ACCOUNT,[]),n),d=(l=u,Object.entries(l).reduce((function(e,t){var r=s(t,2),n=r[0];return r[1].forEach((function(t){Array.isArray(e[t])?e[t].push(n):e[t]=[n]})),e}),{}))},52718:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(3492),i=r(18083);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=function(e){var t,r="double"===e.spacing?1:2,o=e.isFinished?n.UU.REORDER:n.UU.ORDER_PAY,s=!e.isFinished&&e.appliedCoupon&&e.appliedCoupon.code.code||"";return{initialValues:(a(t={},n.ks.ORDER_SERVICE_TYPE,e.orderServiceTypeId),a(t,n.ks.ACADEMIC_LEVEL,e.academicLevel),a(t,n.ks.TYPE_OF_PAPER,e.paperType),a(t,n.ks.TYPE_OF_PAPER_OTHER,e.paperTypeOption),a(t,n.ks.DISCIPLINE,e.topcatId),a(t,n.ks.DISCIPLINE_OTHER,e.topcat),a(t,n.ks.TOPIC,e.title),a(t,n.ks.PAPER_INSTRUCTIONS,e.paperDetails),a(t,n.ks.PAGES_QTY,e.pages),a(t,n.ks.WORDS_QTY,e.wordsQuantity||(0,i.S)(e.pages,r)),a(t,n.ks.SPACING,e.spacing),a(t,n.ks.SOURCES_QTY,e.sources),a(t,n.ks.PAPER_FORMAT,e.paperFormat),a(t,n.ks.PAPER_FORMAT_OTHER,e.paperFormatTypeOption),a(t,n.ks.TARIFF,e.tariff.id),a(t,n.ks.SLIDES_QTY,e.slides),a(t,n.ks.CHARTS_QTY,e.charts),a(t,n.ks.GET_COPY_OF_SOURCES,e.areSourcesRequired),a(t,n.ks.GET_PROGRESSIVE_DELIVERY,e.progressiveDeliveryHidden),a(t,n.ks.REQUESTED_WRITER,e.requestedWriterId),a(t,n.ks.COUPON_CODE,s),a(t,n.ks.COUPON_CODE_SWITCH,Boolean(s)),a(t,n.ks.FID,e.id),a(t,n.ks.SPLIT_PAYMENT,!e.isFinished&&e.hasSplitPayment),a(t,n.ks.PAY_IN_PARTS_SWITCH,!e.isFinished&&e.hasPayInParts),a(t,n.ks.PAY_IN_PARTS,e.payInPartsValueId),a(t,n.ks.PAPER_LEVEL,e.paperLevelId),a(t,n.ks.LANGUAGE_STYLE,e.languageStyleId),a(t,n.ks.PREMIUM_AI_REPORT,e.hasPremiumAIReport),a(t,n.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE,e.hasCalculationsAndSubjectExpertise),t),purpose:o,isPagesWereCalculatedByWords:Boolean(e.isPagesWereCalculatedByWords)}}},30677:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(3492);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const a=function(e){var t,r=e.isFinished?n.UU.REORDER:n.UU.ORDER_PAY,i=!e.isFinished&&e.appliedCoupon&&e.appliedCoupon.code.code||"";return{initialValues:(o(t={},n.ks.FID,e.id),o(t,n.ks.ORDER_SERVICE_TYPE,e.orderServiceTypeId),o(t,n.ks.DISCIPLINE,e.disciplineId),o(t,n.ks.DISCIPLINE_OTHER,e.disciplineTitle),o(t,n.ks.PAPER_INSTRUCTIONS,e.instructions),o(t,n.ks.SOFTWARE,e.softwareId),o(t,n.ks.SOFTWARE_OTHER,e.softwareTitle),o(t,n.ks.TARIFF,e.deadlineId),o(t,n.ks.TASK_SIZE,e.sizeId),o(t,n.ks.COUPON_CODE,i),o(t,n.ks.COUPON_CODE_SWITCH,Boolean(i)),o(t,n.ks.REQUESTED_WRITER,e.requestedWriterId),o(t,n.ks.SPLIT_PAYMENT,!e.isFinished&&e.hasSplitPayment),t),purpose:r}}},41778:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(3492);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const a=function(e){var t,r=e.isFinished?n.UU.REORDER:n.UU.ORDER_PAY,i=!e.isFinished&&e.appliedCoupon&&e.appliedCoupon.code.code||"";return{initialValues:(o(t={},n.ks.FID,e.id),o(t,n.ks.ORDER_SERVICE_TYPE,e.orderServiceTypeId),o(t,n.ks.DISCIPLINE,e.disciplineId),o(t,n.ks.DISCIPLINE_OTHER,e.disciplineTitle),o(t,n.ks.PAPER_INSTRUCTIONS,e.instructions),o(t,n.ks.PROGRAMMING_LANGUAGE,e.languageId),o(t,n.ks.PROGRAMMING_LANGUAGE_OTHER,e.languageTitle),o(t,n.ks.TARIFF,e.deadlineId),o(t,n.ks.TASK_SIZE,e.sizeId),o(t,n.ks.COUPON_CODE,i),o(t,n.ks.COUPON_CODE_SWITCH,Boolean(i)),o(t,n.ks.REQUESTED_WRITER,e.requestedWriterId),o(t,n.ks.SPLIT_PAYMENT,!e.isFinished&&e.hasSplitPayment),o(t,n.ks.ONLY_OWN_CODE_SOLUTION,e.hasOnlyOwnCodeSolution),o(t,n.ks.WELL_COMMENTED_CODE,e.hasWellCommentedCode),o(t,n.ks.TOP_EXPERT,e.hasTopProgrammingLevel),t),purpose:r}}},96262:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(3492),i=r(52718),o=r(30677),a=r(41778);const s=function(e){switch(e.orderServiceTypeId){case n.B5.CALCULATIONS:return(0,o.A)(e);case n.B5.PROGRAMMING:return(0,a.A)(e);case n.B5.ACADEMIC_WRITING:default:return(0,i.A)(e)}}},78843:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(54),r(68450),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(3492),i=r(58165);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const l=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=window.location,a=o.origin,l=o.pathname;switch(e[n.ks.ORDER_SERVICE_TYPE]){case n.B5.PROGRAMMING:t=function(e){var t,r=(c(t={},n.PP.ORDER_SERVICE_TYPE_ID,e[n.ks.ORDER_SERVICE_TYPE]),c(t,n.PP.DEADLINE_ID,e[n.ks.TARIFF]),c(t,n.PP.SIZE_ID,e[n.ks.TASK_SIZE]),c(t,n.PP.PAPER_DETAILS,e[n.ks.PAPER_INSTRUCTIONS]||void 0),c(t,n.PP.SPLIT_PAYMENT,e[n.ks.SPLIT_PAYMENT]?1:void 0),c(t,n.PP.COUPON_CODE,e[n.ks.COUPON_CODE]||void 0),c(t,n.PP.ONLY_OWN_CODE_SOLUTION,e[n.ks.ONLY_OWN_CODE_SOLUTION]?1:void 0),c(t,n.PP.WELL_COMMENTED_CODE,e[n.ks.WELL_COMMENTED_CODE]?1:void 0),c(t,n.PP.TOP_EXPERT,e[n.ks.TOP_EXPERT]?1:void 0),t);return e[n.ks.PROGRAMMING_LANGUAGE]&&(e[n.ks.PROGRAMMING_LANGUAGE]===n.UH.PROGRAMMING_LANGUAGE_OTHER_ID?r[n.PP.LANGUAGE_OTHER]=e[n.ks.PROGRAMMING_LANGUAGE_OTHER]:r[n.PP.LANGUAGE_ID]=e[n.ks.PROGRAMMING_LANGUAGE]),e[n.ks.DISCIPLINE]&&(e[n.ks.DISCIPLINE]===n.UH.DISCIPLINE_OTHER_ID?r[n.PP.DISCIPLINE_OTHER]=e[n.ks.DISCIPLINE_OTHER]:r[n.PP.DISCIPLINE_ID]=e[n.ks.DISCIPLINE]),void 0!==e[n.ks.FILES]&&e[n.ks.FILES].length>0&&(r[n.PP.FILES]=e[n.ks.FILES].join("-")),r}(e);break;case n.B5.CALCULATIONS:t=function(e){var t,r=(c(t={},n.PP.ORDER_SERVICE_TYPE_ID,e[n.ks.ORDER_SERVICE_TYPE]),c(t,n.PP.DEADLINE_ID,e[n.ks.TARIFF]),c(t,n.PP.SIZE_ID,e[n.ks.TASK_SIZE]),c(t,n.PP.PAPER_DETAILS,e[n.ks.PAPER_INSTRUCTIONS]||void 0),c(t,n.PP.SPLIT_PAYMENT,e[n.ks.SPLIT_PAYMENT]?1:void 0),c(t,n.PP.COUPON_CODE,e[n.ks.COUPON_CODE]||void 0),t);return e[n.ks.SOFTWARE]&&(e[n.ks.SOFTWARE]===n.UH.SOFTWARE_OTHER_ID?r[n.PP.SOFTWARE_OTHER]=e[n.ks.SOFTWARE_OTHER]:r[n.PP.SOFTWARE_ID]=e[n.ks.SOFTWARE]),e[n.ks.DISCIPLINE]&&(e[n.ks.DISCIPLINE]===n.UH.DISCIPLINE_OTHER_ID?r[n.PP.DISCIPLINE_OTHER]=e[n.ks.DISCIPLINE_OTHER]:r[n.PP.DISCIPLINE_ID]=e[n.ks.DISCIPLINE]),void 0!==e[n.ks.FILES]&&e[n.ks.FILES].length>0&&(r[n.PP.FILES]=e[n.ks.FILES].join("-")),r}(e);break;case n.B5.ACADEMIC_WRITING:default:t=function(e){var t,r=(c(t={},n.PP.ORDER_SERVICE_TYPE_ID,e[n.ks.ORDER_SERVICE_TYPE]),c(t,n.PP.DEADLINE_ID,e[n.ks.TARIFF]),c(t,n.PP.ACADEMIC_LEVEL_ID,e[n.ks.ACADEMIC_LEVEL]),c(t,n.PP.PAGES,e[n.ks.PAGES_QTY]),c(t,n.PP.CHARTS,e[n.ks.CHARTS_QTY]),c(t,n.PP.SLIDES,e[n.ks.SLIDES_QTY]),c(t,n.PP.SPACING,e[n.ks.SPACING]),c(t,n.PP.SOURCES,e[n.ks.SOURCES_QTY]),c(t,n.PP.TITLE,e[n.ks.TOPIC]||void 0),c(t,n.PP.PAPER_DETAILS,e[n.ks.PAPER_INSTRUCTIONS]||void 0),c(t,n.PP.REQUESTED_WRITER_ID,e[n.ks.REQUESTED_WRITER]||void 0),c(t,n.PP.COUPON_CODE,e[n.ks.COUPON_CODE]||void 0),c(t,n.PP.SPLIT_PAYMENT,e[n.ks.SPLIT_PAYMENT]?1:void 0),c(t,n.PP.PAY_IN_PARTS_SWITCH,e[n.ks.PAY_IN_PARTS_SWITCH]?1:void 0),c(t,n.PP.PAY_IN_PARTS,e[n.ks.PAY_IN_PARTS]||void 0),c(t,n.PP.USED_SOURCES,e[n.ks.GET_COPY_OF_SOURCES]?1:void 0),c(t,n.PP.PROGRESSIVE_DELIVERY,e[n.ks.GET_PROGRESSIVE_DELIVERY]?1:void 0),c(t,n.PP.PREMIUM_AI_REPORT,e[n.ks.PREMIUM_AI_REPORT]?1:void 0),c(t,n.PP.CALCULATIONS_AND_SUBJECT_EXPERTISE,e[n.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE]?1:void 0),c(t,n.PP.PAPER_LEVEL_ID,e[n.ks.PAPER_LEVEL]),c(t,n.PP.LANGUAGE_STYLE,e[n.ks.LANGUAGE_STYLE]),t);return e[n.ks.TYPE_OF_PAPER]&&(e[n.ks.TYPE_OF_PAPER]===n.UH.TYPE_OF_PAPER_OTHER_ID?r[n.PP.PAPER_TYPE_OTHER]=e[n.ks.TYPE_OF_PAPER_OTHER]:r[n.PP.PAPER_TYPE_ID]=e[n.ks.TYPE_OF_PAPER]),e[n.ks.DISCIPLINE]&&(e[n.ks.DISCIPLINE]===n.UH.DISCIPLINE_OTHER_ID?r[n.PP.DISCIPLINE_OTHER]=e[n.ks.DISCIPLINE_OTHER]:r[n.PP.DISCIPLINE_ID]=e[n.ks.DISCIPLINE]),void 0!==e[n.ks.PAPER_FORMAT]&&(e[n.ks.PAPER_FORMAT]===n.UH.PAPER_FORMAT_OTHER_ID?r[n.PP.PAPER_FORMAT_OTHER]=e[n.ks.PAPER_FORMAT_OTHER]:r[n.PP.PAPER_FORMAT]=e[n.ks.PAPER_FORMAT]),void 0!==e[n.ks.FILES]&&e[n.ks.FILES].length>0&&(r[n.PP.FILES]=e[n.ks.FILES].join("-")),r}(e)}var u=(0,i.rQ)(s(s({},t),r));return"".concat(a).concat(l,"?").concat(u)}},54830:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});
2r(30935),r(68291),r(95790),r(25400),r(21555),r(93831),r(40890),r(9020),r(29416);var n=r(3492);function i(e,t){var r=e.orderServiceTypeId,i=e.paperTypeId,o=e.paperTypeOther,a=e.academicLevelId,s=e.deadlineId,c=e.paperDetails,l=e.pages,u=e.paperFormat,d=e.paperFormatOther,f=e.couponCode,p=e.title,h=e.spacing,m=e.sources,y=e.charts,v=e.slides,g=e.requestedWriterId,b=e.splitPayment,E=e.usedsources,w=e.progressiveDeliveryHidden,S=e.premiumAIReport,A=e.calculations,_=e.paperLevelId,x=e.languageStyleId,P=e.payInPartsId,I=e.files,k=e.topcatId||e.disciplineId,O=e.topcatOther||e.disciplineOther,T=t.configsForAcademicWriting,C=T.paperTypesIds,R=T.disciplinesIds,N=T.tariffsIds,L=T.tariffsById,D=T.academicLevelsIds,M=T.paperFormatsIds,F=T.paperLevelsIds,j=T.languageStylesIds,B=t.isSplitPaymentEnabled,V=t.isPremiumAIReportEnabled,U=t.isPayInPartsEnabled,z=t.payInPartsValuesIds,G={};if(void 0!==r&&(G[n.ks.ORDER_SERVICE_TYPE]=n.B5.ACADEMIC_WRITING),void 0!==i&&C.includes(i)&&(G[n.ks.TYPE_OF_PAPER]=i,i===n.UH.TYPE_OF_PAPER_OTHER_ID&&(G[n.ks.TYPE_OF_PAPER_OTHER]="See paper instructions")),void 0!==o&&(G[n.ks.TYPE_OF_PAPER]=n.UH.TYPE_OF_PAPER_OTHER_ID,G[n.ks.TYPE_OF_PAPER_OTHER]=o),void 0!==k&&R.includes(k)&&k!==n.UH.DISCIPLINE_OTHER_ID&&(G[n.ks.DISCIPLINE]=k),void 0!==O&&(G[n.ks.DISCIPLINE]=n.UH.DISCIPLINE_OTHER_ID,G[n.ks.DISCIPLINE_OTHER]=O),void 0!==s&&N.includes(s)&&(G[n.ks.TARIFF]=s),void 0!==a&&D.includes(a)&&void 0!==G[n.ks.TARIFF]){var W=L[G[n.ks.TARIFF]];(null==W?void 0:W.academicLevel)===a&&(G[n.ks.ACADEMIC_LEVEL]=a)}return void 0!==c&&(G[n.ks.PAPER_INSTRUCTIONS]=c),void 0!==l&&(G[n.ks.PAGES_QTY]=l),void 0!==u&&M.includes(u)&&(G[n.ks.PAPER_FORMAT]=u),void 0!==d&&(G[n.ks.PAPER_FORMAT]=n.UH.PAPER_FORMAT_OTHER_ID,G[n.ks.PAPER_FORMAT_OTHER]=d),void 0!==x&&j.includes(x)&&(G[n.ks.LANGUAGE_STYLE]=x),void 0!==_&&F.includes(_)&&(G[n.ks.PAPER_LEVEL]=_),void 0!==f&&(G[n.ks.COUPON_CODE]=f,G[n.ks.COUPON_CODE_SWITCH]=!0),void 0!==p&&(G[n.ks.TOPIC]=p),"single"!==h&&"double"!==h||(G[n.ks.SPACING]=h),void 0!==m&&(G[n.ks.SOURCES_QTY]=m),void 0!==y&&(G[n.ks.CHARTS_QTY]=y),void 0!==v&&(G[n.ks.SLIDES_QTY]=v),void 0!==g&&(G[n.ks.REQUESTED_WRITER]=g),1===b&&B&&(G[n.ks.SPLIT_PAYMENT]=!0),U&&z.includes(P)&&(G[n.ks.PAY_IN_PARTS_SWITCH]=!0,G[n.ks.PAY_IN_PARTS]=P),1===E&&(G[n.ks.GET_COPY_OF_SOURCES]=!0),1===w&&(G[n.ks.GET_PROGRESSIVE_DELIVERY]=!0),V&&1===S&&(G[n.ks.PREMIUM_AI_REPORT]=!0),1===A&&(G[n.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE]=!0),void 0!==I&&(G[n.ks.FILES]=I.split("-").filter((function(e){return/^\d+$/.test(e)})).map((function(e){return parseInt(e,10)}))),0===Object.keys(G).length?void 0:G}},71861:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(30935),r(68291),r(95790),r(25400),r(21555),r(93831),r(40890),r(9020),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(3492);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=t.configsForCalculations,i=r.disciplinesIds,a=r.deadlinesIds,s=r.sizesIds,c=r.softwareIds,l=t.isSplitPaymentEnabled,u=e.deadlineId,d=e.softwareId,f=e.softwareOther,p=e.sizeId,h=e.couponCode,m=e.paperDetails,y=e.splitPayment,v=e.files,g=e.topcatId||e.disciplineId,b=e.topcatOther||e.disciplineOther,E=o({},n.ks.ORDER_SERVICE_TYPE,n.B5.CALCULATIONS);return void 0!==g&&i.includes(g)&&g!==n.UH.DISCIPLINE_OTHER_ID&&(E[n.ks.DISCIPLINE]=g),void 0!==b&&(E[n.ks.DISCIPLINE]=n.UH.DISCIPLINE_OTHER_ID,E[n.ks.DISCIPLINE_OTHER]=b),void 0!==u&&a.includes(u)&&(E[n.ks.TARIFF]=u),void 0!==m&&(E[n.ks.PAPER_INSTRUCTIONS]=m),void 0!==d&&c.includes(d)&&d!==n.UH.SOFTWARE_OTHER_ID&&(E[n.ks.SOFTWARE]=d),void 0!==f&&(E[n.ks.SOFTWARE]=n.UH.SOFTWARE_OTHER_ID,E[n.ks.SOFTWARE_OTHER]=f),void 0!==p&&s.includes(p)&&
2(E[n.ks.TASK_SIZE]=p),void 0!==h&&(E[n.ks.COUPON_CODE]=h,E[n.ks.COUPON_CODE_SWITCH]=!0),1===y&&l&&(E[n.ks.SPLIT_PAYMENT]=!0),void 0!==v&&(E[n.ks.FILES]=v.split("-").filter((function(e){return/^\d+$/.test(e)})).map((function(e){return parseInt(e,10)}))),E}},93746:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(30935),r(68291),r(95790),r(25400),r(21555),r(93831),r(40890),r(9020),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(3492);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=t.configsForProgramming,i=r.disciplinesIds,a=r.deadlinesIds,s=r.sizesIds,c=r.languagesIds,l=t.isSplitPaymentEnabled,u=t.isOnlyOwnCodeSolutionEnabled,d=t.isWellCommentedCodeEnabled,f=t.isTopExpertEnabled,p=e.deadlineId,h=e.languageId,m=e.languageOther,y=e.sizeId,v=e.couponCode,g=e.paperDetails,b=e.splitPayment,E=e.onlyOwnCodeSolution,w=e.wellCommentedCode,S=e.topExpert,A=e.files,_=e.topcatId||e.disciplineId,x=e.topcatOther||e.disciplineOther,P=o({},n.ks.ORDER_SERVICE_TYPE,n.B5.PROGRAMMING);return void 0!==_&&i.includes(_)&&_!==n.UH.DISCIPLINE_OTHER_ID&&(P[n.
2ks.DISCIPLINE]=_),void 0!==x&&(P[n.ks.DISCIPLINE]=n.UH.DISCIPLINE_OTHER_ID,P[n.ks.DISCIPLINE_OTHER]=x),void 0!==p&&a.includes(p)&&(P[n.ks.TARIFF]=p),void 0!==g&&(P[n.ks.PAPER_INSTRUCTIONS]=g),void 0!==h&&c.includes(h)&&h!==n.UH.PROGRAMMING_LANGUAGE_OTHER_ID&&(P[n.ks.PROGRAMMING_LANGUAGE]=h),void 0!==m&&(P[n.ks.PROGRAMMING_LANGUAGE]=n.UH.PROGRAMMING_LANGUAGE_OTHER_ID,P[n.ks.PROGRAMMING_LANGUAGE_OTHER]=m),void 0!==y&&s.includes(y)&&(P[n.ks.TASK_SIZE]=y),void 0!==v&&(P[n.ks.COUPON_CODE]=v,P[n.ks.COUPON_CODE_SWITCH]=!0),1===b&&l&&(P[n.ks.SPLIT_PAYMENT]=!0),1===E&&u&&(P[n.ks.ONLY_OWN_CODE_SOLUTION]=!0),1===w&&d&&(P[n.ks.WELL_COMMENTED_CODE]=!0),1===S&&f&&(P[n.ks.TOP_EXPERT]=!0),A&&A.length&&(P[n.ks.FILES]=A.split("-").filter((function(e){return/^\d+$/.test(e)})).map((function(e){return parseInt(e,10)}))),P}},68789:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(96104),r(21555),r(29416),r(9020),r(85661),r(99180),r(30935),r(68291);var n=r(30350),i=r.n(n),o=r(3492),a=r(93746),s=r(71861),c=r(54830),l=function(e){return Object.keys(e).reduce((function(t,r){switch(r){case"paperDetails":case"softwareOther":case"languageOther":case"topcatOther":case"disciplineOther":case"title":case"spacing":case"requestedWriterId":case"paperTypeOther":case"paperFormatOther":case"files":case"couponCode":var n=e[r];n&&"string"==typeof n&&(t[r]=n);break;default:var i=parseInt(e[r],10);Number.isInteger(i)&&(t[r]=i)}return t}),{})};function u(e,t){if(e&&0!==Object.keys(e).length&&t){var r=l(e),n=r.orderServiceTypeId||t.defaultOrderServiceTypeId;if(!n)throw new(i())("Default service type is required.",o.I.VALIDATION_FAILED);if(!t.orderServiceTypesIds.includes(n))throw new(i())("There is no such a service type(id: ".concat(n,"). Maybe it's just not enabled."),o.I.VALIDATION_FAILED);if(n===o.B5.ACADEMIC_WRITING)return(0,c.A)(r,t);if(n===o.B5.PROGRAMMING)return(0,a.A)(r,t);if(n===o.B5.CALCULATIONS)return(0,s.A)(r,t);throw new(i())("There is no validator of external values for this service type(id: ".concat(n,")."),o.I.VALIDATION_FAILED)}}},83060:(e,t,r)=>{"use strict";r.d(t,{GM:()=>i.A,PW:()=>o.A,Pd:()=>a.A,ql:()=>n.Ay});var n=r(86437),i=r(76224),o=r(38674),a=r(68789)},98095:(e,t,r)=>{"use strict";r.d(t,{_x:()=>o,eB:()=>i,k:()=>s,r0:()=>a});r(95570);var n=r(3492);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isSplitPaymentEnabled,r=e.isPayInPartsEnabled,i=e.isPremiumAIReportEnabled,o=[n.ks.ORDER_SERVICE_TYPE,n.ks.ACADEMIC_LEVEL,n.ks.TYPE_OF_PAPER,n.ks.TYPE_OF_PAPER_OTHER,n.ks.DISCIPLINE,n.ks.DISCIPLINE_OTHER,n.ks.TOPIC,n.ks.PAPER_INSTRUCTIONS,n.ks.FILES,n.ks.PAGES_QTY,n.ks.WORDS_QTY,n.ks.SPACING,n.ks.SOURCES_QTY,n.ks.PAPER_FORMAT,n.ks.PAPER_FORMAT_OTHER,n.ks.TARIFF,n.ks.SLIDES_QTY,n.ks.CHARTS_QTY,n.ks.GET_COPY_OF_SOURCES,n.ks.REQUESTED_WRITER,n.ks.COUPON_CODE,n.ks.FID,n.ks.PAPER_LEVEL,n.ks.LANGUAGE_STYLE,n.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE,n.ks.GET_PROGRESSIVE_DELIVERY,n.ks.COUPON_CODE_SWITCH];return i&&o.push(n.ks.PREMIUM_AI_REPORT),t&&o.push(n.ks.SPLIT_PAYMENT),r&&(o.push(n.ks.PAY_IN_PARTS_SWITCH),o.push(n.ks.PAY_IN_PARTS)),o}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isSplitPaymentEnabled,r=e.isOnlyOwnCodeSolutionEnabled,i=e.isWellCommentedCodeEnabled,o=e.isTopExpertEnabled,a=[n.ks.ORDER_SERVICE_TYPE,n.ks.DISCIPLINE,n.ks.DISCIPLINE_OTHER,n.ks.PAPER_INSTRUCTIONS,n.ks.PROGRAMMING_LANGUAGE,n.ks.PROGRAMMING_LANGUAGE_OTHER,n.ks.FILES,n.ks.TARIFF,n.ks.TASK_SIZE,n.ks.COUPON_CODE,n.ks.FID,n.ks.REQUESTED_WRITER,n.ks.COUPON_CODE_SWITCH];return t&&a.push(n.ks.SPLIT_PAYMENT),r&&a.push(n.ks.ONLY_OWN_CODE_SOLUTION),i&&a.push(n.ks.WELL_COMMENTED_CODE),o&&a.push(n.ks.TOP_EXPERT),a}function a(){return[n.ks.ORDER_SERVICE_TYPE,n.ks.DISCIPLINE,n.ks.DISCIPLINE_OTHER,n.ks.PAPER_INSTRUCTIONS,n.ks.SOFTWARE,n.ks.SOFTWARE_OTHER,n.ks.FILES,n.ks.TARIFF,n.ks.TASK_SIZE,n.ks.COUPON_CODE,n.ks.FID,n.ks.REQUESTED_WRITER,n.ks.COUPON_CODE_SWITCH]}var s=[n.ks.ORDER_SERVICE_TYPE,n.ks.ACADEMIC_LEVEL,n.ks.TYPE_OF_PAPER,n.ks.TYPE_OF_PAPER_OTHER,n.ks.DISCIPLINE,n.ks.DISCIPLINE_OTHER,n.ks.PAPER_INSTRUCTIONS,n.ks.FILES,n.ks.PAGES_QTY,n.ks.WORDS_QTY,
2n.ks.SPACING,n.ks.TARIFF,n.ks.FID,n.ks.TOPIC]},59955:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(37210);var n=r(30350),i=r.n(n),o=r(3492),a=r(35546);const s=function(e,t){if(void 0===e||!1===Array.isArray(e.files))throw new(i())("Invalid JSON",o.I.JSON_PARSE);if(1!==e.files.length)throw new(i())("Failed to upload file",o.I.INVALID_DATA);return(0,a.A)(e.files[0],t)}},35546:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(85146),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993);var n=r(30350),i=r.n(n),o=r(3492);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}const s=function(e){if(void 0===e||"object"!==a(e))throw new(i())("Invalid JSON",o.I.JSON_PARSE);if(e.error)throw new(i())(e.error,o.I.SERVER_VALIDATION);return{isUploaded:!0,isUploading:!1,id:e.id,deleteUrl:e.deleteUrl,name:e.newName||e.name,size:e.size}}},12235:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});r(85146),r(96152),r(95790);var n=r(10952),i=function(e,t){return new n.K({files:e.files?e.files.map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new n.t({id:e.id,downloadId:e.downloadId,name:e.name,fileType:e.fileType,fileTypeId:e.fileTypeId,isApprovedByCustomer:!!e.isApprovedByCustomer,approvedAt:e.clientApprovedAtUnixTime?new Date(e.clientApprovedAtUnixTime):void 0,createdAt:new Date(e.createdAtUnixTime),size:e.size,isPart:!!e.isPart,isUploadedByCustomer:!(!e.isUploadedByCustomer&&!t),downloadLink:e.downloadLink,isFullRefundAllowed:!!e.isFullRefundAllowed,isDownloaded:!!e.isDownloaded,isNew:!!e.isNew,hoursAgoUploaded:e.hoursAgoUploaded,actionLabel:e.actionLabel||void 0,timeForFreeRevision:e.timeForFreeRevision||void 0,downloadButtonVisible:!!e.downloadButtonVisible,approveButtonVisible:!!e.approveButtonVisible,requestRefundButtonVisible:!!e.requestRefundButtonVisible,requestPaidRevisionButtonVisible:!!e.requestPaidRevisionButtonVisible,requestFreeRevisionButtonVisible:!!e.requestFreeRevisionButtonVisible,words:(e.words&&e.words)>0?e.words:void 0,wordsText:e.wordsText||void 0})}(e,t)})):[]})}},10952:(e,t,r)=>{"use strict";r.d(t,{K:()=>o,t:()=>i});r(96152);var n=r(58165),i=(0,n.t0)("OrderFile",{id:n.L$.number,downloadId:n.L$.number.isOptional,name:n.L$.string,fileType:n.L$.string,fileTypeId:n.L$.number.isOptional,isApprovedByCustomer:n.L$.bool,approvedAt:n.L$.instanceOf(Date).isOptional,createdAt:n.L$.instanceOf(Date),size:n.L$.number.isOptional,isPart:n.L$.bool,isUploadedByCustomer:n.L$.bool,downloadLink:n.L$.string,isFullRefundAllowed:n.L$.bool,isDownloaded:n.L$.bool,isNew:n.L$.bool,hoursAgoUploaded:n.L$.string,actionLabel:n.L$.string.isOptional,timeForFreeRevision:n.L$.string.isOptional,downloadButtonVisible:n.L$.bool.isOptional,approveButtonVisible:n.L$.bool.isOptional,requestRefundButtonVisible:n.L$.bool.isOptional,requestPaidRevisionButtonVisible:n.L$.bool.isOptional,requestFreeRevisionButtonVisible:n.L$.bool.isOptional,words:n.L$.number.isOptional,wordsText:n.L$.string.isOptional}),o=(0,n.t0)("OrderFiles",{orders:n.L$.arrayOf(n.L$.instanceOf(i)).isOptional})},89950:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){var t=e.blob,r=e.instanceId,n=new window.FormData;return n.append("files[]",t),n.append("file_number[]",r),n}},46980:(e,t,r)=>{"use strict";r.d(t,{A:()=>F});r(96152);var n=r(83794),i=r(93718),o=r.n(i),a=r(3492),s=r(50121),c=a.ks.ACADEMIC_LEVEL,l=a.ks.TYPE_OF_PAPER,u=a.ks.TYPE_OF_PAPER_OTHER,d=a.ks.DISCIPLINE,f=a.ks.DISCIPLINE_OTHER,p=a.ks.TOPIC,h=a.ks.PAPER_INSTRUCTIONS,m=a.ks.FILES,y=a.ks.PAGES_QTY,v=a.ks.WORDS_QTY,g=a.ks.CHARTS_QTY,b=a.ks.SPACING,E=a.ks.TARIFF,w=a.ks.SLIDES_QTY,S=a.ks.GET_COPY_OF_SOURCES,A=a.ks.GET_PROGRESSIVE_DELIVERY,_=a.ks.REQUESTED_WRITER,x=a.ks.FID,P=a.ks.COUPON_CODE,I=a.ks.PAPER_LEVEL,k=a.ks.LANGUAGE_STYLE,O=a.ks.SPLIT_PAYMENT,T=a.ks.SOURCES_QTY,C=a.ks.PAPER_FORMAT,R=a.ks.PAPER_FORMAT_OTHER,N=a.ks.PAY_IN_PARTS_SWITCH,L=a.ks.PAY_IN_PARTS,D=a.ks.PREMIUM_AI_REPORT,M=a.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE;const F=function(e){var t=e.existingOrderId,r=e.totalCost,i=e.deadlineDate,F=e.formTypeForAnalytics,j=e.purpose,B=e.formManager.formValues,V=e.configsStore.configs.configsForAcademicWriting.tariffsById,U=e.userProfileStore.requestWritersById,z=e.coupon,G=e.discount,W=e.couponCodeError,H=e.formTypeId,$=e.orderUuid,Y=e.isPagesWereCalculatedByWords,q=e.isControlsTriggered,K=V[B[E]],Q=!!z&&!!G&&!W,X={orderType:j===a.UU.NEW_INQUIRY?"inquiry":"order",customerCountryHidden:"Mordor",maxExtTime:K&&o()(i,"yyyy-mm-dd HH:MM:ss"),gmt:-(new Date).getTimezoneOffset(),totcharg:r,toptitle:B[p]||"See paper instructions",paperDetails:B[h],academiclevel:B[c],topcatId:B[d],topcatOption:B[f],paperTypeId:B[l],paperTypeOption:B[u]||"",paperformat:q[C]?B[C]:a.UH.PAPER_FORMAT_OTHER_ID,paperFormatTypeOption:B[R]||"See paper instructions",tariffId:B[E],spacing:B[b],pagesreq:B[y],wordsQuantity:B[v],chartsreq:B[g],minSource:B[T],slidesreq:B[w],paperLevelId:B[I],languageStyleId:B[k],progressiveDeliveryHidden:B[A]?1:0,"additionalMaterialsFiles[]":B[m]&&(0,n.HO)(B[m]),formType:s.Ay[H],form_type_id:H,doValidateExistPhone:!1,formTypeForAnalytics:F,orderUuid:$,hasPayInParts:B[N]?1:0,payInPartsValueId:B[L]};t&&(X.fid=t),B[S]&&(X.usedsources=1),void 0!==B[x]&&(X.fid=B[x]),B[O]&&(X.splitPayment=1),B[N]&&(X.hasPayInParts=1,X.payInPartsValueId=B[L]),Q&&(X.couponCode=B[P]);var Z=U[B[_]];return Z&&(X.requestedWriterId=Z.id),Y&&(X.isPagesWereCalculatedByWords=1),B[D]&&(X.premiumAIReport=1),B[M]&&(X.calculations=1),X}},8643:(e,t,r)=>{"use strict";r.d(t,{A:()=>
2o});r(96152);var n=r(83794),i=r(3492);function o(e){var t=e.formManager.formValues,r=e.formTypeForAnalytics,o=e.coupon,a=e.discount,s=e.couponCodeError,c=e.orderUuid,l=!!o&&!!a&&!s&&(null==o?void 0:o.typeId)===i.Gi.ORDER,u={disciplineId:t[i.ks.DISCIPLINE],orderServiceTypeId:t[i.ks.ORDER_SERVICE_TYPE],instructions:t[i.ks.PAPER_INSTRUCTIONS],softwareId:t[i.ks.SOFTWARE],deadlineId:t[i.ks.TARIFF],sizeId:t[i.ks.TASK_SIZE],gmt:-(new Date).getTimezoneOffset(),"additionalMaterialsFileIds[]":t[i.ks.FILES]&&(0,n.HO)(t[i.ks.FILES]),formTypeForAnalytics:r,orderUuid:c,requestedWriterId:t[i.ks.REQUESTED_WRITER]};return u.disciplineId===i.UH.DISCIPLINE_OTHER_ID&&(u.customDiscipline=t[i.ks.DISCIPLINE_OTHER]),u.softwareId===i.UH.SOFTWARE_OTHER_ID&&(u.softwareOther=t[i.ks.SOFTWARE_OTHER]),l&&(u.couponCode=t[i.ks.COUPON_CODE]),t[i.ks.SPLIT_PAYMENT]&&(u.splitPayment=1),u}},78120:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});r(96152);var n=r(83794),i=r(3492);function o(e){var t=e.formManager.formValues,r=e.formTypeForAnalytics,o=e.coupon,a=e.discount,s=e.couponCodeError,c=e.orderUuid,l=!!o&&!!a&&!s,u={disciplineId:t[i.ks.DISCIPLINE],orderServiceTypeId:t[i.ks.ORDER_SERVICE_TYPE],instructions:t[i.ks.PAPER_INSTRUCTIONS],languageId:t[i.ks.PROGRAMMING_LANGUAGE],deadlineId:t[i.ks.TARIFF],sizeId:t[i.ks.TASK_SIZE],gmt:-(new Date).getTimezoneOffset(),"additionalMaterialsFileIds[]":t[i.ks.FILES]&&(0,n.HO)(t[i.ks.FILES]),formTypeForAnalytics:r,orderUuid:c,requestedWriterId:t[i.ks.REQUESTED_WRITER]};return u.disciplineId===i.UH.DISCIPLINE_OTHER_ID&&(u.customDiscipline=t[i.ks.DISCIPLINE_OTHER]),u.languageId===i.UH.PROGRAMMING_LANGUAGE_OTHER_ID&&(u.languageOther=t[i.ks.PROGRAMMING_LANGUAGE_OTHER]),l&&(u.couponCode=t[i.ks.COUPON_CODE]),t[i.ks.SPLIT_PAYMENT]&&(u.splitPayment=1),t[i.ks.ONLY_OWN_CODE_SOLUTION]&&(u.onlyOwnCodeSolution=1),t[i.ks.WELL_COMMENTED_CODE]&&(u.wellCommentedCode=1),t[i.ks.TOP_EXPERT]&&(u.topProgrammingLevel=1),u}},86510:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(3492);const i=function(e){var t=e.cost,r=e.formManager,i=e.isProgrammingForm,o=e.isCalculationsForm;void 0===t||i||o||t.servicesById[n.zv.COMPLEX_ASSIGNMENT].forcedReason&&r.setSilently(n.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE,!0)}},11577:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(3492);const i=function(e){var t=e.cost,r=e.formManager,i=e.isProgrammingForm,o=e.isCalculationsForm;if(void 0!==t&&!i&&!o){var a=t.servicesById[n.zv.PROGRESSIVE_DELIVERY];a.disabledReason?r.setSilently(n.ks.GET_PROGRESSIVE_DELIVERY,!1):a.forcedReason&&r.setSilently(n.ks.GET_PROGRESSIVE_DELIVERY,!0)}}},11310:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});r(78366),r(84766);const n=function(e,t,r){return t.slice().sort((function(t,n){return Math.abs(e-r[t].hours)-Math.abs(e-r[n].hours)}))[0]}},64542:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});r(66542),r(21555),r(98140);const n=function(e,t){if(!t)return!1;var r=t.toLowerCase();return e.some((function(e){return r.indexOf(e)>-1}))}},18083:(e,t,r)=>{"use strict";r.d(t,{C:()=>o,S:()=>a});var n=100,i=275;function o(e,t){var r=i*t;return 0===e?0:(e%r>=n*t?Math.ceil:Math.floor)(e/r)}function a(e,t){return e*i*t}},47335:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(96656),r(21555),r(45993),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(94356);var n=r(83794),i=r(64575),o=r(3492);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function u(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var f=function(){function e(t,r){var i=t.getOrderInfo,o=t.values,a=t.getUseRevisionTariffs;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"values",void 0),u(this,"getOrderInfo",void 0),u(this,"getUseRevisionTariffs",void 0),u(this,"configsStore",void 0),(0,n.Gn)(this,{values:n.sH,defaultValues:n.EW,orderInfo:n.EW,$addServicesInfo:n.EW,addServicesById:n.EW,extrudedServicesById:n.EW,totalCost:n.EW}),this.configsStore=r.configsStore,this.getOrderInfo=i,this.getUseRevisionTariffs=a,this.values=c(c({},this.defaultValues),o)}var t,r,a;return t=e,(r=[{key:"defaultValues",get:function(){var e;return u(e={},o.ds.ADD_WRITING_PAGES,0),u(e,o.ds.ADD_WRITING_SLIDES,0),u(e,o.ds.ADD_WRITING_CHARTS,0),u(e,o.ds.ADD_PROGRESSIVE_DELIVERY,void 0),u(e,o.ds.ADD_USED_SOURCES,void 0),u(e,o.ds.ADD_SHORTEN_DEADLINE,void 0),e}},{key:"orderInfo",get:function(){return this.getOrderInfo()}},{key:"$addServicesInfo",get:function(){var e=this.configsStore.configs,t=(this.getUseRevisionTariffs()?e.paidRevisionDeadlinesById:e.configsForAcademicWriting.tariffsById)[this.values[o.ds.ADD_SHORTEN_DEADLINE]];return{shortenDeadlineHrs:t&&t.hrs,shortenDeadlinePricePerPage:t&&t.pricePerPage,newPagesQuantity:this.orderInfo.pages+this.values[o.ds.ADD_WRITING_PAGES],newSlidesQuantity:this.orderInfo.slides+this.values[o.ds.ADD_WRITING_SLIDES],newChartsQuantity:this.orderInfo.charts+this.values[o.ds.ADD_WRITING_CHARTS],getUsedSourcesOn:this.values[o.ds.ADD_USED_SOURCES],getProgressiveDeliveryOn:this.values[o.ds.ADD_PROGRESSIVE_DELIVERY]}}},{key:"addServicesById",get:function(){return i.calculateAddServices(this.$addServicesInfo,this.orderInfo)}},{key:"extrudedServicesById",get:function(){return i.extrudeServices(this.addServicesById,this.orderInfo)}},{key:"totalCost",get:function(){return i.getTotalCost(this.addServicesById)}},{key:"resetToDefaultValues",value:function(){this.values=this.defaultValues}},{key:"clone",value:function(){return new e({getOrderInfo:this.getOrderInfo,getUseRevisionTariffs:this.getUseRevisionTariffs,values:this.values},this)}}])&&l(t.prototype,r),a&&l(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},69055:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});r(78366),r(25400),r(21555),r(95790),r(29416),r(1569),r(34089),r(85146),r(30935),r(68291),r(97041),r(96152),r(95570),r(68450),r(54),r(24493),r(22892),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(57931),r(44318),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(3492),o=r(61938),a=r(97057),s=r(58165),c=r(64575),l=r(47335),u=r(76842),d=r(52373),f=r(76231),p=r(88744);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function g(e,t,r){return(t=b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===h(t)?t:String(t)}var E=function(){function e(t,r,s){var c=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"disciplineId",void 0),g(this,"disciplineTitle",void 0),g(this,"instructions",void 0),g(this,"softwareId",void 0),g(this,"softwareTitle",void 0),g(this,"languageId",void 0),g(this,"languageTitle",void 0),g(this,"sizeId",void 0),g(this,"deadlineId",void 0),g(this,"id",void 0),g(this,"parentId",void 0),g(this,"typeId",void 0),g(this,"orderUuid",void 0),g(this,"orderServiceTypeId",void 0),g(this,"statusId",i.Th.FAKE),g(this,"statusTitle",void 0),g(this,"statusDescription",void 0),g(this,"title",void 0),g(this,"academicLevel",void 0),g(this,"academicLevelTitle",void 0),g(this,"topcatId",void 0),g(this,"topcat",void 0),g(this,"paperTypeId",void 0),g(this,"paperType",void 0),g(this,"paperTypeTitle",void 0),g(this,"paperTypeOption",void 0),g(this,"paperLevelId",void 0),g(this,"languageStyleId",void 0),g(this,"paperFormatId",void 0),g(this,"paperFormat",void 0),g(this,"paperFormatTitle",void 0),g(this,"paperFormatTypeOption",void 0),g(this,"paperDetails",void 0),g(this,"spacing",void 0),g(this,"pages",void 0),g(this,"slides",void 0),g(this,"charts",void 0),g(this,"sources",void 0),g(this,"requestedWriterId",void 0),g(this,"requestedWriterName",void 0),g(this,"assignedWriterId",void 0),g(this,"assignedWriterName",void 0),g(this,"tariffId",void 0),g(this,"tariffPricePerPage",void 0),g(this,"tariffHrs",void 0),g(this,"price",void 0),g(this,"mainPartPrice",void 0),g(this,"noDiscountPrice",void 0),g(this,"comments",void 0),g(this,"createdAt",void 0),g(this,"deadlineAt",void 0),g(this,"approvedFirstAt",void 0),g(this,"cancelledAt",void 0),g(this,"finishedAt",void 0),g(this,"newMessagesCount",0),g(this,"newFilesCount",0),g(this,"additionalServicesData",{}),g(this,"additionalPayments",[]),g(this,"pdSchedule",[]),g(this,"areSourcesRequired",!1),g(this,"progressiveDeliveryHidden",!1),g(this,"isPdScheduleAccepted",!1),g(this,"isPdScheduleRejected",!1),g(this,"hasReassignments",!1),g(this,"hasSplitPayment",!1),g(this,"hasPayInParts",!1),g(this,"payInPartsValueId",void 0),g(this,"hasWellCommentedCode",!1),g(this,"hasTopExpert",!1),g(this,"hasPremiumAIReport",!1),g(this,"hasCalculationsAndSubjectExpertise",!1),g(this,"isPaymentOfSecondPartNeeded",!1),g(this,"isLate",!1),g(this,"isLoading",void 0),g(this,"isBeingCancelled",!1),g(this,"isLoadingSecondPartPayment",!1),g(this,"loadedAt",0),g(this,"isPagesWereCalculatedByWords",!1),g(this,"wordsQuantity",void 0),g(this,"addServicesProcessor",void 0),g(this,"rejectSheduleFormStore",new o.A({availableKeys:["comment"],initialValues:{comment:""},valuesValidator:{comment:a.mw}})),g(this,"appliedCoupon",void 0),g(this,"isVisibleTipsForWriterButton",!1),g(this,"isFullApproveAvailable",!1),g(this,"isPartialApproveAvailable",!1),g(this,"isFullRefundAllowed",!1),g(this,"isPartialRefundAllowed",!1),g(this,"isProfessorsFeedbackRefundAllowed",!1),g(this,"isRequestFreeRevisionAvailable",!1),g(this,"isRequestProfessorsRevisionAvailable",!1),g(this,"isRequestPaidRevisionAvailable",!1),g(this,"latestFileIsDownloaded",!1),g(this,"tipsForWriterAmount",void 0),g(this,"firstInstallmentCost",void 0),g(this,"secondInstallmentCost",void 0),g(this,"errorsStore",void 0),g(this,"routerStore",void 0),g(this,"notificationsStore",void 0),g(this,"configsStore",void 0),g(this,"userProfileStore",void 0),g(this,"transport",void 0),(0,n.Gn)(this,{orderServiceTypeId:n.sH,statusId:n.sH,academicLevel:n.sH,spacing:n.sH,pages:n.sH,slides:n.sH,charts:n.sH,sources:n.sH,paperLevelId:n.sH,languageStyleId:n.sH,tariffId:n.sH,tariffHrs:n.sH,price:n.sH,noDiscountPrice:n.sH,createdAt:n.sH,deadlineAt:n.sH,approvedFirstAt:n.sH,cancelledAt:n.sH,finishedAt:n.sH,newMessagesCount:n.sH,newFilesCount:n.sH,areSourcesRequired:n.sH,progressiveDeliveryHidden:n.sH,isPdScheduleAccepted:n.sH,isPdScheduleRejected:n.sH,hasReassignments:n.sH,isLoading:n.sH,isBeingCancelled:n.sH,loadedAt:n.sH,addServicesProcessor:n.sH,rejectSheduleFormStore:n.sH,appliedCoupon:n.sH,isVisibleTipsForWriterButton:n.sH,disciplineTitle:n.sH,hasSplitPayment:n.sH,hasPayInParts:n.sH,payInPartsValue:n.EW,payInPartsValueId:n.sH,hasWellCommentedCode:n.sH,hasTopExpert:n.sH,hasPremiumAIReport:n.sH,hasCalculationsAndSubjectExpertise:n.sH,isPaymentOfSecondPartNeeded:n.sH,order:n.EW,isRevisionType:n.EW,isAdditionalPaymentType:n.EW,isTipsForWriterType:n.EW,hoursLeft:n.EW,tariff:n.EW,isUnpaid:n.EW,isFinished:n.EW,orderInfo:n.EW,$deadlineDate:n.EW,$deadlineRemaining:n.EW,formattedDeadlineDate:n.EW,deadlineString:n.EW,getPaperTypeTitle:n.EW,getPaperFormatTitle:n.EW,statusTitleForInfo:n.EW,updateOrder:n.XI,loadOrder:n.XI,getOrderTaskSizeTitle:n.EW,orderServiceTypeName:n.EW,isOrderServiceTypeEnabled:n.EW,disciplineTitleString:n.EW,goToSecondInstallmentPayment:n.XI,isLoadingSecondPartPayment:n.sH,tipsForWriterAmount:n.sH,firstInstallmentCost:n.sH,secondInstallmentCost:n.sH,isFullApproveAvailable:n.sH,isPartialApproveAvailable:n.sH,isRequestRefundAvailable:n.EW,isFullRefundAllowed:n.sH,isPartialRefundAllowed:n.sH,isProfessorsFeedbackRefundAllowed:n.sH,isRequestRevisionAvailable:n.EW,isRequestFreeRevisionAvailable:n.sH,isRequestProfessorsRevisionAvailable:n.sH,isRequestPaidRevisionAvailable:n.sH,latestFileIsDownloaded:n.sH,setLatestFileIsDownloaded:n.XI,orderInfoForGA4:n.EW,services:n.EW,isReorderAvailable:n.EW,isPdScheduleAvailable:n.EW}),Object.defineProperties(this,{errorsStore:{get:function(){return s.errorsStore}},routerStore:{get:function(){return s.routerStore}},notificationsStore:{get:function(){return s.notificationsStore}},configsStore:{get:function(){return s.configsStore}},userProfileStore:{get:function(){return s.userProfileStore}}}),this.transport=s.transport,this.id=t,r&&this.updateOrder(r),this.addServicesProcessor=new l.A({getOrderInfo:function(){return c.orderInfo},values:{},getUseRevisionTariffs:function(){return c.isRevisionType}},this)}var t,r,h;return t=e,(r=[{key:"order",get:function(){return this}},{key:"getOrderTaskSizeTitle",get:function(){if(this.sizeId){var e=this.configsStore.configs,t=e.configsForProgramming,r=e.configsForCalculations,n=(this.orderServiceTypeId===i.B5.PROGRAMMING?t:r).sizesById[this.sizeId];if(n)return n.name}}},{key:"orderServiceTypeName",get:function(){switch(this.orderServiceTypeId){case i.B5.PROGRAMMING:return"Programming";case i.B5.CALCULATIONS:return"Calculations";
2case i.B5.ACADEMIC_WRITING:default:return"Academic writing"}}},{key:"isRevisionType",get:function(){return[i.B5.REVISION_MINOR,i.B5.REVISION_MAJOR].includes(this.orderServiceTypeId)}},{key:"payInPartsValue",get:function(){var e,t,r;if(null!==(e=this.order)&&void 0!==e&&e.payInPartsValueId&&null!==(t=this.configsStore)&&void 0!==t&&null!==(t=t.configs)&&void 0!==t&&t.payInPartsValuesById)return null===(r=this.configsStore.configs.payInPartsValuesById[this.order.payInPartsValueId])||void 0===r?void 0:r.value}},{key:"isAdditionalPaymentType",get:function(){return this.typeId===i.kt.ADDITIONAL_PAYMENT}},{key:"isTipsForWriterType",get:function(){return this.typeId===i.kt.TIPS_FOR_WRITER}},{key:"hoursLeft",get:function(){if(!this.$deadlineDate)return 0;var e=this.$deadlineDate.getTime()-Date.now();return e<=0?0:Math.round(e/36e5)}},{key:"tariff",get:function(){var e,t;return!(t=(e=this.isRevisionType?this.configsStore.configs.paidRevisionDeadlinesById:this.configsStore.configs.configsForAcademicWriting.tariffsById)[this.tariffId])&&this.tariffHrs&&(t=e[this.configsStore.findDeadlineIdForAcademicLevelByHour(this.academicLevel,this.tariffHrs)]),t}},{key:"deadline",get:function(){return this.orderServiceTypeId===i.B5.PROGRAMMING?this.configsStore.configs.configsForProgramming.deadlinesById[this.deadlineId]:this.orderServiceTypeId===i.B5.CALCULATIONS?this.configsStore.configs.configsForCalculations.deadlinesById[this.deadlineId]:void 0}},{key:"isUnpaid",get:function(){return[i.Th.FAKE,i.Th.FREE_INQUIRY,i.Th.INQUERY_PUBLISHED,i.Th.REPLY_PENDING,i.Th.CONFIRMATION_PENDING,i.Th.INQUERY_WRITER_ACCEPTED].includes(this.statusId)}},{key:"isFinished",get:function(){return[i.Th.CANCELLED,i.Th.FINISHED].includes(this.statusId)}},{key:"orderInfo",get:function(){return function(e){if(e.orderServiceTypeId===i.B5.PROGRAMMING){var t,r=e.appliedCoupon,n=e.configsStore.configs.configsForProgramming,o=n.itemPricesById,a=n.itemPricesIds,s=n.deadlinesById,c=e.disciplineId,l=e.sizeId,u=a.find((function(e){var t=o[e];return t.disciplineId===c&&t.sizeId===l}));return{programmingItemPrice:o[u].price,programmingPriceModifier:null===(t=s[e.deadlineId])||void 0===t?void 0:t.priceModifier,programmingTitle:e.disciplineTitle,orderServiceTypeId:e.orderServiceTypeId,splitPayment:e.hasSplitPayment,hasWellCommentedCode:e.hasWellCommentedCode,hasTopExpert:e.hasTopProgrammingLevel,coupon:r&&r.typeId===i.Gi.ORDER&&r,winbackCoupons:r&&r.typeId===i.Gi.SERVICE&&[r]}}if(e.orderServiceTypeId===i.B5.CALCULATIONS){var d,f=e.appliedCoupon,p=e.configsStore.configs.configsForCalculations,h=p.itemPricesById,m=p.itemPricesIds,y=p.deadlinesById,v=e.disciplineId,g=e.sizeId,b=m.find((function(e){var t=h[e];return t.disciplineId===v&&t.sizeId===g}));return{calculationsItemPrice:h[b].price,calculationsPriceModifier:null===(d=y[e.deadlineId])||void 0===d?void 0:d.priceModifier,calculationsTitle:e.disciplineTitle,orderServiceTypeId:e.orderServiceTypeId,splitPayment:e.hasSplitPayment,coupon:f&&f.typeId===i.Gi.ORDER&&f,winbackCoupons:f&&f.typeId===i.Gi.SERVICE&&[f]}}if(e){var E=e.configsStore.configs.configsForAcademicWriting,w=E.paperLevelsById,S=E.languageStylesById,A=e.configsStore.configs.disciplinesById[e.topcatId],_=e.appliedCoupon;return{pages:e.pages,slides:e.slides,charts:e.charts,coupon:_&&_.typeId===i.Gi.ORDER&&_,winbackCoupons:_&&_.typeId===i.Gi.SERVICE&&[_],tariffPricePerPage:e.tariffPricePerPage,tariffHrs:e.tariffHrs,spacing:e.spacing,getProgressiveDeliveryOn:e.progressiveDeliveryHidden,getUsedSourcesOn:e.areSourcesRequired,complexAssignmentDiscipline:A&&A.isComplexAssignment,academicLevelId:e.academicLevel,disciplineId:e.topcatId,paperLevel:w[e.paperLevelId],languageStyle:S[e.languageStyleId],splitPayment:e.hasSplitPayment,hasPremiumAIReport:e.hasPremiumAIReport,hasCalculationsAndSubjectExpertise:e.hasCalculationsAndSubjectExpertise}}}(this)}},{key:"orderInfoForGA4",get:function(){return(0,p.A)(this)}},{key:"services",get:function(){return e=c.calculateServices(this.orderInfo),Object.keys(e).map((function(t){return e[t]})).filter((function(e){return e.active})).sort((function(e,t){return e.priority-t.priority}));var e}},{key:"$deadlineDate",get:function(){var e=36e5;switch(this.statusId){case i.Th.CANCELLED:return this.cancelledAt;case i.Th.FINISHED:return this.finishedAt;default:var t,r,n=(null===(t=this.tariff)||void 0===t?void 0:t.hrs)||
2(null===(r=this.deadline)||void 0===r?void 0:r.hours);if(this.isUnpaid){if(n)return new Date(Date.now()+n*e)}else{if(this.deadlineAt)return this.deadlineAt;if(n)return new Date(this.createdAt.getTime()+n*e)}return}}},{key:"$deadlineRemaining",get:function(){if(this.isFinished)return"";if(this.isUnpaid)return"if you pay right now";if(0===this.hoursLeft)return"exceeded";var e=Math.floor(this.hoursLeft/24),t=this.hoursLeft%24,r=[];return e>0&&r.push("".concat(e," ").concat((0,s.fk)("day",e))),t>0&&r.push("".concat(t," ").concat((0,s.fk)("hour",t))),"".concat(r.join(" ")," left")}},{key:"formattedDeadlineDate",get:function(){return(0,s.qF)(this.$deadlineDate)}},{key:"deadlineString",get:function(){return this.$deadlineRemaining?"".concat(this.formattedDeadlineDate," (").concat(this.$deadlineRemaining,")"):this.formattedDeadlineDate}},{key:"getPaperTypeTitle",get:function(){return this.paperType===i.UH.TYPE_OF_PAPER_OTHER_ID?"".concat(this.paperTypeTitle," (").concat(this.paperTypeOption,")"):this.paperTypeTitle}},{key:"disciplineTitleString",get:function(){return this.disciplineId===i.UH.DISCIPLINE_OTHER_ID?"Other (".concat(this.disciplineTitle,")"):this.disciplineTitle}},{key:"getPaperFormatTitle",get:function(){return this.paperFormat===i.UH.PAPER_FORMAT_OTHER_ID?"".concat(this.paperFormatTitle," (").concat(this.paperFormatTypeOption,")"):this.paperFormatTitle}},{key:"statusTitleForInfo",get:function(){switch(this.statusId){case i.Th.FINISHED:return"Finished";case i.Th.CANCELLED:return"Canceled";default:return"First draft deadline"}}},{key:"isOrderServiceTypeEnabled",get:function(){var e=this.configsStore.configs;switch(this.orderServiceTypeId){case i.B5.REVISION_MINOR:case i.B5.REVISION_MAJOR:case i.B5.ACADEMIC_WRITING:return e.isAcademicWritingEnabled;case i.B5.PROGRAMMING:return e.isProgrammingEnabled;case i.B5.CALCULATIONS:return e.isCalculationsEnabled;default:return!1}}},{key:"isReorderAvailable",get:function(){return this.isFinished&&!this.isRevisionType&&this.isOrderServiceTypeEnabled}},{key:"isPdScheduleAvailable",get:function(){return!!this.pdSchedule&&this.pdSchedule.length>0}},{key:"isRequestRefundAvailable",get:function(){return this.isFullRefundAllowed||this.isPartialRefundAllowed||this.isProfessorsFeedbackRefundAllowed}},{key:"isRequestRevisionAvailable",get:function(){return this.isRequestProfessorsRevisionAvailable||this.isRequestFreeRevisionAvailable||this.isRequestPaidRevisionAvailable}},{key:"setLatestFileIsDownloaded",value:function(){this.latestFileIsDownloaded=!0}},{key:"updateOrder",value:function(e){var t=this;return e instanceof u.gr||e instanceof u._y||e instanceof u.Js||e instanceof d.A?(Object.keys(e).forEach((function(r){Object.prototype.hasOwnProperty.call(e,r)&&(0,n.h5)((function(){t[r]=e[r]}))})),this.loadedAt=Date.now(),this):this.patchOrder(e)}},{key:"patchOrder",value:function(e){var t;switch(e.orderServiceTypeId){case i.B5.PROGRAMMING:t=new u._y((0,f.of)(y(y({},this),e)));break;case i.B5.CALCULATIONS:t=new u.Js((0,f.of)(y(y({},this),e)));break;case i.B5.ACADEMIC_WRITING:default:t=new u.gr((0,f.of)(y(y({},this),e)))}return this.updateOrder(t)}},{key:"loadOrder",value:function(){var e=this;return this.isLoading||(this.isLoading=this.transport({method:"get",url:"/api/orders/".concat(this.id,".json")}).then((function(t){var r=(0,f.of)(t.order);return e.updateOrder(r),e})).catch((function(t){var r=e.id?"order #".concat(e.id):"order",n="Loading ".concat(r," failed.");t.code!==i.I.ACCESS_DENIED&&t.code!==i.I.NOT_FOUND||(e.notificationsStore.pushNotification({title:n,description:"The web address you entered is not a functioning page on our site.",view:"error"}),e.routerStore.replaceLocation("/orders"),t.presented=!0),e.errorsStore.handleAndRethrow({error:t,intent:n})})).finally((function(){(0,n.h5)((function(){e.isLoading=void 0}))}))),this.isLoading}},{key:"loadOrderIfNeeded",value:function(){return this.loadedAt>0?Promise.resolve(this):this.loadOrder()}},{key:"sheduleReject",value:function(){var e=this,t=this.rejectSheduleFormStore.formValues.comment;return this.rejectSheduleFormStore.submit((function(){return e.transport({method:"post",url:"/api/orders/".concat(e.id,"/pd_schedule_reject.json"),data:{rejectReason:t}}).catch((function(t){var r="Rejecting order #".concat(e.id," progressive delivery schedule failed.");e.errorsStore.handleAndRethrow({error:t,intent:r})})).then((function(){return e.loadOrder()}))}))}},{key:"sheduleConfirm",value:function(){var e=this;return this.transport({method:"post",url:"/api/orders/".concat(this.id,"/pd_schedule_confirm.json")}
2).catch((function(t){var r="Confirming order #".concat(e.id," progressive delivery schedule failed.");e.errorsStore.handleAndRethrow({error:t,intent:r})})).then((function(){return e.loadOrder()}))}},{key:"goToSecondInstallmentPayment",value:function(){var e=this;return this.isLoadingSecondPartPayment=!0,this.transport({method:"get",url:"/api/orders/".concat(this.id,"/secondPartPayment")}).then((function(t){var r=t.data.orderId;e.routerStore.pushLocation("/payment/".concat(r))})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Creating payment of second part failed."})})).finally((function(){(0,n.h5)((function(){e.isLoadingSecondPartPayment=!1}))}))}}])&&v(t.prototype,r),h&&v(t,h),Object.defineProperty(t,"prototype",{writable:!1}),e}()},69094:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});r(95790),r(34089),r(96152),r(21555),r(5858),r(55983),r(68450),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(3492),o=r(58165),a=r(69055),s=r(94673),c=r(76231);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function p(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var m=function(){function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"orders",[]),p(this,"hasMore",!1),p(this,"isLoadingOrders",!1),p(this,"ordersStores",n.sH.map({})),p(this,"batch",10),p(this,"predicate",new s.A({})),p(this,"$ts",void 0),p(this,"$token",new o.XO),p(this,"errorsStore",void 0),p(this,"configsStore",void 0),p(this,"userProfileStore",void 0),p(this,"routerStore",void 0),p(this,"notificationsStore",void 0),p(this,"transport",void 0),p(this,"options",void 0),(0,n.Gn)(this,{orders:n.sH,hasMore:n.sH,isLoadingOrders:n.sH,ordersStores:n.sH,clear:n.XI,$loadBatch:n.XI,cancelOrder:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},configsStore:{get:function(){return t.configsStore}},userProfileStore:{get:function(){return t.userProfileStore}},routerStore:{get:function(){return t.routerStore}},notificationsStore:{get:function(){return t.notificationsStore}}}),this.transport=r,this.options=i}var t,r,l;return t=e,r=[{key:"getOrderStore",value:function(e){return this.ordersStores.get(e)}},{key:"setPredicate",value:function(e){var t=new s.A(e);this.predicate.equals(t)||(this.predicate=t,this.clear())}},{key:"setOrderStore",value:function(e,t){var r=this;if(this.ordersStores.has(e)){var i=this.ordersStores.get(e);return t&&i.updateOrder(t),i}var o=new a.A(e,t,this);return(0,n.h5)((function(){r.ordersStores.set(e,o)})),o}},{key:"reload",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).ifStale,t=(new Date).getTime();
2return e&&this.$ts&&t-this.$ts<5e3?Promise.resolve():this.$loadBatch({startFrom:void 0})}},{key:"clear",value:function(){this.orders=[],this.hasMore=!1,this.isLoadingOrders=!1,this.ordersStores.clear(),this.$ts=void 0}},{key:"$pullOrders",value:function(e,t){var r=e.startFrom,n=void 0===r?0:r,i=e.batch,o=void 0===i?10:i,a=e.predicate;return this.transport({method:"get",url:"/api/orders.json",data:d(d({},a.toApiQuery()),{},{startFrom:n,batch:o}),token:t}).then(c.FW)}},{key:"$loadBatch",value:function(e){var t=this,r=e.startFrom,i=new o.XO;return this.isLoadingOrders=!0,this.$token.cancel(),this.$token=i,this.$pullOrders({startFrom:r,batch:this.batch,predicate:this.predicate},this.$token).then((function(e){return(0,n.h5)((function(){var n=e.orders.map((function(e){return t.setOrderStore(e.id,e)}));return r||(t.orders=[]),t.orders=t.orders.concat(n),t.hasMore=e.showMoreButton,t.$ts=(new Date).getTime(),n}))})).catch((function(e){t.errorsStore.handleAndRethrow({error:e,intent:"Loading orders failed."})})).finally((function(){t.$token===i&&(0,n.h5)((function(){t.isLoadingOrders=!1}))}))}},{key:"loadMore",value:function(){var e=this.orders[this.orders.length-1],t=e&&e.id;return this.$loadBatch({startFrom:t})}},{key:"onBeforeCancelOrder",value:function(e){return this.options.onCancelOrder?this.options.onCancelOrder(e).catch((function(){})):Promise.resolve()}},{key:"cancelOrder",value:function(e){var t=this,r=this.setOrderStore(e);return r&&(r.isBeingCancelled=!0),this.onBeforeCancelOrder(r.order).then((function(){return t.transport({method:"delete",url:"/api/orders/".concat(e,".json")})})).then((function(e){return(0,c.of)(e.order)})).then((function(r){return t.setOrderStore(e,r)})).catch((function(e){var n=r.id?"order #".concat(r.id):"order",i="Cancelling ".concat(n," failed.");t.errorsStore.handleAndRethrow({error:e,intent:i})})).then((function(){return t.userProfileStore.startUpdating()})).finally((function(){r&&(0,n.h5)((function(){r.isBeingCancelled=!0}))}))}},{key:"getOrderAnalyticsData",value:function(e){var t=this;return this.transport({method:"get",url:"/api/orders/".concat(e,"/getDataForGoogleAnalytics.json")}).then(c.En).catch((function(e){return t.errorsStore.handleAndRethrow({error:e,intent:"Loading data failed."})}))}},{key:"loadPaidButNotInProgressOrders",value:function(){return this.$pullOrders({predicate:new s.A({statusIds:[i.Th.NEW_PAID,i.Th.WRITER_ACCEPTED,i.Th.ORDER_PUBLISHED]})})}}],r&&f(t.prototype,r),l&&f(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}()},94673:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});r(1569),r(21555),r(30935),r(68291),r(54),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(o=i.key,a=void 0,a=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===n(a)?a:String(a)),i)}var o,a}const o=function(){function e(t){var r=t.isRecent,n=void 0!==r&&r,i=t.statusIds,o=void 0===i?[]:i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isRecent=n,this.statusIds=o}var t,r,n;return t=e,(r=[{key:"equals",value:function(e){var t=this;return this.isRecent===e.isRecent&&this.statusIds.length===e.statusIds.length&&!this.statusIds.find((function(t){return!e.statusIds.includes(t)}))&&!e.statusIds.find((function(e){return!t.statusIds.includes(e)}))}},{key:"toApiQuery",value:function(){return this.isRecent?{type:"recent"}:{type:"byStatus",statusId:this.statusIds.join(",")}}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},30656:(e,t,r)=>{"use strict";r.d(t,{Ll:()=>n.A,of:()=>i.of});r(47335);var n=r(69094),i=r(76231)},88744:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);function i(e){var t,r=e.id,i=e.orderUuid,o=e.orderServiceTypeId,a=e.topcat,s=e.disciplineTitle,c=e.paperTypeTitle,l=e.paperTypeOption,u=e.academicLevelTitle,d=e.pages,f=e.paperLevelId,p=e.languageStyleId,h=e.paperFormatTitle,m=e.paperFormatTypeOption,y=e.tariff,v=e.appliedCoupon,g=e.sizeTitle,b=e.languageTitle,E=e.softwareTitle,w=e.noDiscountPrice,S=e.price,A=e.hasSplitPayment,_=e.payInPartsValue;return{id:r,orderUuid:i,orderServiceTypeId:o,noDiscountPrice:w,discount:(0,n.hM)(w-S),price:S,discipline:a||s,paperType:l||c,academicLevel:u,pages:d,paperLevelId:f,languageStyleId:p,paperFormat:m||h,deadline:null==y?void 0:y.title,couponCode:null==v||null===(t=v.code)||void 0===t?void 0:t.code,size:g,language:b,software:E,hasPayIn2:A,payInPartsValue:_}}},76231:(e,t,r)=>{"use strict";r.d(t,{En:()=>o.A,FW:()=>i.A,of:()=>n.A});var n=r(36814),i=r(27685),o=r(12272)},36814:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(96152),r(95790),r(28443),r(9020),r(92221),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(3492),i=r(76842),o=r(52373);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?s(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=function(e){return{id:e.id,typeId:e.typeId,orderServiceTypeId:e.orderServiceTypeId,parentId:e.parentId||void 0,orderUuid:e.orderUuid||void 0,cancelledAt:e.cancelledDate?new Date(e.cancelledDate):void 0,finishedAt:e.finishedDate?new Date(e.finishedDate):void 0,deadlineAt:e.realDeadline?new Date(e.realDeadline):void 0,createdAt:new Date(e.createdAt),statusId:e.statusId,statusTitle:e.statusTitle,statusDescription:e.statusDescription,price:e.price,noDiscountPrice:e.noDiscountPrice,tax:e.tax,serviceTypeTitle:e.serviceTypeTitle,additionalPayments:e.additionalPayments.map((function(e){return{id:e.id,price:e.price,paidAt:new Date(e.paidAt),title:e.title}})),appliedCoupon:e.appliedCoupon||void 0,newFilesCount:e.newFilesCount,newMessagesCount:e.newMessagesCount,comments:e.comments,isVisibleTipsForWriterButton:Boolean(e.isVisibleTipsForWriterButton),tipsForWriterAmount:parseFloat(e.tipsForWriterAmount)||void 0,requestedWriterId:e.requestedWriterId||void 0,requestedWriterName:e.requestedWriterName||void 0,assignedWriterId:e.assignedWriterId||void 0,assignedWriterName:e.assignedWriterName||void 0,hasSplitPayment:Boolean(e.hasSplitPayment),hasPayInParts:Boolean(e.hasPayInParts),payInPartsValueId:parseInt(e.payInPartsValueId,10)||void 0,isPaymentOfSecondPartNeeded:Boolean(e.isPaymentOfSecondPartNeeded),firstInstallmentCost:parseFloat(e.firstInstallmentCost)||void 0,secondInstallmentCost:parseFloat(e.secondInstallmentCost)||void 0,newChatMessagesCount:e.newChatMessagesCount,rewardPointsEarned:parseInt(e.rewardPointsEarned,10)||0,discountAchieved:parseInt(e.discountAchieved,10)||void 0,isRequestPaidRevisionAvailable:Boolean(e.isRequestPaidRevisionAvailable),isRequestFreeRevisionAvailable:Boolean(e.isRequestFreeRevisionAvailable),isRequestProfessorsRevisionAvailable:Boolean(e.isRequestProfessorsRevisionAvailable),isFullRefundAllowed:Boolean(e.isFullRefundAllowed),isPartialRefundAllowed:Boolean(e.isPartialRefundAllowed),isProfessorsFeedbackRefundAllowed:Boolean(e.isProfessorsFeedbackRefundAllowed),latestFileIsDownloaded:Boolean(e.latestFileIsDownloaded),isFullApproveAvailable:Boolean(e.isFullApproveAvailable),isPartialApproveAvailable:Boolean(e.isPartialApproveAvailable),latestFile:e.latestFile,fileIdForFreeRevision:e.fileIdForFreeRevision,timeForFreeRevision:e.timeForFreeRevision}};const d=function(e){if(e.typeId===n.kt.TIPS_FOR_WRITER)return function(e){return new o.A({id:e.id,typeId:e.typeId,parentId:e.parentId})}(e);switch(e.orderServiceTypeId){case n.B5.PROGRAMMING:return function(e){return new i._y(c(c({},u(e)),{},{disciplineId:e.disciplineId,disciplineTitle:e.disciplineTitle,instructions:e.instructions,sizeId:e.sizeId,deadlineId:e.deadlineId,languageId:e.languageId||void 0,languageTitle:e.languageTitle||void 0,hasOnlyOwnCodeSolution:Boolean(e.hasOnlyOwnCodeSolution),hasWellCommentedCode:Boolean(e.hasWellCommentedCode),hasTopProgrammingLevel:Boolean(e.hasTopProgrammingLevel)}))}(e);case n.B5.CALCULATIONS:return function(e){return new i.Js(c(c({},u(e)),{},{disciplineId:e.disciplineId,disciplineTitle:e.disciplineTitle,instructions:e.instructions,sizeId:e.sizeId,deadlineId:e.deadlineId,softwareId:e.softwareId||void 0,softwareTitle:e.softwareTitle||void 0}))}(e);case n.B5.ACADEMIC_WRITING:default:return function(e){return new i.gr(c(c({},u(e)),{},{title:e.title,pages:e.pages,slides:e.slides,charts:e.charts,sources:e.sources,paperFormat:e.paperFormat,paperFormatTitle:e.paperFormatTitle,tariffPricePerPage:e.tariffPricePerPage,tariffHrs:e.tariffHrs,topcatId:e.topcatId,topcat:e.topcat,paperType:e.paperType||n.UH.TYPE_OF_PAPER_OTHER_ID,paperTypeTitle:e.paperTypeTitle,paperTypeOption:e.paperTypeOption,paperFormatTypeOption:e.paperFormatTypeOption,spacing:e.spacing,tariffId:e.tariffId,progressiveDeliveryHidden:e.progressiveDeliveryHidden,paperDetails:e.paperDetails,academicLevel:e.academicLevel,academicLevelTitle:e.academicLevelTitle,isPdScheduleAccepted:e.isPdScheduleAccepted,isPdScheduleRejected:e.isPdScheduleRejected,pdSchedule:e.pdSchedule&&e.pdSchedule.map((function(e){return Object.assign(e,{c_deadline:new Date(e.c_deadline),w_deadline:new Date(e.w_deadline),id:Math.random()})})),areSourcesRequired:e.areSourcesRequired,approvedFirstAt:e.approvedFirstAt?new Date(e.approvedFirstAt):void 0,hasReassignments:e.hasReassignments||!1,disciplineId:e.disciplineId,disciplineTitle:e.disciplineTitle,paperLevelId:e.paperLevelId||void 0,languageStyleId:e.languageStyleId||void 0,wordsQuantity:e.wordsQuantity||void 0,isPagesWereCalculatedByWords:Boolean(e.isPagesWereCalculatedByWords),hasPremiumAIReport:Boolean(e.hasPremiumAIReport),hasCalculationsAndSubjectExpertise:Boolean(e.hasCalculationsAndSubjectExpertise)}))}(e)}}},12272:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(95790),r(85146),r(30935),r(68291),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(3492),i=r(99199);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=function(e){var t=e.coupon;return t?{id:t.id,code:t.code,orders:t.orders.map((function(e){return{id:e.id,appliedAt:e.appliedAt}})),originId:t.originId,discountTypeId:t.discountTypeId,typeId:t.typeId,serviceTypeId:t.serviceTypeId,value:t.value,paperLevelId:t.paperLevelId||void 0,languageStyleId:t.languageStyleId||void 0,createdAt:t.createdAt,expiredAt:t.expiredAt,isAvailableForUsage:t.isAvailableForUsage}:null},u=function(e){return{id:e.id,typeId:e.typeId,parentId:e.parentId,orderUuid:e.orderUuid||void 0,orderServiceTypeId:e.orderServiceType.id,orderServiceTypeName:e.orderServiceType.name,price:e.price,tax:e.tax,formTypeForAnalytics:e.formTypeForAnalytics,paymentMethod:e.paymentMethodId,paymentMethodId:e.paymentMethodId,currency:e.currency,noDiscountPrice:e.noDiscountPrice,discount:e.discount,couponCode:e.couponCode||void 0,paymentIntegrationTypeId:e.paymentIntegrationTypeId||void 0,webmasterId:e.webmasterId||void 0,deadline:e.deadline||e.tariff,isAdditionalPayment:Boolean(e.isAdditionalPayment),hasPayIn2:Boolean(e.hasPayIn2),payInPartsValue:e.payInPartsValue||void 0}};const d=function(e){var t,r=e.data;if(r&&r.typeId!==n.kt.TIPS_FOR_WRITER)switch(r.orderServiceType.id){case n.B5.PROGRAMMING:return t=r,new i.I0(s(s({},u(t)),{},{discipline:t.discipline,language:t.language||void 0,size:t.size,tariff:t.deadline,coupon:l(t)}));case n.B5.CALCULATIONS:return function(e){return new i.rY(s(s({},u(e)),{},{discipline:e.discipline,software:e.software||void 0,size:e.size,tariff:e.deadline,coupon:l(e)}))}(r);case n.B5.ACADEMIC_WRITING:default:return function(e){var t;return new i.uH(s(s({},u(e)),{},{paperType:e.paperType,academicLevel:e.academicLevel,discipline:e.discipline,tariff:e.tariff,pages:e.pages,spacing:e.spacing||"double",sources:e.sources||0,charts:e.charts||0,slides:e.slides||0,coupon:l(e),hasCopyOfSources:e.hasCopyOfSources||!1,hasProgressiveDelivery:e.hasProgressiveDelivery||!1,paperFormat:e.paperFormat,isInquiry:null===(t=e.formTypeForAnalytics)||void 0===t||null===(t=t.toLowerCase())||void 0===t?void 0:t.includes("inquiry"),additionalPages:e.additionalPages,paperLevelId:e.paperLevelId||void 0,languageStyleId:e.languageStyleId||void 0}))}(r)}}},27685:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});r(9020),r(95790);var n=r(76842),i=r(36814);const o=function(e){return new n.ao({startFrom:e.startFrom,batch:parseInt(e.batch,10),showMoreButton:e.showMoreButton,type:e.type,orders:e.orders.map((function(e){return(0,i.A)(e)}))})}},99199:(e,t,r)=>{"use strict";r.d(t,{I0:()=>h,rY:()=>m,uH:()=>p});r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(58165);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c={id:n.L$.number.isOptional,code:n.L$.shape({id:n.L$.number.isOptional,code:n.L$.string.isOptional,title:n.L$.string.isOptional,description:n.L$.string.isOptional}),orders:n.L$.arrayOf(n.L$.shape({id:n.L$.number,appliedAt:n.L$.number})).isOptional,originId:n.L$.number.isOptional,discountTypeId:n.L$.number.isOptional,typeId:n.L$.number.isOptional,serviceTypeId:n.L$.number.isOptional,value:n.L$.number.isOptional,paperLevelId:n.L$.number.isOptional,languageStyleId:n.L$.number.isOptional,createdAt:n.L$.number.isOptional,expiredAt:n.L$.number.isOptional,isAvailableForUsage:n.L$.bool.isOptional},l={id:n.L$.number,typeId:n.L$.number,parentId:n.L$.number.isOptional,orderUuid:n.L$.string.isOptional,orderServiceTypeId:n.L$.number,orderServiceTypeName:n.L$.string,price:n.L$.number,tax:n.L$.number,formTypeForAnalytics:n.L$.string,paymentMethod:n.L$.number.isOptional,paymentMethodId:n.L$.number.isOptional,currency:n.L$.string,deadline:n.L$.string,noDiscountPrice:n.L$.number,discount:n.L$.number,couponCode:n.L$.string.isOptional,paymentIntegrationTypeId:n.L$.number.isOptional,webmasterId:n.L$.number.isOptional,isAdditionalPayment:n.L$.bool,hasPayIn2:n.L$.bool,payInPartsValue:n.L$.number.isOptional},u=a(a({},l),{},{paperType:n.L$.string,discipline:n.L$.string,academicLevel:n.L$.string,tariff:n.L$.string,pages:n.L$.number,spacing:n.L$.string,sources:n.L$.number,charts:n.L$.number,slides:n.L$.number,paperLevelId:n.L$.number.isOptional,languageStyleId:n.L$.number.isOptional,hasCopyOfSources:n.L$.bool,hasProgressiveDelivery:n.L$.bool,coupon:n.L$.shape(c).isOptional,paperFormat:n.L$.string,additionalPages:n.L$.number.isOptional}),d=a(a({},l),{},{discipline:n.L$.string,size:n.L$.string,tariff:n.L$.string,coupon:n.L$.shape(c).isOptional,language:n.L$.string.isOptional}),f=a(a({},l),{},{discipline:n.L$.string,size:n.L$.string,tariff:n.L$.string,coupon:n.L$.shape(c).isOptional,software:n.L$.string.isOptional}),p=(0,n.t0)("OrderAnalyticsAcademicWriting",u),h=(0,n.t0)("OrderAnalyticsProgramming",d),m=(0,n.t0)("OrderAnalyticsCalculations",f)},76842:(e,t,r)=>{"use strict";r.d(t,{Js:()=>h,_y:()=>p,ao:()=>m,gr:()=>f});r(96152),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(58165);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c={id:n.L$.number,typeId:n.L$.number,orderServiceTypeId:n.L$.number,parentId:n.L$.number.isOptional,orderUuid:n.L$.string.isOptional,cancelledAt:n.L$.instanceOf(Date).isOptional,finishedAt:n.L$.instanceOf(Date).isOptional,deadlineAt:n.L$.instanceOf(Date).isOptional,createdAt:n.L$.instanceOf(Date).isOptional,statusId:n.L$.number,statusTitle:n.L$.string,statusDescription:n.L$.string,price:n.L$.number,noDiscountPrice:n.L$.number,tax:n.L$.number,serviceTypeTitle:n.L$.string,additionalPayments:n.L$.arrayOf(n.L$.shape({id:n.L$.number,price:n.L$.number,paidAt:n.L$.instanceOf(Date),title:n.L$.string})).isOptional,appliedCoupon:n.L$.shape({typeId:n.L$.number,discountTypeId:n.L$.number,value:n.L$.number,paperLevelId:n.L$.number.isOptional,languageStyleId:n.L$.number.isOptional,code:n.L$.shape({code:n.L$.string})}).isOptional,newFilesCount:n.L$.number,newMessagesCount:n.L$.number,comments:n.L$.
2string,isVisibleTipsForWriterButton:n.L$.bool,tipsForWriterAmount:n.L$.number.isOptional,requestedWriterId:n.L$.number.isOptional,requestedWriterName:n.L$.string.isOptional,assignedWriterId:n.L$.number.isOptional,assignedWriterName:n.L$.string.isOptional,hasSplitPayment:n.L$.bool,isPaymentOfSecondPartNeeded:n.L$.bool,firstInstallmentCost:n.L$.number.isOptional,secondInstallmentCost:n.L$.number.isOptional,rewardPointsEarned:n.L$.number,discountAchieved:n.L$.number.isOptional,isRequestFreeRevisionAvailable:n.L$.bool,isRequestProfessorsRevisionAvailable:n.L$.bool,isRequestPaidRevisionAvailable:n.L$.bool,isFullRefundAllowed:n.L$.bool,isPartialRefundAllowed:n.L$.bool,isProfessorsFeedbackRefundAllowed:n.L$.bool,latestFileIsDownloaded:n.L$.bool,isFullApproveAvailable:n.L$.bool,isPartialApproveAvailable:n.L$.bool,latestFile:n.L$.shape({id:n.L$.number.isOptional,name:n.L$.string.isOptional,downloadLink:n.L$.string.isOptional}).isOptional,fileIdForFreeRevision:n.L$.number,timeForFreeRevision:n.L$.string.isOptional},l=a(a({},c),{},{title:n.L$.string,pages:n.L$.number,slides:n.L$.number,charts:n.L$.number,sources:n.L$.number,paperFormat:n.L$.number,paperFormatTitle:n.L$.string,tariffPricePerPage:n.L$.number,tariffHrs:n.L$.number,topcatId:n.L$.number,topcat:n.L$.string,paperType:n.L$.number,paperTypeTitle:n.L$.string,paperTypeOption:n.L$.string,paperFormatTypeOption:n.L$.string,spacing:n.L$.string,tariffId:n.L$.number,progressiveDeliveryHidden:n.L$.bool.isOptional,paperDetails:n.L$.string,academicLevel:n.L$.number,academicLevelTitle:n.L$.string,isPdScheduleAccepted:n.L$.bool,isPdScheduleRejected:n.L$.bool,pdSchedule:n.L$.arrayOf(n.L$.shape({id:n.L$.number,pages:n.L$.number,slides:n.L$.number,c_deadline:n.L$.instanceOf(Date),w_deadline:n.L$.instanceOf(Date),comment:n.L$.string})).isOptional,areSourcesRequired:n.L$.bool,approvedFirstAt:n.L$.instanceOf(Date).isOptional,hasReassignments:n.L$.bool,disciplineId:n.L$.number,disciplineTitle:n.L$.string,paperLevelId:n.L$.number.isOptional,languageStyleId:n.L$.number.isOptional,hasPremiumAIReport:n.L$.bool,hasCalculationsAndSubjectExpertise:n.L$.bool}),u=a(a({},c),{},{disciplineId:n.L$.number,disciplineTitle:n.L$.string,instructions:n.L$.string.isOptional,sizeId:n.L$.number,deadlineId:n.L$.number,languageId:n.L$.number.isOptional,languageTitle:n.L$.string.isOptional,hasOnlyOwnCodeSolution:n.L$.bool,hasWellCommentedCode:n.L$.bool,hasTopProgrammingLevel:n.L$.bool}),d=a(a({},c),{},{disciplineId:n.L$.number,disciplineTitle:n.L$.string,instructions:n.L$.string.isOptional,sizeId:n.L$.number,deadlineId:n.L$.number,softwareId:n.L$.number.isOptional,softwareTitle:n.L$.string.isOptional}),f=(0,n.t0)("OrderAcademicWriting",l),p=(0,n.t0)("OrderProgramming",u),h=(0,n.t0)("OrderCalculations",d),m=(0,n.t0)("Orders",{startFrom:n.L$.number.isOptional,batch:n.L$.number,showMoreButton:n.L$.bool,type:n.L$.string,orders:n.L$.arrayOf(n.L$.object).isOptional})},52373:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("TipsOrder",{id:n.L$.number,typeId:n.L$.number,parentId:n.L$.number.isOptional})},18162:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(34089),r(21555),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(61938),o=r(97057),a=r(13229);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function l(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var d=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"isRestoringPassword",!1),l(this,"errorsStore",void 0),l(this,"reCaptchaStore",void 0),l(this,"transport",void 0),l(this,"validateEmail",(function(e){return o.mw(e)||o.Rp(e)||o.Ru(64)(e)})),l(this,"validateNewPassword",(function(e){return o.mw(e)||o.wJ(e)||o.Bp(7)(e)||o.Ce(e)})),(0,n.Gn)(this,{isRestoringPassword:n.sH,restorePassword:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},reCaptchaStore:{get:function(){return t.reCaptchaStore}}}),this.transport=r,this.formManager=new i.A({availableKeys:["email","password"],initialValues:{email:"",password:""},valuesValidator:{email:this.validateEmail,password:this.validateNewPassword}})}var t,r,s;return t=e,(r=[{key:"restorePassword",value:function(){var e=this;return this.isRestoringPassword=!0,this.formManager.submit((function(){return e.reCaptchaStore.getReCaptchaToken().then((function(t){return e.transport({method:"post",url:"/api/passwordremind.json",data:{email:e.formManager.formValues.email,password:(new a.sha256).update(e.formManager.formValues.password).digest("hex"),recaptchaToken:t}})})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Restoring password failed."})}))})).finally((function(){(0,n.h5)((function(){e.isRestoringPassword=!1}))}
2))}}])&&c(t.prototype,r),s&&c(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},90235:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(34089),r(21555),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(30350),o=r.n(i),a=r(3492);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function l(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var d=function(){function e(t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"recoveryHash",void 0),l(this,"isCheckingRecoveryHash",!1),l(this,"isResettingPassword",!1),l(this,"submitted",!1),l(this,"needSetNewPass",!1),l(this,"redirectTo","/orders"),l(this,"errorsStore",void 0),l(this,"notificationsStore",void 0),l(this,"routerStore",void 0),l(this,"userProfileStore",void 0),l(this,"transport",void 0),l(this,"options",void 0),(0,n.Gn)(this,{recoveryHash:n.sH,isCheckingRecoveryHash:n.sH,isResettingPassword:n.sH,submitted:n.sH,needSetNewPass:n.sH,enableNeedSetNewPass:n.XI,setRecoveryHash:n.XI,reset:n.XI,rejectResettingPassword:n.XI,startResettingPassword:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},notificationsStore:{get:function(){return t.notificationsStore}},routerStore:{get:function(){return t.routerStore}},userProfileStore:{get:function(){return t.userProfileStore}}}),this.transport=r,this.options=i}var t,r,i;return t=e,(r=[{key:"enableNeedSetNewPass",value:function(){this.needSetNewPass=!0}},{key:"setRedirectTo",value:function(e){this.redirectTo=e}},{key:"setRecoveryHash",value:function(e){var t=this;return this.isCheckingRecoveryHash=!0,this.transport({method:"post",url:"/api/checkHash/".concat(e,".json")}).then((function(r){var i=r.is_active,s=r.needSetNewPass;if(!i)throw new(o())("Activation link is outdated",a.I.INVALID_RECOVERY_HASH);s&&t.enableNeedSetNewPass(),(0,n.h5)((function(){t.recoveryHash=e}))})).catch((function(e){var r=e,n="Resetting password failed.",i=r.code===a.I.INVALID_RECOVERY_HASH?r.message:"The web address you entered is not a functioning page on our site.";t.notificationsStore.pushNotification({title:n,description:i,view:"error"}),t.routerStore.replaceLocation("/authorization"),r.presented=!0,t.errorsStore.handleAndRethrow({error:r,intent:n})})).finally((function(){(0,n.h5)((function(){t.isCheckingRecoveryHash=!1}))}))}},{key:"reset",value:function(){this.recoveryHash=void 0,this.submitted=!1,this.isCheckingRecoveryHash=!1,this.isResettingPassword=!1}},{key:"rejectResettingPassword",value:function(){var e=this;this.isResettingPassword=!0;var t=this.options.onRejectResettingPassword;return this.transport({method:"post",url:"/api/rejectPasswordChange/".concat(this.recoveryHash,".json")}).then((function(){t&&t(),e.notificationsStore.pushNotification({title:"Password change rejected.",description:" Please log in with your old password.",view:"success"}),e.routerStore.replaceLocation("/authorization")})).catch((function(t){e.routerStore.replaceLocation("/"),e.errorsStore.handleAndRethrow({error:t,intent:"Cancelling reset password token failed."})})).finally((function(){(0,n.h5)((function(){e.isResettingPassword=!1}))}))}},{key:"startResettingPassword",value:function(){var e=this;this.isResettingPassword=!0;var t=this.options.onResettingPasswordSuccess;return this.transport({method:"post",url:"/api/acceptPasswordChange/".concat(this.recoveryHash,".json")}).then((function(){return t&&t(),(0,n.h5)((function(){e.submitted=!0,e.userProfileStore.authType=a.SS.SIGN_IN_AUTH_TYPE}
2)),e.userProfileStore.startUpdating()})).then((function(){e.notificationsStore.pushNotification({title:"Password was saved.",description:" You are now logged in.",view:"success"}),e.routerStore.pushLocation(e.redirectTo)})).catch((function(t){e.routerStore.replaceLocation("/"),e.errorsStore.handleAndRethrow({error:t,intent:"Resetting password failed."})})).finally((function(){(0,n.h5)((function(){e.isResettingPassword=!1}))}))}}])&&c(t.prototype,r),i&&c(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},66510:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(34089),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(61938),i=r(97057),o=r(13229);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function c(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var u=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"errorsStore",void 0),c(this,"notificationsStore",void 0),c(this,"routerStore",void 0),c(this,"transport",void 0),c(this,"validateNewPassword",(function(e){return i.mw(e)||i.wJ(e)||i.Bp(7)(e)||i.Ce(e)})),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},notificationsStore:{get:function(){return t.notificationsStore}},routerStore:{get:function(){return t.routerStore}}}),this.transport=r;this.formManager=new n.A({availableKeys:["newPassword","confirmPassword"],initialValues:{newPassword:"",confirmPassword:""},valuesValidator:{newPassword:this.validateNewPassword,confirmPassword:this.validateNewPassword}})}var t,r,a;return t=e,r=[{key:"setNewPassword",value:function(e){var t=this,r=e.newPasswordH
vendor: 6,152 bytes, line 2
2ash,n=e.confirmPasswordHash,i=e.recoveryHash,o=e.redirectTo;return this.transport({method:"post",url:"/api/verify_new_pass.json",data:{newPassword:r,confirmNewPassword:n,recoveryHash:i}}).then((function(){t.notificationsStore.pushNotification({title:"New password was set",view:"success"}),t.routerStore.replaceLocation(o)})).catch((function(e){t.errorsStore.handleAndRethrow({error:e,intent:"Setting new password failed."})}))}},{key:"startSubmitting",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/authorization",n=this.formManager.formValues,i=n.newPassword,a=n.confirmPassword,s={newPasswordHash:(new o.sha256).update(i).digest("hex"),confirmPasswordHash:(new o.sha256).update(a).digest("hex"),recoveryHash:e,redirectTo:r};return this.formManager.submit((function(){return t.setNewPassword(s)}))}}],r&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},4182:(e,t,r)=>{"use strict";r.d(t,{M4:()=>n.A,Tm:()=>i.A,Zd:()=>o.A});var n=r(90235),i=r(18162),o=r(66510)},44476:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(34089),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(5858),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(95570),r(22892),r(85146),r(11823),r(86940),r(17626),r(84766);var n=r(58165),i=r(95854);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(){a=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,c,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,c)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,a,s,c){var l=p(e[i],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==o(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,c,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function s(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){s(o,n,i,a,c,"next",e)}function c(e){s(o,n,i,a,c,"throw",e)}a(void 0)}))}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function u(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}const f=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"$session",void 0),u(this,"$token",void 0),u(this,"configsStore",void 0),u(this,"paymentStore",void 0),u(this,"errorsStore",void 0),u(this,"transport",void 0),u(this,"validateMerchant",function(){var e=c(a().mark((function e(t){var r,i,o,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.validationURL,i=n.paymentStore.applePayPaymentMethod.paymentRequestId,e.prev=2,e.next=5,n.transport({method:"post",url:"/api/payment/applePay/validateMerchant.json",token:n.$token,data:{paymentRequestId:i,validationURL:r}});case 5:o=e.sent,s=o.data,n.$session.completeMerchantValidation(s),e.next=15;break;case 10:e.prev=10,e.t0=e.catch(2),n.$session&&n.$session.abort(),"Merchant validation failed.",n.errorsStore.handleError(e.t0,{intent:"Merchant validation failed."});case 15:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}()),u(this,"paymentAuthorized",function(){var e=c(a().mark((function e(t){var r,o,s,l,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.payment,o=n.paymentStore.applePayPaymentMethod,s=o.paymentRequestId,l=o.paymentMethodId,u=o.integrationType,e.prev=2,e.next=5,n.paymentStore.submitPayment(function(){var e=c(a().mark((function e(t){var i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t({paymentMethodId:l,integrationType:u}),e.next=3,n.paymentStore.createPayment({data:r,paymentRequestId:s});case 3:return i=e.sent,e.next=6,n.paymentStore.processPaymentResponse(s,i);case 6:n.completePayment(window.ApplePaySession.STATUS_SUCCESS);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 5:e.next=11;break;case 7:e.prev=7,e.t0=e.catch(2),n.completePayment(window.ApplePaySession.STATUS_FAILURE),(0,i.OP)(e.t0);case 11:case"end":return e.stop()}}),e,null,[[2,7]])})));return function(t){return e.apply(this,arguments)}}()),u(this,"completePayment",(function(e){try{n.$session.completePayment(e)}catch(e){(0,i.OP)(e)}})),u(this,"reset",(function(){n.dispose(),n.$session=void 0,n.$token=void 0})),Object.defineProperties(this,{configsStore:{get:function(){return t.configsStore}},paymentStore:{get:function(){return t.paymentStore}},errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r}var t,r,o;return t=e,(r=[{key:"createApplePaySession",value:function(){var e=this.configsStore.configs.siteFullName,t=this.paymentStore,r=t.orderData,i=r.currency,o=r.totalAmount,a=t.applePayPaymentMethod,s=a.data.paymentRequest,c=s.countryCode,l=s.merchantCapabilities,u=s.supportedNetworks,d=s.requiredBillingContactFields,f=a.tax,p={countryCode:c,currencyCode:i,supportedNetworks:u,merchantCapabilities:l,requiredBillingContactFields:d,total:{label:e,amount:String((0,n.hM)(o+f))}};try{this.$session=new window.ApplePaySession(1,p)}catch(e){this.errorsStore.handleError(e,{intent:"Creating session failed."})}}},{key:"addSessionHandlers",value:function(){this.$session.onvalidatemerchant=this.validateMerchant,this.$session.onpaymentauthorized=this.paymentAuthorized,this.$session.oncancel=this.reset}},{key:"onApplePayButtonClicked",value:function(){this.createApplePaySession(),this.addSessionHandlers(),this.$token=new n.XO,this.$session.begin()}},{key:"dispose",value:function(){this.$token&&this.$token.cancel()}}
vendor: 5,240 bytes, line 2
2])&&l(t.prototype,r),o&&l(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},30552:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>y});r(66264),r(23510),r(85146),r(34089),r(30935),r(68291),r(39170),r(21555),r(5858),r(85028),r(58948),r(79683),r(69399),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(95570),r(22892),r(11823),r(86940),r(17626),r(84766);var n=r(83794),i=r(24289),o=r(58165);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(){s=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,c,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,c)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,s,c){var l=p(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==a(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(a(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,c,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function c(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,s,"next",e)}function s(e){c(o,n,i,a,s,"throw",e)}a(void 0)}))}}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function d(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var p="Integration",h="Request",m={SANDBOX:"sandbox",PRODUCTION:"production"};const y=function(){function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"formManager",void 0),d(this,"paymentStore",void 0),d(this,"errorsStore",void 0),d(this,"routerStore",void 0),d(this,"transport",void 0),d(this,"checkout",void 0),d(this,"flowComponent",void 0),d(this,"isLoading",!0),d(this,"onReady",(function(){(0,n.h5)((function(){o.isLoading=!1}))})),d(this,"onSubmit",l(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,n.h5)((function(){o.paymentStore.isSubmitting=!0})),e.next=3,o.paymentStore.addEcommerceCheckout(o.paymentStore);case 3:case"end":return e.stop()}}),e)})))),d(this,"onPaymentCompleted",l(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.paymentStore.addPurchase();case 2:(0,n.h5)((function(){o.paymentStore.isSubmitting=!1})),o.routerStore.replaceLocation("/order/".concat(o.paymentStore.orderId,"/payment/successful"));case 4:case"end":return e.stop()}}),e)})))),d(this,"onError",function(){var e=l(s().mark((function e(t,r){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r.type!==h||void 0===r.details){e.next=4;break}return e.next=4,o.paymentStore.processPaymentResponse(o.paymentStore.activePaymentMethod.paymentRequestId,r.details);case 4:r.type===p&&o.handleIntegrationError(r);case 5:return e.prev=5,(0,n.h5)((function(){o.paymentStore.isSubmitting=!1})),e.finish(5);case 8:case"end":return e.stop()}}),e,null,[[0,,5,8]])}
2)));return function(t,r){return e.apply(this,arguments)}}()),d(this,"handleIntegrationError",(function(e){!function(e){var t=e||{},r=t.details||{},n=new Error("[CheckOut Integration Error]: ".concat(t.message||"Unknown error"));t.name&&(n.name=t.name),t.stack&&(n.stack=t.stack),(0,i.TL)()?(0,i.ed)((function(e){e.setExtra("checkout_error_details",r),t.code&&e.setTag("checkout_error_code",t.code),(0,i.Cp)(n)})):console.error("[CheckOut Integration Error]:",n)}(e),o.paymentStore.setNextFallbackPaymentMethodId()})),(0,n.Gn)(this,{isLoading:n.sH,reset:n.XI}),Object.defineProperties(this,{paymentStore:{get:function(){return t.paymentStore}},routerStore:{get:function(){return t.routerStore}},errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r}var t,r,a,c;return t=e,r=[{key:"init",value:function(){var e=this,t=this.paymentStore,r=t.activePaymentMethod,n=r.data,i=n.publicKey,a=n.session,c=n.environment,u=r.tax,d=t.orderData,f=Object.values(m).includes(c);if(!i||!a||!f)return this.handleIntegrationError({name:p,message:"GetPaymentPageData validation failed, missing required session data (publicKey, session or environment)",stack:(new Error).stack}),Promise.resolve();var h={publicKey:i,environment:c,paymentSession:a,locale:"en",translations:{en:{"pay_button.pay":"Pay ".concat((0,o.$g)(d.totalAmount+u))}},onReady:this.onReady,onSubmit:this.onSubmit,onPaymentCompleted:this.onPaymentCompleted,onError:this.onError,componentOptions:{card:{displayCardholderName:"bottom"}}};return new Promise((function(t,r){e.$removeScript=(0,o.ki)("https://checkout-web-components.checkout.com/index.js",l(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.initializeCheckout(h);case 2:t();case 3:case"end":return r.stop()}}),r)}))),r)})).catch((function(t){e.errorsStore.handleError(t,{intent:"CheckOut loading error."}),e.handleIntegrationError({name:p,message:"CheckOut SDK script loading error",stack:(new Error).stack})}))}},{key:"initializeCheckout",value:(c=l(s().mark((function e(t){var r,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,window.CheckoutWebComponents(t);case 3:this.checkout=e.sent,this.flowComponent=null===(r=this.checkout)||void 0===r?void 0:r.create("flow"),null===(n=this.flowComponent)||void 0===n||n.mount(document.getElementById("checkout-form")),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this.handleIntegrationError(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e){return c.apply(this,arguments)})},{key:"reset",value:function(){var e;void 0!==this.$removeScript&&this.$removeScript(),null!==(e=this.flowComponent)&&void 0!==e&&e.unmount&&this.flowComponent.unmount(),this.flowComponent=void 0,this.checkout=void 0,this.isLoading=!0,this.paymentStore.isSubmitting=!1}}],r&&u(t.prototype,r),a&&u(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},73703:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(34089),r(21555),r(5858),r(66264),r(23510),r(85028),r(58948),r(79683),r(69399),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(95570),r(22892),r(85146),r(11823),r(86940),r(17626),r(84766);var n=r(58165),i=r(3492);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(){a=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,c,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,c)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,571 bytes, line 2
2))}function I(e,t){function r(i,a,s,c){var l=p(e[i],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==o(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,c,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function s(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){s(o,n,i,a,c,"next",e)}function c(e){s(o,n,i,a,c,"throw",e)}a(void 0)}))}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function u(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}const f=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"paymentsClient",void 0),u(this,"configsStore",void 0),u(this,"paymentStore",void 0),u(this,"errorsStore",void 0),u(this,"transport",void 0),Object.defineProperties(this,{configsStore:{get:function(){return t.configsStore}},paymentStore:{get:function(){return t.paymentStore}},errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r}var t,r,o,s,d,f,p;return t=e,r=[{key:"init",value:(p=c(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.load();case 3:return this.createPaymentsClient(),e.next=6,this.checkReadyToPay();case 6:this.renderButton(t),e.next=14;break;case 9:e.prev=9,e.t0=e.catch(0),e.t0.code=i.I.THIRD_PARTY_LIBRARY_ERROR,this.errorsStore.handleError(e.t0,{intent:"Google Pay error."});case 14:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return p.apply(this,arguments)})},{key:"load",value:(f=c(a().mark((function e(){var t=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,new Promise((function(e,r){t.$removeScript=(0,n.ki)("https://pay.google.com/gp/p/js/pay.js",e,r)}));case 3:e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(0),new Error("Loading failed.");case 8:case"end":return e.stop()}}),e,null,[[0,5]])}))),function(){return f.apply(this,arguments)})},{key:"createPaymentsClient",value:function(){this.paymentsClient=new window.google.payments.api.PaymentsClient({environment:"TEST"})}},{key:"checkReadyToPay",value:(d=c(a().mark((function e(){var t,r,n,i,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.paymentStore.googlePayPaymentMethod.data.paymentRequest,r=t.apiVersion,n=t.apiVersionMinor,i=t.allowedPaymentMethods,o={apiVersion:r,apiVersionMinor:n,allowedPaymentMethods:i},e.next=4,this.paymentsClient.isReadyToPay(o);case 4:if(e.sent.result){e.next=7;break}throw new Error("Google Pay API is not supported by the current device or browser.");case 7:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"renderButton",value:function(e){var t=this,r=this.paymentStore.googlePayPaymentMethod.data.paymentRequest.allowedPaymentMethods,n=this.paymentsClient.createButton({onClick:function(){return t.loadPayment()},allowedPaymentMethods:r,buttonType:"plain",buttonSizeMode:"fill",buttonLocale:"en"});e.appendChild(n)}},{key:"loadPayment",value:(s=c(a().mark((function e(){var t,r,i,o,s,l,u,d,f,p,h,m,y,v,g,b,E=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.paymentStore,r=t.orderData,i=r.currency,o=r.totalAmount,s=t.googlePayPaymentMethod,l=s.data.paymentRequest,u=l.apiVersion,d=l.apiVersionMinor,f=l.allowedPaymentMethods,p=l.countryCode,h=l.merchantId,m=s.paymentRequestId,y=s.tax,v=this.configsStore.configs,g={apiVersion:u,apiVersionMinor:d,allowedPaymentMethods:f,transactionInfo:{totalPriceStatus:"FINAL",totalPrice:String((0,n.hM)(o+y)),currencyCode:i,countryCode:p},merchantInfo:{merchantName:v.siteFullName,merchantId:h}},e.prev=3,e.next=6,this.paymentsClient.loadPaymentData(g);case 6:return b=e.sent,e.next=9,this.paymentStore.submitPayment(c(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E.paymentStore.createPayment({data:b,paymentRequestId:m});case 2:return t=e.sent,e.next=5,E.paymentStore.processPaymentResponse(m,t);case 5:case"end":return e.stop()}}),e)}))));case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(3);case 13:case"end":return e.stop()}}),e,this,[[3,11]])}))),function(){return s.apply(this,arguments)})},{key:"reset",value:function(){this.paymentsClient=void 0,void 0!==this.$removeScript&&this.$removeScript()}}
vendor: 5,426 bytes, line 2
2],r&&l(t.prototype,r),o&&l(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},40292:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});r(96656),r(21555),r(33111),r(94356),r(45993),r(98140),r(68450),r(84766),r(1569),r(34089),r(5858),r(55983),r(29416),r(17306),r(78527),r(30935),r(68291),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(37210),r(48851),r(74874),r(96152),r(34237),r(85146),r(93831),r(40890),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(11823),r(86940),r(17626);var n=r(83794),i=r(24289),o=r(3492),a=r(58165),s=r(10160),c=r(95854),l=r(92421);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(){d=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};l(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,s){var c=p(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==u(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(u(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=l(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),l(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),l(x,c,"Generator"),l(x,a,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function f(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){f(o,n,i,a,s,"next",e)}function s(e){f(o,n,i,a,s,"throw",e)}a(void 0)}))}}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E(n.key),n)}}function b(e,t,r){return(t=E(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}const w=function(){function e(t,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),b(this,"orderId",void 0),b(this,"$orderAnalyticsData",void 0),b(this,"orderData",void 0),b(this,"order",void 0),b(this,"activePaymentMethodId",void 0),b(this,"paymentMethodsIds",void 0),b(this,"paymentMethodsById",void 0),b(this,"triedPaymentMethodIds",new Set),b(this,"alternativePaymentMethodsIds",void 0),b(this,"alternativePaymentMethodsById",void 0),b(this,"isLoading",!1),b(this,"isSubmitting",!1),b(this,"showErrorMessage",!1),b(this,"isLoadingAfterPayIn2Toggle",!1),b(this,"paymentFailedErrorCode",void 0),b(this,"routerStore",void 0),b(this,"errorsStore",void 0),b(this,"ordersStore",void 0),b(this,"configsStore",void 0),b(this,"transport",void 0),b(this,"setActivePaymentMethodId",(function(e){i.activePaymentMethodId=e})),b(this,"setNextActivePaymentMethodId",(function(){if(i.paymentMethodsIds){var e=i.activePaymentMethodId||i.paymentMethodsIds[0];if(i.isCascadingActive){var t=i.paymentMethodsIds.indexOf(i.activePaymentMethodId);if(-1!==t){var r=t+1;e=i.paymentMethodsIds.length>r?i.paymentMethodsIds[r]:i.paymentMethodsIds[0]}}i.setActivePaymentMethodId(e)}})),b(this,"setNextFallbackPaymentMethodId",(function(){if(i.paymentMethodsIds&&0!==i.paymentMethodsIds.length&&(i.activePaymentMethodId&&i.triedPaymentMethodIds.add(i.activePaymentMethodId),!(i.triedPaymentMethodIds.size>=i.paymentMethodsIds.length))){var e=i.paymentMethodsIds.indexOf(i.activePaymentMethodId),t=(-1===e?i.paymentMethodsIds:[].concat(y(i.paymentMethodsIds.slice(e+1)),y(i.paymentMethodsIds.slice(0,e)))).find((function(e){return!i.triedPaymentMethodIds.has(e)}));t&&i.setActivePaymentMethodId(t)}})),(0,n.Gn)(this,{orderData:n.sH,order:n.sH,activePaymentMethodId:n.sH,paymentMethodsIds:n.sH,paymentMethodsById:n.sH,alternativePaymentMethodsIds:n.sH,alternativePaymentMethodsById:n.sH,isLoading:n.sH,isSubmitting:n.sH,showErrorMessage:n.sH,paymentFailedErrorCode:n.sH,$orderAnalyticsData:n.sH,activePaymentMethod:n.EW,isSafeChargeCreditCardActive:n.EW,isSafeChargePaypalActive:n.EW,isCheckOutActive:n.EW,isSolidActive:n.EW,isRedirectActive:n.EW,isCascadingActive:n.EW,availablePaymentMethodsIds:n.EW,paymentMethodDescription:n.EW,setActivePaymentMethodId:n.XI,redirectToExternalPaymentPage:n.XI,loadInitial:n.XI,loadAfterRedirect:n.XI,submitPayment:n.XI,reset:n.XI,isApplePayActive:n.EW,isGooglePayActive:n.EW,applePayPaymentMethod:n.EW,googlePayPaymentMethod:n.EW,isAlternativePaymentMethodsAvailable:n.EW,isOrderInfoDisplayed:n.EW,payIn2Value:n.EW,hasPayInParts:n.EW,togglePayIn2:n.XI,isLoadingAfterPayIn2Toggle:n.sH}),Object.defineProperties(this,{routerStore:{get:function(){return t.routerStore}},errorsStore:{get:function(){return t.errorsStore}},ordersStore:{get:function(){return t.ordersStore}},configsStore:{get:function(){return t.configsStore}}}),this.transport=r}var t,r,u,f,h;return t=e,r=[{key:"activePaymentMethod",get:function(){return this.activePaymentMethodId&&this.paymentMethodsById[this.activePaymentMethodId]}},{key:"isSafeChargeCreditCardActive",get:function(){if(!this.activePaymentMethod)return!1;var e=this.activePaymentMethod,t=e.paymentMethodId,r=e.integrationType;return t===o.bv.SAFECHARGE_CREDITCARD&&r===o.A8.SDK}},{key:"isSafeChargePaypalActive",get:function(){if(!this.activePaymentMethod)return!1;var e=this.activePaymentMethod,t=e.paymentMethodId,r=e.integrationType;return t===o.bv.SAFECHARGE_PAYPAL&&r===o.A8.SDK}},{key:"isCheckOutActive",get:function(){if(!this.activePaymentMethod)return!1;var e=this.activePaymentMethod,t=e.paymentMethodId,r=e.integrationType;return t===o.bv.CHECKOUT&&r===o.A8.SDK}},{key:"isSolidActive",get:function(){if(!this.activePaymentMethod)return!1;var e=this.activePaymentMethod,t=e.paymentMethodId,r=e.integrationType;return t===o.bv.SOLID&&r===o.A8.SDK}},{key:"isRedirectActive",get:function(){return!!this.activePaymentMethod&&this.activePaymentMethod.integrationType===o.A8.REDIRECT}},{key:"isCascadingActive",get:function(){switch(this.paymentFailedErrorCode){case o.nl.OTHER_ERROR:case o.nl.TRANSACTION_DECLINE:case o.nl.NOT_SUPPORTED_CARD:case o.nl.PAYMENT_SYSTEM_ERROR:return!0;default:return!1}}},{key:"isApplePayActive",get:function(){return!(!this.applePayPaymentMethod||!this.configsStore.configs.isApplePayPaymentEnabled)&&(0,c.Cb)()}},{key:"isGooglePayActive",get:function(){return!!this.googlePayPaymentMethod&&this.configsStore.configs.isGooglePayPaymentEnabled}},{key:"isAlternativePaymentMethodsAvailable",get:function(){return this.isApplePayActive||this.isGooglePayActive}},{key:"applePayPaymentMethod",get:function(){var e=this;if(this.alternativePaymentMethodsIds){var t=this.alternativePaymentMethodsIds.find((function(t){return e.alternativePaymentMethodsById[t].integrationType===o.A8.APPLE_PAY}));return t?this.alternativePaymentMethodsById[t]:void 0}}},{key:"googlePayPaymentMethod",get:function(){var e=this;if(this.alternativePaymentMethodsIds){var t=this.alternativePaymentMethodsIds.find((function(t){return e.alternativePaymentMethodsById[t].integrationType===o.A8.GOOGLE_PAY}));return t?this.alternativePaymentMethodsById[t]:void 0}}},{key:"availablePaymentMethodsIds",get:function(){return this.activePaymentMethodId?this.isCascadingActive?this.paymentMethodsIds:[this.activePaymentMethodId]:[]}},{key:"paymentMethodDescription",get:function(){if(!this.activePaymentMethod||this.activePaymentMethod.paymentMethodId===o.bv.SOLID||this.activePaymentMethod.paymentMethodId===o.bv.CHECKOUT)return"";if(this.activePaymentMethod.integrationType===o.A8.SDK)return"Indicate a valid email to get a receipt once the payment is processed";var e="";return this.activePaymentMethod.paymentMethodId===o.bv.SAFECHARGE_CREDITCARD&&(e="SafeCharge"),"Proceed to ".concat(e," payment page")}},{key:"orderInfoRows",get:function(){return(0,l.A)(this.order)}},{key:"isOrderInfoDisplayed",get:function(){return(this.order||{}).typeId===o.kt.ORDER}},{key:"init",value:function(e){var t=e.orderId,r=e.paymentRequestId,n=e.paymentData;return this.orderId=t,void 0===r?this.loadInitial():this.loadAfterRedirect(r,n)}},{key:"loadPaymentPageData",value:function(e){var t=this,r=e?"/api/payment/getPaymentPageData/".concat(this.orderId,"/").concat(e,".json"):"/api/payment/getPaymentPageData/".concat(this.orderId,".json");return this.transport({method:"get",url:r}).then((function(e){var r=(0,s.A)(e),i=r.orderData,o=r.paymentMethodsIds,a=r.paymentMethodsById,c=r.alternativePaymentMethodsIds,l=r.alternativePaymentMethodsById,u=r.failedPaymentMethodId,d=r.order;(0,n.h5)((function(){t.orderData=i,t.paymentMethodsIds=o,t.paymentMethodsById=a,t.alternativePaymentMethodsIds=c,t.alternativePaymentMethodsById=l,t.activePaymentMethodId=u,d&&(t.order=t.ordersStore.setOrderStore(d.id,d))})),t.setNextActivePaymentMethodId()})).catch((function(e){(0,n.h5)((function(){t.showErrorMessage=!0})),e.presented=!0,t.errorsStore.handleError(e)}))}},{key:"redirectToExternalPaymentPage",value:function(){var e=this;return this.isSubmitting=!0,this.addEcommerceCheckout().then((function(){var t=e.activePaymentMethod,r=t.redirectUrl,n=t.paymentRequestId;e.routerStore.replaceLocation("/payment/".concat(e.orderId,"/").concat(n)),e.routerStore.redirect(r)})).finally((function(){(0,n.h5)((function(){e.isSubmitting=!1}))}))}},{key:"loadInitial",value:function(){var e=this;return this.isLoading=!0,Promise.all([this.loadPaymentPageData(),this.addEcommerceProductToCart()]).finally((function(){(0,n.h5)((function(){e.isLoading=!1}))}))}},{key:"loadAfterRedirect",value:function(e,t){var r=this;return this.isLoading=!0,this.processPaymentResponse(e,t).then((function(){return r.addPurchase()})).then((function(){r.routerStore.replaceLocation("/order/".concat(r.orderId,"/payment/successful"))})).catch((function(){})).then((function(){return r.paymentFailedErrorCode&&r.loadPaymentPageData(e)})).finally((function(){(0,n.h5)((function(){r.isLoading=!1}))}))}},{key:"loadOrderAnalyticsData",value:function(){var e=this;return this.$orderAnalyticsData?Promise.resolve(this.$orderAnalyticsData):(this.$loadOrderAnalyticsData||(this.$loadOrderAnalyticsData=this.ordersStore.getOrderAnalyticsData(this.orderId).then((function(t){return e.$orderAnalyticsData=t,e.$orderAnalyticsData}
2)).catch((function(){})).finally((function(){e.$loadOrderAnalyticsData=void 0}))),this.$loadOrderAnalyticsData)}},{key:"addEcommerceProductToCart",value:function(){return this.loadOrderAnalyticsData().then((function(e){e&&i.TQ.beginCheckout(e)}))}},{key:"addEcommerceCheckout",value:function(e){var t=this;return this.loadOrderAnalyticsData().then((function(r){if(r){var n=t.activePaymentMethod,o=n.paymentMethodId,a=n.integrationType;i.TQ.addPaymentInfo(m(m({},r),{},{hasPayIn2:t.payIn2Value,paymentMethodId:(null==e?void 0:e.paymentMethodId)||o,paymentIntegrationTypeId:(null==e?void 0:e.integrationType)||a}))}}))}},{key:"addPurchase",value:function(){return this.$orderAnalyticsData=void 0,this.loadOrderAnalyticsData().then((function(e){i.TQ.purchase(e)})).catch((function(){}))}},{key:"createPayment",value:function(e){var t=this;return this.transport({method:"post",url:"/api/payment/create.json",data:e}).then((function(e){var r=e.data,n=e.redirectTo3dsAuthUrl;return n&&t.routerStore.redirect(n),r})).catch((function(e){t.errorsStore.handleAndRethrow({error:e,intent:"Create payment failed."})}))}},{key:"initiatePayment",value:function(e){var t=this;return this.transport({method:"post",url:"/api/payment/initiate.json",data:{paymentRequestId:e}}).then((function(e){return e.data})).catch((function(e){t.errorsStore.handleAndRethrow({error:e,intent:"Initiate payment failed."})}))}},{key:"processPaymentResponse",value:function(e,t){var r=this,o={paymentRequestId:e};return Object.keys(t).length&&(o.paymentResult=t),this.transport({method:"post",url:"/api/payment/processResponse.json",data:o}).catch((function(e){var t=e.message;(0,n.h5)((function(){r.paymentFailedErrorCode=t})),r.setNextActivePaymentMethodId(),(0,i.WH)("paymentError",{errorCode:t,orderId:r.orderId}),e.presented=!0,r.errorsStore.handleAndRethrow({error:e,intent:"Process payment response failed."})}))}},{key:"submitPayment",value:(h=p(d().mark((function e(t){var r=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isSubmitting=!0,e.prev=1,e.next=4,t(this.addEcommerceCheckout.bind(this));case 4:return e.next=6,this.addPurchase();case 6:this.routerStore.replaceLocation("/order/".concat(this.orderId,"/payment/successful")),e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(1),setTimeout((function(){(0,a.TH)(document.querySelector(".PaymentFailedError"))})),e.t0;case 13:return e.prev=13,(0,n.h5)((function(){r.isSubmitting=!1})),e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])}))),function(e){return h.apply(this,arguments)})},{key:"onFormSubmitError",value:function(e){(0,i.WH)("pp-pay-prevented",{errorCode:e,orderId:this.orderId})}},{key:"checkPayIn2ControlVisibility",value:function(){if(!this.order)return!1;var e=this.order,t=e.typeId,r=e.orderServiceTypeId,n=e.progressiveDeliveryHidden,i=e.hasSplitPayment,a=t===o.kt.ORDER,s=[o.B5.ACADEMIC_WRITING,o.B5.PROGRAMMING].includes(r);return a&&s&&!n&&!i}},{key:"payIn2Value",get:function(){return!!this.order&&this.order.hasSplitPayment}},{key:"hasPayInParts",get:function(){return!!this.order&&this.order.hasPayInParts}},{key:"togglePayIn2",value:(f=p(d().mark((function e(){var t=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoadingAfterPayIn2Toggle=!0,e.prev=1,e.next=4,this.transport({method:"POST",url:"/api/orders/".concat(this.order.id,"/togglePayIn2")});case 4:return e.next=6,this.loadPaymentPageData();case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),this.errorsStore.handleError(e.t0);case 11:return e.prev=11,(0,n.h5)((function(){t.isLoadingAfterPayIn2Toggle=!1})),e.finish(11);case 14:case"end":return e.stop()}}),e,this,[[1,8,11,14]])}
2))),function(){return f.apply(this,arguments)})},{key:"reset",value:function(){this.orderId=void 0,this.showErrorMessage=!1,this.isSubmitting=!1,this.orderData=void 0,this.order=void 0,this.$orderAnalyticsData=void 0,this.activePaymentMethodId=void 0,this.paymentMethodsIds=void 0,this.paymentMethodsById=void 0,this.alternativePaymentMethodsIds=void 0,this.alternativePaymentMethodsById=void 0,this.paymentFailedErrorCode=void 0,this.triedPaymentMethodIds.clear()}}],r&&g(t.prototype,r),u&&g(t,u),Object.defineProperty(t,"prototype",{writable:!1}),e}()},23387:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(24493),r(21555),r(22892),r(39170),r(95570),r(5858),r(34089),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(3492),o=r(61938),a=r(58165),s=r(97057),c=r(95854);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function d(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}const p=function(){function e(t,r){var l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"safeCharge",void 0),d(this,"formManager",void 0),d(this,"paymentStore",void 0),d(this,"userProfileStore",void 0),d(this,"errorsStore",void 0),d(this,"transport",void 0),d(this,"validateEmail",(function(e){return s.mw(e)||s.Rp(e)})),d(this,"initFormManager",(function(){var e=l.paymentStore.isSafeChargeCreditCardActive,t={availableKeys:["email"],initialValues:{email:""},valuesValidator:{email:l.validateEmail}};
2e&&Object.values(i.xs).forEach((function(e){t.availableKeys.push(e),t.initialValues[e]=!1,t.valuesValidator[e]=s.mw})),l.formManager=new o.A(t)})),d(this,"createPayment",(function(e,t){var r=l.paymentStore,n=r.orderData,i=n.currency,o=n.totalAmount,s=r.activePaymentMethod,u=s.data,d=s.tax,f=l.userProfileStore.profile,p=f.country,h=f.id;t&&(0,c.FK)(t);var m=t||{alternativePaymentMethod:{paymentMethod:u.paymentMethodType}};return new Promise((function(t,r){try{l.safeCharge.createPayment({sessionToken:e,currency:i,amount:(0,a.hM)(o+d),paymentOption:m,billingAddress:{email:l.formManager.formValues.email,country:p.id.toUpperCase()},userTokenId:String(h)},t)}catch(e){r(e)}}))})),(0,n.Gn)(this,{formManager:n.sH,initFormManager:n.XI,dispose:n.XI}),Object.defineProperties(this,{paymentStore:{get:function(){return t.paymentStore}},userProfileStore:{get:function(){return t.userProfileStore}},errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r}var t,r,l;return t=e,(r=[{key:"init",value:function(){var e=this,t=this.paymentStore.activePaymentMethod.data,r=t.env,n=t.merchantId,i=t.merchantSiteId;return new Promise((function(t,o){e.$removeScript=(0,a.ki)("https://cdn.safecharge.com/safecharge_resources/v1/websdk/safecharge.js",(function(){e.safeCharge=window.SafeCharge({env:r,merchantId:n,merchantSiteId:i}),e.initFormManager(),t()}),o)})).catch((function(t){e.errorsStore.handleError(t,{intent:"SafeCharge loading error."})}))}},{key:"getSessionToken",value:function(e){return this.paymentStore.initiatePayment(e).then((function(e){return e.sessionToken}))}},{key:"submitSafeChargePayment",value:function(e){var t=this,r=this.paymentStore.activePaymentMethod.paymentRequestId;
2return e||(0,c._A)(),this.getSessionToken(r).then((function(r){return t.createPayment(r,e)})).then((function(e){return t.paymentStore.processPaymentResponse(r,e)}))}},{key:"startSubmitting",value:function(e){var t=this;return this.formManager.submit((function(){return t.paymentStore.submitPayment((function(){return t.submitSafeChargePayment(e)}))}))}},{key:"dispose",value:function(){this.$removeScript(),this.safeCharge=void 0,this.formManager=void 0}}])&&u(t.prototype,r),l&&u(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}()},50217:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p});r(66264),r(23510),r(85146),r(21555),r(5858),r(68450),r(34089),r(85028),r(58948),r(79683),r(69399),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(24289),o=r(58165),a=r(46212);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function l(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var d="InitPaymentError",f="GatewayError";const p=function(){function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"isLoading",!0),l(this,"solidForm",void 0),l(this,"paymentStore",void 0),l(this,"routerStore",void 0),l(this,"errorsStore",void 0),l(this,"addListeners",(function(){o.solidForm.on("mounted",o.onFormMount),o.solidForm.on("submit",o.onSubmit),o.solidForm.on("success",o.handleResultEvent),o.solidForm.on("fail",o.handleResultEvent),o.solidForm.on("error",o.onError)})),l(this,"onFormMount",(function(){o.isLoading=!1})),l(this,"onSubmit",(function(){return o.paymentStore.submitPayment((function(e){return e(),new Promise((function(e,t){o.solidForm.on("verify",(function(){return t(new Error("Just a stub"))}))}))})).catch((function(){}))})),l(this,"handleResultEvent",(function(){var e=o.paymentStore,t=e.orderId,r=e.activePaymentMethod.paymentRequestId;o.routerStore.pushLocation("/payment/".concat(t,"/").concat(r))})),l(this,"onError",(function(e){o.handleIntegrationError(e.data)})),l(this,"handleIntegrationError",(function(e){var t,r,n,a,s,c;a=(n=e||{}).value||{},s=n.details||{},c=new Error("[Solidgate Integration Error]: ".concat(a.message||"Unknown error")),a.name&&(c.name=a.name),a.stack&&(c.stack=a.stack),(0,i.TL)()?(0,i.ed)((function(e){e.setExtra("solidgate_error_details",s),s.code&&e.setTag("solidgate_error_code",s.code),(0,i.Cp)(c)})):console.error("[Solidgate Integration Error]:",c),(null===(t=e.value)||void 0===t?void 0:t.name)!==d&&(null===(r=e.value)||void 0===r?void 0:r.name)!==f||o.paymentStore.setNextFallbackPaymentMethodId()})),(0,n.Gn)(this,{isLoading:n.sH,onFormMount:n.XI}),Object.defineProperties(this,{paymentStore:{get:function(){return t.paymentStore}},routerStore:{get:function(){return t.routerStore}},errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r}var t,r,s;return t=e,(r=[{key:"init",value:function(){var e=this,t=this.paymentStore.activePaymentMethod.data;if(!(t&&t.merchant&&t.paymentIntent&&t.signature))return this.handleIntegrationError({value:{name:d,message:"GetPaymentPageData validation failed, missing required merchant config (merchant, paymentIntent or signature)",stack:(new Error).stack}}),Promise.resolve();var r={merchantData:t,iframeParams:{containerId:"solid-form",width:"100%"},formParams:{isCardHolderVisible:!0},styles:a.A};return new Promise((function(t,n){e.$removeScript=(0,o.ki)("https://cdn.solidgate.com/js/solid-form.js",(function(){e.initializeSolid(r),t()}),n)})).catch((function(t){e.errorsStore.handleError(t,{intent:"Solid loading error."}),e.handleIntegrationError({value:{name:d,message:"Solid SDK script loading error",stack:(new Error).stack}})}))}},{key:"initializeSolid",value:function(e){try{this.solidForm=window.PaymentFormSdk.init(e),this.addListeners()}catch(e){e.name=d,this.handleIntegrationError(e)}}},{key:"reset",value:function(){this.solidForm&&(this.solidForm.unsubscribeAll(),this.solidForm=void 0),void 0!==this.$removeScript&&this.$removeScript(),this.isLoading=!0}}
2])&&c(t.prototype,r),s&&c(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}()},87432:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});r(34089),r(95570),r(96104),r(21555),r(67156),r(99180),r(56460),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(59161),r(29416),r(25400),r(57931),r(24493),r(22892),r(44318),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(3492),o=r(61938),a=r(58165),s=r(97057),c=r(60764);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function p(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}const m=function(){function e(t,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"orderId",void 0),p(this,"isLoading",!1),p(this,"tipsValuesIds",[]),p(this,"tipsValuesById",{}),p(this,"formManager",new o.A({availableKeys:["tipId"],initialValues:{tipId:void 0,customValue:""},valuesValidator:{customValue:s.J5("A custom tip should be at least $1")(1)}})),p(this,"ordersStore",void 0),p(this,"routerStore",void 0),p(this,"errorsStore",void 0),p(this,"transport",void 0),(0,n.Gn)(this,{orderId:n.sH,isLoading:n.sH,tipsValuesIds:n.sH,tipsValuesById:n.sH,$currentChosenTip:n.EW,isCustomAmountChosen:n.EW,orderPrice:n.EW,tipsAmountById:n.EW,configure:n.XI,$setTipsValues:n.XI,load:n.XI,reset:n.XI}),Object.defineProperties(this,{ordersStore:{get:function(){return t.ordersStore}},routerStore:{get:function(){return t.routerStore}},errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r,(0,n.mJ)((function(){return i.isCustomAmountChosen}),(function(e){var t=["tipId"];e&&t.push("customValue"),i.formManager.updateAvailableKeys(t)}),{fireImmediately:!0})}var t,r,l;return t=e,(r=[{key:"$currentChosenTip",get:function(){return this.tipsValuesById[this.formManager.formValues.tipId]}},{key:"isCustomAmountChosen",get:function(){return!!this.$currentChosenTip&&this.$currentChosenTip.type===i.AP.CUSTOM_AMOUNT}},{key:"orderPrice",get:function(){if(this.orderId)return this.ordersStore.getOrderStore(this.orderId).price}},{key:"tipsAmountById",get:function(){var e=this;return this.tipsValuesIds.reduce((function(t,r){var n,o=e.tipsValuesById[r];switch(o.type){case i.AP.PERCENT:n=(0,a.hM)(e.orderPrice*o.value/100);break;case i.AP.CUSTOM_AMOUNT:var s=Number.parseFloat(e.formManager.formValues.customValue)||0;n=e.isCustomAmountChosen?+s.toFixed(2):void 0;break;default:n=o.value}return d(d({},t),{},p({},r,n))}),{})}},{key:"configure",value:function(e){return this.orderId=e,this.load()}},{key:"$setTipsValues",value:function(e){var t=e.tipsValuesIds,r=e.tipsValuesById;this.tipsValuesIds=t,this.tipsValuesById=r}},{key:"load",value:function(){var e=this;return this.isLoading=!0,this.transport({method:"get",url:"/api/config/tipsForWriter.json"}).then((function(t){var r=t.tipsValues;e.$setTipsValues((0,c.A)(r))})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Loading tips for writer failed."})})).finally((function(){(0,n.h5)((function(){e.isLoading=!1}))}))}},{key:"submit",value:function(){var e=this;return this.formManager.submit((function(){var t={type:e.$currentChosenTip.type,value:e.isCustomAmountChosen?e.tipsAmountById[e.$currentChosenTip.id]:e.$currentChosenTip.value};return e.transport({method:"post",url:"/api/orders/".concat(e.orderId,"/se
2ndTipsForWriters.json"),data:t}).then((function(t){var r=t.newOrderId;return e.routerStore.pushLocation("/payment/".concat(r))})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Submitting tip for writer failed."})}))}))}},{key:"reset",value:function(){this.orderId=void 0,this.tipsValuesIds=[],this.tipsValuesById={},this.formManager.resetForm()}}])&&f(t.prototype,r),l&&f(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}()},8508:(e,t,r)=>{"use strict";r.d(t,{s:()=>o});r(95570),r(68450);var n=r(89313),i=r(66656);function o(e){var t=[],r=e.academicLevelTitle,o=e.paperTypeOption,a=e.paperTypeTitle,s=e.disciplineTitle,c=e.title,l=e.paperFormatTypeOption,u=e.paperFormatTitle,d=e.formattedDeadlineDate,f=e.hoursLeft,p=e.sources,h=o||a,m=u||l;t.push({title:"Type of service",value:"Academic Writing"}),r&&t.push({title:"Academic level",value:r}),h&&t.push({title:"Type of paper",value:h}),s&&t.push({title:"Discipline",value:s}),c&&t.push({title:"Topic",value:c}),m&&t.push({title:"Paper format",value:m}),d&&t.push({title:"First draft deadline",value:d,valueHint:(0,i.I)(f)}),p&&t.push({title:"Number of sources",value:p});var y=(0,n.Ju)(e);return t.concat(y)}},35755:(e,t,r)=>{"use strict";r.d(t,{h:()=>o});r(95570),r(68450);var n=r(66656),i=r(89313);function o(e){var t=[],r=e.disciplineTitle,o=e.softwareTitle,a=e.formattedDeadlineDate,s=e.hoursLeft,c=e.getOrderTaskSizeTitle;t.push({title:"Type of service",value:"Calculations"}),r&&t.push({title:"Discipline",value:r}),o&&t.push({title:"Software",value:o}),a&&t.push({title:"First draft deadline",value:a,valueHint:(0,n.I)(s)}),c&&t.push({title:"Task size",value:c});var l=(0,i.Ju)(e);return t.concat(l)}},77696:(e,t,r)=>{"use strict";r.d(t,{K:()=>o});r(95570),r(68450);var n=r(66656),i=r(89313);function o(e){var t=[],r=e.languageTitle,o=e.disciplineTitle,a=e.formattedDeadlineDate,s=e.hoursLeft,c=e.getOrderTaskSizeTitle;t.push({title:"Type of service",value:"Programming"}),r&&t.push({title:"Programming language",value:r}),o&&t.push({title:"Category",value:o}),a&&t.push({title:"First draft deadline",value:a,valueHint:(0,n.I)(s)}),c&&t.push({title:"Task size",value:c});var l=(0,i.Ju)(e);return t.concat(l)}},89313:(e,t,r)=>{"use strict";r.d(t,{Ju:()=>u});r(78366),r(25400),r(21555),r(95790),r(29416),r(68450),r(30935),r(68291),r(66542),r(1569),r(95570);var n=r(64575),i=r(3492),o=r(58165);function a(e,t,r){var n=(0,o.$g)(r),i=(0,o.fk)(e,t);return"".concat(t," ").concat(i," Ã ").concat(n)}function s(e,t){switch(e.type_id){case i.zv.PROGRESSIVE_DELIVERY:return"Progressive delivery";case i.zv.WRITING_PAGES:return void 0!==t.wordsQuantity?(r=e.quantity,n=t.wordsQuantity,s=e.itemPrice,c=t.isPagesWereCalculatedByWords,l=(0,o.$g)(s),u=(0,o.fk)("page",r),d=(0,o.fk)("word",n),c?"".concat(n," ").concat(d):"".concat(r," ").concat(u," Ã ").concat(l)):a("page",e.quantity,e.itemPrice);case i.zv.WRITING_SLIDES:return a("slide",e.quantity,e.itemPrice);case i.zv.WRITING_CHARTS:return a("chart",e.quantity,e.itemPrice);case i.zv.COMPLEX_ASSIGNMENT:return"Calculations & Subject Expertise";case i.zv.DISCOUNT:return"Discount";case i.zv.USED_SOURCES:return"Printable sources";case i.zv.WELL_COMMENTED_CODE:return"Well-commented code";case i.zv.TOP_EXPERT:return"Top programming level";case i.zv.PREMIUM_AI_REPORT:return"Premium AI report";case i.zv.PROGRAMMING:case i.zv.CALCULATIONS:case i.zv.PAPER_LEVEL:case i.zv.LANGUAGE_STYLE:return e.title;case i.zv.SPLIT_PAYMENT:return"Pay in 2";default:return e.type_id}var r,n,s,c,l,u,d}function c(e,t){return e.type_id===i.zv.WRITING_PAGES?void 0!==t.wordsQuantity?(r=e.quantity,n=t.wordsQuantity,a=e.itemPrice,s=t.isPagesWereCalculatedByWords,c=(0,o.$g)(a),l=(0,o.fk)("page",r),u=(0,o.fk)("word",n),s?"(~".concat(r," ").concat(l," Ã ").concat(c,")"):"(~".concat(n," ").concat(u,")")):void 0:null;var r,n,a,s,c,l,u}function l(e){return(0,o.$g)(e.cost)}function u(e){var t,r=(t=n.calculateServices(e.orderInfo),Object.keys(t).map((function(e){return t[e]})).filter((function(e){return e.active})).sort((function(e,t){return e.priority-t.priority}))).filter((function(e){var t=e.type_id;return![i.zv.PROGRAMMING,i.zv.CALCULATIONS].includes(t)})),o=r.some((function(e){return e.type_id===i.zv.DISCOUNT})),a=r.find((function(e){return e.winbackReduction>0}));return!o&&a&&r.push({cost:-a.winbackReduction,type_id:i.zv.DISCOUNT,title:e.appliedCoupon.code.code}),r.map((function(t){return{title:s(t,e),titleHint:c(t,e),value:l(t)}}))}},66656:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});r(68450),r(54),r(25400),r(21555);var n=r(58165);function i(e){if(!(e<=0)){var t=Math.floor(e/24),r=e%24,i=[t>0&&"".concat(t," ").concat((0,n.fk)("day",t)),r>0&&"".concat(r," ").concat((0,n.fk)("hour",r))].filter((function(e){return e})).join(" ");return"(".concat(i," left)")}}},92421:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(3492),i=r(8508),o=r(77696),a=r(35755);const s=function(e){if(!e)return[];switch(e.orderServiceTypeId){case n.B5.PROGRAMMING:return(0,o.K)(e);case n.B5.CALCULATIONS:return(0,a.h)(e);case n.B5.ACADEMIC_WRITING:default:return(0,i.s)(e)}}},87987:(e,t,r)=>{"use strict";r.d(t,{OA:()=>a.Ay,Qr:()=>c.A,Qt:()=>n.A,XB:()=>l.A,Xm:()=>s.Ay,_3:()=>i.A,rC:()=>o.A});var n=r(87432),i=r(40292),o=r(23387),a=r(30552),s=r(50217),c=r(44476),l=r(73703)},10160:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(24493),r(21555),r(22892),r(36745),r(95570),r(68450),r(96104),r(95790);var n=r(3492),i=r(30656),o=r(95962),a=r(5844),s=r(75267);const c=function(e){return new o.A({orderData:new a.A(e.orderData),order:e.order?(0,i.of)(e.order):void 0,paymentMethodsIds:(t=e,r=t.paymentMethods,c=t.customerLastPaymentMethodId,l=t.defaultPaymentMethodId,u=[],d=[],f=[],r.forEach((function(e){var t=e.paymentMethodId,r=e.integrationType;t===c?u.unshift(t):t===l?u.push(t):r===n.A8.SDK?d.push(t):f.push(t)})),u.concat(d,f)),paymentMethodsById:e.paymentMethods.reduce((function(e,t){return e[t.paymentMethodId]=new s.A(t),e}),{}),alternativePaymentMethodsIds:e.alternativePaymentMethods.map((function(e){return e.paymentMethodId})),alternativePaymentMethodsById:e.alternativePaymentMethods.reduce((function(e,t){return e[t.paymentMethodId]=new s.A(t),e}),{}),failedPaymentMethodId:e.failedPaymentMethodId||void 0});var t,r,c,l,u,d,f}},60764:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(95790),r(78366),r(96104),r(21555),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(4768);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=function(e){return new n.p({tipsValuesIds:e.sort((function(e,t){return e.value-t.value})).map((function(e,t){return t})),tipsValuesById:e.reduce((function(e,t,r){return e[r]=new n.u(a(a({},t),{},{id:r})),e}),{})})}},5844:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("OrderData",{totalAmount:n.L$.number,tax:n.L$.number,currency:n.L$.string,coupon:n.L$.shape({code:n.L$.string,value:n.L$.number}).isOptional,orderAmount:n.L$.number.isOptional,installmentType:n.L$.string.isOptional})},95962:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(58165),i=r(5844),o=r(75267);const a=(0,n.t0)("PaymentData",{orderData:n.L$.instanceOf(i.A),paymentMethodsIds:n.L$.arrayOf(n.L$.number),paymentMethodsById:n.L$.objectOf(n.L$.instanceOf(o.A)),alternativePaymentMethodsIds:n.L$.arrayOf(n.L$.number),alternativePaymentMethodsById:n.L$.objectOf(n.L$.instanceOf(o.A)),failedPaymentSystemId:n.L$.number.isOptional})},75267:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(58165);const i=(0,n.t0)("PaymentMethod",{paymentMethodId:n.L$.number,paymentRequestId:n.L$.number,data:n.L$.object,integrationType:n.L$.number,redirectUrl:n.L$.string.isOptional,tax:n.L$.number})},4768:(e,t,r)=>{"use strict";r.d(t,{p:()=>o,u:()=>i});var n=r(58165),i=(0,n.t0)("TipsValue",{id:n.L$.number,type:n.L$.string,value:n.L$.number.isOptional}),o=(0,n.t0)("TipsValues",{tipsValuesIds:n.L$.arrayOf(n.L$.number),tipsValuesById:n.L$.objectOf(n.L$.instanceOf(i))})},46212:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif',c="rgba(0, 20, 50, 0.8)",l="#09090b",u="#dc2626",d="#fff",f="#0073E6",p="#0d549b",h="#d3ebfa",m="#09090b",y="#e4e4e7",v="#fff",g={".label":{"margin-top":"0","margin-bottom":"8px","font-size":"14px","line-height":"20px",color:l,"font-weight":"500",opacity:"1"},".error .label":{color:l}},b={".error-text":{color:u,"font-size":"12px","line-height":"1.4em",padding:"0",".triangle":{"border-color":"transparent transparent ".concat(u)}}}
2,E={".input-block":{input:{color:m,"font-size":"16px","line-height":"1.2","font-weight":"400","font-family":s,"letter-spacing":"0",border:"1px solid ".concat(y),"background-color":v,padding:".25em 1em .35em !important","border-radius":"6px",width:"100%",height:"40px",margin:"0",appearance:"none","white-space":"nowrap","text-overflow":"ellipsis",":focus":{"border-color":y},"::-webkit-input-placeholder":{color:"#71717a","font-size":"16px"},"::placeholder":{color:"#71717a","font-size":"16px"}}},".error input":{color:u,"border-color":u}};const w={form_body:{color:c,"font-weight":"400","font-size":"16px","font-family":s,padding:"0 3px"},header:{display:"none"},form_title:{display:"none"},submit_button:{"background-color":f,height:"40px",width:"100%",color:d,"font-weight":"500","font-size":"14px","line-height":"20px","border-radius":"6px","text-transform":"none",padding:"8px 16px","letter-spacing":"0","pointer-events":"auto",appearance:"none",cursor:"pointer",margin:"24px 0 0",":hover":{"background-color":p},":focus":{"box-shadow":"0 0 0 3px ".concat(h)},":disabled":{"background-color":f,cursor:"not-allowed","box-shadow":"none",opacity:"0.24"},".title":{"::before":{display:"none"}},".currency-icon":{display:"inline"},".amount":{display:"inline"}},card_number:o(o(o(o({},g),b),E),{},{i:{display:"none !important"}}),card_cvv:o(o(o(o({},g),b),E),{},{".tooltip-icon":{top:"2.35em"}}),expiry_date:o(o(o({},g),b),E),zip_code:o(o(o({},g),b),E),card_holder:o(o(o({},g),b),E)}},95854:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>o,FK:()=>i,OP:()=>a,_A:()=>n});r(21555),r(5858),r(24493),r(22892),r(29416),r(93831),r(40890);var n=function(){window.$&&window.$.ajax||(window.$=window.$||{},window.$.ajax=function(e){var t=e.url,r=e.type,n=e.contentType,i=e.data,o=e.success,a=e.error;fetch(t,{method:r,headers:{Accept:"application/json, text/javascript, */*; q=0.01","Content-Type":n},body:i}).then((function(e){return e.json()})).then((function(e){return o(e)})).catch((function(e){return a(e)}))})},i=function(e){Object.keys(e.parentElm).forEach((function(t){/^__reactInternalInstance/.test(t)&&delete e.parentElm[t]}))},o=function(){return!!window.ApplePaySession&&window.ApplePaySession.canMakePayments()};function a(){}},62138:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(34089),r(5974),r(29416),r(21555),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(58165);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function s(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var l=function(){function e(t,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"isReferralProgramActive",void 0),s(this,"referrerLink",void 0),s(this,"activeCoupons",[]),s(this,"couponsReceivedCount",0),s(this,"registeredReferralsCount",0),s(this,"wasClosedHasCouponMessage",!1),s(this,"wasClosedReferralInvitationMessage",!1),s(this,"isReferree",!1),s(this,"loading",void 0),s(this,"configsStore",void 0),s(this,"userProfileStore",void 0),s(this,"notificationsStore",void 0),s(this,"errorsStore",void 0),s(this,"transport",void 0),(0,n.Gn)(this,{isReferralProgramActive:n.sH,referrerLink:n.sH,activeCoupons:n.sH,couponsReceivedCount:n.sH,registeredReferralsCount:n.sH,wasClosedHasCouponMessage:n.sH,wasClosedReferralInvitationMessage:n.sH,isReferree:n.sH,loading:n.sH,referralProgramStatus:n.EW,showHasActiveCouponMessage:n.EW,showReferralInvitationMessage:n.EW,onCloseHasActiveCouponMessage:n.XI,onCloseReferralInvitationMessage:n.XI,updateMessagesStateFromStorage:n.XI,startLoadingReferral:n.XI,referrerLinkInviteFriend:n.EW}),Object.defineProperties(this,{configsStore:{get:function(){return t.configsStore}},userProfileStore:{get:function(){return t.userProfileStore}},notificationsStore:{get:function(){return t.notificationsStore}},errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r,this.updateMessagesStateFromStorage(),(0,n.mJ)((function(){return i.configsStore&&i.configsStore.configs&&i.configsStore.configs.isReferralProgramEnabled&&i.userProfileStore.isAuthorized}),(function(e,t,r){e&&(r.dispose(),i.startLoadingReferral())}))}var t,r,o;return t=e,(r=[{key:"referralProgramStatus",get:function(){if(void 0!==this.isReferralProgramActive)return this.isReferralProgramActive?"Active":"New"}},{key:"showHasActiveCouponMessage",get:function(){return!this.wasClosedHasCouponMessage&&this.activeCoupons.length>0&&this.userProfileStore.profile&&this.userProfileStore.profile.showReferralHasActiveCouponBanner}},{key:"showReferralInvitationMessage",get:function(){return Boolean(!this.wasClosedReferralInvitationMessage&&this.userProfileStore.profile&&this.userProfileStore.profile.showReferralInvitationBanner)}},{key:"referrerLinkInviteFriend",get:function(){return this.referrerLink}},{key:"onCloseHasActiveCouponMessage",value:function(){return this.wasClosedHasCouponMessage=!0,this.userProfileStore.closeActiveCouponBanner()}},{key:"onCloseReferralInvitationMessage",value:function(){return this.wasClosedReferralInvitationMessage=!0,i.HZ.setItem("wasClosedReferralInvitationMessage",JSON.stringify(!0))}},{key:"updateMessagesStateFromStorage",value:function(){var e=this;return i.HZ.getItem("wasClosedReferralInvitationMessage").then((function(e){return!!e&&JSON.parse(e)})).then((function(t){(0,n.h5)((function(){e.wasClosedReferralInvitationMessage=Boolean(t)}))}))}},{key:"startLoadingReferral",value:function(){var e=this;return this.loading||(this.loading=this.transport.pullReferrerProfile().then((function(t){var r=t.isReferralProgramActive,i=t.referrerLink,o=t.activeCoupons,a=t.couponsReceivedCount,s=t.registeredReferralsCount;(0,n.h5)((function(){e.isReferralProgramActive=r,e.referrerLink=i,e.activeCoupons=o,e.couponsReceivedCount=a,e.registeredReferralsCount=s}))})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Loading referral program failed."})})).finally((function(){(0,n.h5)((function(){e.loading=void 0}))}))),this.loading}},{key:"handleClickCopy",value:function(){var e=this;return(0,i.lW)((function(){return Promise.resolve(e.referrerLinkInviteFriend)})).then((function(){e.notificationsStore.pushNotification({title:"Link copied to clipboard",view:"success"})})).catch((function(){e.notificationsStore.pushNotification({title:"Failed to copy link",view:"error"})}))}}])&&a(t.prototype,r),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},74275:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(62138).A},15040:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});r(34089),r(68450),r(78366),r(25400),r(21555),r(96656),r(5858),r(94356),r(45993),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851);
2var n=r(83794),i=r(61938),o=r(3492),a=r(97057),s=r(98574),c=r(58165),l=r(78590),u=r(45773),d=r(28006);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function h(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===f(t)?t:String(t)}var y=o.Xx.REVISION_FREE,v=o.Xx.REVISION_PROFESSORS_FEEDBACK,g=["freeRevisionType","section","instructionsFlag","instructionsBody","contentRelatedFlag","contentRelatedBody","otherFlag","otherBody","revisionDiffWriterFlag","deadlineHours","uploadedFilesIds"],b={freeRevisionType:y,instructionsFlag:!1,instructionsBody:"",contentRelatedFlag:!1,contentRelatedBody:"",otherFlag:!1,otherBody:"",revisionDiffWriterFlag:!1,deadlineHours:void 0,uploadedFilesIds:[]},E=function(){function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"orderId",void 0),h(this,"formManager",void 0),h(this,"filesManager",void 0),h(this,"errorsStore",void 0),h(this,"ordersStore",void 0),h(this,"orderFilesStore",void 0),h(this,"userProfileStore",void 0),h(this,"configsStore",void 0),h(this,"transport",void 0),h(this,"$token",void 0),(0,n.Gn)(this,{orderId:n.sH,formManager:n.sH,minHrsForRevision:n.EW,blockedDeadlinesIdsDueToSeason:n.EW,enabledDeadlinesIds:n.EW,availableDeadlinesIds:n.EW,init:n.XI,reset:n.XI}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},ordersStore:{get:function(){return t.ordersStore}},orderFilesStore:{get:function(){return t.orderFilesStore}},configsStore:{get:function(){return t.configsStore}},userProfileStore:{get:function(){return t.userProfileStore}}}),this.formManager=new i.A({availableKeys:g,initialValues:b,valuesValidator:{instructionsBody:function(e,t){return a.az(t.instructionsFlag,e)},contentRelatedBody:function(e,t){return a.az(t.contentRelatedFlag,e)},otherBody:function(e,t){return a.az(t.otherFlag,e)},deadlineHours:function(e){return a.mw(e)},uploadedFilesIds:function(e,t){return t.freeRevisionType===v?a.OR(e,"file"):null}},otherErrorsValidator:function(e){return[a.g0([e.instructionsFlag,e.contentRelatedFlag,e.otherFlag],"section")]},itemsValuesSantizer:{deadlineHours:function(e){var t=o.configsStore.configs,r=t.revisionDeadlinesById,n=t.defaultRevisionDeadlineId,i=void 0===e?r[n].hrs:e;return i>=o.minHrsForRevision?i:void 0}}}),this.filesManager=new s.A({onUpdateFiles:function(e){return o.formManager.setSilently("uploadedFilesIds",e)},uploadTransport:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.$uploadFile.apply(o,t.concat([o,o.$token]))},deleteTransport:function(e){return o.$deleteFile(e)},onError:function(){var e;(e=o.errorsStore).handleError.apply(e,arguments)},configsStore:this.configsStore}),this.transport=r}var t,r,o;return t=e,(r=[{key:"minHrsForRevision",get:function(){return this.formManager&&this.formManager.formValues.revisionDiffWriterFlag?12:0}},{key:"blockedDeadlinesIdsDueToSeason",get:function(){var e=this.configsStore.configs,t=e.revisionDeadlinesById;return e.revisionDeadlinesIds.filter((function(e){return!1===t[e].isActive})).sort((function(e,r){return t[e].hrs-t[r].hrs}))}},{key:"enabledDeadlinesIds",get:function(){var e=this.configsStore.configs,t=e.revisionDeadlinesById;return e.revisionDeadlinesIds.filter((function(e){return t[e].isActive})).sort((function(e,r){return t[e].hrs-t[r].hrs}))}},{key:"availableDeadlinesIds",get:function(){var e=this,t=this.configsStore.configs.revisionDeadlinesById;return this.enabledDeadlinesIds.filter((function(r){return t[r].hrs>=e.minHrsForRevision}))}},{key:"$uploadFile",value:function(e,t,r){var n=e.instanceId,i=e.blob,o=e.onProgress;return this.transport({method:"post",url:"/api/potato_files/potato_customer_files_upload",data:(0,u.A)({instanceId:n,blob:i}),onProgress:o,token:r,expectSuccessFlag:!1}).then((function(e){return(0,d.A)(e,t.configsStore)}))}},{key:"$deleteFile",value:function(e){return this.transport({method:"post",url:"/api/potato_files/deleteRequest/".concat(e),data:{},expectSuccessFlag:!1})}},{key:"init",value:function(e){this.orderId=e,this.$token=new c.XO}},{key:"requestRevision",value:function(e){var t=this;return this.transport({method:"post",url:"/api/orders/".concat(this.orderId,"/request_revision.json"),data:e}).then((function(){var e=t.ordersStore.setOrderStore(t.orderId);return Promise.all([e.loadOrder(),t.orderFilesStore.loadOrderFiles(),t.userProfileStore.startLoadingProfile()])})).catch((function(e){t.errorsStore.handleAndRethrow({error:e,intent:"Requesting free revision failed."})}))}},{key:"startRequestingFreeRevision",value:function(e){var t=this,r=(0,l.A)({formValues:this.formManager.formValues,fileIdForFreeRevision:e.fileIdForFreeRevision,withProfessorsFeedback:this.formManager.formValues.freeRevisionType===v});return this.formManager.submit((function(){return t.filesManager.startUploadingAllSettledFiles().then((function(){return t.requestRevision(r)}))}
2))}},{key:"reset",value:function(){this.orderId=void 0,this.formManager.resetForm(),this.filesManager.dispose(),this.$token.cancel(),this.filesManager.reset()}}])&&p(t.prototype,r),o&&p(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}()},15184:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});r(93831),r(11505),r(81152),r(30329),r(10881),r(34237),r(9020),r(34089),r(68450),r(1569),r(21555),r(30935),r(68291),r(5858),r(55983),r(96656),r(94356),r(45993),r(95790),r(25400),r(54),r(98140),r(24493),r(22892),r(85146),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(29416),r(57931),r(95570),r(44318),r(48851);var n=r(83794),i=r(30350),o=r.n(i),a=r(4518),s=r.n(a),c=r(3492),l=r(61938),u=r(58165),d=r(97057),f=r(98574);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function v(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===p(t)?t:String(t)}var b=function(e,t){var r=e.match(new RegExp("^".concat(t,": +([^\n]+)$"),"im"));return r?r[1]:void 0},E=function(){function e(t,r){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,"originalOrderId",void 0),v(this,"revisionId",void 0),v(this,"originalOrderStore",void 0),v(this,"revisionOrderStore",void 0),v(this,"isLoadingOrder",!1),v(this,"isLoading",!1),v(this,"errorsStore",void 0),v(this,"ordersStore",void 0),v(this,"orderFilesStore",void 0),v(this,"configsStore",void 0),v(this,"userProfileStore",void 0),v(this,"notificationsStore",void 0),v(this,"couponsStore",void 0),v(this,"transport",void 0),v(this,"options",void 0),v(this,"$token",void 0),v(this,"attachementsManager",void 0),v(this,"formManager",void 0),v(this,"changeRevisionTypeId",(function(e){i.formManager.setValue("revisionTypeId",parseInt(e,10))})),(0,n.Gn)(this,{originalOrderId:n.sH,revisionId:n.sH,originalOrderStore:n.sH,revisionOrderStore:n.sH,isLoadingOrder:n.sH,isLoading:n.sH,init:n.XI,configure:n.XI,load:n.XI,paperDetailsString:n.EW,isUrgentDeadlineUnavailable:n.EW,availableTariffsIds:n.EW,isEdit:n.EW,originalOrderFiles:n.EW,lifetimeCoupon:n.EW,rawPrice:n.EW,discountPrice:n.EW,price:n.EW,reset:n.XI,availableWriters:n.EW,orderInfoForGA4:n.EW}),Object.defineProperties(this,{errorsStore:{get:function(){return t.errorsStore}},ordersStore:{get:function(){return t.ordersStore}},orderFilesStore:{get:function(){return t.orderFilesStore}},userProfileStore:{get:function(){return t.userProfileStore}},notificationsStore:{get:function(){return t.notificationsStore}},couponsStore:{get:function(){return t.couponsStore}},configsStore:{get:function(){return t.configsStore}}}),this.transport=r,this.options=o,this.createFormManager(),this.attachementsManager=new f.A({onUpdateFiles:function(e){return i.formManager.setValue("uploadedFilesIds",e)},uploadTransport:function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.transport).uploadFile.apply(e,r.concat([i,i.$token]))}
2,deleteTransport:function(e){return i.transport.deleteFile(e)},onError:function(){var e;(e=i.errorsStore).handleError.apply(e,arguments)},configsStore:this.configsStore})}var t,r,i;return t=e,(r=[{key:"createFormManager",value:function(){var e=this;this.formManager=new l.A({availableKeys:["sourcesFlag","sourcesBody","formatFlag","formatBody","grammarFlag","grammarBody","instructionsFlag","instructionsBody","contentFlag","contentBody","otherFlag","otherBody","requestedWriterId","tariffId","tariffHrs","selectedSiteFilesIds","uploadedFilesIds","sources","revisionTypeId","couponCode"],initialValues:{sourcesFlag:!1,sourcesBody:"",formatFlag:!1,formatBody:"",grammarFlag:!1,grammarBody:"",instructionsFlag:!1,instructionsBody:"",contentFlag:!1,contentBody:"",otherFlag:!1,otherBody:"",requestedWriterId:void 0,selectedSiteFilesIds:[],uploadedFilesIds:[],sources:0,tariffId:void 0,revisionTypeId:c.B5.REVISION_MINOR,couponCode:""},valuesValidator:{sourcesBody:function(e,t){return d.az(t.sourcesFlag,e)},formatBody:function(e,t){return d.az(t.formatFlag,e)},grammarBody:function(e,t){return d.az(t.grammarFlag,e)},instructionsBody:function(e,t){return d.az(t.instructionsFlag,e)},contentBody:function(e,t){return d.az(t.contentFlag,e)},otherBody:function(e,t){return d.az(t.otherFlag,e)},tariffId:function(e){return d.mw(e)||d.nd(e)},selectedSiteFilesIds:function(e){return d.OR(e,"file")},sources:function(e){return d.nd(e)},revisionTypeId:function(e){return d.yL([c.B5.REVISION_MINOR,c.B5.REVISION_MAJOR])(e)}},otherErrorsValidator:function(e){return e.sourcesFlag||e.formatFlag||e.grammarFlag||e.instructionsFlag||e.contentFlag||e.otherFlag?[]:[new(o())("You have to select at least 1 section",c.I.VALIDATION_FAILED)]},itemsValuesSantizer:{requestedWriterId:function(t){return e.availableWriters.find((function(e){return e.id===t}))?t:void 0},tariffId:function(t){if(e.availableTariffsIds.includes(t))return t;var r=e.configsStore.configs.paidRevisionDeadlinesById[t];return r?e.getDeadlineIdWithHrs(r.hrs):void 0}}})}},{key:"init",value:function(e){var t=this;this.$token=new u.XO,this.isLoadingOrder=!0;var r=this.ordersStore.setOrderStore(e);return r.loadOrderIfNeeded().then((function(){r.isRevisionType?t.configure({originalOrderId:r.parentId,revisionId:r.id}):t.configure({originalOrderId:r.id,revisionId:void 0})})).then((function(){return t.load()})).finally((function(){(0,n.h5)((function(){t.isLoadingOrder=!1}))}))}},{key:"configure",value:function(e){var t=e.originalOrderId,r=e.revisionId;s()("number"==typeof t,"RequestRevisionPaidStore must be provided with originalOrderId (number)");var n=t;this.originalOrderId=t,this.revisionId=r,this.originalOrderStore=this.ordersStore.setOrderStore(this.originalOrderId),r&&(n=r,this.revisionOrderStore=this.ordersStore.setOrderStore(this.revisionId)),this.orderFilesStore.orderId!==n&&this.orderFilesStore.configure(n)}},{key:"load",value:function(){var e=this;return this.isLoading=!0,(this.revisionOrderStore?Promise.all([this.originalOrderStore.loadOrderIfNeeded(),this.revisionOrderStore.loadOrderIfNeeded(),this.orderFilesStore.loadFilesIfNeeded(),this.couponsStore.loadOrderCoupons(this.revisionId)]):Promise.all([this.originalOrderStore.loadOrderIfNeeded(),this.orderFilesStore.loadFilesIfNeeded(),this.couponsStore.loadOrderCoupons()])).then((function(){var t=e.formManager;if(e.revisionOrderStore){var r=e.revisionOrderStore.order,n=b(r.paperDetails,"SOURCES"),i=b(r.paperDetails,"FORMAT"),o=b(r.paperDetails,"GRAMMAR"),a=b(r.paperDetails,"INSTRUCTIONS"),s=b(r.paperDetails,"CONTENT"),l=b(r.paperDetails,"OTHER");t.updateInitialValue("sourcesFlag",Boolean(n)),t.updateInitialValue("sourcesBody",n),t.updateInitialValue("formatFlag",Boolean(i)),t.updateInitialValue("formatBody",i),t.updateInitialValue("grammarFlag",Boolean(o)),t.updateInitialValue("grammarBody",o),t.updateInitialValue("instructionsFlag",Boolean(a)),t.updateInitialValue("instructionsBody",a),t.updateInitialValue("contentFlag",Boolean(s)),t.updateInitialValue("contentBody",s),t.updateInitialValue("otherFlag",Boolean(l)),t.updateInitialValue("otherBody",l),t.updateInitialValue("requestedWriterId",r.requestedWriterId),t.updateInitialValue("tariffId",r.tariffId),t.updateInitialValue("sources",r.sources),t.updateInitialValue("revisionTypeId",r.orderServiceTypeId),t.updateInitialValue("selectedSiteFilesIds",e.orderFilesStore.originalOrderFiles.filter((function(e){return e.fileTypeId===c.a0.SELECTED_FILE_FOR_PAID_REVISION})).map((function(e){return e.id})));var u=e.revisionOrderStore.addServicesProcessor.values;u[c.ds.ADD_SHORTEN_DEADLINE]&&t.updateInitialValue("tariffId",u[c.ds.ADD_SHORTEN_DEADLINE]),r.appliedCoupon&&t.updateInitialValue("couponCode",r.appliedCoupon.code.code),e.attachementsManager.addUploadedFiles(e.orderFilesStore.customerFiles)}else{var d=e.getDeadlineIdWithHrs(72),f=e.getWriterIdFromOriginalOrder();d&&t.updateInitialValue("tariffId",d),f&&t.updateInitialValue("requestedWriterId",f),1===e.orderFilesStore.siteFiles.length&&e.formManager.updateInitialValue("selectedSiteFilesIds",[e.orderFilesStore.siteFiles[0].id]),e.lifetimeCoupon&&e.formManager.updateInitialValue("couponCode",e.lifetimeCoupon.code.code)}t.resetForm()})).finally((function(){(0,n.h5)((function(){e.isLoading=!1}))}))}},{key:"paperDetailsString",get:function(){if(!this.formManager)return"";var e=this.formManager.formValues;return[{title:"SOURCES",value:e.sourcesFlag?e.sourcesBody:""},{title:"FORMAT",value:e.formatFlag?e.formatBody:""},{title:"GRAMMAR",value:e.grammarFlag?e.grammarBody:""},{title:"INSTRUCTIONS",value:e.instructionsFlag?e.instructionsBody:""},{title:"CONTENT",value:e.contentFlag?e.contentBody:""},{title:"OTHER",value:e.otherFlag?e.otherBody:""}].filter((function(e){return e.value})).map((function(e){return"".concat(e.title,": ").concat(e.value)})).join("\n")}},{key:"isUrgentDeadlineUnavailable",get:function(){var e=this.originalOrderStore.order,t=this.configsStore.configs.configsForAcademicWriting.urgentDeadlinesMaxPages,r=(0,u.ri)(e),n=!!t&&r>t,i=e.languageStyleId===c.V8.PROFICIENT;return n||i}},{key:"availableTariffsIds",get:function(){var e=this;if(!this.configsStore||!this.originalOrderStore||!this.formManager)return[];var t=this.configsStore.configs,r=this.originalOrderStore.order;if(!t||!r)return[];var n=t.paidRevisionDeadlinesById,i=t.paidRevisionDeadlinesIds,o=t.minDeadline,a=r.academicLevel,s=this.formManager.formValues.revisionTypeId,c=(0,u.ri)(r);return i.filter((function(t){var r=n[t];if(!r)return!1;var i=r.academicLevelId,l=r.hrs,u=r.minPages,d=r.serviceTypeId;
2return!(i!==a||c<u||l<o||l<=4&&e.isUrgentDeadlineUnavailable||d!==s)}))}},{key:"getPercentByPaperLevelAndLanguageStyle",value:function(e,t){var r,n,i,o,a=this.configsStore.configs.configsForAcademicWriting;return(null!==(r=null===(n=a.paperLevelsById[e])||void 0===n?void 0:n.percent)&&void 0!==r?r:0)+(null!==(i=null===(o=a.languageStylesById[t])||void 0===o?void 0:o.percent)&&void 0!==i?i:0)}},{key:"isEdit",get:function(){return void 0!==this.revisionOrderStore}},{key:"originalOrderFiles",get:function(){return this.orderFilesStore?this.isEdit?this.orderFilesStore.originalOrderFiles:this.orderFilesStore.siteFiles:[]}},{key:"lifetimeCoupon",get:function(){return this.couponsStore.availableCoupons.find((function(e){return e.isLifetime}))}},{key:"rawPrice",get:function(){if(this.originalOrderStore&&0!==this.originalOrderStore.loadedAt){var e=this.originalOrderStore.order,t=this.formManager.formValues,r="single"===e.spacing?2:1,n=this.configsStore.configs.disciplinesById[e.topcatId].isComplexAssignment,i=0;if(t.revisionTypeId&&t.tariffId){var o=this.configsStore.configs.paidRevisionDeadlinesById[t.tariffId];o&&(i=e.pages*r*o.pricePerPage+(0,u.hM)(e.slides/2*o.pricePerPage)+(0,u.hM)(e.charts/2*o.pricePerPage))}var a=0;n&&(a=i/100*20);var s=0;if(t.requestedWriterId){var c=this.userProfileStore.requestWritersById[t.requestedWriterId];c&&(s=i/100*this.getPercentByPaperLevelAndLanguageStyle(c.paperLevelId,c.languageStyleId))}else s=i/100*this.getPercentByPaperLevelAndLanguageStyle(e.paperLevelId,e.languageStyleId);return i+=a+s}}},{key:"discountPrice",get:function(){return this.lifetimeCoupon?(0,u.hM)(this.rawPrice*this.lifetimeCoupon.value/100):0}},{key:"price",get:function(){return this.rawPrice&&(0,u.hM)(this.rawPrice-this.discountPrice)}},{key:"formTypeForAnalytics",get:function(){return c.CG.PAID_REVISION_FORM}},{key:"orderInfoForGA4",get:function(){var e,t=this.formManager.formValues,r=this.configsStore.configs,n=(this.revisionOrderStore||this.originalOrderStore||{orderInfoForGA4:{}}).orderInfoForGA4,i=t.requestedWriterId?this.userProfileStore.requestWritersById[t.requestedWriterId].paperLevelId:n.paperLevelId,o=t.requestedWriterId?this.userProfileStore.requestWritersById[t.requestedWriterId].languageStyleId:n.languageStyleId;return m(m({},n),{},{id:this.revisionId,orderServiceTypeId:t.revisionTypeId,formTypeForAnalytics:this.formTypeForAnalytics,noDiscountPrice:(0,u.hM)(this.rawPrice),discount:this.discountPrice,price:this.price,paperLevelId:i,languageStyleId:o,deadline:null===(e=r.paidRevisionDeadlinesById[t.tariffId])||void 0===e?void 0:e.title,couponCode:t.couponCode||void 0})}},{key:"availableWriters",get:function(){var e=this.userProfileStore,t=e.requestWritersIds,r=e.requestWritersById,n=this.configsStore.isProficientEnglishDisabled,i=t.map((function(e){return r[e]})).filter((function(e){return e.workedWithServices.includes(c.B5.ACADEMIC_WRITING)}));return n?i.filter((function(e){return e.languageStyleId!==c.V8.PROFICIENT})):i}},{key:"getDeadlineIdWithHrs",value:function(e){if(void 0===this.configsStore.configs)return[];var t=this.configsStore.configs.paidRevisionDeadlinesById;return this.availableTariffsIds.find((function(r){return t[r].hrs===e}))}},{key:"getWriterIdFromOriginalOrder",value:function(){if(this.originalOrderStore&&this.originalOrderStore.order){var e=this.userProfileStore.requestWritersIds,t=this.originalOrderStore.order;if(0!==e.length)return-1!==e.indexOf(t.assignedWriterId)?t.assignedWriterId:void 0}}},{key:"requestRevision",value:function(){var e=this,t=this.originalOrderId,r=this.formManager.formValues,n={id:this.revisionId,sources:r.sources,couponCode:r.couponCode,requestedWriterId:r.requestedWriterId,paperDetails:this.paperDetailsString,formTypeForAnalytics:this.formTypeForAnalytics};return r.selectedSiteFilesIds.forEach((function(t){if(e.isEdit){var r=e.orderFilesStore.originalOrderFiles.find((function(e){return e.id===t}));n["revision_paid_file[".concat(t,"]")]=r&&r.name}else{var i=e.orderFilesStore.siteFiles.find((function(e){return e.id===t}));n["revision_paid_file[".concat(t,"]")]=i&&i.name}})),r.uploadedFilesIds.forEach((function(e){n["uploaded_file_ids[".concat(e,"]")]=e})),n.serviceType=r.revisionTypeId,n.tariffId=r.tariffId,this.formManager.submit((function(){return e.attachementsManager.startUploadingAllSettledFiles().then((function(){return e.transport.requestRevisionPaid({orderId:t,revisionData:n})})).then((function(t){var r=t.newOrderId;if(e.options.onSubmitSucceeded){var n=m(m({},e.orderInfoForGA4),{},{id:r});e.options.onSubmitSucceeded({orderInfoForGA4:n})}return r})).catch((function(t){var r="Requesting paid revision failed.";t.code===c.I.UVOFORM_FILES_NOT_UPLOADED&&(e.notificationsStore.pushNotification({title:r,de
2scription:t.message,view:"error"}),t.presented=!0),e.errorsStore.handleAndRethrow({error:t,intent:r})}))}))}},{key:"reset",value:function(){this.attachementsManager.dispose(),this.$token.cancel(),this.attachementsManager.reset(),this.formManager.resetForm(),this.originalOrderId=void 0,this.revisionId=void 0,this.originalOrderStore=void 0,this.revisionOrderStore=void 0,this.isLoading=!1}}])&&y(t.prototype,r),i&&y(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},39667:(e,t,r)=>{"use strict";r.d(t,{k:()=>i.A,o:()=>n.A});var n=r(15040),i=r(15184)},28006:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(37210);var n=r(30350),i=r.n(n),o=r(3492),a=r(78689);const s=function(e,t){if(void 0===e||!1===Array.isArray(e.files))throw new(i())("Invalid JSON",o.I.JSON_PARSE);if(1!==e.files.length)throw new(i())("Failed to upload file",o.I.INVALID_DATA);return(0,a.A)(e.files[0],t)}},78689:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(85146),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993);var n=r(30350),i=r.n(n),o=r(3492);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}const s=function(e){if(void 0===e||"object"!==a(e))throw new(i())("Invalid JSON",o.I.JSON_PARSE);if(e.error)throw new(i())(e.error,o.I.SERVER_VALIDATION);return{isUploaded:!0,isUploading:!1,id:e.id,deleteUrl:e.deleteUrl,name:e.newName||e.name,size:e.size}}},45773:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){var t=e.blob,r=e.instanceId,n=new window.FormData;return n.append("files[]",t),n.append("file_number[]",r),n}},78590:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(24493),r(21555);var n=r(83794),i=["instructions","contentRelated","other"],o={instructions:"instructions",contentRelated:"cust_cont",other:"other"};const a=function(e){var t=e.formValues,r=e.fileIdForFreeRevision,a=e.withProfessorsFeedback,s={clientdeadline:t.deadlineHours,"fileIds[]":t.uploadedFilesIds.length>0&&(0,n.HO)(t.uploadedFilesIds),fileIdForFreeRevision:r,withProfessorsFeedback:a};return t.revisionDiffWriterFlag&&(s.revisionDiffWriter=1),i.forEach((function(e){var r="".concat(e,"Flag"),n="".concat(e,"Body");t[r]&&(s["noteBody[".concat(o[e],"]")]=t[n])})),s}},50527:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(34089),r(21555),r(5858),r(55983),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794),i=r(61938),o=r(8478);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function c(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var u=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"isLoading",!1),c(this,"advocacyValuesIds",[]),c(this,"advocacyValuesById",{}),c(this,"formManager",new i.A({availableKeys:["advocacyOptionId"],initialValues:{advocacyOptionId:void 0}})),c(this,"userProfileStore",void 0),c(this,"errorsStore",void 0),c(this,"transport",void 0),(0,n.Gn)(this,{isLoading:n.sH,advocacyValuesIds:n.sH,advocacyValuesById:n.sH,$setAdvocacyValues:n.XI,load:n.XI,reset:n.XI}),Object.defineProperties(this,{userProfileStore:{get:function(){return t.userProfileStore}},errorsStore:{get:function(){return t.errorsStore}}}),this.transport=r}var t,r,a;return t=e,(r=[{key:"$setAdvocacyValues",value:function(e){var t=e.advocacyValuesIds,r=e.advocacyValuesById;this.advocacyValuesIds=t,this.advocacyValuesById=r}},{key:"load",value:function(){var e=this;return this.isLoading=!0,this.transport({method:"get",url:"/api/questionnaire/getAdvocacyQuestionnaire.json"}).then((function(t){var r=t.advocacyQuestionnaireOptions;e.$setAdvocacyValues((0,o.A)(r))})).catch((function(t){e.errorsStore.handleAndRethrow({error:t,intent:"Loading questionnaire failed."})})).finally((function(){(0,n.h5)((function(){e.isLoading=!1}))}))}},{key:"submit",value:function(e){var t=this,r="skip"===e;return this.formManager.submit((function(){var e={advocacyOptionId:r?void 0:t.formManager.formValues.advocacyOptionId};return t.transport({method:"post",url:"/api/questionnaire/submitAdvocacyQuestionnaire.json",data:e}).then((function(){t.userProfileStore.startLoadingProfile()}
2)).catch((function(e){e.presented=!0,t.errorsStore.handleError(e)}))}))}},{key:"reset",value:function(){this.advocacyValuesIds=[],this.advocacyValuesById={},this.formManager.resetForm()}}])&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},32891:(e,t,r)=>{"use strict";r.d(t,{b:()=>n.A});var n=r(50527)},8478:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(95790),r(78366),r(96104),r(21555),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(49075);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=function(e){return new n.q({advocacyValuesIds:e.sort((function(e,t){return e.id-t.id})).map((function(e){return e.id})),advocacyValuesById:e.reduce((function(e,t){return e[t.id]=new n.P(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t)),e}),{})})}},49075:(e,t,r)=>{"use strict";r.d(t,{P:()=>i,q:()=>o});var n=r(58165),i=(0,n.t0)("AdvocacyQuestionnaireValue",{id:n.L$.number,title:n.L$.string}),o=(0,n.t0)("AdvocacyQuestionnaireValues",{advocacyValuesIds:n.L$.arrayOf(n.L$.number),advocacyValuesById:n.L$.objectOf(n.L$.instanceOf(i))})},1828:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>m});r(96104),r(21555),r(25400),r(29416),r(68450),r(37210),r(84766),r(5858),r(98140),r(73511),r(93831),r(40890),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993);var n=r(3492),i=r(58165),o=r(30350),a=r.n(o);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var c="progress",l="abort",u="error",d="load",f="timeout",p=function e(t,r){return Object.keys(t).filter((function(e){return""!==e&&void 0!==t[e]&&null!==t[e]})).reduce((function(n,i){return"object"===s(t[i])?n+=e(t[i],"".concat(r,"[").concat(i,"]")):n+="&".concat(r,"[").concat(i,"]=").concat(encodeURIComponent(t[i])),n}),"")},h=function(e){return Object.keys(e).reduce((function(t,r){return t[r]="object"!==s(e[r])||null===e[r]||Array.isArray(e[r])?e[r]:p(e[r],r).slice(1),t}),{})};const m=function(e){var t=e.data,r=void 0===t?{}:t,o=e.method,s=e.url,p=e.onProgress,m=e.token,y=e.apiVersion;return m.isOpen?new Promise((function(e,t){var v,g,b={requestString:void 0,responseDescription:void 0},E=s;void 0===window.FormData||r instanceof window.FormData==!1||"POST"!==o.toUpperCase()?(v="application/x-www-form-urlencoded",r.api_version=y,"GET"===o.toUpperCase()||"DELETE"===o.toUpperCase()?E+=(-1===E.indexOf("?")?"?":"&")+(0,i.rQ)(h(r)):g=(0,i.rQ)(h(r))):g=r,b.requestDescription="".concat(o," ").concat(s," ~> ").concat(String(g).substr(0,3e3));var w=new window.XMLHttpRequest,S=m.register((function(){w.abort()}));w.open(o.toUpperCase(),E,!0),w.addEventListener(l,(function(){t(new(a())({httpDebug:b,message:"Server request aborted",code:n.I.HTTP_REQUEST_ABORTED}))})),w.addEventListener(u,(function(){S(),window.navigator.onLine?0!==w.readyState&&0!==w.status?t(new(a())({httpDebug:b,message:"Server request failed",code:n.I.HTTP_REQUEST_ERROR})):t(new(a())({httpDebug:b,message:"Server request aborted",code:n.I.HTTP_REQUEST_ABORTED})):t(new(a())({httpDebug:b,message:"No internet connection",code:n.I.NO_INTERNET_CONNECTION}))})),w.addEventListener(f,(function(){S(),t(new(a())({httpDebug:b,message:"Server request timeout",code:n.I.HTTP_REQUEST_TIMEOUT}))})),w.addEventListener(d,(function(){S(),b.responseDescription="".concat(w.status," ").concat(w.responseURL," ").concat(w.responseText);var r=function(e){switch(e){case 401:return new(a())("Authorisation needed",n.I.UNAUTHORIZED);case 403:return new(a())("Access Denied",n.I.ACCESS_DENIED);case 404:return new(a())("Not Found",n.I.NOT_FOUND);default:return}}(w.status);r?(r.httpDebug=b,t(r)):w.status>=400||w.responseURL&&-1!==w.responseURL.indexOf("503.html")?t(new(a())({httpDebug:b,message:"Server is unavailable, please try again later",code:n.I.SERVER_DOWN})):/Incorrect login or password/.test(w.responseText)?t(new(a())({httpDebug:b,message:"Incorrect login or password",code:n.I.AUTH_INCORRECT_LOGIN_PASSWORD})):e(w.responseText)}
2)),w.setRequestHeader("Cache-Control","max-age=0"),w.setRequestHeader("If-Modified-Since","Sat, 01 Jan 2000 00:00:00 GMT"),w.setRequestHeader("Accept","application/json"),v&&w.setRequestHeader("Content-Type",v),p&&(w.addEventListener(c,p),w.upload.addEventListener(c,p)),w.withCredentials=!0,w.send(g)})):Promise.reject(new(a())({httpDebug:{requestDescription:"".concat(o," ").concat(s," ~> undefined")},message:"Server request aborted",code:n.I.HTTP_REQUEST_ABORTED}))}},88287:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(58165),i=r(1828),o=r(20013);const a=function(e){var t=e.apiVersion,r=e.apiHost,a=void 0===r?"":r;return function(e){var r=e.data,s=e.method,c=e.url,l=e.onProgress,u=e.token,d=void 0===u?n._R:u,f=e.expectSuccessFlag,p=e.ignoreErrors;return(0,i.Ay)({data:r,method:s,url:a+c,onProgress:l,token:d,apiVersion:t}).then((function(e){return(0,o.A)(e,{expectSuccessFlag:f,ignoreErrors:p})}))}}},20013:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(29416),r(95570),r(95790),r(54),r(66264),r(23510),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(74874),r(84766),r(96152),r(34237),r(85146),r(93831),r(40890);var n=r(30350),i=r.n(n),o=r(3492);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.expectSuccessFlag,n=void 0===r||r,c=t.ignoreErrors,l=void 0!==c&&c;try{var u=JSON.parse(e),d=[];if(u.errors instanceof Array&&u.errors.length>0?d.push.apply(d,s(u.errors)):u.errors&&"object"===a(u.errors)&&d.push.apply(d,s(Object.keys(u.errors).map((function(e){return u.errors[e]})))),u.error&&"string"==typeof u.error&&d.push(u.error),!l&&(d.length>0||n&&!0!==u.success&&1!==u.success))throw new(i())(d.length>0?d.join(", "):"Invalid request",o.I.SERVER_VALIDATION);return u}catch(e){throw e instanceof SyntaxError?new(i())("JSON canât be parsed",o.I.JSON_PARSE):e}}},40359:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(21555),r(5858),r(59161),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(66264),r(23510),r(95570),r(22892),r(85146),r(11823),r(86940),r(17626),r(84766);var n=r(14041),i=r(56351),o=r(75933);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(){s=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,c,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,c)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,571 bytes, line 2
2))}function I(e,t){function r(i,o,s,c){var l=p(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==a(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(a(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,c,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function c(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var l=function(){};const u=(0,i.PA)((function(e){var t=e.userPolicyStore,r=e.onSkip,i=void 0===r?l:r,a=e.onSubmit,u=void 0===a?l:a,d=t.policyForceAccept,f=t.isAccepting,p=function(){var e,r=(e=s().mark((function e(r){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.preventDefault(),e.prev=1,e.next=4,t.startUpdating();case 4:u(),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(1);case 9:case"end":return e.stop()}}),e,null,[[1,7]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,s,"next",e)}function s(e){c(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}();return n.createElement("form",{onSubmit:p},n.createElement(o.x7,{enabled:f},n.createElement("div",null,"We have updated our"," ",n.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"/terms-conditions.html",className:"hover:underline"},"Terms & Conditions")," ","and"," ",n.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"/privacy-policy.html",className:"hover:underline"},"Privacy Policy")," ",'(collectively, "Terms"). Please accept the changes to proceed with your order.'),n.createElement("div",{className:"mt-8 flex flex-row-reverse justify-between"},!d&&n.createElement(o.$n,{variant:"outline",onClick:function(){i()},size:"sm"},"Skip"),n.createElement(o.$n,{type:"submit",size:"sm"},"Accept"))))}))},12464:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14041),i=r(4262),o=r(75933);const a=function(e){var t=e.className,r=e.onClick;return n.createElement("div",{className:(0,o.cn)("flex items-center gap-3 rounded-lg border-[1px] border-zinc-200 px-4 py-3",t)},n.createElement(i.A,{color:"#18181b",size:20,className:"shrink-0"}),n.createElement("div",{className:"flex flex-col gap-3"},n.createElement("div",{className:"text-zinc-950"},"Add your phone number to receive notifications via SMS or WhatsApp"),n.createElement(o.$n,{size:"sm",onClick:r,className:"lg:w-fit"},"Add phone number")))}},4503:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=function(e){var t=e.dialogsStore;return n.createElement(a.$n,{onClick:function(){t.pushDialog(o.g5.MODAL_DELETE_ACCOUNT)},"data-testid":"delete-account-profileButton",variant:"ghostDestructive",size:"sm"},"Delete account")};s.displayName="DeleteAccount";const c=(0,i.WQ)("dialogsStore")(s)},41625:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(14041),i=r(56351),o=r(75933),a=(0,i.PA)((function(e){var t=e.deleteAccountStore,r=e.onClose;(0,n.useEffect)((function(){return function(){return t.reset()}}),[]);return n.createElement(o.x7,{enabled:t.isDeletingAccount},n.createElement("p",{className:"mb-4","data-testid":"delete-account-question"},"All your information will be permanently removed, including your name and surname, email, phone number, password, and Google/Apple login details. If you have any orders in progress or finished ones, be sure to retrieve them before deleting your account."," "),n.createElement("p",{className:"mb-4","data-testid":"delete-account-text"},"To confirm deletion, type âdeleteâ below:"),n.createElement("div",null,n.createElement(o.pd,{onChange:function(e){t.formManager.setValue("confirmDeletion",e.target.value)},value:t.formManager.formValues.confirmDeletion,"data-testid":"delete-account-input",id:"phoneNumber"}
vendor: 6,063 bytes, line 2
2)),n.createElement(o.Es,null,n.createElement(o.$n,{onClick:function(){return t.deleteAccount().catch((function(){}))},disabled:"delete"!==t.formManager.formValues.confirmDeletion,"data-testid":"delete-account-deleteButton",variant:"destructive",size:"sm"},"Delete account"),n.createElement(o.$n,{onClick:r,"data-testid":"delete-account-cancelButton",variant:"outline",size:"sm"},"Cancel")))}));a.displayName="DeleteAccountForm";const s=(0,i.WQ)("deleteAccountStore")(a)},56210:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(12517),a=r(3492),s=r(75933),c=(0,i.PA)((function(e){var t=e.className,r=e.dialogsStore;return n.createElement("div",{className:t},n.createElement(s.$n,{size:"icon",onClick:function(){r.pushDialog(a.g5.MODAL_DELETE_PHONE_NUMBER,{})},variant:"outline"},n.createElement(o.A,{size:20})))}));const l=(0,i.WQ)("dialogsStore")(c)},44512:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});r(95570),r(30935),r(68291),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264),r(5858),r(59161),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(22892),r(11823),r(86940),r(17626);var n=r(14041),i=r(56351),o=r(86090),a=r(3492),s=r(75933),c=r(12464);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(){u=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,s){var c=p(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(l(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,c,"Generator"),d(x,a,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=(0,i.PA)((function(e){var t,r,i=e.userProfileStore,l=e.userSettingsStore,p=e.userContactsStore,h=e.dialogsStore,m=i.profile.phone,y=l.formManager,v=y.formValues,g=v.isTransactionalSubscriptions,b=v.isUnreadMessagesSubscriptions,E=v.isMarketingSubscriptions,w=v.preferredNotificationChannel,S=y.formDisabledItemsIds,A=y.formDisabledKeys,_=y.isEdited,x=y.submitting,P=a.LF.EMAIL_AND_SMS,I=a.LF.EMAIL_AND_WHATSAPP,k=a.LF.ONLY_EMAIL,O=(0,o.W6)(),T=f((0,n.useState)(!1),2),C=T[0],R=T[1],N=function(e){h.pushDialog(a.g5.MODAL_UNSAVED_CHANGES,e)};(0,n.useEffect)((function(){return function(){return l.formManager.resetForm()}}),[]),(0,n.useEffect)((function(){var e=O.block((function(t,r){if(_&&"POP"!==r&&O.location.pathname!==t.pathname)return N({onContinue:function(){e(),O.push(t.pathname)},onCancel:function(){R(!1)}}),!1;R(!0)}));return function(){e()}}),[_,O]),(0,n.useEffect)((function(){var e=function(e){var t,r,n,i=e.target;("A"===i.nodeName&&i.href||"A"===(null===(t=i.parentNode)||void 0===t?void 0:t.nodeName)&&i.parentNode.href)&&("A"===(null===(r=i.parentNode)||void 0===r?void 0:r.no
2deName)&&(i=i.parentNode),void 0===(null===(n=i.attributes)||void 0===n||null===(n=n.getNamedItem("target"))||void 0===n?void 0:n.value)&&(e.preventDefault(),N({onContinue:function(){window.location.href=i.href}})))};return!C&&_&&document.addEventListener("click",e),function(){!C&&_&&document.removeEventListener("click",e)}}),[_,C]);var L=[{id:P,title:"Email and SMS",disabled:null===(t=S.preferredNotificationChannel)||void 0===t?void 0:t.includes(P)},{id:I,title:"Email and WhatsApp",disabled:null===(r=S.preferredNotificationChannel)||void 0===r?void 0:r.includes(I)},{id:k,title:"Only Email",description:"We do not recommend using only one notification channel"}],D=function(){var e,t=(e=u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.prev=1,e.next=4,l.startUpdating();case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,null,[[1,6]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){d(o,n,i,a,s,"next",e)}function s(e){d(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return n.createElement(s.x7,{enabled:void 0!==x},n.createElement("form",{onSubmit:D},n.createElement("div",{className:"flex flex-col gap-4"},!m&&n.createElement("div",null,n.createElement(c.A,{onClick:function(e){return function(e){e.preventDefault(),e.stopPropagation(),p.focusPhoneInput()}(e)}})),n.createElement("div",null,n.createElement("div",{className:"mb-4 font-semibold text-zinc-950"},"Set channel"),n.createElement(s.z6,{onChange:function(e){l.formManager.setValue("preferredNotificationChannel",e)},options:L,variant:"solid",value:w})),n.createElement("span",{className:"my-1 block h-px bg-zinc-200"}),n.createElement("div",null,n.createElement("div",{className:"mb-4 font-semibold text-zinc-950"},"Subscribe to messages"),n.createElement("div",{className:"pb-4"},n.createElement(s.Sc,{checked:g,disabled:A.isTransactionalSubscriptions,onCheckedChange:function(e){l.formManager.setValue("isTransactionalSubscriptions",e)},label:"Transactional messages",labelDescription:"Weâll notify you about important updates on your order, help you reset password, etc.",variant:"soft"})),n.createElement("div",{className:"pb-4"},n.createElement(s.Sc,{checked:b,disabled:A.isUnreadMessagesSubscriptions,onCheckedChange:function(e){l.formManager.setValue("isUnreadMessagesSubscriptions",e)},label:"Unread messages",labelDescription:"Weâll notify you about unread messages from Support Dpt. or your assigned expert."})),n.createElement("div",{className:"pb-6"},n.createElement(s.Sc,{checked:E,disabled:A.isMarketingSubscriptions,onCheckedChange:function(e){l.formManager.setValue("isMarketingSubscriptions",e)},label:"Marketing messages",labelDescription:"Weâll send you discount coupons, exclusive offers, and our latest news."})))),n.createElement(s.$n,{type:"submit",disabled:!_,size:"sm"},"Update preferences")))}));const m=(0,i.WQ)("userProfileStore","userSettingsStore","userContactsStore","dialogsStore")(h)},10722:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(30935),r(68291),r(21555),r(5858),r(59161),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(66264),r(23510),r(95570),r(22892),r(85146),r(11823),r(86940),r(17626),r(84766);var n=r(14041),i=r(56351),o=r(75933),a=r(3492),s=r(58165);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(){l=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,571 bytes, line 2
2))}function I(e,t){function r(i,o,a,s){var l=p(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==c(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(c(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,a,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function u(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var d=(0,i.PA)((function(e){var t,r,i=e.userContactsStore,c=e.userSettingsStore,d=e.userProfileStore,f=e.onClose,p=(0,n.useRef)(null),h=a.LF.EMAIL_AND_SMS,m=a.LF.EMAIL_AND_WHATSAPP,y=a.LF.ONLY_EMAIL,v=[{id:h,title:"Email and SMS",disabled:null===(t=c.formManager.formDisabledItemsIds.preferredNotificationChannel)||void 0===t?void 0:t.includes(h)},{id:m,title:"Email and WhatsApp",disabled:null===(r=c.formManager.formDisabledItemsIds.preferredNotificationChannel)||void 0===r?void 0:r.includes(m)},{id:y,title:"Only Email",description:"We do not recommend using only one notification channel"}];function g(){var e;return e=l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),e.prev=1,!i.formManager.isEdited||!c.formManager.isEdited){e.next=7;break}return e.next=5,i.startUpdating();case 5:e.next=10;break;case 7:if(!i.formManager.isEdited||c.formManager.isEdited){e.next=10;break}return e.next=10,i.startUpdatingWithNoUpdatingProfile();case 10:if(!c.formManager.isEdited||!d.profile.isPhoneNumberValid){e.next=13;break}return e.next=13,c.startUpdating();case 13:return e.next=15,d.startLoadingProfile();case 15:f(),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(1),(0,s.oL)(p.current);case 21:case"end":return e.stop()}}),e,null,[[1,18]])})),g=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){u(o,n,i,a,s,"next",e)}function s(e){u(o,n,i,a,s,"throw",e)}a(void 0)}))},g.apply(this,arguments)}return n.createElement("form",{onSubmit:function(e){return g.apply(this,arguments)},ref:p},n.createElement(o.BG,{error:i.formManager.formErrors.phone,show:i.formManager.errorHiglightableKeys.phone},n.createElement(o.JU,{text:"Phone","data-testid":"phone-label",htmlFor:"phone-input",className:"mb-1",info:n.createElement(o.Ex,{variant:"outline",size:"sm"},"optional")}),n.createElement(o.pi,{size:"lg","data-testid":"phone-input",id:"phone-input",placeholder:d.profile.phone||"Phone number...",value:i.formManager.formValues.phone,onChange:function(e){i.formManager.setValue("phone",e)},onFocus:function(){return function(){i.formManager.startInteraction("phone")}},onBlur:function(){return function(){i.formManager.finishInteraction("phone")}}})),d.profile.phone&&!d.profile.isPhoneNumberValid&&n.createElement(o.Fc,{title:"Invalid phone number",description:"There are some problems with your phone number that may prevent you from receiving SMS, WhatsApp messages, and calls.",color:"warning",className:"mt-2"}),n.createElement("div",{className:"relative my-6 h-px bg-zinc-200"},n.createElement("span",{className:"absolute -top-2 start-1/2 -translate-x-1/2 bg-white px-4 text-sm leading-none text-zinc-500"},"or")),n.createElement("div",{className:"mb-2 text-sm font-medium text-zinc-950"},"Preferred notification channel"),n.createElement(o.z6,{"data-testid":"preferred-notification-channel",variant:"solid",size:"sm",onChange:function(e){c.formManager.setValue("preferredNotificationChannel",e)},options:v,value:c.formManager.formValues.preferredNotificationChannel}),n.createElement(o.Es,{className:"mt-8"},n.createElement(o.$n,{type:"submit",size:"sm","data-testid":"save-and-proceed-button",disabled:!(i.formManager.isEdited||c.formManager.isEdited)},"Save changes")))}));const f=(0,i.WQ)("userContactsStore","userProfileStore","userSettingsStore")(d)},91299:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(85146),r(21555),r(5858),r(59161),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(66264),r(23510),r(95570),r(22892),r(11823),r(86940),r(17626),r(84766);var n=r(14041),i=r(56351),o=r(58165),a=r(75933),s=r(56210);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(){l=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,571 bytes, line 2
2))}function I(e,t){function r(i,o,a,s){var l=p(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==c(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(c(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,a,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function u(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var d=(0,i.PA)((function(e){var t=e.userContactsStore,r=e.configsStore,i=e.phone,c=e.isPhoneNumberValid,d=t.formManager,f=t.isUpdating,p=t.setPhoneInputEl,h=d.formErrors,m=d.formValues,y=d.formDisabledKeys,v=d.errorHiglightableKeys,g=d.isEdited,b=r.configs.countries[m.countryId],E=b&&b.name,w=(0,n.useRef)(null);(0,n.useEffect)((function(){w.current&&p(w.current)}),[p]),(0,n.useEffect)((function(){return function(){d.resetForm()}}),[d]);var S=function(){var e,r=(e=l().mark((function e(r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.preventDefault(),!d.isEdited){e.next=10;break}return e.prev=2,e.next=5,t.startUpdating();case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),(0,o.oL)();case 10:case"end":return e.stop()}}),e,null,[[2,7]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){u(o,n,i,a,s,"next",e)}function s(e){u(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),A=function(e){return function(t){d.setValue(e,t)}},_=function(e){return function(){d.startInteraction(e)}},x=function(e){return function(){d.finishInteraction(e)}};return n.createElement(a.x7,{enabled:f},n.createElement("form",{onSubmit:S},n.createElement("div",{className:"mb-2"},n.createElement(a.BG,{show:v.userName,error:h.userName},n.createElement(a.JU,{text:"Name",htmlFor:"userName",className:"mb-1","data-testid":"contact-info-profileName"}),n.createElement(a.pd,{id:"userName",value:m.userName,onFocus:_("userName"),onChange:function(e){var t=e.target.value;return A("userName")(t)},onBlur:x("userName"),name:"fullname",autoComplete:"name","data-testid":"contact-info-nameControl"}))),n.createElement("div",{className:"mb-2"},n.createElement(a.BG,{error:h.email,show:v.email},n.createElement(a.JU,{text:"Email",htmlFor:"email",className:"mb-1","data-testid":"contact-info-profileEmail"}),n.createElement(a.pd,{id:"email",readOnly:y.email,value:m.email,onChange:function(e){var t=e.target.value;return A("email")(t)},onFocus:_("email"),onBlur:x("email"),name:"email",autoComplete:"email","data-testid":"contact-info-emailControl"}))),n.createElement("div",{className:"mb-2"},n.createElement(a.JU,{text:"Country",htmlFor:"country","data-testid":"contact-info-profileCountry",className:"mb-1"}),n.createElement(a.pd,{id:"country",readOnly:!0,value:E,name:"country",autoComplete:"country","data-testid":"contact-info-countryControl"})),n.createElement(a.BG,{show:v.phone,error:h.phone},n.createElement(a.JU,{text:"Phone",htmlFor:"phone","data-testid":"contact-info-profilePhone",className:"mb-1"}),n.createElement("div",{className:"flex gap-x-2"},n.createElement(a.pi,{id:"phone",ref:w,onChange:A("phone"),onFocus:_("phone"),onBlur:x("phone"),value:m.phone,"data-testid":"contact-info-phoneControl"}),i&&n.createElement(s.A,null))),i&&!c&&n.createElement(a.Fc,{title:"Invalid phone number",description:"There are some problems with your phone number that may prevent you from receiving SMS, WhatsApp messages, and calls.",color:"warning",className:"mt-2"}),n.createElement(a.$n,{className:"mt-6",type:"submit",disabled:!g,"data-testid":"contact-info-updateProfileBtn",size:"sm"},"Update contact information")))}));const f=(0,i.WQ)("userContactsStore","configsStore")(d)},42546:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(59161),r(48851),r(96656),r(94356),r(45993),r(95790),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180);var n,i,o=r(14041),a=r(56351),s=r(75933),c=r(3492);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=(u(n={},c.em.GOOGLE,"Google"),u(n,c.em.APPLE,"Apple"),n),f=(u(i={},c.em.GOOGLE,o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},o.createElement("mask",{id:"mask0_14266_678",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16"},o.createElement("path",{d:"M15.5 0.5H0.5V15.5H15.5V0.5Z",fill:"white"})),o.createElement("g",{mask:"url(#mask0_14266_678)"},o.createElement("path",{d:"M15.2 8.17036C15.2 7.63853 15.1523 7.12718 15.0637 6.63623H8V9.53738H12.0364C11.8625 10.4749 11.3341 11.2692 10.5398 11.801V13.6829H12.9637C14.3818 12.3772 15.2 10.4544 15.2 8.17036Z",fill:"#4285F4"}),o.createElement("path",{d:"M8.00003 15.4999C10.025 15.4999 11.7227 14.8283 12.9636 13.6829L10.5398 11.8011C9.86821 12.2511 9.00908 12.517 8.00003 12.517C6.04658 12.517 4.3932 11.1976 3.8034 9.42493H1.29773V11.3681C2.53185 13.8193 5.06821 15.4999 8.00003 15.4999Z",fill:"#34A853"}),o.createElement("path",{d:"M3.80337 9.42513C3.65337 8.97513 3.56818 8.49446 3.56818 8.00013C3.56818 7.50581 3.65337 7.02513 3.80337 6.57513V4.63196H1.297
27C0.7898 5.64446 0.5 6.78993 0.5 8.00013C0.5 9.21033 0.7898 10.3558 1.2977 11.3683L3.80337 9.42513Z",fill:"#FBBC04"}),o.createElement("path",{d:"M8.00003 3.48298C9.1011 3.48298 10.0898 3.86135 10.8671 4.60453L13.0182 2.45337C11.7194 1.24317 10.0216 0.5 8.00003 0.5C5.0682 0.5 2.53185 2.18068 1.29773 4.63183L3.8034 6.575C4.3932 4.8023 6.04658 3.48298 8.00003 3.48298Z",fill:"#E94235"})))),u(i,c.em.APPLE,o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},o.createElement("path",{d:"M17.1872 7.13681C17.0828 7.21782 15.2394 8.25653 15.2394 10.5662C15.2394 13.2376 17.5851 14.1827 17.6553 14.2061C17.6445 14.2637 17.2826 15.5004 16.4185 16.7606C15.6481 17.8695 14.8434 18.9766 13.6193 18.9766C12.3951 18.9766 12.0801 18.2655 10.667 18.2655C9.28983 18.2655 8.80018 19 7.68047 19C6.56076 19 5.77948 17.9739 4.88119 16.7138C3.84068 15.234 3 12.9352 3 10.7534C3 7.25383 5.27543 5.39784 7.51485 5.39784C8.70477 5.39784 9.69667 6.17912 10.4437 6.17912C11.1548 6.17912 12.2637 5.35103 13.6175 5.35103C14.1305 5.35103 15.9739 5.39784 17.1872 7.13681ZM12.9748 3.86949C13.5347 3.20522 13.9307 2.28353 13.9307 1.36184C13.9307 1.23402 13.9199 1.10441 13.8965 1C12.9856 1.0342 11.9019 1.60666 11.2484 2.36454C10.7354 2.94779 10.2565 3.86949 10.2565 4.80378C10.2565 4.94419 10.2799 5.08461 10.2907 5.12961C10.3483 5.14041 10.4419 5.15302 10.5356 5.15302C11.3528 5.15302 12.3807 4.60576 12.9748 3.86949Z",fill:"black"}))),i),p=(0,a.PA)((function(e){var t=e.userAuthProvidersStore,r=e.notificationsStore,n=t.authProvidersIds,i=t.authProvidersById,a=t.isLoadingAuthProviders,c=t.unlinkingProvidersById;(0,o.useEffect)((function(){t.startLoadingAuthProviders().catch((function(){}))}),[t]);return 0!==n.length||a?o.createElement(s.x7,{enabled:a},o.createElement(o.Fragment,null,n.map((function(e){var n=i[e].isLinked;return o.createElement("div",{key:e,className:"flex flex-row justify-between border-b-[1px] border-zinc-200 pb-3 pt-3 first:pt-0 last:border-b-0 last:pb-0"},o.createElement("div",{className:"flex flex-row items-center gap-2"},f[e]," ",o.createElement("div",{"data-testid":"link-accounts-title",className:"text-base text-zinc-950"},d[e])),n?o.createElement(s.x7,{enabled:!!c[e],className:"w-fit"},o.createElement(s.$n,{variant:"ghostDestructive",onClick:function(){return function(e){return t.unlink(e).then((function(){return r.pushNotification({title:"The account has been successfully unlinked",view:"success"}),t.startLoadingAuthProviders()})).catch((function(){}))}(e)},"data-testid":"link-accounts-button",size:"sm"},"Unlink")):o.createElement("div",{"data-testid":"link-accounts-notLinkedText",className:"rounded-md border-[1px] border-zinc-200 px-2 py-1 text-sm font-medium text-zinc-950"},"Not linked"))})))):null}));const h=(0,a.WQ)("userAuthProvidersStore","notificationsStore")(p)},1584:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(78366),r(95790),r(85146);var n=r(14041),i=r(20998),o=r(56351),a=r(58165),s=r(75933);const c=(0,o.WQ)("configsStore")((function(e){var t=e.configsStore.configs,r=e.formManager,o=e.onSubmit,c=e.onCancel,l=(0,n.useRef)(null),u=r.formValues,d=r.formErrors,f=r.errorHiglightableKeys,p=(0,n.useMemo)((function(){return t?t.countriesIds.map((function(e){return{id:e,title:t.countries[e].name}})).sort((function(e,t){return e.title.localeCompare(t.title)})):[]}),[t]),h=(0,n.useCallback)((function(e){r.setValue("country",e)}),[r]),m=(0,n.useCallback)((function(e){return e.preventDefault(),o().catch((function(){return(0,a.oL)(l.current)}))}),[o,l]);return(0,n.useEffect)((function(){return function(){r.resetForm()}}),[r]),n.createElement("form",{onSubmit:m,ref:l},n.createElement(i.nu,null,(function(){return n.createElement(s.BG,{error:d.country,show:f.country},n.createElement(s.l6,{placeholder:"Select your country",onChange:h,options:p,value:u.country,"data-testid":"selectCountry"}))})),n.createElement(s.Es,{className:"justify-between"},n.createElement(s.$n,{variant:"outline",onClick:c,size:"sm"},"Cancel"),n.createElement(s.$n,{type:"submit",size:"sm"},"Save and proceed")))}))},26327:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(14041),i=r(39067),o=r.n(i),a=r(56351),s=r(75933),c=r(58165),l=(0,a.PA)((function(e){var t=e.userPhoneNumberStore,r=e.onSubmit,i=e.onContinue,o=e.children,a=(0,n.useRef)(null);(0,n.useEffect)((function(){t.init()}),[]);var l=t.formManager,u=l.formValues,d=l.formErrors,f=l.errorHiglightableKeys;return n.createElement(n.Fragment,null,o,n.createElement("form",{onSubmit:function(e){return e.preventDefault(),t.startUpd
2ating().then((function(){r()})).catch((function(){(0,c.oL)(a.current)}))},ref:a},n.createElement(s.BG,{error:d.phone,show:f.phone},n.createElement(s.JU,{text:"Phone number","data-testid":"phone-number-text",htmlFor:"phone-number-input",className:"mb-1"}),n.createElement(s.pi,{id:"phone-number-input",placeholder:"Phone number...",value:u.phone,onChange:function(e){t.formManager.setValue("phone",e)},"data-testid":"phone-number-input"})),n.createElement(s.Es,null,n.createElement(s.$n,{variant:"outline",onClick:i,"data-testid":"skipButton"},"Skip for now"),n.createElement(s.$n,{type:"submit","data-testid":"save-and-proceed-button"},"Save and proceed"))))}));l.propTypes={userPhoneNumberStore:o().shape({formManager:o().shape({formValues:o().object.isRequired,formErrors:o().object.isRequired,errorHiglightableKeys:o().object.isRequired,setValue:o().func.isRequired}).isRequired,startUpdating:o().func.isRequired}).isRequired,onSubmit:o().func.isRequired,onContinue:o().func.isRequired,children:o().node};const u=(0,a.WQ)("userPhoneNumberStore")(l)},57197:(e,t,r)=>{"use strict";r.d(t,{Eh:()=>a.A,FO:()=>s.A,MK:()=>d.A,Xu:()=>i.A,ZM:()=>n.A,ed:()=>l.A,hr:()=>o.A,m8:()=>u.A,xT:()=>c.A});var n=r(91299),i=r(40359),o=r(26327),a=r(1584),s=r(4503),c=r(41625),l=r(42546),u=r(44512),d=r(10722)},92624:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(14041),i=r(56351),o=r(75933),a=r(3492),s=r(84906),c=r(34916),l=r(27928),u=function(){},d=(0,i.PA)((function(e){var t=e.initialAuthType,r=e.onBecomeReferral,i=void 0===r?u:r,d=e.configsStore.configs,f=d.isRecaptchaEnabled,p=d.isReferral,h=d.referrerHash,m=e.reCaptchaStore,y=e.signInFormStore,v=e.signUpFormStore,g=e.userProfileStore,b=e.dialogsStore,E=e.signUpSubmitButtonTitle,w=e.onBecomeAuthorized,S=e.thirdPartySignInStore,A=e.showMessage,_=void 0===A||A,x=e.authContainerClass,P=function(e){return g.setLastAuthType(e)};(0,n.useEffect)((function(){return f&&m.load().catch((function(){})),p?(i(h),P(a.SS.SIGN_UP_AUTH_TYPE)):t&&P(t),function(){y.formManager.resetForm(),v.formManager.resetForm(),f&&m.reset().catch((function(){}))}}),[]);var I=g.isAuthorized,k=g.profile,O=g.authType,T=function(){return P(a.SS.SIGN_IN_AUTH_TYPE)},C=function(){b.pushDialog(a.g5.MODAL_LOST_PASS)};return I?_?k.hasPersonalData?n.createElement(o.Fc,{variant:"soft",color:"success","data-testid":"auth-authorizedMessage",description:n.createElement(n.Fragment,null,"Your email is ",n.createElement("strong",null,k.email))}):n.createElement(o.Fc,{variant:"soft",color:"info",description:"Please go to profile page and update your email, name, and phone number. This will let us contact you if necessary and thus work on your order more effectively."}):null:n.createElement("div",{className:(0,o.cn)("w-full py-2 lg:max-w-fit",x)},n.createElement(o.x7,{enabled:S.isSubmitting},n.createElement(o.tU,{value:O,className:"mx-auto flex w-full max-w-[490px] flex-col items-stretch gap-4",orientation:"vertical","data-testid":"auth",onValueChange:P},n.createElement(o.j7,null,n.createElement(o.Xi,{id:"nc","data-testid":"auth-signUpTabButton",className:"w-full p-1 lg:min-w-[220px]",value:a.SS.SIGN_UP_AUTH_TYPE},"New customer"),n.createElement(o.Xi,{id:"rc","data-testid":"auth-signInTabButton",className:"w-full p-1 lg:min-w-[220px]",type:"button",value:a.SS.SIGN_IN_AUTH_TYPE},"Returning customer")),n.createElement("div",{className:"flex flex-col gap-4 roun
2ded-lg bg-bg-subtle p-4"},n.createElement(l.A,{onBecomeAuthorized:w}),S.isThirdPartySignInAvailable&&n.createElement("div",{className:"relative my-2 h-px bg-zinc-200"},n.createElement("span",{className:"absolute -top-2 start-1/2 -translate-x-1/2 bg-bg-subtle px-4 text-sm text-zinc-500"},"or")),function(){switch(O){case a.SS.SIGN_UP_AUTH_TYPE:return n.createElement(o.av,{value:a.SS.SIGN_UP_AUTH_TYPE},n.createElement(c.A,{handleWantSignIn:T,submitButtonTitle:E,onBecomeAuthorized:w}));case a.SS.SIGN_IN_AUTH_TYPE:return n.createElement(o.av,{value:a.SS.SIGN_IN_AUTH_TYPE},n.createElement(s.A,{onLostPass:C,onBecomeAuthorized:w}));default:return null}}()))))}));const f=(0,i.WQ)("configsStore","userProfileStore","dialogsStore","signInFormStore","signUpFormStore","thirdPartySignInStore","reCaptchaStore")(d)},65192:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(14041),i=r(56351),o=r(75933),a=(0,i.PA)((function(e){var t=e.onSubmit,r=e.onCancel,i=e.signUpFormStore.formManager,a=i.formValues,s=a.agreeTermsAndPrivacy,c=a.agreeSubscription;return n.createElement(n.Fragment,null,n.createElement(o.Sc,{className:"mb-4",checked:c,onCheckedChange:function(){return i.setValue("agreeSubscription",!c)},label:"I agree to receive discount coupons, exclusive offers, and the latest news by email, SMS, phone, and other electronic means"}),n.createElement(o.Sc,{checked:s,onCheckedChange:function(){return i.setValue("agreeTermsAndPrivacy",!s)},label:n.createElement("span",null,"I agree to"," ",n.createElement("span",{style:{display:"inline-block"}},"the"," ",n.createElement("a",{target:"_blank",href:"/terms-conditions.html"},"Terms & Conditions"))," ",n.createElement("span",{style:{display:"inline-block"}},"and"," ",n.createElement("a",{target:"_blank",href:"/privacy-policy.html"},"Privacy Policy")))}),n.createElement(o.Es,null,n.createElement(o.$n,{variant:"outline",onClick:r},"Cancel"),n.createElement(o.$n,{disabled:!s,onClick:function(){return t({agreeTermsAndPrivacy:s,agreeSubscription:c})}},"Submit")))}));const s=(0,i.WQ)("signUpFormStore")(a)},84906:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(14041),i=r(56351),o=r(75933),a=r(58165),s=r(3492),c=r(22809),l=r(91166),u=(0,i.PA)((function(e){var t=e.onWantSignUp,r=e.onLostPass,i=e.configsStore.configs.isRecaptchaEnabled,u=e.signInFormStore,d=e.onBecomeAuthorized;(0,n.useEffect)((function(){var e=u.formManager;return function(){e.setSilently("password","")}}),[]);var f=function(e){return function(t){return u.formManager.setValue(e,t)}},p=function(e){return function(){return u.formManager.startInteraction(e)}},h=function(e){return function(){return u.formManager.finishInteraction(e)}},m=u.isLoggingIn,y=u.formManager,v=y.formValues,g=y.formErrors,b=y.otherErrorsList,E=y.errorHiglightableKeys;return n.createElement("form",{onSubmit:function(e){return e.preventDefault(),u.startSigningIn().then((function(){return d&&d()})).catch((function(){(0,a.oL)()}))},"data-testid":"auth-signIn"},n.createElement(o.x7,{enabled:m},n.createElement(o.to,{errors:b,renderMessage:function(e){var t=e.code,r=e.message;switch(t){case s.I.AUTH_INCORRECT_LOGIN_PASSWORD:return"Incorrect email or password";case s.I.UNAUTHORIZED:return(0,a.dM)()?r:n.createElement(n.Fragment,null,"Authorization failed."," ",n.createElement("a",{href:"https://www.whatismybrowser.com/guides/how-to-enable-cookies/",target:"_blank",rel:"noopener noreferrer"},"Enable cookies")," ","in your browser to sign in.");default:return r}},testId:"auth-signIn-incorrect-error",className:"mb-4"}),n.createElement("div",{className:"flex flex-col items-stretch gap-4"},n.createElement(o.BG,{error:g.login,show:E.login},n.createElement(o.JU,{text:"Email or ID","data-testid":"auth-signIn-emailTitle",htmlFor:"rc_mail",className:"mb-1"}),n.createElement(o.pd,{required:!0,id:"rc_mail","data-testid":"auth-signIn-emailControl",value:v.login,onChange:function(e){var t=e.target.value;return f("login")(t)},onFocus:p("login"),onBlur:h("login"),type:"text",name:"email",autoComplete:"email"})),n.createElement(o.BG,{error:g.password,show:E.password},n.createElement(o.JU,{text:"Password","data-testid":"auth-signIn-passwordTitle",htmlFor:"rc_pass",className:"mb-1"}),n.createElement(o.yA,{required:!0,id:"rc_pass","data-testid":"auth-signIn-passwordControl",value:v.password,onChange:function(e){var t=e.target.value;return f("password")(t)},onFocus:p("password"),onBlur:h("password"),autoComplete:"current-password",name:"password"})),n.createElement("div",{className:"flex items-center justify-between gap-4"},n.createElement(c.A,{checked:v.rememberFor2Weeks,onChange:f("rememberFor2Weeks")}),t&&n.createElement(o.$n,{variant:"link",onClick:t},"Donât have account"),r&&n.createElement(o.$n,{id:"rc_pass_rem","data-testid":"auth-forgotPassword-button",variant:"link",onClick:r},"Forgot password")),n.createElement(o.$n,{id:"rc_signin","data-testid":"auth-signIn-button",type:"submit",size:"lg"},"Sign in"),i&&n.createElement(l.A,null))))}));const d=(0,i.WQ)("configsStore","signInFormStore")(u)},34916:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(95790),r(85146);var n=r(14041),i=r(56351),o=r(3492),a=r(58165),s=r(75933),c=r(91166),l=(0,i.PA)((function(e){var t=e.handleWantSignIn,r=e.submitButtonTitle,i=void 0===r?"Create account & Sign in":r,l=e.onBecomeAuthorized,u=e.signUpFormStore,d=e.configsStore,f=e.requirePhone,p=void 0!==f&&f,h=e.requireName,m=void 0!==h&&h;(0,n.useEffect)((function(){return u.init({requirePhone:p,requireName:m}),d.userCountryId||d.getUserCountry().catch((function(){})),function(){u.formManager.setSilently("password",""),u.reset()}}),[]);var y=function(e){return function(t){u.formManager.setValue(e,t)}},v=function(e){return function(){u.formManager.startInteraction(e)}},g=function(e){return function(){u.formManager.finishInteraction(e)}},b=u.isSigningUp,E=u.formManager,w=E.formValues,S=E.formErrors,A=E.errorHiglightableKeys,_=E.otherErrorsList,x=d.configs;return n.createElement("form",{"data-testid":"auth-signUp",onSubmit:function(e){return e.preventDefault(),u.startSigningUp().then((function(){return l&&l()})).catch((function(){(0,a.oL)()}))}},(null==x?void 0:x.isReferral)&&n.createElement(s.Fc,{description:"Create your account to use your $10 discount.",className:"mb-4",variant:"soft",color:"success"}),n.createElement(s.x7,{enabled:b},n.createElement(s.to,{errors:_,skipCodes:[o.I.EMAIL_IS_ALREADY_REGISTERED],renderMessage:function(e){var t=e.code,r=e.message;return t!==o.I.UNAUTHORIZED||(0,a.dM)()?r:n.createElement(n.Fragment,null,"Authorization failed."," ",n.createElement("a",{href:"https://www.whatismybrowser.com/guides/how-to-enable-cookies/",target:"_blank",rel:"noopener noreferrer"},"Enable cookies")," ","in your browser to sign up.")},testId:"auth-signUp-unavailable-service-error"}),n.createElement("div",{className:"flex flex-col items-stretch gap-4"},n.createElement(s.BG,{error:S.email,renderErrorContent:function(e){return e.code===o.I.EMAIL_IS_ALREADY_REGISTERED?n.createElement("span",null,"Your email is already registered. Use"," ",n.createElement(s.$n,{variant:"linkDestructive",onClick:t},"Returning customer")," ","tab to sign in."):e.message},show:A.email},n.createElement(s.JU,{text:"Email","data-testid":"auth-signUp-emailTitle",htmlFor:"nc_mail",className:"mb-1"}),n.createElement(s.pd,{required:!0,id:"nc_mail","data-testid":"auth-signUp-emailControl",value:w.email,onChange:function(e){var t=e.target.value;return y("email")(t)},onFocus:v("email"),onBlur:function(){u.formManager.finishInteraction("email"),u.checkEmailExists()},name:"email",autoComplete:"email"})),n.createElement(s.BG,{error:S.password,show:A.password},n.createElement(s.JU,{text:"Password","data-testid":"auth-signUp-passwordTitle",htmlFor:"nc_pass",className:"mb-1"}),n.createElement(s.yA,{required:!0,id:"nc_pass","data-testid":"auth-signUp-passwordControl",value:w.password,onChange:function(e){var t=e.target.value;return y("password")(t)},onFocus:v("password"),onBlur:g("password"),name:"password",autoComplete:"new-password"})),n.createElement(s.BG,{error:S.name,show:A.name},n.createElement(s.JU,{text:"Name","data-testid":"auth-signUp-nameTitle",className:"mb-1",info:n.createElement(s.Ex,{variant:"outline",size:"sm"},"optional"),htmlFor:"nc_name"}),n.createElement(s.pd,{id:"nc_name","data-testid":"auth-signUp-nameControl",type:"text",value:w.name,onChange:function(e){var t=e.target.value;return y("name")(t)},onFocus:v("name"),onBlur:g("name"),name:"fullname",autoComplete:"name"})),n.createElement(s.BG,{error:S.phone,show:A.phone},n.createElement(s.JU,{text:"Phone","data-testid":"auth-signUp-phoneTitle",className:"mb-1",info:n.createElement(s.Ex,{variant:"outline",size:"sm"},"optional"),htmlFor:"nc_phone"}),function(){if(!d.configs)return n.createElement(s.x7,{enabled:void 0!==d.isLoadingConfigs});var e=d.configs,t=e.countries,r=e.countriesIds,i=u.formManager.formValues;return n.createElement(s.vD,{id:"nc_phone",testId:"auth-signUp-ÑountryTelephoneControl",phoneValue:i.phone,countryValue:i.countryId,onCountryChange:function(e){var t=u.formManager;e&&t.setValue("countryId",e.id)},onPhoneChange:y("phone"),onPhoneFocus:v("phone"),onPhoneBlur:g("phone"),countries:r.map((function(e){return t[e]}))})}()),n.createElement(s.Sc,{id:"nc_agree_marketing",testId:"auth-signUp-newsAgreementControl",checked:w.agreeSubscription,onCheckedChange:y("agreeSubscription"),label:n.createElement(s.Bc,{delayDuration:300},n.createElement(s.m_,null,n.createElement(s.k$,{asChild:!0}
2,n.createElement("span",null,"I agree to receive discount coupons, exclusive offers, and the latest news by email, SMS, phone, and other electronic means")),n.createElement(s.ZI,{side:"top",className:"max-w-[380px]"},n.createElement(s.PR,null),n.createElement("div",null,"We'll always treat your personal details with care and will never forward or share them with other parties for any purposes"))))}),n.createElement(s.BG,{error:S.agreeTermsAndPrivacy,show:A.agreeTermsAndPrivacy},n.createElement(s.Sc,{id:"nc_agree_terms",testId:"auth-signUp-termsAndPrivacyControl",checked:w.agreeTermsAndPrivacy,onCheckedChange:y("agreeTermsAndPrivacy"),label:n.createElement("span",null,"I agree to"," ",n.createElement("span",{style:{display:"inline-block"}},"the"," ",n.createElement("a",{target:"_blank",href:"/terms-conditions.html",className:"hover:underline"},"Terms & Conditions"))," ",n.createElement("span",{style:{display:"inline-block"}},"and"," ",n.createElement("a",{target:"_blank",href:"/privacy-policy.html",className:"hover:underline"},"Privacy Policy")))})),n.createElement("div",{"data-testid":"auth-signUp-button",id:"auth-signUp-button",className:"w-full"},n.createElement(s.$n,{id:"nc_signup",type:"submit",className:"w-full",size:"lg"},i)),(null==x?void 0:x.isRecaptchaEnabled)&&n.createElement(c.A,null))))}));const u=(0,i.WQ)("signUpFormStore","configsStore")(l)},91166:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14041);const i=function(){return n.createElement("p",{className:"m-0 text-xs text-zinc-500 dark:text-zinc-400"},"This site is protected by reCAPTCHA and the Google"," ",n.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://policies.google.com/privacy",className:"hover:underline"},"Privacy Policy")," ","and"," ",n.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://policies.google.com/terms",className:"hover:underline"},"Terms of Service")," ","apply.")}},22809:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(29416);var n=r(14041),i=r(56351),o=r(75933),a=r(58165),s=(0,i.PA)((function(e){var t=e.checked,r=e.onChange,i=e.signInFormStore;return(0,n.useEffect)((function(){a.sZ.getItem("RememberFor2Weeks").then((function(e){e&&i.formManager.setSilently("rememberFor2Weeks",JSON.parse(e))}))}),[]),n.createElement(o.Sc,{testId:"auth-signIn-rememberFor2Weeks",className:"Auth_remember2weeks__checkbox",checked:t,onCheckedChange:r,label:n.createElement("div",{className:"-mt-px"},"Remember me")})}));const c=(0,i.WQ)("signInFormStore")(s)},13450:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(14041),i=r(56351),o=r(75933),a=function(){return n.createElement("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 18",className:"h-5 w-5"},n.createElement("path",{d:"M9.45 3.121c.516-.623.881-1.472.881-2.331 0-.118-.01-.236-.032-.333-.838.032-1.848.559-2.45 1.268-.472.537-.912 1.396-.912 2.255 0 .13.021.258.032.301.053.011.14.022.225.022.752 0 1.698-.505 2.256-1.182zm.591 1.364c-1.257 0-2.277.763-2.933.763-.698 0-1.61-.72-2.707-.72-2.073 0-4.178 1.72-4.178 4.952 0 2.02.773 4.147 1.74 5.522.827 1.16 1.547 2.116 2.589 2.116 1.031 0 1.482-.687 2.76-.687 1.3 0 1.59.666 2.729.666 1.128 0 1.88-1.032 2.589-2.052.795-1.171 1.128-2.31 1.139-2.363-.065-.022-2.224-.903-2.224-3.373 0-2.138 1.697-3.094 1.794-3.17-1.117-1.61-2.825-1.654-3.298-1.654z",fill:"#fff"}))};const s=(0,i.WQ)("thirdPartySignInStore")((function(e){var t=e.thirdPartySignInStore,r=e.onBecomeAuthorized;(0,n.useEffect)((function(){return t.initAppleSignIn().catch((function(){})),function(){return t.clearAppleSignIn()}}),[]);return n.createElement(o.$n,{className:"min-w-[220px] bg-black text-white hover:bg-black hover:opacity-80",onClick:function(){t.onClickAppleSignIn().then((function(){r&&r()})).catch((function(){}))},"data-testid":"appleSignInButton"},n.createElement(a,null),"Sign ",t.authTypeString," with Apple")}))},61373:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14041);const i=(0,r(56351).WQ)("thirdPartySignInStore")((function(e){var t=e.thirdPartySignInStore,r=e.onBecomeAuthorized,i=(0,n.useRef)(null);return(0,n.useEffect)((function(){return t.initGoogleSignInButton(i.current,r).catch((function(e){console.log(e)})),function(){return t.clearGoogleSignIn()}}),[]),n.createElement("div",{id:"googleSignInButton",className:"googleSignInButton min-w-[220px] font-medium","data-testid":"googleSignInButton",ref:i})}))},27928:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(75933),a=r(13450),s=r(61373);const c=(0,i.WQ)("thirdPartySignInStore")((function(e){var t=e.thirdPartySignInStore,r=t.isAppleSign
2InAvailable,i=t.isGoogleSignInAvailable,c=t.isThirdPartySignInAvailable,l=e.onBecomeAuthorized,u=e.className,d=e.wrapperClassName;return c?n.createElement("div",{className:d},n.createElement("div",{className:(0,o.cn)("mx-auto flex w-min min-w-[220px] max-w-full flex-col items-center justify-center gap-4 md:w-full md:flex-row md:flex-wrap",u)},r&&n.createElement(a.A,{onBecomeAuthorized:l}),i&&n.createElement(s.A,{onBecomeAuthorized:l}))):null}))},71514:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o,fG:()=>i.A});var n=r(92624),i=(r(84906),r(34916),r(65192));const o=n.A},62507:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(21555),r(5858),r(55983),r(78527),r(95790),r(37210),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264);var n=r(14041),i=r(56351),o=r(75933),a=r(3492),s=r(87087),c=r(39235);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d=(0,i.PA)((function(e){var t=e.className,r=e.orderformStore.formManager,i=e.onClose,u=(0,s.A)(),d=l((0,n.useState)(!0),2),f=d[0],p=d[1];(0,n.useEffect)((function(){u.load().catch((function(){})).finally((function(){setTimeout((function(){p(!1)}))}))}),[]);var h=u.isLoading||f,m=u.allAvailableCoupons;return n.createElement(o.x7,{enabled:h},n.createElement("div",{className:(0,o.cn)("scrollbar-thin max-h-coupon-list overflow-y-auto pr-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-zinc-500 [&::-webkit-scrollbar-thumb]:bg-clip-padding [&::-webkit-scrollbar-track]:rounded-full [&::-webkit-scrollbar-track]:bg-zinc-200 [&::-webkit-scrollbar]:w-2",t)},m.length>0&&n.createElement("div",{className:"flex flex-col gap-1.5"},m.map((function(e){return n.createElement("div",{key:e.id},n.createElement(c.P,{coupon:e,actionButton:n.createElement(o.$n,{onClick:function(){return function(e){r.startInteraction(a.ks.COUPON_CODE),r.setValue(a.ks.COUPON_CODE,e.code.code),r.finishInteraction(a.ks.COUPON_CODE),i(!0)}(e)},variant:"outline"},"Apply coupon")}))})))))}));const f=(0,i.WQ)("orderformStore")(d)},39235:(e,t,r)=>{"use strict";r.d(t,{P:()=>l});r(30935),r(68291),r(68450),r(79683),r(69399);var n=r(14041),i=r(33664),o=r(3492),a=r(75933),s=r(91140),c={isStub:!0,code:{code:"CODE",title:"Name",description:"Description"},isLifetime:!1,isAvailableForUsage:!1,rules:{orderServiceTypeIds:[o.B5.PROGRAMMING]}},l=function(e){var t,r,l=e.coupon,u=e.className,d=e.actionButton,f="bg-blue-50",p="",h="border-[#50A8FF]",m="text-zinc-500",y="text-zinc-950",v="bg-[#BFDBFE] text-[#1E3A8A]",g="bg-blue-100 text-blue-900",b=l||c;l?b.isAvailableForUsage?b.isLifetime&&(f="bg-bg-magic-muted",h="border-[#5617C1]",g="bg-[#EDE9FE] text-[#581C87]",v="bg-[#DDD6FE] text-[#581C87]",m="text-zinc-500"):(f="bg-bg-subtle",m="text-zinc-400",y="text-zinc-400",h="border-gray-200",v="border",g="bg-zinc-100",p="border"):(f="white",p="border border-dashed",h="border-gray-200",m="text-zinc-400",y="text-zinc-400",v="border bg-white/20",g="bg-transparent");var E=1===(null===(t=b.rules)||void 0===t||null===(t=t.orderServiceTypeIds)||void 0===t?void 0:t.length)&&(null===(r=b.rules)||void 0===r||null===(r=r.orderServiceTypeIds)||void 0===r?void 0:r.includes(o.B5.PROGRAMMING));return n.createElement("div",{className:(0,a.cn)("rounded-lg p-4 text-sm",f,m,p,u)},n.createElement("div",{className:"flex items-center justify-between"}
2,n.createElement("div",{className:(0,a.cn)("font-semibold",y)},b.code.title),n.createElement("div",{className:(0,a.cn)("shrink-0 rounded-md px-1.5 py-0.5 text-xs font-medium",v)},l?(0,s.B)(l):"Expiration")),n.createElement("div",{className:"mt-3 flex flex-col gap-2 sm:flex-row"},n.createElement("div",{className:(0,a.cn)("flex-grow rounded-lg border border-dashed text-center text-base font-semibold leading-[38px]",g,h)},b.code.code),b.isAvailableForUsage&&(d||n.createElement(a.$n,{variant:"outline",asChild:!0},n.createElement(i.N_,{to:E?"/orders/create?orderServiceTypeId=".concat(o.B5.PROGRAMMING,"&couponCode=").concat(b.code.code):"/orders/create?couponCode=".concat(b.code.code)},"Use coupon")))),n.createElement("div",{dangerouslySetInnerHTML:{__html:b.code.description},className:(0,a.cn)("mt-3 border-t border-dashed pt-3 [&_b]:font-normal",h)}))}},58544:(e,t,r)=>{"use strict";r.d(t,{S:()=>l});r(95790);var n=r(14041),i=r(56351),o=r(75933),a=r(88706),s=r(87087),c=r(39235),l=(0,i.PA)((function(e){var t=e.className,r=(0,s.A)();(0,n.useEffect)((function(){r.load().catch((function(){}))}),[]);var i=r.isLoading,l=r.showStubCoupon,u=r.availableCoupons,d=r.hasHiddenAvailableCoupons,f=r.showAllAvailableCoupons,p=r.archivedCoupons,h=r.allArchivedCoupons,m=r.hasHiddenArchivedCoupons,y=r.showAllArchivedCoupons;return n.createElement(o.x7,{enabled:i,className:t},n.createElement(o.Zp,{className:"mb-2 md:mb-8"},n.createElement(o.aR,null,n.createElement(o.ZB,{className:"text-base"},"Available coupons"),n.createElement(o.BT,null,l?"Once you get a coupon, it will appear here":"Save more on your orders using available coupons ")),n.createElement(o.Wu,null,l&&n.createElement(c.P,null),u.length>0&&n.createElement("div",{className:"flex flex-col gap-6"},u.map((function(e){return n.createElement("div",{key:e.id},n.createElement(c.P,{coupon:e}))}))),d&&n.createElement(o.$n,{variant:"outline",className:"mx-auto mt-6 block",onClick:f},"Show more"))),n.createElement(o.Zp,null,n.createElement(o.aR,null,n.createElement(o.ZB,{className:"flex items-center text-base"},"Coupon history",n.createElement(o.Ex,{className:"ml-auto"},h.length," coupon",1===h.length?"":"s"," used"))),n.createElement(o.Wu,null,p.length>0?n.createElement(n.Fragment,null,p.map((function(e){return n.createElement(c.P,{key:e.id,coupon:e,className:"mb-4"})})),m&&n.createElement(o.$n,{variant:"outline",className:"mx-auto block",onClick:y},"Show more")):n.createElement("div",{className:"pb-4 pt-4 text-center"},n.createElement(o.L5,{icon:a.A,size:"lg",className:"mx-auto mb-2"}),n.createElement("div",{className:"font-medium"},"No coupon history yet")))))}))},65664:(e,t,r)=>{"use strict";r.d(t,{I:()=>u});r(96656),r(21555),r(5858),r(94356),r(45993);var n=r(14041),i=r(33664),o=r(56351),a=r(90983),s=r(75933),c=r(81973),l=(0,o.PA)((function(e){var t=e.className,r=e.userProfileStore,o=e.couponsStore;return(0,n.useEffect)((function(){Promise.all([r.startLoadingCoupons(),o.loadCustomerCoupons()]).catch((function(){}))}),[]),n.createElement(s.x7,{enabled:void 0!==r.isUpdatingCoupons},n.createElement(s.Zp,{className:t},n.createElement(s.aR,null,n.createElement(s.ZB,{className:"flex flex-wrap items-center gap-2"},n.createElement("div",{className:"mr-auto"},"Your loyalty pays off"),n.createElement(s.Ex,{size:"lg"},"$",r.totalSpent||0," total spent"),n.createElement(s.Ex,{variant:"soft",color:"magic",size:"lg"},r.discountPercent||0,"% lifetime discount"))),n.createElement(s.Wu,null,n.createElement("div",{className:"mb-6 text-sm"},"As the sum of your approved orders reaches $500, $1000, and $2000, you will get a lifetime discount of 5%, 10%, and 15% respectively."),n.createElement(c.A,{totalSpent:r.totalSpent||0}),o.oldLifetimeCoupon&&n.createElement(s.Fc,{className:"mt-6",title:"Use your discount",description:"Create a new order with ".concat(r.discountPercent,"% discount applied"),icon:function(){return n.createElement(a.A,{size:20})},color:"magic",variant:"solid",action:function(){var e;return n.createElement(s.$n,{variant:"outline",asChild:!0},n.createElement(i.N_,{to:"/orders/create?couponCode=".concat(null===(e=o.oldLifetimeCoupon)||void 0===e?void 0:e.code.code)},"Create new order"))}}))))}
2)),u=(0,o.WQ)("userProfileStore","couponsStore")(l)},81973:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14041),i=r(75933),o=function(e,t,r){return e>=r?100:e<=t?0:Math.round((e-t)/(e>1e3?10:5))};const a=function(e){var t=e.totalSpent;return n.createElement("div",{className:"my-0 flex items-center py-6 pl-0"},n.createElement("div",{className:"relative block h-0.5 w-1/5 bg-[#aaa]"},n.createElement("div",{id:"lifetime-progress-line-1",className:"absolute -bottom-px h-1 w-0 bg-[#333]",style:{width:"".concat(o(t,0,500),"%")}})),n.createElement("div",{id:"lifetime-progress-step-1",className:(0,i.cn)("relative block h-4 w-4 shrink-0 rounded-full bg-[#aaa]",t>=500&&"bg-[#333]")},n.createElement("div",{className:(0,i.cn)("absolute bottom-[22px] left-1/2 -translate-x-1/2 whitespace-nowrap font-light leading-5 opacity-40",t>=500&&"opacity-100")},"5% off"),n.createElement("div",{className:(0,i.cn)("absolute left-1/2 top-[22px] -translate-x-1/2 font-bold leading-5 opacity-40",t>=500&&"opacity-100")},"$500")),n.createElement("div",{className:"relative block h-0.5 w-[30%] bg-[#aaa]"},n.createElement("div",{id:"lifetime-progress-line-2",className:"absolute -bottom-px h-1 w-0 bg-[#333]",style:{width:"".concat(o(t,500,1e3),"%")}})),n.createElement("div",{id:"lifetime-progress-step-2",className:(0,i.cn)("relative block h-4 w-4 shrink-0 rounded-full bg-[#aaa]",t>=1e3&&"bg-[#333]")},n.createElement("div",{className:(0,i.cn)("absolute bottom-[22px] left-1/2 -translate-x-1/2 whitespace-nowrap font-light leading-5 opacity-40",t>=500&&"opacity-100")},"10% off"),n.createElement("div",{className:(0,i.cn)("absolute left-1/2 top-[22px] -translate-x-1/2 font-bold leading-5 opacity-40",t>=500&&"opacity-100")},"$1000")),n.createElement("div",{className:"relative block h-0.5 w-[30%] bg-[#aaa]"},n.createElement("div",{id:"lifetime-progress-line-3",className:"absolute -bottom-px h-1 w-0 bg-[#333]",style:{width:"".concat(o(t,1e3,2e3),"%")}})),n.createElement("div",{id:"lifetime-progress-step-3",className:(0,i.cn)("relative block h-4 w-4 shrink-0 rounded-full bg-[#aaa]",t>=2e3&&"bg-[#333]")},n.createElement("div",{className:(0,i.cn)("absolute bottom-[22px] left-1/2 -translate-x-1/2 whitespace-nowrap font-light leading-5 opacity-40",t>=500&&"opacity-100")},"15% off"),n.createElement("div",{className:(0,i.cn)("absolute left-1/2 top-[22px] -translate-x-1/2 font-bold leading-5 opacity-40",t>=500&&"opacity-100")},"$2000")),n.createElement("div",{className:"relative block h-0.5 w-1/5 bg-[#aaa]"},n.createElement("div",{id:"lifetime-progress-line-4",className:"absolute -bottom-px h-1 w-0 bg-[#333]",style:{width:"".concat(o(t,2e3,3e3),"%")}})))}},78475:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(25400),r(21555),r(84766),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(83794);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function a(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var c=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"$maxAvailableCouponsCount",3),a(this,"$maxArchivedCouponsCount",3),a(this,"showAllAvailableCoupons",(function(){r.$maxAvailableCouponsCount=void 0})),a(this,"showAllArchivedCoupons",(function(){r.$maxArchivedCouponsCount=void 0})),(0,n.Gn)(this,{$maxAvailableCouponsCount:n.sH,$maxArchivedCouponsCount:n.sH,allAvailableCoupons:n.EW,allArchivedCoupons:n.EW,availableCoupons:n.EW,archivedCoupons:n.EW,hasHiddenAvailableCoupons:n.EW,hasHiddenArchivedCoupons:n.EW,showStubCoupon:n.EW,isLoading:n.EW,showAllAvailableCoupons:n.XI,showAllArchivedCoupons:n.XI}),this.couponsStore=t}var t,r,i;return t=e,(r=[{key:"allAvailableCoupons",get:function(){return this.couponsStore.availableCoupons}},{key:"allArchivedCoupons",get:function(){return this.couponsStore.coupons.filter((function(e){return!e.isAvailableForUsage}))}},{key:"availableCoupons",get:function(){return this.hasHiddenAvailableCoupons?this.allAvailableCoupons.slice(0,this.$maxAvailableCouponsCount):this.allAvailableCoupons}},{key:"archivedCoupons",get:function(){return this.hasHiddenArchivedCoupons?this.allArchivedCoupons.slice(0,this.$maxArchivedCouponsCount):this.allArchivedCoupons}},{key:"hasHiddenAvailableCoupons",get:function(){return Boolean(this.$maxAvailableCouponsCount&&this.allAvailableCoupons.length>this.$maxAvailableCouponsCount)}},{key:"hasHiddenArchivedCoupons",get:function(){return Boolean(this.$maxArchivedCouponsCount&&this.allArchivedCoupons.length>this.$maxArchivedCouponsCount)}},{key:"showStubCoupon",get:function(){return 0===this.couponsStore.availableCoupons.length}},{key:"isLoading",get:function(){return this.couponsStore.isLoadingCoupons}},{key:"load",value:function(){return this.couponsStore.loadCustomerCoupons()}}])&&o(t.prototype,r),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},87087:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14041),i=r(56351),o=r(78475);function a(){var e=(0,n.useContext)(i.Db).couponsStore;return(0,n.useRef)(new o.A(e)).current}},85619:(e,t,r)=>{"use strict";r.d(t,{I7:()=>i.I,SQ:()=>n.S,tX:()=>o.A});var n=r(58544),i=r(65664),o=r(62507)},91140:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});r(68450),r(97041),r(96152);var n=r(93718),i=r.n(n),o=r(58165),a=function(e){var t=e.isAvailableForUsage,r=e.expiredAt,n=e.orders;if(e.isLifetime)return t?"Lifetime":"Upgraded";if(!t){var a=n.length?"Used":"Expired",s=!!n.length&&n[0].appliedAt,c=i()(s||r,"mmm d, yyyy");return"".concat(a," on ").concat(c)}var l=Math.round((r-Date.now())/6e4),u=Math.floor(l/60/24),d=Math.floor(l/60)%24;return u>0?"Expires in ".concat(u," ").concat((0,o.fk)("day",u)):d>0?"Expires in ".concat(d," ").concat((0,o.fk)("hour",d)):"Expires in ".concat(l," ").concat((0,o.fk)("minute",l))}},76792:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(84766),r(1569),r(21555),r(95570),r(5858),r(95790),r(68450);var n=r(14041),i=r(56351),o=r(72519),a=r(3492),s=r(75933),c=r(58165),l=r(52e3),u=r(34642),d=r
2(99913),f=(0,i.PA)((function(e){var t=e.orderStore,r=e.notificationsStore,i=t.services.slice(),f=!i.find((function(e){return e.type_id===a.zv.DISCOUNT}))&&i.find((function(e){return e.winbackReduction>0}));f&&i.push({cost:-f.winbackReduction,type_id:a.zv.DISCOUNT,title:t.appliedCoupon.code.code});var p=function(e){return(0,c.lW)((function(){return Promise.resolve(e)})).then((function(){r.pushNotification({title:"Writer id copied to clipboard",view:"success",closeButton:!1})})).catch((function(){r.pushNotification({title:"Failed to copy writer id",view:"error",closeButton:!1})}))},h=(0,l.b)(t),m=h.grandTotalCost,y=h.firstInstallmentCost,v=h.secondInstallmentCost;return n.createElement("div",null,!1===t.isRevisionType&&n.createElement(u.e9,null,n.createElement(u.Qz,null,"Academic level"),n.createElement(u.T6,null,t.academicLevelTitle)),t.paperTypeTitle&&n.createElement(u.e9,null,n.createElement(u.Qz,null,"Type of paper"),n.createElement(u.T6,null,t.getPaperTypeTitle)),n.createElement(u.e9,null,n.createElement(u.Qz,null,"Discipline"),n.createElement(u.T6,null,t.disciplineTitleString)),n.createElement(u.e9,null,n.createElement(u.Qz,null,"Title"),n.createElement(u.T6,null,t.title)),t.paperDetails&&n.createElement(u.e9,null,n.createElement(u.Qz,null,"Paper details"),n.createElement(u.T6,null,t.paperDetails)),n.createElement(u.e9,null,n.createElement(u.Qz,null,"Paper format"),n.createElement(u.T6,null,t.getPaperFormatTitle)),t.isRevisionType&&n.createElement(u.e9,null,n.createElement(u.Qz,null,"Revision type"),n.createElement(u.T6,null,t.serviceTypeTitle)),n.createElement(u.e9,null,n.createElement(u.Qz,null,t.statusTitleForInfo),n.createElement(u.T6,null,t.deadlineString)),n.createElement(u.e9,null,n.createElement(u.Qz,null,"Number of sources"),n.createElement(u.T6,null,t.sources)),t.assignedWriterId&&n.createElement(u.e9,null,n.createElement(u.Qz,null,"Assigned writer (ID)"),n.createElement(u.T6,null,n.createElement("div",{className:"inline-flex items-center gap-1.5"},n.createElement("span",null,t.assignedWriterName||"Anonymous"," ",n.createElement("span",{className:"text-zinc-500"},"(",n.createElement("span",{className:"before:content-['#']"}),t.assignedWriterId,")")),n.createElement(s.$n,{variant:"ghost",size:"icon",onClick:function(){return p(t.assignedWriterId||0)},className:"p-1 hover:bg-zinc-100",title:"Copy writer id"},n.createElement(o.A,{size:16}))))),t.requestedWriterId&&n.createElement(u.e9,null,n.createElement(u.Qz,null,"Requested writer (ID)"),n.createElement(u.T6,null,n.createElement("div",{className:"inline-flex items-center gap-1.5"},n.createElement("span",null,t.requestedWriterName||"Anonymous"," ",n.createElement("span",{className:"text-zinc-500"},"(",n.createElement("span",{className:"before:content-['#']"}),t.requestedWriterId,")")),n.createElement(s.$n,{variant:"ghost",size:"icon",onClick:function(){return p(t.requestedWriterId||0)},className:"p-1 hover:bg-zinc-100",title:"Copy writer id"},n.createElement(o.A,{size:16}))))),t.comments&&n.createElement(u.e9,null,n.createElement(u.Qz,null,"Comments"),n.createElement(u.T6,null,t.comments)),i.map((function(e){return n.createElement(u.e9,{key:e.type_id},n.createElement(u.Qz,null,(0,d.Hf)({service:e,isPagesWereCalculatedByWords:t.isPagesWereCalculatedByWords,words:t.wordsQuantity})),n.createElement(u.T6,null,n.createElement(s.wn,{value:e.cost})))})),t.additionalPayments.length>0&&t.additionalPayments.map((function(e){return n.createElement(u.e9,{key:"".concat(t.id,"-p").concat(e.id)},n.createElement(u.Qz,null,"Additional payments"),n.createElement(u.T6,null,n.createElement("span",null,"Paid")," ",n.createElement(s.wn,{value:e.price,className:"font-bold"}),n.createElement("div",null,e.title)))})),y>0&&n.createElement(u.e9,{"data-testid":"first-installment-row"},n.createElement(u.Qz,null,"First installment"),n.createElement(u.T6,null,n.createElement(s.wn,{value:y}))),v>0&&!t.isPaymentOfSecondPartNeeded&&n.createElement(u.e9,{"data-testid":"second-installment-row"},n.createElement(u.Qz,null,"Second installment"),n.createElement(u.T6,null,n.createElement(s.wn,{value:v}))),n.createElement(u.e9,null,n.createElement(u.Qz,{className:"font-bold text-zinc-500"},"Grand total price"),n.createElement(u.T6,null,n.createElement(s.wn,{value:m,className:"font-bold","data-total-price":t.price}))),t.tipsForWriterAmount&&n.createElement(u.e9,{"data-testid":"tips-row"},n.createElement(u.Qz,{className:"font-bold text-zinc-500"},"Tips for writer"),n.createElement(u.T6,null,n.createElement(s.wn,{className:"font-bold",value:t.tipsForWriterAmount}))))}));const p=(0,i.WQ)("orderStore","notificationsStore")(f)},79716:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(25400),r(21555);var n=r(14041),i=r(33664),o=r(56351),a=r(52160),s=r(9594),c=r(27079),l=r(72519),u=r(3492),d=r
2(24289),f=r(75933),p=(0,o.PA)((function(e){var t=e.order,r=e.ordersStore,o=e.dialogsStore,p=e.orderFilesStore,h=e.userProfileStore.shouldUpdatePersonalData,m=t.id,y=t.isUnpaid,v=t.isBeingCancelled,g=t.isOrderServiceTypeEnabled,b=t.isReorderAvailable,E=t.isRequestRefundAvailable,w=t.isRequestRevisionAvailable,S=t.isRequestFreeRevisionAvailable,A=t.isRequestProfessorsRevisionAvailable,_=t.isRequestPaidRevisionAvailable,x=t.isVisibleTipsForWriterButton,P=t.isFullApproveAvailable,I=t.isPartialApproveAvailable,k=t.isPaymentOfSecondPartNeeded,O=t.isLoadingSecondPartPayment,T=t.latestFileIsDownloaded,C=t.latestFile,R=[y,y&&g,E,w,P,I,k,x,b].filter(Boolean).length;return n.createElement(n.Fragment,null,P&&n.createElement(f.$n,{className:"col-span-2 w-full md:col-span-1 lg:w-auto","data-testid":"filesApproveButton",size:"sm",onClick:function(){o.pushDialog(u.g5.MODAL_ORDER_APPROVE_ORDER,{orderId:m})},id:"approveOrderButton-orderDetails"},n.createElement(a.A,{size:16}),"Approve order"),I&&n.createElement(f.$n,{className:"col-span-2 w-full md:col-span-1 lg:w-auto","data-testid":"filesApprovePartButton",size:"sm",onClick:function(){o.pushDialog(u.g5.MODAL_ORDER_APPROVE_PART,{orderId:m,fileId:null==C?void 0:C.id})},id:"approvePartButton-orderDetails"},n.createElement(a.A,{size:16}),"Approve part"),k&&n.createElement(f.x7,{size:"sm",enabled:O,className:"col-span-2 w-full md:col-span-1 lg:w-auto"},n.createElement(f.$n,{className:"w-full","data-testid":"paySecondInstallment",size:"sm",onClick:function(){return t.goToSecondInstallmentPayment().catch((function(){}))},id:"payInstallmentButton-orderDetails"},n.createElement(s.A,{size:16}),"Pay installment")),x&&n.createElement(f.$n,{variant:"outline",size:"sm",className:(0,f.cn)("w-full lg:w-auto",1===R&&"col-span-2"),onClick:function(){o.pushDialog(u.g5.MODAL_TIPS,{orderId:m}),(0,d.WH)("tipsYourWriterOrderButtonClick")},id:"leaveTipButton-orderDetails"},n.createElement(c.A,{size:16}),"Leave a tip"),y&&g&&n.createElement(f.$n,{id:"reviewAndPayButton-orderDetails",size:"sm",className:"col-span-2 w-full md:col-span-1 lg:w-auto",asChild:!0},n.createElement(i.N_,{"data-testid":"orderDetailsPage-reviewAndPay",to:"/order/".concat(m,"/pay")},n.createElement(s.A,{size:16}),"Review & Pay")),y&&n.createElement(f.x7,{enabled:v,size:"sm",className:(0,f.cn)("w-full lg:w-auto",2===R&&"col-span-2 justify-self-center md:col-span-1")},n.createElement(f.$n,{"data-testid":"orderDetailsPage-cancelButton",variant:"ghostDestructive",size:"sm",onClick:function(){r.cancelOrder(m).catch((function(){}))},className:"w-full",id:"cancelOrderButton-orderDetails"},"Cancel order")),R<5&&b&&n.createElement(f.$n,{"data-testid":"orderDetailsPage-reorderButton",variant:"outline",size:"sm",className:(0,f.cn)("w-full lg:w-auto",1===R&&"col-span-2"),asChild:!0,id:"duplicateButton-orderDetails"},n.createElement(i.N_,{to:"/order/".concat(m,"/reorder")},n.createElement(l.A,{size:16}),"Duplicate")),E&&n.createElement(f.$n,{"data-testid":"requestRefundButton",variant:"outline",size:"sm",onClick:function(){var e=function(){o.pushDialog(u.g5.MODAL_ORDER_REQUEST_REFUND,{order:t})};T?e():o.pushDialog(u.g5.MODAL_REVISION_LATEST_FILE_REVIEW,{latestFileIsDownloaded:T,file:C,proceedButtonTitle:"Yes, request refund",onProceed:function(){return e()},onDownloadBegan:function(){C&&(p.markFileAsDownloaded(C.id),t.setLatestFileIsDownloaded()),o.closeDialog(u.g5.MODAL_REVISION_LATEST_FILE_REVIEW)}})},id:"requestRefundButton-orderDetails",className:(0,f.cn)("w-full lg:w-auto",1===R&&"col-span-2")},"Request refund"),w&&n.createElement(f.$n,{"data-testid":"requestRevisionButton",variant:"outline",size:"sm",onClick:function(){var e=function(){return o.pushDialog(u.g5.MODAL_REQUEST_REVISION,{order:t})};if(_&&h)o.pushDialog(u.g5.MODAL_UPDATE_PERSONAL_DATA);else if(!S&&!A)return;T?e():o.pushDialog(u.g5.MODAL_REVISION_LATEST_FILE_REVIEW,{latestFileIsDownloaded:T,file:C,proceedButtonTitle:"Yes, request revision",onProceed:function(){return e()},onDownloadBegan:function(){C&&(p.markFileAsDownloaded(C.id),t.setLatestFileIsDownloaded()),o.closeDialog(u.g5.MODAL_REVISION_LATEST_FILE_REVIEW)}})},id:"requestRevisionButton-orderDetails",className:(0,f.cn)("w-full lg:w-auto",1===R&&"col-span-2")},"Request revision"))}));const h=(0,o.WQ)("ordersStore","dialogsStore","orderFilesStore","userProfileStore")(p)},4929:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(84766),r(1569),r(21555),r(5858);var n=r(14041),i=r(56351),o=r(72519),a=r(75933),s=r(3492),c=r(58165),l=r(52e3),u=r(34642),d=(0,i.PA)((function(e){var t=e.orderStore,r=e.notificationsStore,i=t.services.slice(),d=i.find((function(e){return e.type_id===s.zv.SPLIT_PAYMENT})),f=i.find((function(e){return e.type_id===s.zv.DISCOUNT})),p=function(e){return(0,c.lW)((function(){return Promise.resolve(e)})).then((function(){r.pushNotification({title:"Expert id copied to clipboard",view:"success",closeButton:!1})})).catch((function(){r.pushNotification({title:"Failed to copy expert id",view:"error",closeButton:!1})}))},h=(0,l.b)(t),m=h.grandTotalCost,y=h.firstInstallmentCost,v=h.secondInstallmentCost;return n.createElement("div",null,n.createElement(u.e9,null,n.createElement(u.Qz,null,"Type of service"),n.createElement(u.T6,null,"Calculations")),n.createElement(u.e9,null,n.createElement(u.Qz,null,"Discipline"),n.createElement(u.T6,null,t.disciplineTitleString)),t.instructions&&n.createElement(u.e9,null,n.createElement(u.Qz,null,"Instru
2ctions"),n.createElement(u.T6,null,t.instructions)),t.softwareTitle&&n.createElement(u.e9,{"data-testid":"software-row"},n.createElement(u.Qz,null,"Software"),n.createElement(u.T6,null,t.softwareTitle)),n.createElement(u.e9,null,n.createElement(u.Qz,null,t.statusTitleForInfo),n.createElement(u.T6,null,t.deadlineString)),n.createElement(u.e9,null,n.createElement(u.Qz,null,"Task size"),n.createElement(u.T6,null,t.getOrderTaskSizeTitle)),t.assignedWriterId&&n.createElement(u.e9,{"data-testid":"assigned-expert-row"},n.createElement(u.Qz,null,"Assigned expert (ID)"),n.createElement(u.T6,null,n.createElement("div",{className:"inline-flex items-center gap-1.5"},n.createElement("span",null,t.assignedWriterName||"Anonymous"," ",n.createElement("span",{className:"text-zinc-500"},"(",n.createElement("span",{className:"before:content-['#']"}),t.assignedWriterId,")")),n.createElement(a.$n,{variant:"ghost",size:"icon",onClick:function(){return p(t.assignedWriterId||0)},className:"p-1 hover:bg-zinc-100",title:"Copy expert id"},n.createElement(o.A,{size:16}))))),t.requestedWriterId&&n.createElement(u.e9,{"data-testid":"requested-expert-row"},n.createElement(u.Qz,null,"Requested expert (ID)"),n.createElement(u.T6,null,n.createElement("div",{className:"inline-flex items-center gap-1.5"},n.createElement("span",null,t.requestedWriterName||"Anonymous"," ",n.createElement("span",{className:"text-zinc-500"},"(",n.createElement("span",{className:"before:content-['#']"}),t.requestedWriterId,")")),n.createElement(a.$n,{variant:"ghost",size:"icon",onClick:function(){return p(t.requestedWriterId||0)},className:"p-1 hover:bg-zinc-100",title:"Copy writer id"},n.createElement(o.A,{size:16}))))),n.createElement(u.e9,null,n.createElement(u.Qz,null,"Price"),n.createElement(u.T6,null,n.createElement(a.wn,{value:t.noDiscountPrice,"data-total-price":t.noDiscountPrice}))),d&&n.createElement(u.e9,{"data-testid":"split-payment-row"},n.createElement(u.Qz,null,"Pay in 2"),n.createElement(u.T6,null,n.createElement(a.wn,{value:d.cost}))),f&&n.createElement(u.e9,{"data-testid":"discount-row"},n.createElement(u.Qz,null,"Discount"),n.createElement(u.T6,null,n.createElement(a.wn,{value:f.cost}))),y>0&&n.createElement(u.e9,{"data-testid":"first-installment-row"},n.createElement(u.Qz,null,"First installment"),n.createElement(u.T6,null,n.createElement(a.wn,{value:y}))),v>0&&!t.isPaymentOfSecondPartNeeded&&n.createElement(u.e9,{"data-testid":"second-installment-row"},n.createElement(u.Qz,null,"Second installment"),n.createElement(u.T6,null,n.createElement(a.wn,{value:v}))),n.createElement(u.e9,null,n.createElement(u.Qz,{className:"font-bold text-zinc-500"},"Grand total price"),n.createElement(u.T6,null,n.createElement(a.wn,{value:m,className:"font-bold","data-total-price":m}))),t.tipsForWriterAmount&&n.createElement(u.e9,{"data-testid":"tips-row"},n.createElement(u.Qz,{className:"font-bold text-zinc-500"},"Tips for writer"),n.createElement(u.T6,null,n.createElement(a.wn,{className:"font-bold",value:t.tipsForWriterAmount}))))}));const f=(0,i.WQ)("orderStore","notificationsStore")(d)},22475:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(99180);var n=r(14041),i=r(56351),o=r(86090),a=r(33664),s=r(3492),c=r(75933),l=r(76792),u=r(91796),d=r(4929),f=r(52619),p=(0,i.PA)((function(e){var t=e.ordersStore,r=(0,o.g)().orderId,i=t.getOrderStore(Number(r));return n.createElement("div",{className:"md:flex"},n.createElement("div",{className:"p-6 sm:basis-1/2 md:border-r"},i.isLate&&i.statusId!==s.Th.FINISHED&&n.createElement(c.Fc,{variant:"soft",color:"warning",description:"Your order is still in progress, weâll send you a completed essay ASAP. Youâll be able to download it for free.",className:"mb-4"}),n.createElement("div",{className:"mb-3 text-base font-semibold text-zinc-950"},"Order details"),function(){switch(i.orderServiceTypeId){case s.B5.PROGRAMMING:return n.createElement(u.A,{orderStore:i});case s.B5.CALCULATIONS:return n.createElement(d.A,{orderStore:i});default:return n.createElement(l.A,{orderStore:i})}}()),n.createElement("div",{className:"sm:basis-1/2"},i.isPdScheduleAvailable&&n.createElement(f.A,{orderStore:i}),(i.orderServiceTypeId===s.B5.ACADEMIC_WRITING||i.orderServiceTypeId===s.B5.REVISION_MINOR||i.orderServiceTypeId===s.B5.REVISION_MAJOR)&&n.createElement("div",{className:"border-t p-6 empty:hidden md:border-t-0"},i.statusId!==s.Th.CANCELLED&&n.createElement(n.Fragment,null,n.createElement("div",{className:"mb-6 text-base font-semibold text-zinc-950"},"Add services to your order"),n.createElement(c.Fc,{description:"If you want to make any changes to your order (add more pages, request charts or slides, change the number of sources or extend the deadline), message our support team.",action:function(){return n.createElement(c.$n,{variant:"outline",asChild:!0},n.createElement(a.N_,{to:"/order/".concat(r,"/messages#support")},"Open messages"))}})))))}));const h=(0,i.WQ)("ordersStore")(p)},25461:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(14041),i=r(56351),o=r(75933),a=r(99913);const s=(0,i.PA)((function(e){var t=e.rowClassName,r=e.labelClassName,i=e.valueClassName,s=e.labelWithIcons,c=void 0!==s&&s,l=e.service,u=e.currency,d=e.isPagesWereCalculatedByWords,f=void 0!==d&&d,p=e.words;return n.createElement("div",{className:t},n.createElement("div",{className:r},(0,a.Hf)({service:l,currency:u,isPagesWereCalculatedByWords:f,words:p,labelWithIcons:c})),n.createElement("div",{className:i},n.createElement(o.wn,{value:l.cost,currency:u})))}))},34642:(e,t,r)=>{"use strict";r.d(t,{Qz:()=>d,T6:()=>f,e9:()=>u});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(75933),o=["className"],a=["className"],s=["className"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var u=function(e){var t=e.className,r=l(e,o);return n.createElement("div",c({className:(0,i.cn)("flex gap-2 border-b border-zinc-200/30 px-0 py-2.5 text-sm last:border-none",t)},r))},d=function(e){var t=e.className,r=l(e,a);return n.createElement("div",c({className:(0,i.cn)("word-break-anywhere basis-40 text-zinc-500",t)},r))},f=function(e){var t=e.className,r=l(e,s);return n.createElement("div",c({className:(0,i.cn)("word-break-anywhere flex-1 text-zinc-950",t)},r))}},91796:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(84766),r(1569),r(21555),r(95570),r(5858),r(95790),r(68450);var n=r(14041),i=r(56351),o=r(72519),a=r(75933),s=r(3492),c=r(58165),l=r(34642),u=r(52e3),d=r(99913),f=(0,i.PA)((function(e){var t,r=e.orderStore,i=e.notificationsStore,f=r.services.slice(),p=!f.find((function(e){return e.type_id===s.zv.DISCOUNT}))&&f.find((function(e){return e.winbackReduction>0}));p&&f.push({cost:-p.winbackReduction,type_id:s.zv.DISCOUNT,title:r.appliedCoupon.code.code});var h=function(e){return(0,c.lW)((function(){return Promise.resolve(e)})).then((function(){i.pushNotification({title:"Expert id copied to clipboard",view:"success",closeButton:!1})})).catch((function(){i.pushNotification({title:"Failed to copy expert id",view:"error",closeButton:!1})}))},m=(0,u.b)(r),y=m.grandTotalCost,v=m.firstInstallmentCost,g=m.secondInstallmentCost;return n.createElement("div",null,n.createElement(l.e9,null,n.createElement(l.Qz,null,"Type of service"),n.createElement(l.T6,null,"Programming")),r.languageTitle&&n.createElement(l.e9,null,n.createElement(l.Qz,null,"Programming language"),n.createElement(l.T6,null,r.languageTitle)),r.instructions&&n.createElement(l.e9,null,n.createElement(l.Qz,null,"Instructions"),n.createElement(l.T6,null,r.instructions)),n.createElement(l.e9,null,n.createElement(l.Qz,null,r.statusTitleForInfo),n.createElement(l.T6,null,r.deadlineString)),n.createElement(l.e9,null,n.createElement(l.Qz,null,"Task size"),n.createElement(l.T6,null,r.getOrderTaskSizeTitle)),r.assignedWriterId&&n.createElement(l.e9,{"data-testid":"assigned-expert-row"},n.createElement(l.Qz,null,"Assigned expert (ID)"),n.createElement(l.T6,null,n.createElement("div",{className:"inline-flex items-center gap-1.5"},n.createElement("span",null,r.assignedWriterName||"Anonymous"," ",n.createElement("span",{className:"text-zinc-500"},"(",n.createElement("span",{className:"before:content-['#']"}),r.assignedWriterId,")")),n.createElement(a.$n,{variant:"ghost",size:"icon",onClick:function(){return h(r.assignedWriterId||0)},className:"p-1 hover:bg-zinc-100",title:"Copy expert id"},n.createElement(o.A,{size:16}))))),r.requestedWriterId&&n.createElement(l.e9,{"data-testid":"requested-expert-row"},n.createElement(l.Qz,null,"Requested expert (ID)"),n.createElement(l.T6,null,n.createElement("div",{className:"inline-flex items-center gap-1.5"},n.createElement("span",null,r.requestedWriterName||"Anonymous"," ",n.createElement("span",{className:"text-zinc-500"},"(",n.createElement("span",{className:"before:content-['#']"}),r.requestedWriterId,")")),n.createElement(a.$n,{variant:"ghost",size:"icon",onClick:function(){return h(r.requestedWriterId||0)},className:"p-1 hover:bg-zinc-100",title:"Copy writer id"},n.createElement(o.A,{size:16}))))),f.map((function(e){return n.createElement(l.e9,{key:e.type_id,"data-testid":"order-service-".concat(e.type_id)},n.createElement(l.Qz,null,(0,d.Hf)({service:e})),n.createElement(l.T6,null,n.createElement(a.wn,{value:e.cost})))})),(null===(t=r.additionalPayments)||void 0===t?void 0:t.length)>0&&r.additionalPayments.map((function(e){return n.createElement(l.e9,{key:"".concat(r.id,"-p").concat(e.id)},n.createElement(l.Qz,null,"Additional payments"),n.createElement(l.T6,null,n.createElement("span",null,"Paid")," ",n.createElement(a.wn,{value:e.price,className:"font-bold"}),n.createElement("div",null,e.title)))})),v>0&&n.createElement(l.e9,{"data-testid":"first-installment-row"},n.createElement(l.Qz,null,"First installment"),n.createElement(l.T6,null,n.createElement(a.wn,{value:v}))),g>0&&!r.isPaymentOfSecondPartNeeded&&n.createElement(l.e9,{"data-testid":"second-installment-row"},n.createElement(l.Qz,null,"Second installment"),n.createElement(l.T6,null,n.createElement(a.wn,{value:g}))),n.createElement(l.e9,null,n.createElement(l.Qz,{className:"font-bold text-zinc-500"},"Grand total price"),n.createElement(l.T6,null,n.createElement(a.wn,{value:y,className:"font-bold","data-total-price":y}))),r.tipsForWriterAmount&&n.createElement(l.e9,{"data-testid":"tips-row"},n.createElement(l.Qz,{className:"font-bold text-zinc-500"},"Tips for writer"),n.createElement(l.T6,null,n.createElement(a.wn,{className:"font-bold",value:r.tipsForWriterAmount}))))}));const p=(0,i.WQ)("orderStore","notificationsStore")(f)},52619:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(95790),r(96152),r(84766),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(23510),r(34237),r(85146),r(74874),r(93831
2),r(40890),r(66264);var n=r(14041),i=r(56351),o=r(77085),a=r(75933),s=r(58165);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const u=(0,i.PA)((function(e){var t=e.orderStore,r=c((0,n.useState)(!1),2),i=r[0],l=r[1],u=!t.isPdScheduleAccepted&&!t.isPdScheduleRejected;return n.createElement("div",{className:"border-t p-6 md:border-b md:border-t-0","data-testid":"ProgressiveDeliveryScheduleSection"},n.createElement("div",{className:"mb-6 text-base font-semibold text-zinc-950"},"Progressive Delivery Schedule",t.isPdScheduleAccepted&&n.createElement("strong",null,"(accepted)"),t.isPdScheduleRejected&&n.createElement("strong",null,"(rejected)")),n.createElement("div",{className:"rounded bg-bg-subtle px-4 py-3"},n.createElement("div",{className:"flex flex-col gap-4"},t.pdSchedule.map((function(e,t){var r=new Date(e.c_deadline);return n.createElement(n.Fragment,{key:e.id},0!==t&&n.createElement(a.wv,{className:"md:hidden"}),n.createElement("div",{className:"inline-flex flex-wrap items-center gap-x-4 gap-y-2 text-sm text-zinc-950"},n.createElement("strong",{className:"font-semibold"},"Part ",t+1),n.createElement(a.wv,{className:"w-3 bg-zinc-500"}),n.createElement(a.Ex,{size:"lg"},n.createElement(o.A,{size:14})," ",r.getUTCDate()," ",r.toDateString().slice(4,7)," ",r.toTimeString().slice(0,5)),n.createElement(a.wv,{className:"hidden w-3 bg-zinc-500 sm:block"}),n.createElement("span",{className:"ProgressiveDeliverySchedule__part__counts"},n.createElement("strong",{className:"font-semibold"},e.pages)," ",(0,s.fk)("page",e.pages),", ",n.createElement("strong",{className:"font-semibold"},e.slides)," ",(0,s.fk)("slide",e.slides),", ",n.createElement("strong",{className:"font-semibold"},e.charts)," ",(0,s.fk)("chart",e.charts))))}))),u&&n.createElement("div",{className:"mt-6"},i?n.createElement(a.x7,{enabled:void 0!==t.rejectSheduleFormStore.submitting},n.createElement(a.BG,{error:t.rejectSheduleFormStore.formErrors.comment,show:t.rejectSheduleFormStore.errorHiglightableKeys.comment,className:"mb-4"},n.createElement(a.JU,{text:"Reject Reason"},n.createElement(a.TM,{value:t.rejectSheduleFormStore.formValues.comment,autoFocus:!0,onChange:function(e){t.rejectSheduleFormStore.setValue("comment",e.target.value)},className:"mt-1 bg-white"}))),n.createElement("div",{className:"flex gap-4"},n.createElement(a.$n,{variant:"ghostDestructive",onClick:function(){return t.sheduleReject().then((function(){return l(!1)})).catch((function(){}))}},"Confirm Reject"),n.createElement(a.$n,{variant:"outline",onClick:function(){l(!1)}},"Cancel"))):n.createElement("div",{className:"flex gap-4"},n.createElement(a.$n,{onClick:function(){return t.sheduleConfirm().catch((function(){}))}},"Accept schedule"),n.createElement(a.$n,{variant:"ghostDestructive",onClick:function(){l(!0)}},"Reject")))))}))},99913:(e,t,r)=>{"use strict";r.d(t,{Hf:()=>d});r(68450);var n=r(14041),i=r(64767),o=r(3492),a=r(58165),s=r(75933),c=function(e,t){return function(r){return"".concat(t," ").concat((0,a.fk)(e,t)," Ã ").concat(r)}},l=function(e,t){return function(r){return void 0===t?c("page",e)(r):"".concat(e," ").concat((0,a.fk)("page",e)," (~").concat(t," ").concat((0,a.fk)("word",t),") Ã ").concat(r)}},u=function(e,t){return function(r){return"".concat(t," ").concat((0,a.fk)("word",t)," (~").concat(e," ").concat((0,a.fk)("page",e)," Ã ").concat(r,")")}};function d(e){var t=e.service,r=e.currency,a=e.isPagesWereCalculatedByWords,d=e.words,f=e.labelWithIcons,p=void 0!==f&&f;
2switch(t.type_id){case o.zv.PROGRESSIVE_DELIVERY:return"Progressive delivery";case o.zv.WRITING_PAGES:return n.createElement(s.wn,{value:t.itemPrice,render:a?u(t.quantity,d):l(t.quantity,d),currency:r});case o.zv.WRITING_SLIDES:return n.createElement(s.wn,{value:t.itemPrice,render:c("slide",t.quantity),currency:r});case o.zv.WRITING_CHARTS:return n.createElement(s.wn,{value:t.itemPrice,render:c("chart",t.quantity),currency:r});case o.zv.COMPLEX_ASSIGNMENT:return"Calculations & Subject Expertise";case o.zv.DISCOUNT:return n.createElement(n.Fragment,null,"Coupon code",n.createElement("div",null,t.title));case o.zv.USED_SOURCES:return"Printable sources";case o.zv.PROGRAMMING:case o.zv.CALCULATIONS:case o.zv.PAPER_LEVEL:case o.zv.LANGUAGE_STYLE:return t.title;case o.zv.SPLIT_PAYMENT:return"Pay in 2";case o.zv.ONLY_OWN_CODE_SOLUTION:return"Code Plagiarism report";case o.zv.TOP_EXPERT:return"Top programming level";case o.zv.WELL_COMMENTED_CODE:return"Well-commented code";case o.zv.PREMIUM_AI_REPORT:return n.createElement(n.Fragment,null,p&&n.createElement(i.A,{size:16})," Premium AI report");default:return"".concat(t.type_id)}}},65253:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,QE:()=>n.A,wr:()=>o.A});var n=r(25461),i=r(22475),o=r(79716);const a=i.A},52e3:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(58165);function i(e){var t=e.price,r=t,i=0,o=0;e.hasSplitPayment&&(!e.firstInstallmentCost?r=i=(0,n.hM)(t/2):e.isPaymentOfSecondPartNeeded?(i=e.firstInstallmentCost,o=e.secondInstallmentCost,t=i):(i=e.firstInstallmentCost,o=e.secondInstallmentCost));return e.hasPayInParts&&(r=i=(0,n.hM)(t/e.payInPartsValue)),{grandTotalCost:t,reviewAndPayCost:r,firstInstallmentCost:i,secondInstallmentCost:o}}},97872:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264);var n=r(14041),i=r(39067),o=r.n(i),a=r(42892),s=r(3492),c=r(75933),l=r(6519),u=r(20069),d=r(91814);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=function(e){var t=e.className,r=e.onChange,i=e.currentValue,o=f((0,n.useState)(void 0),2),p=o[0],h=o[1],m=function(e){var t=e.target.value;r(t)};return n.createElement("div",{className:(0,c.cn)("mx-auto flex max-w-xl",t)},n.createElement("label",{className:(0,c.cn)("group flex cursor-pointer flex-col items-center gap-2 rounded-lg p-2 text-zinc-950 opacity-50 sm:p-6",i===s.$2.BELOW_EXPECTATIONS&&"active bg-bg-subtle opacity-100"),onMouseEnter:function(){return h(s.$2.BELOW_EXPECTATIONS)},onMouseLeave:function(){return h(void 0)}},n.createElement("input",{type:"radio",name:"EVRRate",className:"invisible absolute opacity-0",value:s.$2.BELOW_EXPECTATIONS,onChange:m,checked:i===s.$2.BELOW_EXPECTATIONS}),n.createElement("div",{className:"h-14 w-14","data-testid":"below_expectations_btn"},n.createElement(a.A,{options:{animationData:l,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}},isStopped:i!==s.$2.BELOW_EXPECTATIONS&&p!==s.$2.BELOW_EXPECTATIONS,isClickToPauseDisabled:!0})),n.createElement("p",{className:"w-20 text-center text-sm group-[.active]:font-semibold sm:w-24"},"Below my expectations")),n.createElement("div",{className:"h-px flex-grow
2self-center bg-zinc-200"}),n.createElement("label",{className:(0,c.cn)("group flex cursor-pointer flex-col items-center gap-2 rounded-lg p-2 text-zinc-950 opacity-50 sm:p-6",i===s.$2.AS_EXPECTED&&"active bg-bg-subtle opacity-100"),onMouseEnter:function(){return h(s.$2.AS_EXPECTED)},onMouseLeave:function(){return h(void 0)}},n.createElement("input",{type:"radio",name:"EVRRate",className:"invisible absolute opacity-0",value:s.$2.AS_EXPECTED,onChange:m,checked:i===s.$2.AS_EXPECTED}),n.createElement("div",{className:"h-14 w-14","data-testid":"as_expected_btn"},n.createElement(a.A,{options:{animationData:u,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}},isStopped:i!==s.$2.AS_EXPECTED&&p!==s.$2.AS_EXPECTED,isClickToPauseDisabled:!0})),n.createElement("p",{className:"w-20 text-center text-sm group-[.active]:font-semibold sm:w-24"},"As I expected")),n.createElement("div",{className:"h-px flex-grow self-center bg-zinc-200"}),n.createElement("label",{className:(0,c.cn)("group flex cursor-pointer flex-col items-center gap-2 rounded-lg p-2 text-zinc-950 opacity-50 sm:p-6",i===s.$2.ABOVE_EXPECTATIONS&&"active bg-bg-subtle opacity-100"),onMouseEnter:function(){return h(s.$2.ABOVE_EXPECTATIONS)},onMouseLeave:function(){return h(void 0)}},n.createElement("input",{type:"radio",name:"EVRRate",className:"invisible absolute opacity-0",value:s.$2.ABOVE_EXPECTATIONS,onChange:m,checked:i===s.$2.ABOVE_EXPECTATIONS}),n.createElement("div",{className:"h-14 w-14","data-testid":"above_expectations_btn"},n.createElement(a.A,{options:{animationData:d,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}},isStopped:i!==s.$2.ABOVE_EXPECTATIONS&&p!==s.$2.ABOVE_EXPECTATIONS,isClickToPauseDisabled:!0})),n.createElement("p",{className:"w-20 text-center text-sm group-[.active]:font-semibold sm:w-24"},"Above my expectations")))};h.propTypes={currentValue:o().oneOf([s.$2.BELOW_EXPECTATIONS,s.$2.AS_EXPECTED,s.$2.ABOVE_EXPECTATIONS]),onChange:o().func.isRequired,className:o().string},h.defaultProps={className:void 0,currentValue:void 0};const m=h},63839:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(56460);var n=r(14041),i=r(56351),o=r(6146),a=r(83966),s=r(75933),c=r(87440),l=(0,i.PA)((function(e){var t=e.fileReportStore.aiReportManager,r=t.report,i=t.onHoverOff,l=t.onHoverReliability,u=t.hoveredReliabilityId;return r&&"pending"!==r.status?n.createElement("div",{className:"w-full","data-testid":"aiReportSidebar"},n.createElement("div",{className:"mb-4 flex items-center gap-2"},n.createElement("div",{className:"text-4xl font-bold text-zinc-950"},r.processedPercent,"%"),n.createElement("div",{className:"text-sm font-medium text-zinc-950"},r.processedPercent>0?n.createElement(n.Fragment,null,"Potentially",n.createElement("br",null),"AI generated"):n.createElement(n.Fragment,null,"detected as AI")," ",n.createElement(s.Yl,null,n.createElement(s.B_,null,n.createElement(s.dj,{asChild:!0},n.createElement(o.A,{size:14,className:"inline-flex cursor-pointer text-zinc-500"})),n.createElement(s.MO,{className:"flex w-56 rounded-md border border-zinc-200 bg-white px-4 py-3 text-sm font-normal text-zinc-500 shadow-md",align:"center"},"All AI detection tools have limitations. Highlights suggest where text may look like AI based on writing patterns, though original human work can sometimes resemble those patterns."))))),n.createElement(s.ke,{value:r.processedPercent,indicatorClassName:"bg-primary-700"}),n.createElement("div",{className:"pt-6 text-sm text-zinc-500"},r.processedPercent>0?"Highlighted sentences show higher predictability of words, which can be associated with AI-generated text.":"Based on low predictability of words, the text shows no signs of AI."),r.processedPercent>0&&n.createElement("div",{className:"flex w-full flex-col gap-1 pt-6"},n.createElement("div",{className:(0,s.cn)("flex items-center gap-2 rounded-sm bg-transparent p-1 text-xs font-medium text-zinc-950 transition-all",u===c.g.LIKELY_AI&&"bg-zinc-100"),onMouseEnter:function(){return l(c.g.LIKELY_AI)},onMouseLeave:i},n.createElement(a.A,{size:12,fill:"#FECACA",strokeWidth:0}),n.createElement("span",null,"Likely AI"),n.createElement("span",{className:"ml-auto"},r.likelyPercent.toFixed(2),"%")),n.createElement("div",{className:(0,s.cn)("flex items-center gap-2 rounded-sm bg-transparent p-1 text-xs font-medium text-zinc-950 transition-all",u===c.g.HIGHLY_LIKELY_AI&&"bg-zinc-100"),onMouseEnter:function(){return l(c.g.HIGHLY_LIKELY_AI)},onMouseLeave:i},n.createElement(a.A,{size:12,fill:"#DC2626",strokeWidth:0}),n.createElement("span",null,"Highly likely AI"),n.createElement("span",{className:"ml-auto"},r.strongPercent.toFixed(2),"%")))):null}));const u=(0,i.WQ)("fileReportStore")(l)},32010:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});
2var n=r(14041),i=r(56351),o=r(24289),a=r(87440),s=r(73668),c=(0,i.PA)((function(e){var t=e.orderId,r=e.fileId,i=e.fileReportStore,c=e.userProfileStore,l=i.aiReportManager,u=l.report,d=l.hoveredReliabilityId,f=l.onHoverReliability,p=l.onHoverOff,h=!u||"pending"===u.status;if((0,n.useEffect)((function(){var e;h||(0,o.Fs)({action:"ai_check_open",orderId:t,fileId:r,userId:null==c||null===(e=c.profile)||void 0===e?void 0:e.GAUserId})}),[]),h)return null;var m=(0,s.T)(u.content,u.chunks);return n.createElement("div",{className:"text-sm text-zinc-500"},n.createElement("style",null,(0,s.uu)(a.g.LIKELY_AI),(0,s.uu)(a.g.HIGHLY_LIKELY_AI),d===a.g.LIKELY_AI&&(0,s.Py)(a.g.LIKELY_AI),d===a.g.HIGHLY_LIKELY_AI&&(0,s.Py)(a.g.HIGHLY_LIKELY_AI)),n.createElement("div",{className:"aiReportText word-break-anywhere",dangerouslySetInnerHTML:{__html:m},onMouseOver:function(e){var t=e.target,r=t.closest("[data-reliability-".concat(a.g.LIKELY_AI,"]")),n=t.closest("[data-reliability-".concat(a.g.HIGHLY_LIKELY_AI,"]"));r?f(a.g.LIKELY_AI):n&&f(a.g.HIGHLY_LIKELY_AI)},onMouseOut:function(){return p()}}))}));const l=(0,i.WQ)("fileReportStore","userProfileStore")(c)},87440:(e,t,r)=>{"use strict";r.d(t,{g:()=>n});var n={LIKELY_AI:1,HIGHLY_LIKELY_AI:2}},73668:(e,t,r)=>{"use strict";r.d(t,{Py:()=>u,T:()=>c,uu:()=>l});r(93831),r(98304),r(78366),r(24493),r(21555),r(22892),r(95570),r(84766),r(68450),r(54),r(37210),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(74874),r(23510),r(96152),r(34237),r(85146),r(40890),r(66264);var n=r(87440);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return e.replace(/\n/g,"<br />");var r=o(t).sort((function(e,t){return e.position[0]-t.position[0]})),n=0,a=[];return r.forEach((function(t){var r=i(t.position,2),o=r[0],s=r[1];o>n&&a.push(e.slice(n,o)),a.push("<span data-reliability-".concat(t.reliability,">").concat(e.slice(o,s),"</span>")),n=s})),n<e.length&&a.push(e.slice(n)),a.join("").replace(/\n/g,"<br />")}function l(e){var t=e===n.g.LIKELY_AI?"rgba(254, 202, 202, 0.2)":"rgba(220, 38, 38, 0.15)";return".aiReportText > span { transition: background-color 0.15s ease } .aiReportText [data-reliability-".concat(e,"] { background-color: ").concat(t,"; }")}function u(e){var t=e===n.g.LIKELY_AI?"rgba(254, 202, 202, 0.4)":"rgba(220, 38, 38, 0.35)";return".aiReportText [data-reliability-".concat(e,"] { background-color: ").concat(t,"; }")}},8833:(e,t,r)=>{"use strict";r.d(t,{_:()=>n.A,f:()=>i.A});var n=r(32010),i=r(63839)},24035:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(6146),a=r(75933),s=r(32782),c=(0,i.PA)((function(e){var t=e.fileReportStore.plagiarismReportManager.report;return t?n.createElement("div",{className:"w-full","data-testid":"plagReportSidebar"},n.createElement("div",{className:"mb-4 flex items-center gap-2"},n.createElement("div",{className:"text-4xl font-bold text-zinc-950"},t.percent,"%"),n.createElement("div",{className:"text-sm font-medium text-zinc-950"},"of plagiarism ",n.createElement("br",null),"found"," ",n.createElement(a.Yl,null,n.createElement(a.B_,null,n.createElement(a.dj,{asChild:!0},n.createElement(o.A,{size:14,className:"inline-flex cursor-pointer text-zinc-500"})),n.createElement(a.MO,{className:"flex w-48 rounded-md border border-zinc-200 bg-white px-4 py-3 text-sm font-normal text-zinc-500 shadow-md",align:"center"},"Plagiarism report only contains the percentage of similarities found in the open web sources"))))),n.createElement(a.ke,{value:t.percent,indicatorClassName:"bg-primary-700"}),t.percent>0&&n.createElement("div",{className:"w-full pt-6"},n.createElement(s.j,null))):null}));const l=(0,i.WQ)("fileReportStore")(c)},61758:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(68450),r(25400),r(21555),r(95790),r(30935),r(68291),r(92221),r(17306);
2var n=r(14041),i=r(56351),o=r(24289),a=r(13206);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e){var t=e.id,r=e.color;return".plagReportText > span { transition: background-color 0.15s ease } .plagReportText [data-source-".concat(t,"] { background-color: ").concat(r," }")}var l=(0,i.PA)((function(e){var t=e.orderId,r=e.fileId,i=e.fileReportStore,l=e.userProfileStore,u=i.plagiarismReportManager,d=u.report,f=u.checkedSourcesById,p=u.hoveredSourcesIds,h=u.onHoverOnSource,m=u.onHoverOffSource;if((0,n.useEffect)((function(){var e;d&&(0,o.Fs)({action:"plag_check_open",orderId:t,fileId:r,userId:null==l||null===(e=l.profile)||void 0===e?void 0:e.GAUserId})}),[]),!d)return null;var y=d.sourcesIds.filter((function(e){return f[e]})),v=y.map((function(e){return{id:e,color:(0,a.Xe)(d.sourcesById[e].sourceTypeId)}})),g=p.filter((function(e){return y.includes(e)})).map((function(e){return{id:e,color:(0,a.HN)(d.sourcesById[e].sourceTypeId)}}));return n.createElement("div",{className:"plagReportText word-break-anywhere text-sm text-zinc-500","data-testid":"plagReportText"},n.createElement("style",null,v.map(c),g.map(c)),d.nodes.map((function(e,t){var r=e.text,i=e.sourceIds;return n.createElement("span",s({onMouseEnter:function(){return h(i)},onMouseLeave:m,key:t,dangerouslySetInnerHTML:{__html:r}},(0,a.W4)(i)))})))}));const u=(0,i.WQ)("fileReportStore","userProfileStore")(l)},54303:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(30935),r(68291);var n=r(14041),i=r(56351),o=r(19902),a=r(75933),s=r(25498),c=(0,i.PA)((function(e){var t=e.id,r=e.fileReportStore.plagiarismReportManager,i=r.report,c=r.checkedSourcesById,l=r.onSourceChange,u=r.hoveredSourcesIds,d=r.onHoverOnSource,f=r.onHoverOffSource;if(!i)return null;var p=i.sourcesById[t],h=p.title,m=p.percent,y=p.url,v=p.sourceTypeId===s.Ld;function g(){return n.createElement("span",{className:"flex items-center gap-1 truncate text-xs text-zinc-500",title:y},m&&n.createElement("span",{className:"font-medium text-red-600"},m,"%"),n.createElement("span",{className:"truncate"},h))}var b=c[t],E=u.includes(t);return n.createElement("div",{className:(0,a.cn)("flex items-center rounded-sm bg-transparent p-1 transition-all",E&&b&&"bg-zinc-100"),onMouseEnter:function(){return d([t])},onMouseLeave:f},v?n.createElement(a.Sc,{label:g(),onCheckedChange:function(e){return l(t,e)},checked:b,size:"sm",className:"items-center truncate [&>span:first-child]:truncate"}):g(),y&&n.createElement("a",{className:"group ml-auto pl-1",href:y,title:y,target:"_blank",rel:"nofollow noopener noreferrer"},n.createElement(o.A,{size:14,className:"text-zinc-500 opacity-50 group-hover:opacity-100"})))}));const l=(0,i.WQ)("fileReportStore")(c)},24665:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(14041),i=r(56351),o=r(75933),a=r(25498),s="All sources",c="Citations",l="References",u=(0,i.PA)((function(e){var t=e.id,r=e.fileReportStore.plagiarismReportManager,i=r.report,u=r.checkedGroupsById,d=r.onGroupChange;if(!i)return null;var f,p=i.sourceTypesById[t].title,h=t===a.Ld;switch(t){case a.Ld:f=s;break;case a.gE:f=c;break;case a.qI:f=l;break;default:f=p}function m(){return n.createElement("div",{className:"text-sm font-medium text-zinc-950"},f)}return h?n.createElement("div",{className:"mb-3 border-b-[1px] border-solid border-zinc-200 pb-3","data-testid":"plagSourceTypeTitleWithCheckbox"},n.createElement(o.Sc,{label:m(),onCheckedChange:function(e){return d(t,e)},checked:u[t],size:"sm",className:"items-center"})):n.createElement("div",{className:"mb-3 border-b-[1px] border-solid border-zinc-200 pb-3","data-testid":"plagSourceTypeTitle"},m())}));const d=(0,i.WQ)("fileReportStore")(u)},26196:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(95790);var n=r(14041),i=r(56351),o=r(24665),a=r(54303),s=(0,i.PA)((function(e){var t=e.fileReportStore.plagiarismReportManager.report;return t?n.createElement(n.Fragment,null,n.createElement("div",{className:"pb-4 text-base font-bold text-zinc-800"},"Sources found"),n.createElement("div",{className:"flex max-h-80 flex-col gap-6 overflow-y-auto"},t.sourceTypesIds.map((function(e){var r=t.sourceTypesById[e],i=r.id,s=r.sourcesIds;return 0===s.length?null:n.createElement("div",{key:i,"data-testid":"sourcesGroup"},n.createElement(o.A,{id:i}),n.createElement("div",{className:"flex flex-col gap-1"},s.map((function(e){return n.createElement(a.A,{key:e,id:e})}))))}
vendor: 5,846 bytes, line 2
2)))):null}));const c=(0,i.WQ)("fileReportStore")(s)},32782:(e,t,r)=>{"use strict";r.d(t,{j:()=>n.A});var n=r(26196)},25498:(e,t,r)=>{"use strict";r.d(t,{Ld:()=>n,gE:()=>o,qI:()=>i});var n=999,i=9999,o=99999},13206:(e,t,r)=>{"use strict";r.d(t,{HN:()=>a,W4:()=>i,Xe:()=>o});r(96104),r(21555);var n=r(25498);function i(e){return e.reduce((function(e,t){return e["data-source-".concat(t)]=!0,e}),{})}function o(e){return e===n.Ld?"rgba(220, 38, 38, 0.1)":"rgba(5, 173, 163, 0.1)"}function a(e){return e===n.Ld?"rgba(220, 38, 38, 0.3)":"rgba(5, 173, 163, 0.3)"}},57279:(e,t,r)=>{"use strict";r.d(t,{F:()=>i.A,W:()=>n.A});var n=r(61758),i=r(24035)},13368:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});r(30935),r(68291),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264),r(5858),r(59161),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(22892),r(11823),r(86940),r(17626);var n=r(14041),i=r(56351),o=r(24289),a=r(3492),s=r(75933),c=r(57279),l=r(8833);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(){d=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};l(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,s){var c=p(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==u(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(u(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=l(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),l(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),l(x,c,"Generator"),l(x,a,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
vendor: 4,108 bytes, line 2
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function f(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var m=(0,i.PA)((function(e){var t=e.orderId,r=e.fileId,i=e.onError,u=e.initialActiveReport,h=e.fileReportStore,m=e.userProfileStore,y=[a.w4.PLAGIARISM_REPORT,a.w4.AI_REPORT].includes(u)?u:a.w4.PLAGIARISM_REPORT,v=p(n.useState(y),2),g=v[0],b=v[1],E=h.plagiarismReportManager,w=h.aiReportManager,S=h.isLoading,A=null==E?void 0:E.report,_=null==w?void 0:w.report,x=null!==_&&"done"===_.status,P=function(){var e,t=(e=d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.getReports(r,i);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){f(o,n,i,a,s,"next",e)}function s(e){f(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,n.useEffect)((function(){return P(),function(){h.reset()}}),[]),(0,n.useEffect)((function(){var e;S||(0,o.Fs)({action:"reports_open",status:null===_?"ai_check_fal
2se":"ai_check_".concat(_.status),orderId:t,fileId:r,userId:null==m||null===(e=m.profile)||void 0===e?void 0:e.GAUserId})}),[S]),S?n.createElement("div",{className:"py-6"},n.createElement(s.x7,{enabled:!0})):A?n.createElement(s.tU,{defaultValue:y,onValueChange:b,className:"flex flex-col gap-6 pt-6 md:grid md:grid-cols-[1fr_300px] md:grid-rows-[auto_1fr]"},n.createElement(s.j7,{className:"flex flex-col md:col-[1/2] md:row-[1/2] md:flex-row"},n.createElement(s.Xi,{value:a.w4.PLAGIARISM_REPORT,className:"flex w-full flex-col items-start justify-start gap-1.5 py-2 text-left md:px-3"},n.createElement("div",{className:"text-base font-medium"},"Plagiarism report"),n.createElement("div",{className:"text-xs font-normal"},(null==A?void 0:A.percent)||0,"% of plagiarism found")),x&&n.createElement(s.Xi,{value:a.w4.AI_REPORT,className:"flex w-full flex-col items-start justify-start gap-1.5 py-2 text-left md:px-3"},n.createElement("div",{className:"flex items-center gap-2 text-base font-medium"},"AI report"),n.createElement("div",{className:"text-xs font-normal"},"".concat((null==_?void 0:_.processedPercent)||0,"% Potentially AI generated")))),n.createElement("div",{className:"md:col-[2/3] md:row-[1/3]"},n.createElement("div",{className:"flex w-full rounded-lg bg-bg-subtle p-6 md:sticky md:top-0"},g===a.w4.PLAGIARISM_REPORT?n.createElement(n.Fragment,null,n.createElement(c.F,null)):n.createElement(n.Fragment,null,n.createElement(l.f,null)))),n.createElement("div",{className:"md:col-[1/2] md:row-[2/3]"},n.createElement(s.av,{value:a.w4.PLAGIARISM_REPORT},n.createElement(c.W,{onRetry:P,orderId:t,fileId:r})),x&&n.createElement(s.av,{value:a.w4.AI_REPORT},n.createElement(l._,{orderId:t,fileId:r})))):n.createElement("div",{className:"flex justify-center py-4"},n.createElement(s.$n,{variant:"secondary",onClick:P},"Retry"))}));const y=(0,i.WQ)("fileReportStore","userProfileStore")(m)},96047:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(21555),r(5858);var n=r(14041),i=r(56351),o=r(8030),a=r(9870),s=r.n(a),c=r(75933),l=r(58165),u=r(3492),d=u.gG.MAX_UPLOADING_FILE_SIZE,f=u.gG.MAX_UPLOADING_FILE_SIZE_FOR_CUSTOMWRITINGS,p=(0,i.PA)((function(e){var t=e.orderId,r=e.configsStore,i=e.notificationsStore,a=r.configs,u=r.isCustomWritingsCom,p=a.siteFullName;return n.createElement(c.Fc,{color:"error",icon:o.A,title:n.createElement(n.Fragment,null,"Canât upload files larger than"," ",u?s()(f):s()(d),"."),description:n.createElement(n.Fragment,null,"Please e-mail the file to"," ",n.createElement("a",{href:"mailto:info@".concat(p.toLowerCase()),className:"font-normal text-current underline hover:no-underline"},"info@",p.toLowerCase())," ","indicating the"," ",n.createElement(c.$n,{variant:"linkDestructive",onClick:function(){return e=t,(0,l.lW)((function(){return Promise.resolve(e)})).then((function(){i.pushNotification({title:"Order id copied to clipboard",view:"success",closeButton:!1})})).catch((function(){i.pushNotification({title:"Failed to copy order id",view:"error",closeButton:!1})}));var e},title:"Copy order id",className:"font-normal underline decoration-dotted underline-offset-auto hover:no-underline"},"Order ID"),"."),className:"mt-4"})}));const h=(0,i.WQ)("configsStore","notificationsStore")(p)},23059:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(99180),r(68450),r(25400),r(21555),r(95790),r(30935),r(68291),r(79683),r(69399);var n=r(14041),i=r(56351),o=r(75933),a=r(3492),s=r(97872);var c=function(){},l=(0,i.PA)((function(e){var t=e.orderApproveStore,r=e.orderId,i=e.dialogsStore,l=e.onCancel,u=void 0===l?c:l,d=e.onStartApprove,f=void 0===d?c:d,p=e.onSuccessfulApprove,h=void 0===p?c:p;(0,n.useEffect)((function(){return t.init({orderId:r}),function(){return t.reset()}}),[]);var m=t.formManager,y=m.formValues,v=m.formErrors,g=m.errorHiglightableKeys,b=m.submitting,E=t.reasons,w=t.isLargeOrder,S=function(e){switch(e){case a.$2.BELOW_EXPECTATIONS:return"What was wrong?";case a.$2.AS_EXPECTED:return"What do you like about your order?";case a.$2.ABOVE_EXPECTATIONS:return"What has impressed you?";default:return}}(y.rate);return n.createElement(o.x7,{enabled:Boolean(b)},n.createElement("form",{onSubmit:function(e){return e.preventDefault(),f(),t.startApprove(r).then((function(e){var t=e.showTipsDialog;h(),t&&i.pushDialog(a.g5.MODAL_TIPS,{orderId:r})})).catch((function(){}))},className:"mt-4"},n.createElement(o.Fc,{description:"By approving your order, you confirm that you have no complaints about your writerâs work and will no longer be eligible for a full refund.",color:"warning"}),n.createElement(o.Fc,{className:"mt-2",description:"You can request a revision within the revision deadline. In case you receive your professor's feedback later, upload it, and weâll revise your paper even if the revision deadline is over.",color:"info"}),n.createElement("p",{className:"mb-6 mt-6 font-semibold"},"How was your experience while using our service?",w&&" Share your feedback to approve an order that exceeds 30 double-spaced pages or equivalent."),n.createElement(o.BG,{error:v.rate,show:g.rate,className:"mb-6"},n.createElement(s.A,{currentValue:y.rate,onChange:function(e){t.formManager.setValue("rate",Number(e))}})),n.createElement(o.BG,{error:v.rateReasonsIds,show:g.rateReasonsIds},S&&n.createElement("p",{className:"mb-4 font-semibold"},S),E&&E.map((function(e){return n.createElement(o.Sc,{className:"mb-4",key:e.id,checked:y.rateReasonsIds.includes(e.id),onCheckedChange:function(r){return function(e,r){var n=t.formManager,i=t.formManager.formValues.rateReasonsIds;n.setValue("rateReasonsIds",e?i.concat(r):i.filter((function(e){return e!==r})))}(r,e.id)},label:e.description,testId:"feedback_checkbox"})}))),y.rate&&n.createElement(o.BG,{error:v.commentText,show:g.commentText},n.createElement("p",{className:"mb-4 mt-6 font-semibold"},"Comments"),n.createElement(o.TM,{rows:5,"data-testid":"order_approve_feedback_txt",className:"mb-6",value:y.commentText,onChange:function(e){t.formManager.setValue("commentText",e.target.value)},placeholder:y.rate===a.$2.BELOW_EXPECTATIONS?"Describe your problem briefly":"Your feedback helps us become better"})),n.createElement("p",{className:"border-t pb-4 pt-6 text-sm text-text-muted"},"Please note that you can only use our materials for assistance purposes"),n.createElement(o.Es,null,
2n.createElement(o.$n,{variant:"outline",onClick:u,"data-testid":"closeButton"},"Close"),n.createElement(o.$n,{type:"submit","data-testid":"approveButton",disabled:w&&!y.rate},"Approve"))))}));const u=(0,i.WQ)("orderApproveStore","dialogsStore")(l)},26580:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(75933),a=r(58165),s=(0,i.PA)((function(e){var t=e.orderApprovePartStore,r=e.orderId,i=e.fileId,s=e.onSuccessfulApprove,c=e.onCancel;(0,n.useEffect)((function(){return t.init({orderId:r,fileId:i}),function(){return t.reset()}}),[]);var l=t.formManager,u=t.options,d=t.currentOption,f=l.formValues,p=l.formErrors,h=l.errorHiglightableKeys,m=l.submitting,y=l.otherErrorsList;return n.createElement("div",{className:"pt-2 sm:pt-4"},n.createElement(o.x7,{enabled:Boolean(m)},n.createElement(o.to,{errors:y}),n.createElement("div",{className:"pb-6 text-sm font-medium","data-testid":"dialogApprovePartText"},"Your comments and further instructions. Please clarify if we should continue with the next part of your order now or if we should wait for your feedback first"),n.createElement("div",{className:"pb-6","data-testid":"dialogApprovePartFeedbackOptions"},n.createElement(o.z6,{variant:"solid",onChange:function(e){t.formManager.setValue("commentType",e)},options:u,value:f.commentType})),n.createElement("div",{className:"pb-2"},n.createElement(o.BG,{error:p.comment,show:h.comment},n.createElement(o.TM,{"data-testid":"dialogApprovePartComment",value:f.comment,onFocus:function(){t.formManager.startInteraction("comment")},onBlur:function(){t.formManager.finishInteraction("comment")},onChange:function(e){t.formManager.setValue("comment",e.target.value)},placeholder:d.placeholder,rows:5}))),n.createElement(o.Es,null,n.createElement(o.$n,{"data-testid":"cancelAcceptPartButton",variant:"outline",onClick:c},"Close"),n.createElement(o.$n,{"data-testid":"acceptPartButton",onClick:function(){return t.approvePart().then(s).catch((function(){(0,a.oL)()}))}},"I accept"))))}));const c=(0,i.WQ)("orderApprovePartStore")(s)},66979:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});r(59161),r(11823),r(17306),r(42411),r(86940),r(69008),r(13849),r(83040),r(48851),r(96656),r(94356),r(45993),r(85146),r(93831),r(11505),r(99180),r(25400),r(21555),r(95790),r(84766),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510);var n,i=r(14041),o=r(39067),a=r.n(o),s=r(56351),c=r(19578),l=r(3455),u=r(3492),d=r(58165),f=r(75933),p=r(84831),h=r(29410),m=r(47500);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A(n.key),n)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}(this,r)}}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function S(e,t,r){return(t=A(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===y(t)?t:String(t)}var _=(0,s.PA)((n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(a,e);var t,r,n,o=b(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
2(this,a),S(E(t=o.call(this,e)),"showUploadDialog",(function(){t.props.dialogsStore.pushDialog(u.g5.MODAL_ORDER_UPLOAD_FILES,{orderId:t.getOrderId()})})),S(E(t),"showPlagAIReportDialog",(function(e){var r=e.id,n=e.name;t.props.dialogsStore.pushDialog(u.g5.MODAL_PLAG_AI_REPORT,{fileId:r,fileName:n,orderId:t.getOrderId()})})),S(E(t),"handleDownloadBegan",(function(e,r){t.props.orderFilesStore.markFileAsDownloaded(e.id),e.id===r.latestFile.id&&r.setLatestFileIsDownloaded()})),S(E(t),"handleSourceDownloadBegan",(function(e){t.props.orderFilesStore.markSourceAsDownloaded(e)})),t.state={showPlagReportButton:!1},t}return t=a,(r=[{key:"componentDidMount",value:function(){var e=this.props.orderFilesStore,t=this.getOrderStore();e.loadOrderFiles().catch((function(){})),t.areSourcesRequired&&e.loadOrderSources().catch((function(){})),t.orderServiceTypeId!==u.B5.PROGRAMMING&&t.orderServiceTypeId!==u.B5.CALCULATIONS&&this.setState({showPlagReportButton:!0})}},{key:"getOrderId",value:function(){var e=this.props.match;return Number(e.params.orderId)}},{key:"getOrderStore",value:function(){return this.props.ordersStore.getOrderStore(this.getOrderId())}},{key:"render",value:function(){var e=this,t=this.props,r=t.orderFilesStore,n=t.userProfileStore,o=this.state.showPlagReportButton,a=n.profile,s=r.siteFiles,y=r.customerFiles,v=r.originalOrderFiles,g=r.sources,b=r.isLoadingFiles,E=this.getOrderStore(),w=v.filter((function(e){return e.fileTypeId===u.a0.SELECTED_FILE_FOR_PAID_REVISION})),S=y.length+w.length;return i.createElement(i.Fragment,null,E.isRequestRevisionAvailable&&i.createElement("div",{className:"border-b px-4 py-2 lg:px-6"},i.createElement("div",{className:"rounded-lg bg-bg-subtle p-4 lg:p-6"},i.createElement("div",{className:"mb-2 text-base font-semibold"},"Check the files below"),i.createElement("div",{className:""},"Need edits? Get them for free within 14 days or once youâve got your professor's feedback! Click \"",i.createElement("strong",null,"Request revision"),'" to proceed.'))),i.createElement(f.x7,{enabled:b,className:"flex-auto lg:flex"},i.createElement("div",{className:"border-b p-6 lg:w-1/2 lg:border-b-0 lg:border-r"},i.createElement("div",{className:"mb-6 flex items-start justify-between gap-2"},i.createElement("span",{className:"text-base font-semibold","data-testid":"fileDetails-title"},"Files uploaded by ",a.siteFullName," "),i.createElement(f.Ex,{"data-testid":"fileDetails-count"},s.length," ",(0,d.fk)("file",s.length))),i.createElement("div",{className:"flex flex-col gap-3"},s&&s.length>0&&s.map((function(t,r){return i.createElement(i.Fragment,{key:t.id},0!==r&&i.createElement(f.wv,null),i.createElement(p.A,{file:t,timeForFreeRevision:E.timeForFreeRevision,onDownloadBegan:function(){return e.handleDownloadBegan(t,E)},onShowPlagReportDialog:function(){return e.showPlagAIReportDialog(t)},showPlagReportButton:o}))})),(!s||0===s.length)&&!b&&i.createElement("div",{className:"lg:my-28","data-testid":"no-files-message"},i.createElement(f.L5,{size:"lg",icon:c.A,className:"mx-auto"}),i.createElement("div",{className:"my-2 text-center font-medium"},"No files yet"),i.createElement("div",{className:"mx-auto max-w-80 text-center text-xs"},"As soon as the writer completes the paper, it will be attached here for your review and approval."))),g&&(g.available?i.createElement(h.A,{sources:g.files.slice(),orderId:E.id,onDownloadBegin:this.handleSourceDownloadBegan}):i.createElement(f.Fc,{title:g.message,className:"mt-6"}))),i.createElement("div",{className:"p-6 lg:w-1/2"},i.createElement("div",{className:"mb-6 flex items-start justify-between gap-2"},i.createElement("div",{className:"text-base font-semibold","data-testid":"fileDetails-uploads-title"},"Your uploads"),i.createElement(f.Ex,{"data-testid":"fileDetails-uploads-count"},S," ",(0,d.fk)("file",S))),i.createElement("div",{className:"flex flex-col gap-3"},w.map((function(e){return i.createElement(i.Fragment,{key:e.id},i.createElement(m.A,{file:e}),i.createElement(f.wv,null))})),y.map((function(e){return i.createElement(i.Fragment,{key:e.id},i.createElement(m.A,{file:e,onDelete:E.statusId===u.Th.FINISHED?void 0:function(){return r.deleteFile(e.id).catch((function(){}))},isBeingDeleted:r.beingDeletedById.get(e.id)}),i.createElement(f.wv,null))})),0===S&&!b&&i.createElement(f.Fc,{title:"There are no files uploaded by you","data-testid":"fileDetails-uploads-message",action:function(){return i.createElement(f.$n,{variant:"outline",onClick:e.showU
2ploadDialog,"data-testid":"uploadFileButton"},i.createElement(l.A,{size:20}),"Upload file")}})),S>0&&i.createElement(f.$n,{variant:"outline",onClick:this.showUploadDialog,"data-testid":"uploadFileButton",className:"mt-3"},i.createElement(l.A,{size:20}),"Upload file"))))}}])&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.Component),S(n,"propTypes",{match:a().shape({params:a().object.isRequired}).isRequired,ordersStore:a().shape({getOrderStore:a().func.isRequired}).isRequired,userProfileStore:a().shape({profile:a().object.isRequired}).isRequired,orderFilesStore:a().shape({loadOrderFiles:a().func.isRequired,loadOrderSources:a().func.isRequired,deleteFile:a().func.isRequired,markFileAsDownloaded:a().func.isRequired,isLoadingFiles:a().bool.isRequired,markSourceAsDownloaded:a().func.isRequired,siteFiles:a().array,customerFiles:a().array,originalOrderFiles:a().array,sources:a().object,beingDeletedById:s.By.observableMap}).isRequired,dialogsStore:a().shape({pushDialog:a().func.isRequired,closeDialog:a().func.isRequired}).isRequired}),n));const x=(0,s.WQ)("ordersStore","userProfileStore","orderFilesStore","dialogsStore")(_)},47500:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(85146);var n=r(14041),i=r(77602),o=r(58165),a=r(75933);const s=function(e){var t=e.file,r=e.onDelete,s=e.isBeingDeleted,c=void 0!==s&&s;return n.createElement(a.x7,{enabled:!0===c,size:"sm",className:"flex items-center gap-4"},n.createElement("a",{className:"flex min-w-0 flex-auto items-start gap-4 text-inherit",href:t.downloadLink,title:"Download ".concat(t.name),download:!0},n.createElement(a.oS,{fileName:t.name}),n.createElement("div",{className:"grow truncate"},n.createElement("div",{className:"truncate text-sm font-medium"},t.name),n.createElement("div",{className:"mt-1.5 flex flex-wrap justify-between gap-1 whitespace-normal text-xs text-text-muted"},n.createElement("div",null,(0,o.qF)(t.createdAt))))),r&&n.createElement(a.$n,{variant:"outline",size:"icon",onClick:r,className:"shrink-0"},n.createElement(i.A,{size:16})))}},84831:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(85146);var n=r(14041),i=r(48702),o=r(9326),a=r(4089),s=r(75933),c=r(58165),l=function(){};const u=function(e){var t=e.file,r=e.timeForFreeRevision,u=e.showPlagReportButton,d=e.onShowPlagReportDialog,f=void 0===d?l:d,p=e.onDownloadBegan;return n.createElement("div",{className:"flex gap-4 pt-1.5"},n.createElement(s.oS,{fileName:t.name,fallbackFileExtension:"doc",className:"shrink-0 self-start"}),n.createElement("div",{className:"-mt-1.5 flex grow flex-col gap-1.5 truncate"},n.createElement("div",{className:"flex items-center justify-between gap-2"},n.createElement("div",{className:"truncate text-sm font-medium","data-testid":"fileDetails-name"},t.name),t.hasPlagiarismReport&&n.createElement(s.Ex,{variant:"soft",color:"blue",size:"sm"},n.createElement(i.A,{size:12}),"Originality verified")),n.createElement("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs text-text-muted"}
2,t.words&&n.createElement("div",{"data-testid":"orderDetailsFilesFile__body__additional_info"},t.words," ",(0,c.fk)("word",t.words)),n.createElement("div",{"data-testid":"fileDetails-date"},(0,c.qF)(t.approvedAt||t.createdAt))),(!!t.actionLabel||!!r)&&n.createElement("div",{className:"whitespace-normal pt-0.5"},n.createElement(s.Fc,{color:"default",description:n.createElement("div",{className:"flex flex-col gap-2"},t.actionLabel&&n.createElement("div",{"data-testid":"fileDetails-description"},t.actionLabel),r&&n.createElement("div",{"data-testid":"fileDetails-freeRevisionTime"},"Time for free revision:"," ",n.createElement("span",{className:"font-medium"},r)))})),n.createElement("div",{className:"whitespace-normal empty:hidden"},t.isPaymentOfSecondPartNeeded&&n.createElement(s.Fc,{color:"warning","data-testid":"paySecondInstallmentWarning",description:"Preview the finished paper here. If you like it, pay the second installment and download the file to your device. If you need any edits, request a free revision."}),t.isPaymentOfMainPartNeeded&&n.createElement(s.Fc,{color:"warning",description:"Preview the finished essay here. If you like it, pay the Paper price and download the file to your device. If you donât like it, contact our support."})),n.createElement("div",{className:"mt-2 grid grid-cols-1 gap-2 md:grid-cols-2"},t.downloadButtonVisible&&n.createElement(s.$n,{className:"grow","data-testid":"filesDownloadButton",onClick:p,title:t.name,variant:t.isNew?"primary":"outline",asChild:!0},n.createElement("a",{href:t.downloadLink,download:!0},n.createElement(o.A,{size:16}),"original"===t.fileType?"Download file":"Download preview")),u&&t.hasPlagiarismReport&&n.createElement(s.$n,{className:"w-full",variant:"outline",onClick:f,disabled:!t.hasPlagiarismReport,"data-testid":"plagiarismReportButton",id:"plagiarismReportButton-orderDetailsFilesFIle"},n.createElement(a.A,{size:16}),"Plagiarism & AI report"))))}},23522:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(85146),r(79683),r(69399),r(68450);var n=r(14041),i=r(9326),o=r(75933),a=r(58165);const s=function(e){var t=e.source,r=t.id,s=t.name,c=t.description,l=t.createdAt,u=t.isNew,d=e.onDownloadBegin;return n.createElement("div",{className:"flex gap-4"},n.createElement(o.oS,{fileName:s,className:"shrink-0 self-start"}),n.createElement("div",{className:"flex grow flex-col gap-1.5 truncate"},n.createElement("div",{className:"truncate font-semibold"},s),n.createElement("div",{className:"flex flex-wrap items-center justify-between gap-1 whitespace-normal text-xs text-text-muted"},n.createElement("div",null,"Description: ",n.createElement("strong",null,c)),n.createElement("div",null,(0,a.qF)(l))),n.createElement("div",{className:"flex flex-wrap gap-2"},n.createElement(o.$n,{size:"sm",variant:u?"primary":"outline",onClick:function(){return d(r)},className:"grow",asChild:!0},n.createElement("a",{href:"/api/dl/".concat(r,"/").concat(s),title:s,download:!0},n.createElement(i.A,{size:16}),"Download file")))))}},29410:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(24493),r(21555),r(22892),r(95790);var n=r(14041),i=r(9326),o=r(10484),a=r(80888),s=r(75933),c=r(23522);const l=function(e){var t=e.orderId,r=e.sources,l=e.onDownloadBegin;return n.createElement(a.bL,{className:"group mt-3 border-t pt-6",defaultOpen:1===r.length},n.createElement("div",{className:"flex items-center"},n.createElement(a.l9,{className:"flex-1 text-left font-semibold"},"Printable sources"),n.createElement(s.$n,{variant:"outline",onClick:function(e){e.stopPropagation(),window.location="/api/dl_all_sources/".concat(t),r.forEach((function(e){var t=e.id;return l(t)}))}},n.createElement(i.A,{size:20}),"Download all"),n.createElement(a.l9,{asChild:!0},n.createElement(s.$n,{variant:"ghost",size:"icon",className:"ml-1.5"},n.createElement(o.A,{size:"16",className:"transition-transform group-[[data-state='open']]:rotate-180"})))),n.createElement(a.UC,null,n.createElement("div",{className:"mt-4 flex flex-col gap-3 rounded-lg border p-6"},r.map((function(e,t){return n.createElement(n.Fragment,{key:e.id},0!==t&&n.createElement(s.wv,null),n.createElement(c.A,{source:e,onDownloadBegin:l}))})))))}},72533:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(95790),r(85146);var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=r(96047),c=(0,i.PA)((function(e){var t=e.onCancel,r=e.onSuccess,i=e.orderId,c=e.configsStore,l=e.ordersStore,u=e.orderFilesStore,d=u.f
2ilesManager,f=c.isIOSapp,p=l.getOrderStore(i),h=p.status||p.statusId;(0,n.useEffect)((function(){return function(){d.dispose(),d.reset()}}),[]);var m=d.files.map((function(e){return n.createElement(a.Zu,{key:e.instanceId,onClickRemove:function(){return d.removeFile(e.instanceId)},name:e.name,size:e.blob&&e.blob.size,uploadError:e.uploadError,progressTotal:e.progressTotal,progressLoaded:e.progressLoaded,isUploading:void 0!==e.uploadingPromise,blob:e.blob})}));return n.createElement("div",{className:"pt-4 text-zinc-950"},function(e,t){var r=t?"revision policy":n.createElement("a",{href:"/revisions-policy.html",rel:"nofollow noopener noreferrer",target:"_blank"},"Revision Policy");switch(e){case o.Th.FAKE:case o.Th.CONFIRMATION_PENDING:case o.Th.FREE_INQUIRY:case o.Th.INQUIRY:case o.Th.REPLY_PENDING:case o.Th.INQUERY_PUBLISHED:case o.Th.INQUERY_WRITER_ACCEPTED:return n.createElement("p",null,"Feel free to upload any materials you consider necessary for the writer. We will review them and contact you shortly. Please, include the detailed explanation of what you are going to upload into the field below.");case o.Th.DISPUTE:return n.createElement("p",null,"Here you can upload documents that support your claim for a refund.");case o.Th.WRITER_ASSIGNED:case o.Th.DONE:case o.Th.REVISION:return n.createElement("p",null,"The writer is currently working on your order. To avoid any misunderstandings all of the uploaded files will be checked by one of our support operators.");case o.Th.WRITER_ACCEPTED:return n.createElement("p",null,"No writer is yet assigned to your order. If you have any additional materials, please upload them as soon as possible and include the detailed explanation of what you are going to upload into the field below.");case o.Th.CANCELLED:return n.createElement("p",null,"Your order has been canceled.");case o.Th.FINISHED:return n.createElement("p",null,"Your order has been completed and approved.");case o.Th.DELIVERED:return n.createElement("p",null,"Your order has been completed. If you would like a revision, please review our"," ",r," before uploading your comments.");case o.Th.NEW_PAID:case o.Th.ORDER_PUBLISHED:return n.createElement("p",null,"Your order is not assigned to the writer yet. If you have any additional materials, please upload them as soon as possible and include the detailed explanation of what you are going to upload into the field below.");default:return n.createElement("p",null,"The writer is currently working on your order. To avoid any misunderstandings all of the uploaded files will be checked by one of our support operators.")}}(h,f),n.createElement(a.qj,{filesElements:m,onPickFiles:function(e){return d.addFiles(e)},className:"mt-6"}),(null==d?void 0:d.isSomeFileExceededSizeLimit)&&n.createElement(s.A,{orderId:i}),d.pendingFilesCount>0&&n.createElement("p",{className:"mt-6 text-sm text-text-muted"},"By clicking âUploadâ you confirm that these files donât contain any any personal information and donât contradict with your initial paper instructions."),d.pendingFilesCount>0&&n.createElement(a.Es,null,n.createElement(a.$n,{variant:"outline",onClick:t},"Cancel"),n.createElement(a.$n,{onClick:function(){return d.startUploadingFiles().then((function(){return r()})).then((function(){return d.reset()})).then((function(){return u.loadOrderFiles()})).catch((function(){}))}},"Upload")))}));const l=(0,i.WQ)("configsStore","ordersStore","orderFilesStore")(c)},73378:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(79683),r(69399);var n=r(14041),i=r(56351),o=r(75933);const a=(0,i.PA)((function(e){var t=e.requestRefundStore,r=e.checkedKey,i=e.commentKey,a=e.title,s=e.description,c=e.className;return n.createElement("div",{className:c},n.createElement(o.Sc,{checked:t.formManager.formValues[r],onCheckedChange:function(e){return t.formManager.setValue(r,e)},label:a}),t.formManager.formValues[r]&&n.createElement("div",{className:"pt-2 md:pl-6"},n.createElement("div",{className:"mb-2 text-xs text-zinc-500 dark:text-zinc-50"},s),n.createElement(o.TM,{onChange:function(e){return t.formManager.setValue(i,e.target.value)},value:t.formManager.formValues[i],placeholder:"Provide details for a dispute manager",rows:6})))}))},17506:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(25400),r(21555),r(95790),r(85146),r(79683),r(69399);var n=r(14041),i=r(56351),o=r(75933),a=r(3492),s=r(58165),c=r(73378),l=r(88918),u=r(96047),d=l,f=(0,i.PA)((function(e){var t=e.requestRefundStore,r=e.notificationsStore,i=e.orderId,l=e.isFullRefundAllowed,f=e.isPartialRefundAllowed,p=e.isProfessorsFeedbackRefundAllowed,h=e.onDone,m=t.filesManager,y=[{id:a._i.FULL_REFUND,title:"I am completely dissatisfied with the quality of the paper, so I have decided to write it myself. I request a full refund.",description:"Up to 100% could be refunded. The paper we completed is immediately published online for commercial purposes.* You will then have 14 days to provide strong reasons and examples to back up your claim. You could also upload a copy of your own version of the paper.",disabled:!l},{id:a._i.PARTIAL_REFUND,title:" I am not fully satisfied with the quality of the paper. However, I accept it and will revise it myself. I request a partial refund.",description:"Up to 40% could be refunded. You are provided with the MS Word version of the paper. You have 14 days to provide strong reasons and examples to back up your claim, or your own revised version of our paper.",disabled:!f},{id:a._i.PROFESSORS_FEEDBACK_REFUND,title:"I'm not satisfied with the order after receiving my professor's feedback and would like to request a refund.",description:"Our dispute manager will review the case and address all your concerns while ensuring the best possible outcome. Please upload your professors' feedback so we can assist you further. We appreciate your patience as we work to resolve this matter.",disabled:!p}];(0,n.useEffect)((function(){t.init(i);var e=y.filter((function(e){return!e.disabled}));return 1===e.length&&t.formManager.setValue("refundType",e[0].id),function(){t.clear(),m.dispose(),m.reset()}}),[]);if(!t.formManager)return null;var v=m.files.map((function(e){return n.createElement(o.Zu,{key:e.instanceId,onClickRemove:function(){return m.removeFile(e.instanceId)},onRetry:function(){return m.uploadFile(e.instanceId)},name:e.name,size:e.blob&&e.blob.size,uploadError:e.uploadError,progressTotal:e.progressTotal,progressLoaded:e.progressLoaded,isUploading:void 0!==e.uploadingPromise,blob:e.blob,alertColor:"warning"})})),g=t.formManager,b=g.formValues,E=g.submitting,w=g.formAttemptsToSubmitCount,S=g.formErrors,A=g.errorHiglightableKeys,_=g.otherErrorsList,x=t.charactersLeftCount;return n.createElement(o.x7,{enabled:void 0!==E},n.createElement("form",{onSubmit:function(e){return e.preventDefault(),t.startRefund().then((function(){h(),r.pushNotification({title:"Refund request sent",view:"success"})})).catch((function(){(0,s.oL)()}))}},n.createElement(o.BG,{error:S.refundType,show:A.refundType},n.createElement(o.z6,{variant:"soft",onChange:function(e){t.formManager.setValue("refundType",e)},options:y,value:b.refundType})),n.createElement(o.wv,{className:"my-4"}),n.createElement(o.Fc,{color:"info",description:n.createElement(n.Fragment,null,"You have to write at least 300 characters",x>0?" (".concat(x," left) "):" ","in the selected section, in order to request a dispute.")}),n.createElement("div",{className:"my-4"},n.createElement(o.to,{errors:w>0?_:[],className:"mb-2"}),d.map((function(e){var r=e.checkedKey,i=e.commentKey,o=e.title,a=e.description;return n.createElement(c.A,{className:"mb-2",key:r+i,checkedKey:r,commentKey:i,title:o,description:a,requestRefundStore:t})}))),n.createElement(o.wv,null),n.createElement("div",{className:"my-4"},n.createElement("div",{"data-testid":"additionalMaterialsLabel",className:"mb-1 text-base font-medium text-zinc-950 dark:text-zinc-50"},"Upload files"),n.createElement("div",{className:"mb-1.5 text-sm text-zinc-500 dark:text-zinc-300"},b.refundType===a._i.PROFESSORS_FEEDBACK_REFUND?"Donât forget to upload a file with professorâs feedback":"Donât forget to upload additional materials if there are any"),n.createElement(o.BG,{error:S.uploadedFilesIds,show:A.uploadedFilesIds},n.createElement(o.qj,{filesElements:v,onPickFiles:function(e){return m.addFiles(e)}}))),(null==m?void 0:m.isSomeFileExceededSizeLimit)&&n.createElement(u.A,{orderId:i}),"fullRefund"===b.refundType&&0===b.uploadedFilesIds.length&&n.createElement(n.Fragment,null,n.createElement(o.wv,null),n.createElement(o.Fc,{description:n.createElement(n.Fragment,null,n.createElement("div",{className:"mb-4"}
vendor: 4,181 bytes, line 2
2,"In case of a full refund the Company reserves a right to publish the paper online for commercial purposes. We do not keep any kind of essay databases and âpublish onlineâ means that, if the paper is googled or checked by any kind of anti-plagiarism software, it will link back to our website. It may also be published as content or as a sample essay. This is done to protect our writerâs work in cases when Customer claims for refund after the work has been already completed."),n.createElement("div",null,"For such types of services as editing, rewriting, proofreading, CV, cover letter, or resume, your paper will not be published on-line since it may contain your personal information."))})),n.createElement(o.Es,{className:"mt-8"},n.createElement(o.$n,{variant:"outline",onClick:function(){h()}},"Cancel"),n.createElement(o.$n,{type:"submit"},"Request refund"))))}));const p=(0,i.WQ)("requestRefundStore","notificationsStore")(f)},26064:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,IJ:()=>i.A,KU:()=>s.A,RI:()=>a.A,W9:()=>c.A,bF:()=>o.A});var n=r(66979),i=r(23059),o=r(26580),a=r(72533),s=r(17506),c=r(13368);const l=n.A},74367:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});r(21555),r(5858),r(37210),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264),r(59161),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(22892),r(11823),r(86940),r(17626);var n=r(14041),i=r(56351),o=r(14724),a=r(24289),s=r(58165),c=r(75933);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(){u=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,s){var c=p(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);
vendor: 4,558 bytes, line 2
2if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(l(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,c,"Generator"),d(x,a,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}
2finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=(0,i.PA)((function(e){var t=e.formStore,r=e.notificationsStore,i=f((0,n.useState)(!1),2),l=i[0],p=i[1];function h(){var e;return e=u().mark((function e(){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,a.WH)("copy-form-url-click"),p(!1),e.prev=2,n=function(){return new Promise((function(e,r){t.shortenFormUrl().then((function(e){return null==e?void 0:e.shortUrl})).then(e).catch(r)}))},e.next=6,(0,s.lW)((function(){return n()}));case 6:r.pushNotification({title:"Form URL is copied to clipboard",view:"success"}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),r.pushNotification({title:"Unable to copy URL, please try again",view:"error"});case 12:case"end":return e.stop()}}),e,null,[[2,9]])})),h=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){d(o,n,i,a,s,"next",e)}function s(e){d(o,n,i,a,s,"throw",e)}a(void 0)}))},h.apply(this,arguments)}return n.createElement("div",{"data-testid":"CopyFormUrlBlock"},n.createElement(c.Yl,null,n.createElement(c.B_,{open:l,onOpenChange:function(e){return p(e)}},n.createElement(c.dj,{asChild:!0},n.createElement(c.$n,{variant:"ghost",size:"icon","aria-label":"Open menu","data-testid":"CopyFormUrl-menu-button"},n.createElement(o.A,{size:20,className:"text-zinc-900"}))),n.createElement(c.MO,{className:"flex flex-col rounded-md border border-zinc-200 bg-white shadow-md outline-none dark:border-slate-800 dark:bg-slate-950",align:"end",sideOffset:0},n.createElement(c.$n,{variant:"ghost",onClick:function(){return h.apply(this,arguments)},"data-testid":"CopyFormUrl-action-button"},"Copy form URL")))))}));const m=(0,i.WQ)("notificationsStore")(h)},91837:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(75933),a=r(3492),s=r(17266),c=(0,i.PA)((function(e){var t=e.orderformStore,r=e.orderformValues;return(0,n.useEffect)((function(){return t.configure({initialValues:r,purpose:a.UU.NEW_INQUIRY}).catch((function(){})),function(){return t.reset()}}),[]),t.isLoading?n.createElement(o.x7,{enabled:!0,fullScreen:!0}):n.createElement(s.Ay,null)}));const l=(0,i.WQ)("orderformStore")(c)},78854:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(95790),r(25400),r(21555),r(99180);var n=r(14041),i=r(56351),o=r(88706),a=r(6146),s=r(54392),c=r(9511),l=r(3492),u=r(75933),d=r(65253),f=(0,i.PA)((function(e){var t=e.orderformStore,r=t.isAcademicWritingForm,i=t.activeServices,f=t.formManager,p=t.currency,h=t.discount,m=t.isDiscountInfoVisible,y=t.freeInvoiceServiceTitle,v=t.totalCost,g=t.cost.firstInstallmentCost,b=void 0===g?0:g,E=t.isPagesWereCalculatedByWords;return i&&0!==i.length?n.createElement("div",{className:"flex flex-col gap-2 rounded-md border border-zinc-200 p-4 text-sm","data-testid":"Invoice"},i.filter((function(e){return e.type_id!==l.zv.DISCOUNT})).map((function(e){return n.createElement(d.QE,{key:e.type_id,service:e,spacing:f.formValues[l.ks.SPACING],words:f.formValues[l.ks.WORDS_QTY],isPagesWereCalculatedByWords:E,rowClassName:"flex items-center justify-between gap-4",labelClassName:"word-break-anywhere text-zinc-500 gap-1.5 flex items-center",valueClassName:"text-base font-semibold text-zinc-950",labelWithIcons:!0,currency:p})})),Boolean(h)&&n.createElement("div",{className:"flex items-center justify-between gap-4"},n.createElement("div",{className:"flex items-center gap-1.5 text-zinc-500"},n.createElement(o.A,{size:16}
2),"Coupon",m&&n.createElement(u.AM,null,n.createElement(u.Wv,null,n.createElement(a.A,{size:13,className:"text-zinc-500"})),n.createElement(u.hl,{side:"top",sideOffset:0,className:"text-sm"},n.createElement("div",{"data-testid":"Invoice-discountPopover"},"We charge the minimum fixed amount to cover our fees. The coupon covers the rest of the sum.")))),n.createElement(u.wn,{className:"text-base font-semibold text-emerald-700",value:Number(h),currency:p})),r&&n.createElement("div",{className:"flex items-center justify-between gap-4"},n.createElement("div",{className:"flex items-center gap-1.5 text-zinc-500"},n.createElement(s.A,{size:16}),"Basic Plagiarism & AI Report"),n.createElement(u.Ex,{color:"green",size:"md",variant:"soft"},"Free")),y&&n.createElement("div",{className:"flex items-center justify-between gap-4"},n.createElement("div",{className:"flex items-center gap-1.5 text-zinc-500"},n.createElement(c.A,{size:16}),y),n.createElement(u.Ex,{color:"green",size:"md",variant:"soft"},"Free")),n.createElement(u.wv,null),v>0&&n.createElement("div",{className:"flex items-center justify-between gap-4"},n.createElement("div",{className:"text-zinc-500"},"Total price"),n.createElement("div",{className:"Invoice__price-wrapper"},n.createElement("div",{className:(0,u.cn)("text-base font-normal text-zinc-950",0===b&&"text-lg font-semibold"),"data-testid":"Invoice-totalPrice"},n.createElement(u.wn,{value:v,currency:p})))),b>0&&n.createElement("div",{className:"flex items-center justify-between gap-4"},n.createElement("div",{className:"text-base font-semibold text-zinc-950"},"First installment"),n.createElement("div",{className:"text-base font-semibold text-zinc-950","data-testid":"Invoice-firstInstallment"},n.createElement(u.wn,{value:b,currency:p})))):null}));const p=(0,i.WQ)("orderformStore")(f)},94869:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(78527),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264);var n=r(14041),i=r(43144),o=r(56351),a=r(41076),s=r(8823);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=(0,o.PA)((function(e){var t=e.orderformStore,r=c((0,n.useState)(!0),2),o=r[0],l=r[1],u=c((0,n.useState)(!0),2),d=u[0],f=u[1];function p(){document.body.classList.remove("scrollLocking"),document.documentElement.classList.remove("scrollLocking")}function h(){l(!0)}function m(){l(!1)}function y(){f(!0)}(0,n.useEffect)((function(){return o?p():(document.body.classList.add("scrollLocking"),document.documentElement.classList.add("scrollLocking")),function(){o||p()}}),[o]),(0,n.useEffect)((function(){d||setTimeout(y,350)}),[d]);var v=t.isNewOrderForm?1:0;return 0===t.notificationsManager.activeNotifications.length+v?null:i.createPortal(n.createElement("div",{"data-testid":"ModalSheet",className:"GlobalComponent"},d&&!o&&n.createElement("div",{role:"presentation","data-testid":"ModalSheet-Backdrop",className:"fixed bottom-0 left-0 right-0 top-0 z-[18] bg-black/60",onClick:h}),n.createElement(a.A,{"data-testid":"ModalSheet-Sheet",style:{position:"relative",zIndex:"19"},isOpen:d,onClose:function(){f(!1)},onCloseEnd:h,detent:"content-height",disableScrollLocking:!0},n.createElement(a.A.Container,{"data-testid":"ModalSheet-Container",style:{backgroundColor:"#fff",boxShadow:"0 -5px 60px 0 rgba(38, 89, 115, 0.11), 0 -1px 0 rgba(38, 89, 115, 0.05)",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",borderTop:"1px solid rgba(#000, 0.12)",position:"fixed",zIndex:"19"}},n.createElement(a.A.Header,{"data-testid":"ModalSheet-Header",style:{height:"30px"},onTap:function(){d&&o&&m()}}),n.createElement(a.A.Content,{"data-testid":"ModalSheet-Content",style:{padding:"8px 24px"}},n.createElement(a.A.Scroller,{"data-testid":"ModalSheet-Scroller",draggableAt:"both"},n.createElement(s.A,{isCollapsed:o,onClickNotificationTitle:m,onAction:h}
2)))))),document.body)}));const d=(0,o.WQ)("orderformStore")(u)},14370:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(80888),o=r(75933),a=r(3492);function s(e){switch(e){case a.ls.WARNING:return"outline";case a.ls.DANGER:return"destructive";case a.ls.INFO:case a.ls.PRIMARY:default:return"primary"}}const c=function(e){var t=e.type,r=e.title,c=e.text,l=e.primaryButton,u=e.secondaryButton,d=e.isOpen,f=void 0===d||d,p=e.onClickTitle,h=void 0===p?function(){}:p,m=e.onAction,y=e.cardClassName,v=e.titleClassName,g=e.textClassName;return n.createElement(i.bL,{"data-testid":"NotificationCard",open:f,className:(0,o.cn)("rounded-md bg-[#FBFBFB] px-6 py-1 data-[state=closed]:py-0 sm:py-2",t===a.ls.PRIMARY&&"bg-[#EFF6FF]",t===a.ls.WARNING&&"bg-[#FEF2CB]",t===a.ls.DANGER&&"bg-[#FDF7F7]",y)},n.createElement(o.$n,{"data-testid":"NotificationCard-title",variant:"link",className:(0,o.cn)("relative w-full justify-start !py-2 text-left text-sm font-bold text-zinc-950 no-underline hover:no-underline",t===a.ls.WARNING&&"text-yellow-700",t===a.ls.DANGER&&"text-red-600",v),onClick:h},r),n.createElement(i.UC,{"data-testid":"NotificationCard-content",className:"box-border overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down"},c&&n.createElement("div",{"data-testid":"NotificationCard-text",className:(0,o.cn)("pb-1 pt-2 text-sm font-normal text-zinc-950 sm:pt-3",g)},c),(l||u)&&n.createElement("div",{"data-testid":"NotificationCard-buttons",className:"mt-2 flex flex-col gap-2 py-2"},l&&n.createElement(o.$n,{"data-testid":"NotificationCard-primaryButton",className:"w-full",size:"sm",variant:s(t),onClick:function(){l.onClick(),m&&m()}},l.text),u&&n.createElement(o.$n,{"data-testid":"NotificationCard-secondaryButton",className:"w-full",size:"sm",variant:t===a.ls.DANGER?"ghostDestructive":"outline",onClick:function(){u.onClick(),m&&m()}},u.text))))}},35377:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(14041),i=r(56351),o=r(75933),a=r(30567),s=r(55758),c=r(90668),l=r(20767),u=r(94869),d=(0,i.PA)((function(e){var t=e.userProfileStore.isBanned,r=e.configsStore.isOrderPlacingProhibited,i=(0,a.U)("only screen and (min-width: 641px)");return n.createElement(o.x7,{enabled:t||r,showSpinner:!1,transparencyLevel:"hard"},n.createElement("div",{"data-testid":"OrderForm",className:"sm:mx-auto sm:max-w-[960px]"},n.createElement("div",{"data-testid":"OrderForm-header",className:"px-1 pb-4 pt-1 sm:px-0 sm:pb-6"},n.createElement(s.A,null)),n.createElement("div",{"data-testid":"OrderForm-body",className:"sm:grid sm:grid-cols-[2fr_1fr] sm:gap-8"},n.createElement("div",{"data-testid":"OrderForm-form",className:"sm:min-w-0"},n.createElement(c.A,null)),i?n.createElement("div",{"data-testid":"OrderForm-sidebar"},n.createElement(l.A,null)):n.createElement(n.Fragment,null,n.createElement(u.A,null)))))}));const f=(0,i.WQ)("userProfileStore","configsStore")(d)},90668:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});r(59161),r(48851),r(96656),r(94356),r(45993),r(23510),r(96152),r(21555),r(34237),r(95790),r(85028),r(58948),r(79683),r(69399),r(66264),r(99180);var n,i=r(14041),o=r(56351),a=r(3492),s=r(75933),c=r(24242),l=r(19567),u=r(25062),d=r(79582),f=r(587),p=r(2007),h=r(99544),m=r(36905),y=r(50304),v=r(31117),g=r(63368);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function E(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=(E(n={},a.gj.STEP_ORDER_SERVICE_TYPE,c.A),E(n,a.gj.STEP_DEADLINE,l.A),E(n,a.gj.STEP_INQUIRY_DETAILS,g.A),E(n,a.gj.STEP_ACADEMIC_DETAILS,y.A),E(n,a.gj.STEP_ACADEMIC_CUSTOMIZATION,v.A),E(n,a.gj.STEP_PROGRAMMING_REQUIREMENTS,u.A),E(n,a.gj.STEP_CALCULATIONS_REQUIREMENTS,d.A),E(n,a.gj.STEP_PROGRAMMING_EXTRAS,p.A),E(n,a.gj.STEP_TASK_SIZE,f.A),E(n,a.gj.STEP_ACCOUNT,h.A),E(n,a.gj.STEP_SUMMARY,m.A),n),S=(0,o.PA)((function(e){var t=e.orderformStore,r=t.stepsManager,n=t.isSubmitting;return i.createElement("div",{className:"rounded bg-white"},i.createElement(s.x7,{enabled:n},i.createElement(s.nD,{value:r.activeStepId.toString(),type:"single",onValueChange:function(e){r.setActiveStepId(e)},collapsible:!r.isOnlyOrderServiceTypeStepDisplayed,className:"rounded-lg border border-zinc-200 bg-white"},r.availableSteps.map((function(e){var t=w[e.id];return i.createElement(t,{key:e.id,step:e})})))))}));const A=(0,o.WQ)("orderformStore")(S)},55758:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(75933),a=r(74367),s=(0,i.PA)((function(e){var t=e.orderformStore;return n.createElement("div",{className:"flex items-center justify-between"},n.createElement(o.sT,null,t.orderFormTitle,t.isInquiryForm&&n.createElement("div",{className:"text-sm font-normal normal-case text-zinc-500"},"Share your order details and have an expert assigned to your task before you pay")),t.isCopyFormUrlBlockDisplayed&&n.createElement(n.Fragment,null,n.createElement(a.A,{formStore:t})))}));const c=(0,i.WQ)("orderformStore")(s)},79051:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});
2r(9098),r(93831),r(98304),r(1569),r(21555),r(85146),r(37210),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(74874),r(40890),r(66264);var n=r(14041),i=r(56351),o=r(24289),a=r(3492),s=r(14370);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u="assignExpertHint",d=(0,i.PA)((function(e){var t,r=e.orderformStore,i=r.formManager,l=r.experiencedWritersForCurrentOrderServiceType,d=r.currentOrderServiceTypeId,f=r.isAcademicWritingForm,p=e.isOpen,h=e.onClickTitle,m=void 0===h?function(){}:h,y=e.onAction,v=void 0===y?function(){}:y,g=c((0,n.useState)(!0),2),b=g[0],E=g[1],w=(0,n.useRef)(!1),S=l[0],A=null===(t=S.assignedOrders.find((function(e){return e.orderServiceTypeId===d})))||void 0===t?void 0:t.lastOrderDisciplineTitle,_=f?"writer":"specialist";(0,n.useEffect)((function(){w.current||(o.TQ.viewPromotion({promotion_name:u}),w.current=!0)}),[]);var x;return b?n.createElement(s.A,{type:a.ls.PRIMARY,title:"Want to assign your previous ".concat(_,"?"),text:n.createElement(n.Fragment,null,n.createElement("span",{className:"font-bold"},S.name," (#",S.id,")")," ","worked on your"," ",n.createElement("span",{className:"font-bold"},A&&(x=A,x.replace(/\s*\([^)]*\)/g,"").trim()))," ","order. Do you want to assign this ",_,"?"),isOpen:p,onClickTitle:m,onAction:v,primaryButton:{text:"Assign ".concat(S.name),onClick:function(){var e;e=S.id,i.setValue(a.ks.REQUESTED_WRITER,e),o.TQ.selectPromotion({promotion_name:u}),E(!1)}},secondaryButton:{text:"No, thank you.",onClick:function(){o.TQ.closePromotion({promotion_name:u}),E(!1)}}}):null}));const f=(0,i.WQ)("orderformStore")(d)},68945:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});r(78527),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264),r(85028),r(58948),r(99180),r(59161);var n=r(14041),i=r(56351),o=r(70161),a=r(75933),s=r(3492),c=r(14370),l=r(32948);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=function(e,t,r){r(Math.floor(Math.random()*(t-e+1))+e)},m=(0,i.PA)((function(e){var t,r,i=e.orderformStore,u=i.currentOrderServiceTypeId,p=i.stepsManager,m=e.isOpen,y=e.onClickTitle,v=void 0===y?function(){}:y,g=e.onAction,b=void 0===g?function(){}:g,E=f((0,n.useState)(!1),2),w=E[0],S=E[1],A=f((0,n.useState)(0),2),_=A[0],x=A[1],P=f((0,n.useState)(0),2),I=P[0],k=P[1],O=f((0,n.useState)(0),2),T=O[0],C=O[1],R=null!==(r=(d(t={},s.B5.CALCULATIONS,T),d(t,s.B5.PROGRAMMING,I),d(t,s.B5.ACADEMIC_WRITING,_),t)[u])&&void 0!==r?r:_,N=null,L=p.activeStepId===s.gj.STEP_SUMMARY;return(0,n.useEffect)((function(){h(302,352,x),h(91,132,k),h(80,113,C)}),[]),(0,n.useEffect)((function(){return L&&(S(!0),N=setTimeout((function(){S(!1)}),1200)),function(){N&&clearTimeout(N)}}),[p.activeStepId]),n.createElement(c.A,{type:s.ls.PRIMARY,cardClassName:"bg-white border-zinc-200 border px-2",textClassName:"sm:pb-0 sm:pt-2",title:n.createElement("span",{className:"flex items-center gap-1.5 pl-4 text-blue-600"},n.createElement(o.A,{size:18}),"Experts online"),text:n.createElement("div",{className:"relative flex flex-col gap-4 roun
2ded-md bg-[#FAFBFC] p-4 text-base"},w&&n.createElement("div",{className:"min-h-28"},n.createElement(a.y$,{position:"center",size:"sm"})),!w&&!L&&n.createElement(n.Fragment,null,n.createElement("div",null,R," experts can take your order now. Go on and place it!"),n.createElement("img",{src:l,width:176,height:36,alt:"writers online"}),n.createElement("div",{className:"text-sm"},"Average rating: ",n.createElement("span",{className:"font-semibold"},"4.8/5"))),!w&&L&&n.createElement(n.Fragment,null,n.createElement("div",null,"Weâre looking for a writer already",n.createElement("div",{className:"pt-2 text-sm text-[#71717A]"},"Youâre almost done! Take one last step and proceed with payment.")),n.createElement("img",{src:l,width:176,height:36,alt:"writers online"}))),isOpen:m,onClickTitle:v,onAction:b})}));const y=(0,i.WQ)("orderformStore")(m)},8823:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(95790),r(92221),r(17306);var n=r(14041),i=r(56351),o=r(14370),a=r(68945),s=r(79051);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}var l=(0,i.PA)((function(e){var t=e.orderformStore,r=t.notificationsManager,i=t.isNewOrderForm,l=t.experiencedWritersForCurrentOrderServiceType,u=e.userProfileStore,d=e.isCollapsed,f=void 0!==d&&d,p=e.onClickNotificationTitle,h=void 0===p?function(){}:p,m=e.onAction,y=void 0===m?function(){}:m,v=u.isUpdatingWriters,g=l.length>0;return n.createElement("div",{"data-testid":"OrderFormNotifications",className:"GlobalComponent"},n.createElement("div",{className:"flex flex-col gap-2 sm:gap-6"},i&&void 0===v&&!g&&n.createElement(n.Fragment,null,n.createElement(a.A,{isOpen:!f,onClickTitle:h,onAction:y})),i&&void 0===v&&g&&n.createElement(n.Fragment,null,n.createElement(s.A,{isOpen:!f,onClickTitle:h,onAction:y})),r.activeNotifications.map((function(e){return n.createElement(o.A,c({key:e.id},e.props,{isOpen:!f,onClickTitle:h,onAction:y}))}))))}));const u=(0,i.WQ)("orderformStore","userProfileStore")(l)},20767:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(14041),i=r(8823);const o=function(){return n.createElement("div",{className:"sm:sticky sm:top-4"},n.createElement(i.A,null))}},78052:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(14041),i=r(56351),o=r(90981),a=r(7248),s=r(3492),c=r(75933),l=(0,i.PA)((function(e){var t=e.descriptor,r=e.orderformStore,i=r.formManager,l=r.filesUploadedCount;return n.createElement(n.Fragment,null,n.createElement("strong",{className:"font-medium"},t),n.createElement("div",{className:"mt-1 flex flex-wrap gap-2"},(i.formValues[s.ks.PAPER_INSTRUCTIONS]||i.formValues[s.ks.TOPIC])&&n.createElement(c.Ex,{color:"green",size:"md",variant:"soft"},n.createElement(o.A,{size:14})," Instructions added"),l>0&&n.createElement(c.Ex,{color:"green",size:"md",variant:"soft"},n.createElement(a.A,{size:14})," ",l," file",l>1&&"s"," ","attached")))}));const u=(0,i.WQ)("orderformStore")(l)},64063:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(14041),i=r(56351),o=r(3492),a=r(65002),s=r(88706),c=r(69985),l=r(75933),u=(0,i.PA)((function(e){var t=e.descriptor,r=e.orderformStore,i=r.formManager,u=r.discount,d=r.isAcademicWritingForm;return n.createElement(n.Fragment,null,t&&n.createElement("strong",{className:"font-medium"},t),n.createElement("div",{className:"mt-1 flex flex-wrap gap-2"},i.formValues[o.ks.SPLIT_PAYMENT]&&n.createElement(l.Ex,{color:"green",size:"md",variant:"soft"},n.createElement(a.A,{size:14}),"Pay in 2"),i.formValues[o.ks.PAY_IN_PARTS_SWITCH]&&n.createElement(l.Ex,{color:"green",size:"md",variant:"soft"},n.createElement(a.A,{size:14}),"Pay in parts"),Boolean(u)&&n.createElement(l.Ex,{color:"green",size:"md",variant:"soft"},n.createElement(s.A,{size:14}),"Coupon applied"),d&&n.createElement(l.Ex,{color:"green",size:"md",variant:"soft"},n.createElement(c.A,{size:14}),"Free Basic Plagiarism & AI Report")))}));const d=(0,i.WQ)("orderformStore")(u)},17456:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(32817),a=r(3492),s=r(75933),c=(0,i.PA)((function(e){var t=e.dialogsStore,r=e.className;return n.createElement(s.JU,{text:n.createElement("div",{className:"flex items-center gap-1"},"Instructions",n.createElement(o.A,{size:16,onClick:function(){t.pushDialog(a.g5.MODAL_HOW_TO_GET_THE_BEST_RESULTS)},"aria-label":"Info",className:"shrink-0 cursor-pointer text-zinc-500"})),className:r})}));const l=(0,i.WQ)("dialogsStore")(c)},50057:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(78527);var n=r(14041),i=r(56351),o=r(9511),a=r(52484),s=r(3492),c=r(75933),l=r(17610);function u(e){return n.createElement("strong",{className:"font-medium"},e)}const d=(0,i.PA)((function(e){var t=e.children,r=e.title,i=e.subt
2itle,d=e.renderDescriptor,f=void 0===d?u:d,p=e.step,h=e.icon,m=e.testId,y=p.id,v=p.isCollapsible,g=p.descriptor,b=p.validationStatus,E=p.isActive,w=p.isSkipped,S=p.isSubtitleVisible,A=(0,n.useRef)(null);(0,n.useEffect)((function(){return function(){A.current&&clearTimeout(A.current)}}),[]);var _=v?c.Fk:"div";return n.createElement(c.As,{"data-testid":m,className:"group last:border-b-0 focus-within:border-b-zinc-200 focus-within:ring-0 hover:bg-transparent",value:y,ref:function(e){return p.setStepRef(e)}},n.createElement(_,{className:(0,c.cn)("flex w-full items-center justify-start gap-4 px-4 py-3.5 text-left text-sm text-zinc-950 md:px-6",b===s.qr.WARNING&&"bg-yellow-50",b===s.qr.ERROR&&"bg-red-50",v&&"cursor-pointer"),onClick:function(){A.current=setTimeout((function(){p.scrollIntoView()}),220)}},n.createElement("div",{className:"w-6 shrink-0"},n.createElement(l.A,{step:p,icon:h})),n.createElement("div",{className:"grow-1"},n.createElement("div",{className:(0,c.cn)("flex flex-wrap items-center gap-2 font-normal text-zinc-950",g&&"text-zinc-500",E&&"text-zinc-950")},r,w&&n.createElement(c.Ex,{variant:"soft",color:"yellow",size:"md",className:(0,c.cn)("shrink",b===s.qr.WARNING&&"bg-yellow-100")},n.createElement(o.A,{size:14,className:"shrink-0"}),"Step skipped. Default settings applied.")),S&&E&&n.createElement("div",{className:"font-normal text-zinc-500"},i),!E&&n.createElement("div",{className:"word-break-anywhere text-base"},(f||u)(g))),n.createElement("div",{className:"ml-auto pl-3 text-center"},v&&n.createElement(a.A,{className:"text-zinc-900 transition-transform duration-200 group-data-[state=open]:rotate-90",size:16}))),n.createElement(c.ub,{className:"pb-4 pt-3 transition-opacity data-[state=closed]:animate-slide-up data-[state=open]:animate-slide-down md:pl-12 md:pr-4"},t))}))},40894:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(52160),a=r(73214),s=r(75933),c=(0,i.PA)((function(e){var t=e.validationStatus,r=e.orderformStore.stepsManager;return void 0!==t?n.createElement(s.$n,{className:"w-full",size:"lg",onClick:r.goToSummaryStep,"data-testid":"DoneStep-button"},n.createElement(o.A,{size:20}),"Done"):n.createElement(s.$n,{className:"w-full",size:"lg",onClick:r.goToNextStep,"data-testid":"NextStep-button"},"Next step",n.createElement(a.A,{size:20}))}));const l=(0,i.WQ)("orderformStore")(c)},81682:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14041);function i(e){var t=e.text;return n.createElement("div",{className:"relative my-2 h-px bg-zinc-200"},n.createElement("span",{className:"absolute -top-2 start-1/2 -translate-x-1/2 whitespace-nowrap bg-white px-2 text-center text-xs uppercase leading-5 tracking-widest text-zinc-500"},t))}},17610:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(14041),i=r(56351),o=r(52160),a=r(21161),s=r(3492),c=r(75933);function l(e){var t=e.number,r=e.isActive,i=void 0!==r&&r;return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24"},n.createElement("circle",{cx:"12",cy:"12",r:"12",fill:i?"#0073E6":"#FAFBFC"}),n.createElement("text",{x:"12",y:"13",textAnchor:"middle",alignmentBaseline:"middle",dominantBaseline:"middle",fill:i?"#FFF":"#09090b",className:(0,c.cn)("text-xs text-zinc-950",i&&"text-white")},t))}const u=(0,i.PA)((function(e){var t=e.step,r=t.number,i=t.validationStatus,u=t.isActive,d=e.icon;return d?n.createElement(d,{size:16,className:(0,c.cn)("m-1 text-zinc-900",s.qr.SUCCESS===i&&"text-emerald-700",s.qr.WARNING===i&&"text-yellow-700",s.qr.ERROR===i&&"text-red-600",u&&"text-blue-600")}):u?n.createElement(l,{number:r,isActive:!0}):i===s.qr.SUCCESS?n.createElement(o.A,{size:16,className:"m-1 text-emerald-700"}):i===s.qr.ERROR?n.createElement(a.A,{size:16,className:"m-1 text-red-600"}):i===s.qr.WARNING?n.createElement(a.A,{size:16,className:"m-1 text-yellow-700"}):n.createElement(l,{number:r})}))},12717:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});
2var n=r(14041),i=r(7890),o=r(75933),a=(0,i.F)("",{variants:{size:{s:"pb-4",m:"pb-6"}},defaultVariants:{size:"m"}});const s=function(e){var t=e.size,r=e.className,i=e.children;return n.createElement("div",{className:(0,o.cn)(a({size:t}),r)},i)}},30013:(e,t,r)=>{"use strict";r.d(t,{FA:()=>l.A,ei:()=>o.A,el:()=>c.A,h4:()=>i.A,k_:()=>s.A,kl:()=>a.A,pn:()=>n.A});var n=r(50057),i=r(12717),o=r(81682),a=r(40894),s=r(78052),c=r(17456),l=r(64063)},31117:(e,t,r)=>{"use strict";r.d(t,{A:()=>P});r(96152);var n=r(14041),i=r(56351),o=r(93718),a=r.n(o),s=r(6146),c=r(3492),l=r(75933),u=r(30013),d=r(86100),f=r(85939),p=r(43553),h=r(66441),m=r(51791),y=r(77574),v=r(82621),g=r(13098),b=r(16468),E=r(7823),w=r(49330),S=r(49432),A=r(7848),_=r(61861),x=(0,i.PA)((function(e){var t=e.step,r=e.orderformStore,i=r.formManager,o=r.filesProbablyMissing,x=r.slidesValueProbablyMissing,P=r.chartsValueProbablyMissing,I=r.canRequestWriter,k=r.isWriterSelected,O=r.isControlsTriggered,T=r.deadlineDate,C=e.orderFormTipsStore,R=C.topTip,N=C.advancedTip,L=C.proficientTip,D=C.sourcesTip,M=C.calculationsTip,F=e.configsStore.isAcademicWritingSiteForPaidTraffic,j=O[c.ks.PAPER_FORMAT],B=O[c.ks.SOURCES_QTY];return n.createElement(u.pn,{step:t,title:"Order customization",subtitle:"Specify all the essential details of your paper",renderDescriptor:function(e){return n.createElement(u.k_,{descriptor:e})}},n.createElement(u.h4,null,n.createElement(l.JU,{className:"mb-1.5",text:F?"Time you have":"Deadline",info:n.createElement(l.Ex,{variant:"outline",size:"sm"},"Delivered before ",a()(new Date(T),"mmm dS, h:MM TT"))}),n.createElement(v.A,null)),n.createElement(u.h4,null,n.createElement(u.el,{className:"mb-1.5"}),n.createElement(d.A,{placeholder:"⢠Write what's important for the writer to consider to meet your expectations;\n⢠Include class notes, textbook pages, and grading scales;\n⢠Attach tables or charts as files; they can't be pasted here."})),o&&n.createElement(u.h4,null,n.createElement(l.Fc,{icon:function(){return n.createElement(s.A,{size:20})},description:"Please, do not forget to upload additional materials",color:"info"})),(P||x)&&n.createElement(u.h4,null,n.createElement(l.Fc,{icon:function(){return n.createElement(s.A,{size:20})},description:"If you need slides or charts, add them on the previous step.",color:"info"})),j&&n.createElement(u.h4,null,n.createElement(l.JU,{className:"mb-1.5",text:"Paper format"}),n.createElement(b.A,null)),B&&n.createElement(u.h4,null,n.createElement(l.JU,{className:"mb-1.5",text:"Number of sources"}),n.createElement(E.A,null)),!F&&n.createElement(n.Fragment,null,(!j||!B)&&n.createElement(u.h4,{className:"flex flex-wrap gap-4"},!j&&n.createElement(w.A,null),!B&&n.createElement(S.A,null)),n.createElement(u.h4,null,n.createElement(u.ei,{text:"Advanced customisation"})),I&&n.createElement(u.h4,null,n.createElement(l.JU,{text:n.createElement("div",{className:"flex items-center gap-1"},"Your previous specialist"," ",n.createElement(l.Ex,{size:"sm",variant:"soft",color:"green"},"Trusted quality")),description:"Choose the specialist youâve worked with before",className:"mb-1.5"}),n.createElement(f.A,null)),n.createElement(u.h4,null,k&&n.createElement(l.Fc,{icon:function(){return n.createElement(s.A,{size:20})},className:"mb-1 md:mb-2",description:"Weâve applied the Paper level and Language Style which may be best delivered by this writer",color:"info"}),n.createElement(l.JU,{className:"mb-1.5",text:"Paper level"}),!k&&N&&n.createElement(g.A,{tip:N,className:"mb-1 lg:mb-2"}),!k&&R&&n.createElement(g.A,{tip:R,className:"mb-1 lg:mb-2"}),n.createElement(p.A,null)),n.createElement(u.h4,null,n.createElement(l.JU,{className:"mb-1.5",text:"Language style"}),!k&&L&&n.createElement(g.A,{tip:L,className:"mb-1 lg:mb-2"}),n.createElement(h.A,null)),n.createElement(u.h4,null,n.createElement(l.JU,{className:"mb-1.5",text:"Additional services"}),D&&n.createElement(g.A,{tip:D,className:"mb-1 lg:mb-2"}),M&&n.createElement(g.A,{tip:M,className:"mb-1 lg:mb-2"}),i.formAvailableKeysById[c.ks.PREMIUM_AI_REPORT]&&n.createElement("div",{className:"mb-1.5 lg:mb-3"},n.createElement(A.A,null)),i.formAvailableKeysById[c.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE]&&n.createElement("div",{className:"mb-1.5 lg:mb-3"},n.createElement(_.A,null)),n.createElement("div",{className:"mb-1.5 lg:mb-3"},n.createElement(m.A,null)),n.createElement(y.A,null))),n.createElement(u.kl,{val
2idationStatus:t.validationStatus}))}));const P=(0,i.WQ)("orderformStore","orderFormTipsStore","configsStore")(x)},50304:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(14041),i=r(56351),o=r(6146),a=r(4595),s=r(21838),c=r(3492),l=r(75933),u=r(30013),d=r(99909),f=r(38248),p=r(26611),h=r(16948),m=r(83167),y=r(62756),v=r(47068),g=r(33304),b=r(13098),E=(0,i.PA)((function(e){var t=e.step,r=e.orderformStore,i=e.dialogsStore,E=e.orderFormTipsStore,w=E.chartsTip,S=E.slidesTip,A=r.formManager.formValues,_=A.slides,x=A.charts,P=r.slidesValueProbablyMissing,I=r.chartsValueProbablyMissing,k=r.isComplexDisciplineHintDisplayed,O=r.complexAssignmentDiscipline,T=function(){return 0!==r.availableAmountOfItems||(i.pushDialog(c.g5.MODAL_ORDERFORM_HOURS_PER_PAGE_NOTICE,{hoursPerPage:r.hoursPerPage}),!1)};return n.createElement(u.pn,{step:t,title:"Order details",subtitle:"Tell us what kind of paper you need"},n.createElement(u.h4,null,n.createElement(l.JU,{text:"Year of study",className:"mb-1.5"}),n.createElement(d.A,null)),n.createElement(u.h4,null,n.createElement(l.JU,{text:"Type of paper",className:"mb-1.5"}),n.createElement(f.A,null)),n.createElement(u.h4,null,n.createElement(l.JU,{text:"Discipline",className:"mb-1.5"}),n.createElement(p.A,null)),k&&n.createElement(u.h4,null,n.createElement(l.Fc,{icon:function(){return n.createElement(o.A,{size:20})},description:"An extra 20% may apply if your discipline requires narrow subject expertise or calculations.",color:"info"})),O&&n.createElement(u.h4,null,n.createElement(l.Fc,{icon:function(){return n.createElement(o.A,{size:20})},description:"You will be charged extra for the complexity of your discipline.",color:"info"})),n.createElement(u.h4,null,n.createElement("div",{className:"mb-1.5 text-left font-medium text-zinc-950 dark:text-neutral-50","data-testid":"LabelWithPagesWordsSwitchControl"},n.createElement(g.A,null)),n.createElement("div",{className:"flex flex-wrap gap-2"},n.createElement(h.A,null),n.createElement(v.A,{className:"w-full grow md:w-auto"}))),S&&n.createElement(u.h4,null,n.createElement(b.A,{tip:S})),w&&n.createElement(u.h4,null,n.createElement(b.A,{tip:w})),P&&n.createElement(u.h4,null,n.createElement(l.Fc,{icon:function(){return n.createElement(o.A,{size:20})},description:"Add slides to your order if you need any.",color:"info"})),I&&n.createElement(u.h4,null,n.createElement(l.Fc,{icon:function(){return n.createElement(o.A,{size:20})},description:"Add charts to your order if you need any.",color:"info"})),!!_&&n.createElement(u.h4,null,n.createElement(l.JU,{text:"Slides",className:"mb-1.5"}),n.createElement(m.A,null)),!!x&&n.createElement(u.h4,null,n.createElement(l.JU,{text:"Charts",className:"mb-1.5"}),n.createElement(y.A,null)),(!_||!x)&&n.createElement(u.h4,{className:"flex gap-2"},!x&&n.createElement(l.$n,{variant:"outline",size:"sm",onClick:function(){T()&&r.formManager.setValue(c.ks.CHARTS_QTY,1)},"data-testid":"AddChartsButton"},n.createElement(a.A,{size:16})," Add charts"),!_&&n.createElement(l.$n,{variant:"outline",size:"sm",onClick:function(){T()&&r.formManager.setValue(c.ks.SLIDES_QTY,1)},"data-testid":"AddSlidesButton"},n.createElement(s.A,{size:16})," Add slides")),n.createElement(u.kl,{validationStatus:t.validationStatus}))}));const w=(0,i.WQ)("orderformStore","orderFormTipsStore","dialogsStore")(E)},99544:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(71514),a=r(63752),s=r(30013),c=(0,i.PA)((function(e){var t=e.step,r=e.orderformStore;return n.createElement(s.pn,{testId:"StepAccount",step:t,title:"Account",subtitle:"Sign in or sign up to your account",icon:a.A},n.createElement(o.Ay,{onBecomeAuthorized:function(){r.onAuthorized()}}))}));const l=(0,i.WQ)("orderformStore")(c)},79582:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(14041),i=r(56351),o=r(6146),a=r(75933),s=r(30013),c=r(18300),l=r(26611),u=r(71552),d=(0,i.PA)((function(e){var t=e.step,r=e.orderformStore.filesProbablyMissing;return n.createElement(s.pn,{step:t,title:"Requirements",subtitle:"Tell us what kind of assignment you need",renderDescriptor:function(e){return n.createElement(s.k_,{descriptor:e})}},n.createElement(s.h4,null,n.createElement(a.JU,{text:"Discipline",className:"mb-1.5"}),n.createElement(l.A,null)),n.createElement(s.h4,null,n.createElement(a.JU,{text:"Software",className:"mb-1.5"}),n.createElement(u.A,null)),n.createElement(s.h4,null,n.createElement(s.el,null),n.createElement(c.A,{placeholder:"⢠Write what's important for the expert to consider to meet your expectations;
2\n⢠Mention the software or programming environment to be used, upload data sets, grading scale, etc.\n⢠Attach tables or charts as files; they can't be pasted here."})),r&&n.createElement(s.h4,null,n.createElement(a.Fc,{icon:function(){return n.createElement(o.A,{size:20})},description:"Please, do not forget to upload additional materials",color:"info"})),n.createElement(s.kl,{validationStatus:t.validationStatus}))}));const f=(0,i.WQ)("orderformStore")(d)},19567:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(96152);var n=r(14041),i=r(56351),o=r(93718),a=r.n(o),s=r(75933),c=r(82621),l=r(30013),u=(0,i.PA)((function(e){var t=e.step,r=e.orderformStore,i=r.isAcademicWritingForm;return n.createElement(l.pn,{step:t,title:"Deadline",subtitle:"When do you need your ".concat(i?"paper":"assignment"," ready? Choose your delivery option.")},n.createElement(l.h4,null,n.createElement(s.JU,{className:"mb-1.5",text:"Deadline",info:n.createElement(s.Ex,{variant:"outline",size:"sm"},"Delivered before"," ",a()(new Date(r.deadlineDate),"mmm dS, h:MM TT"))}),n.createElement(c.A,null)),n.createElement(l.kl,{validationStatus:t.validationStatus}))}));const d=(0,i.WQ)("orderformStore")(u)},63368:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});r(96152);var n=r(14041),i=r(56351),o=r(6146),a=r(63752),s=r(75079),c=r(93718),l=r.n(c),u=r(58165),d=r(75933),f=r(30013),p=r(17456),h=r(99909),m=r(38248),y=r(26611),v=r(16948),g=r(47068),b=r(33304),E=r(82621),w=r(86100),S=(0,i.PA)((function(e){var t=e.step,r=e.orderformStore,i=e.userProfileStore.isAuthorized;return n.createElement(f.pn,{step:t,title:"Order details",subtitle:"Tell us what kind of paper you need",renderDescriptor:function(e){return n.createElement(f.k_,{descriptor:e})}},n.createElement(f.h4,null,n.createElement(d.JU,{text:"Year of study",className:"mb-1.5"}),n.createElement(h.A,null)),n.createElement(f.h4,null,n.createElement(d.JU,{text:"Type of paper",className:"mb-1.5"}),n.createElement(m.A,null)),n.createElement(f.h4,null,n.createElement(d.JU,{text:"Discipline",className:"mb-1.5"}),n.createElement(y.A,null)),n.createElement(f.h4,null,n.createElement("div",{className:"mb-1.5 text-left font-medium text-zinc-950 dark:text-neutral-50","data-testid":"LabelWithPagesWordsSwitchControl"},n.createElement(b.A,null)),n.createElement("div",{className:"flex flex-wrap gap-2"},n.createElement(v.A,null),n.createElement(g.A,{className:"w-full grow md:w-auto"}))),n.createElement(f.h4,null,n.createElement(d.JU,{className:"mb-1.5",text:"Deadline",info:n.createElement(d.Ex,{variant:"outline",size:"sm"},"Delivered before"," ",l()(new Date(r.deadlineDate),"mmm dS, h:MM TT"))}),n.createElement(E.A,null)),n.createElement(f.h4,null,n.createElement(p.A,{className:"mb-1.5"}),n.createElement(w.A,{placeholder:"⢠Write what's important for the writer to consider to meet your expectations;\n⢠Include class notes, textbook pages, and grading scales;\n⢠Attach tables or charts as files; they can't be pasted here."})),r.filesProbablyMissing&&n.createElement(f.h4,null,n.createElement(d.Fc,{icon:function(){return n.createElement(o.A,{size:20})},description:"Please, do not forget to upload additional materials",color:"info"})),n.createElement("div",{className:"flex flex-col items-center gap-2.5 md:flex-row"},!i&&n.createElement(d.$n,{className:"w-full grow md:w-1/2",size:"lg",onClick:function(){return r.stepsManager.goToNextStep()},"data-testid":"InquiryAuthoriseButton"},n.createElement(a.A,{size:20}),"Authorise"),n.createElement(d.Yl,null,n.createElement(d.B_,null,n.createElement(d.dj,{asChild:i,className:"inline-flex w-full grow md:w-1/2"},n.createElement(d.$n,{className:"w-full",size:"lg",disabled:!i,onClick:function(){return r.startSubmitting().catch((function(){r.stepsManager.setFirstStepWithErrorAsActive(),(0,u.oL)()}))},"data-testid":"InquirySubmitButton"},n.createElement(s.A,{size:20}),"Place free inquiry")),!i&&n.createElement(d.MO,{className:"rounded-md border border-zinc-200 bg-white px-4 py-3 text-sm text-zinc-950 shadow-md",align:"center",sideOffset:2},"Authorise to place free inquiry")))))}));const A=(0,i.WQ)("orderformStore","userProfileStore")(S)},24242:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14041),i=r(30013),o=r(65605);const a=function(e){var t=e.step;return n.createElement(i.pn,{step:t,title:"Assignment type",subtitle:"Specify what kind of task you need"},n.createElement(i.h4,null,n.createElement(o.A,null)),n.createElement(i.kl,{validationStatus:t.validationStatus}))}},2007:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(14041),i=r(56351),o=r(3492),a=r(30013),s=r(44564),c=r(78522),l=(0,i.PA)((function(e){var t=e.step,r=e.orderformStore.formManager;return n.createElement(a.pn,{step:t,title:"Extras",subtitle:"Add any extra services to enrich your assignment"},r.formAvailableKeysById[o.ks.TOP_EXPERT]&&n.createElement(a.h4,{className:"pb-1.5"},n.createElement(c.A,null)),r.formAvailableKeysById[o.ks.WELL_COMMENTED_CODE]&&n.createElement(a.h4,null,n.createElement(s.A,null)),n.createElement(a.kl,{validationStatus:t.validationStatus}))}));const u=(0,i.WQ)("orderformStore")(l)},25062:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(14041),i=r(56351),o=r(6146),a=r(3492),s=r(75933),c=r(30013),l=r(8674),u=r(26611),d=r(18300),f=r(75505),p=(0,i.PA)((function(e){var t=e.step,r=e.orderformStore,i=r.filesProbablyMissing,p=r.formManager;return n.createElement(c.pn,{step:t,title:"Requirements",subtitle:"Tell us what kind of assignment you need",renderDescriptor:function(e){return n.createElement(c.k_,{descriptor:e})}},n.createElement(c.h4,null,n.createElement(s.JU,{text:"Programming language/Software",className:"mb-1.5"}),n.createElement(l.A,null)),n.createElement(c.h4,null,n.createElement(s.JU,{text:"Category",className:"mb-1.5"}),n.createElement(u.A,null)),n.createElement(c.h4,null,n.createElement(c.el,{className:"mb-1.5"}),n.createElement(d.A,{placeholder:"⢠Write what's important for the expert to consider to meet your expectations;
2\n⢠Mention the software or programming environment to be used, upload data sets, grading scale, etc.\n⢠Attach tables or charts as files; they can't be pasted here."})),i&&n.createElement(c.h4,null,n.createElement(s.Fc,{icon:function(){return n.createElement(o.A,{size:20})},description:"Please, do not forget to upload additional materials",color:"info"})),p.formAvailableKeysById[a.ks.ONLY_OWN_CODE_SOLUTION]&&n.createElement(c.h4,null,n.createElement(f.A,null)),n.createElement(c.kl,{validationStatus:t.validationStatus}))}));const h=(0,i.WQ)("orderformStore")(p)},36905:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var n=r(14041),i=r(56351),o=r(88752),a=r(6146),s=r(63752),c=r(9594),l=r(21377),u=r(3492),d=r(58165),f=r(75933),p=r(30013),h=r(78854),m=r(49611),y=r(3572),v=r(22655),g=r(32161),b=(0,i.PA)((function(e){var t=e.step,r=e.userProfileStore.isAuthorized,i=e.orderformStore,b=e.configsStore,E=i.formManager,w=i.stepsManager,S=i.isAllZeroError,A=i.showVat;return n.createElement(p.pn,{testId:"StepSummary",step:t,icon:o.A,title:"Summary",subtitle:"Review your order and make sure it meets your requirements",renderDescriptor:function(e){return n.createElement(p.FA,{descriptor:e})}},S&&n.createElement(p.h4,{size:"s"},n.createElement(f.Fc,{icon:function(){return n.createElement(a.A,{size:20})},description:"Add at least 1 page, slide, or chart",color:"error"})),n.createElement(p.h4,{size:"s"},n.createElement(h.A,null)),i.isPayInPartsAvailable?n.createElement(p.h4,{size:"s"},n.createElement(y.A,null)):E.formAvailableKeysById[u.ks.SPLIT_PAYMENT]&&!i.isPayInPartsAvailable?n.createElement(p.h4,{size:"s"},n.createElement(m.A,null)):null,n.createElement(p.h4,{size:"s"},n.createElement(v.h,null)),A&&n.createElement(p.h4,{size:"s"},n.createElement(f.Fc,{icon:function(){return n.createElement(a.A,{size:20})},description:"VAT may be charged upon checkout for EU citizens",color:"success"})),n.createElement("div",{className:"flex flex-col items-center gap-2.5 md:flex-row"},!r&&n.createElement(f.$n,{"data-testid":"StepSummary-AuthoriseButton",className:"w-full grow md:w-1/2",size:"lg",onClick:function(){return w.goToNextStep()}},n.createElement(s.A,{size:20}),"Authorise"),n.createElement(f.Yl,null,n.createElement(f.B_,null,n.createElement(f.dj,{asChild:r,className:"inline-flex w-full grow md:w-1/2"},n.createElement(f.$n,{"data-testid":"StepSummary-PayButton",className:"w-full",size:"lg",onClick:function(){return i.startSubmitting().catch((function(){w.setFirstStepWithErrorAsActive(),(0,d.oL)()}))},disabled:!r},n.createElement(c.A,{size:20}),"Pay for order")),!r&&n.createElement(f.MO,{className:"rounded-md border border-zinc-200 bg-white px-4 py-3 text-sm text-zinc-950 shadow-md",align:"center",sideOffset:2},"Authorise to make payment")))),r&&n.createElement("div",{className:"mt-4 flex flex-wrap items-center gap-2"},n.createElement("div",{className:"flex items-center gap-1 text-sm text-zinc-950"},n.createElement(l.A,{size:16,className:"text-emerald-700"}),"Pay securely using any method"),n.createElement("div",{className:"flex items-center gap-1.5"},b.configs.isApplePayPaymentEnabled&&n.createElement(g.al,null),n.createElement(g.nL,null),n.createElement(g.ym,null),n.createElement(g.A3,null),n.createElement(g.BP,null))))}));const E=(0,i.WQ)("userProfileStore","configsStore","orderformStore")(b)},32161:(e,t,r)=>{"use strict";r.d(t,{A3:()=>s,BP:()=>c,al:()=>i,nL:()=>o,ym:()=>a});var n=r(14041);function i(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"37",height:"24",viewBox:"0 0 37 24",fill:"none"},n.createElement("g",{clipPath:"url(#clip0_19428_8758)"},n.createElement("path",{d:"M33.5221 -0.00585938H3.29734C3.17146 -0.00585938 3.04536 -0.00585938 2.9197 -0.00512531C2.81348 -0.00436899 2.70751 -0.00319003 2.60154 -0.000298245C2.37041 0.00595246 2.13731 0.0195883 1.90909 0.0606072C1.67721 0.102338 1.46144 0.170406 1.25094 0.27758C1.044 0.382819 0.85454 0.520468 0.690355 0.684722C0.5261 0.848975 0.388451 1.03812 0.283234 1.24528C0.176038 1.45578 0.107925 1.67162 0.0664835 1.90368C0.0252444 2.13197 0.0115173 2.36503 0.00528886 2.5959C0.00244156 2.70188 0.00122033 2.80785 0.00052853 2.9138C-0.000205539 3.03973 3.91504e-05 3.16556 3.91504e-05 3.29171V20.2682C3.91504e-05 20.3944 -0.000205539 20.52 0.00052853 20.6462C0.
200122033 20.7521 0.00244156 20.8581 0.00528886 20.9641C0.0115173 21.1947 0.0252444 21.4278 0.0664835 21.656C0.107925 21.8882 0.176038 22.1039 0.283234 22.3144C0.388451 22.5216 0.5261 22.711 0.690355 22.875C0.85454 23.0395 1.044 23.1772 1.25094 23.2821C1.46144 23.3896 1.67721 23.4577 1.90909 23.4994C2.13731 23.5401 2.37041 23.554 2.60154 23.5603C2.70751 23.5627 2.81348 23.5641 2.9197 23.5646C3.04536 23.5656 3.17146 23.5656 3.29734 23.5656H33.5221C33.6477 23.5656 33.7738 23.5656 33.8995 23.5646C34.0054 23.5641 34.1114 23.5627 34.2179 23.5603C34.4485 23.554 34.6815 23.5401 34.9103 23.4994C35.1419 23.4577 35.3577 23.3896 35.5682 23.2821C35.7754 23.1772 35.9643 23.0395 36.1288 22.875C36.2928 22.711 36.4305 22.5216 36.5359 22.3144C36.6434 22.1039 36.7114 21.8882 36.7527 21.656C36.7939 21.4278 36.8073 21.1947 36.8136 20.9641C36.8165 20.8581 36.8179 20.7521 36.8184 20.6462C36.8194 20.52 36.8194 20.3944 36.8194 20.2682V3.29171C36.8194 3.16556 36.8194 3.03973 36.8184 2.9138C36.8179 2.80785 36.8165 2.70188 36.8136 2.5959C36.8073 2.36503 36.7939 2.13197 36.7527 1.90368C36.7114 1.67162 36.6434 1.45578 36.5359 1.24528C36.4305 1.03812 36.2928 0.848975 36.1288 0.684722C35.9643 0.520468 35.7754 0.382819 35.5682 0.27758C35.3577 0.170406 35.1419 0.102338 34.9103 0.0606072C34.6816 0.0195883 34.4485 0.00595246 34.2179 -0.000298245C34.1114 -0.00319003 34.0054 -0.00436899 33.8995 -0.00512531C33.7738 -0.00585938 33.6477 -0.00585938 33.5221 -0.00585938Z",fill:"black"}),n.createElement("path",{d:"M33.522 0.779297L33.8938 0.780009C33.9945 0.780721 34.0953 0.781811 34.1966 0.784569C34.3727 0.789329 34.5788 0.798872 34.7709 0.833307C34.9379 0.863381 35.078 0.909116 35.2124 0.97754C35.3451 1.04496 35.4666 1.13332 35.5728 1.23931C35.6793 1.34602 35.7678 1.46779 35.8361 1.60194C35.9042 1.7353 35.9496 1.87468 35.9795 2.0429C36.0138 2.23291 36.0233 2.43956 36.0282 2.61683C36.0309 2.71688 36.0322 2.81694 36.0327 2.91938C36.0337 3.04326 36.0336 3.16707 36.0336 3.29119V20.2677C36.0336 20.3918 36.0337 20.5154 36.0327 20.642C36.0322 20.742 36.0309 20.8421 36.0281 20.9423C36.0233 21.1193 36.0138 21.3258 35.9791 21.5181C35.9496 21.684 35.9042 21.8234 35.8358 21.9574C35.7676 22.0912 35.6793 22.2129 35.5732 22.3189C35.4665 22.4257 35.3453 22.5138 35.211 22.5818C35.0776 22.6499 34.9378 22.6956 34.7725 22.7254C34.5765 22.7603 34.3618 22.7699 34.2 22.7743C34.0983 22.7766 33.997 22.7779 33.8933 22.7784C33.7697 22.7794 33.6456 22.7794 33.522 22.7794H3.2973C3.29565 22.7794 3.29405 22.7794 3.29238 22.7794C3.17017 22.7794 3.04771 22.7794 2.92328 22.7784C2.82182 22.7779 2.72058 22.7766 2.62271 22.7744C2.4573 22.7699 2.24244 22.7603 2.04804 22.7256C1.88128 22.6956 1.74147 22.6499 1.60631 22.5809C1.47331 22.5135 1.35223 22.4255 1.24544 22.3185C1.13947 22.2127 1.0514 22.0915 0.983309 21.9574C0.915152 21.8235 0.869551 21.6837 0.839568 21.5158C0.804908 21.324 0.795388 21.1182 0.79063 20.9424C0.787914 20.8418 0.786779 20.7412 0.786134 20.6411L0.785645 20.3457L0.785667 20.2677V3.29119L0.785645 3.2132L0.786112 2.91844C0.786779 2.81779 0.787914 2.71715 0.79063 2.61658C0.795388 2.44061 0.804908 2.2348 0.839854 2.04132C0.869573 1.87495 0.915152 1.73512 0.983665 1.60056C1.05122 1.46756 1.13944 1.34615 1.24597 1.23965C1.35208 1.1335 1.47356 1.04525 1.6074 0.977184C1.74111 0.909094 1.88119 0.863381 2.04795 0.833373C2.2401 0.79885 2.44633 0.789329 2.62295 0.784547C2.72363 0.78181 2.82431 0.780721 2.92423 0.780031L3.2973 0.779297H33.522Z",fill:"white"}),n.createElement("path",{d:"M10.0513 7.91989C10.3666 7.52557 10.5805 6.99612 10.5241 6.45508C10.0626 6.47803 9.49941 6.75954 9.17336 7.15417C8.88061 7.49211 8.6215 8.04373 8.68905 8.56209C9.2071 8.60703 9.72467 8.30315 10.0513 7.91989Z",fill:"black"}),n.createElement("path",{d:"M10.5179 8.66511C9.76558 8.6203 9.12592 9.0921 8.76664 9.0921C8.40716 9.0921 7.85699 8.68769 7.26193 8.69859C6.48743 8.70997 5.76878 9.14788 5.37575 9.84436C4.56736 11.2377 5.16242 13.3044 5.94854 14.4392C6.33029 15.0006 6.79037 15.6188 7.3966 15.5966C7.96938 15.5741 8.19389 15.2257 8.89013 15.2257C9.58587 15.2257 9.7881 15.5966 10.3944 15.5853C11.0232 15.5741 11.4163 15.0236 11.798 14.4617C12.236 13.8217 12.4153 13.2038 12.4265 13.1698C12.4153 13.1586 11.2141 12.6978 11.203 11.3161C11.1916 10.1591 12.146 9.60882 12.1909 9.5747C11.652 8.77757 10.8099 8.68769 10.5179 8.66511Z",fill:"black"}
2),n.createElement("path",{d:"M17.0687 7.09766C18.7039 7.09766 19.8425 8.22481 19.8425 9.86585C19.8425 11.5128 18.6805 12.6458 17.0277 12.6458H15.2172V15.5249H13.9092V7.09766L17.0687 7.09766ZM15.2172 11.5478H16.7181C17.857 11.5478 18.5052 10.9346 18.5052 9.87171C18.5052 8.80888 17.857 8.20149 16.724 8.20149H15.2172V11.5478Z",fill:"black"}),n.createElement("path",{d:"M20.1841 13.782C20.1841 12.7074 21.0075 12.0475 22.4677 11.9657L24.1495 11.8665V11.3935C24.1495 10.7101 23.6881 10.3013 22.9174 10.3013C22.1872 10.3013 21.7316 10.6517 21.6208 11.2007H20.4294C20.4995 10.091 21.4455 9.27344 22.964 9.27344C24.4532 9.27344 25.4051 10.0619 25.4051 11.2941V15.5282H24.1961V14.5178H24.1671C23.8109 15.2012 23.0341 15.6333 22.2282 15.6333C21.0251 15.6333 20.1841 14.8857 20.1841 13.782ZM24.1495 13.2272V12.7425L22.6369 12.8359C21.8835 12.8885 21.4572 13.2214 21.4572 13.747C21.4572 14.2842 21.901 14.6347 22.5785 14.6347C23.4603 14.6347 24.1495 14.0273 24.1495 13.2272Z",fill:"black"}),n.createElement("path",{d:"M26.5464 17.7809V16.7588C26.6396 16.7822 26.8498 16.7822 26.955 16.7822C27.539 16.7822 27.8544 16.5369 28.047 15.9062C28.047 15.8945 28.1581 15.5324 28.1581 15.5266L25.939 9.37695H27.3054L28.859 14.3761H28.8822L30.4358 9.37695H31.7673L29.4662 15.8419C28.9408 17.3312 28.3334 17.8101 27.0603 17.8101C26.955 17.8101 26.6396 17.7983 26.5464 17.7809Z",fill:"black"})),n.createElement("defs",null,n.createElement("clipPath",{id:"clip0_19428_8758"},n.createElement("rect",{width:"36.8194",height:"23.5714",fill:"white"}))))}function o(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"35",height:"24",viewBox:"0 0 35 24",fill:"none"},n.createElement("rect",{x:"0.819336",width:"33.8823",height:"23.5703",fill:"white"}),n.createElement("path",{d:"M15.8627 16.166H13.6069L15.0179 7.91602H17.2735L15.8627 16.166Z",fill:"#15195A"}),n.createElement("path",{d:"M24.0402 8.11491C23.5953 7.94798 22.8895 7.76367 22.0169 7.76367C19.7893 7.76367 18.2206 8.88702 18.2109 10.4931C18.1924 11.678 19.3341 12.3362 20.1879 12.7313C21.0607 13.135 21.3574 13.3985 21.3574 13.7584C21.3485 14.3111 20.6521 14.5658 20.0027 14.5658C19.1021 14.5658 18.6195 14.4345 17.8861 14.127L17.5891 13.9952L17.2734 15.8471C17.8025 16.0751 18.7773 16.2773 19.7893 16.2862C22.1562 16.2862 23.6972 15.1802 23.7154 13.4687C23.7244 12.5296 23.1216 11.8099 21.8219 11.2219C21.0329 10.8444 20.5497 10.5899 20.5497 10.2037C20.559 9.85254 20.9584 9.49291 21.849 9.49291C22.5824 9.47529 23.1212 9.64199 23.5294 9.8088L23.7334 9.8964L24.0402 8.11491Z",fill:"#15195A"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.0781 7.91211H29.8229L31.6428 16.162H29.5541C29.5541 16.162 29.3497 15.2141 29.285 14.9245H26.3887C26.305 15.1438 25.9153 16.162 25.9153 16.162H23.5483L26.899 8.59662C27.1312 8.06119 27.54 7.91211 28.0781 7.91211ZM27.939 10.9285C27.939 10.9285 27.2241 12.7629 27.0384 13.2368H28.9134C28.8206 12.8243 28.3934 10.8495 28.3934 10.8495L28.2358 10.1387C28.1694 10.3217 28.0734 10.5734 28.0086 10.7431C27.9647 10.8582 27.9352 10.9356 27.939 10.9285Z",fill:"#15195A"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.83303 7.91211H7.46238C7.95432 7.92949 8.3535 8.07869 8.48339 8.6056L9.27202 12.3955C9.27216 12.396 9.2723 12.3964 9.27244 12.3969L9.51385 13.5378L11.723 7.91211H14.1083L10.5626 16.1534H8.17717L6.16659 8.98488C5.47286 8.60134 4.68112 8.29287 3.7959 8.0788L3.83303 7.91211Z",fill:"#15195A"}))}function a(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"35",height:"23",viewBox:"0 0 35 23",fill:"none"},n.createElement("rect",{x:"0.70166",width:"33.8823",height:"22.5882",rx:"4.23529",fill:"white"}),n.createElement("path",{d:"M20.7451 16.3624H14.6982V5.93555H20.7451V16.3624Z",fill:"#FF5F00"}),n.createElement("path",{d:"M15.0855 11.1441C15.0855 9.02898 16.1176 7.14488 17.725 5.93068C16.5496 5.0428 15.0661 4.51286 13.454 4.51286C9.6373 4.51286 6.54346 7.48173 6.54346 11.1441C6.54346 14.8065 9.6373 17.7754 13.454 17.7754C15.0661 17.7754 16.5496 17.2454 17.725 16.3576C16.1176 15.1434 15.0855 13.2593 15.0855 11.1441Z",fill:"#EB001B"}),n.createElement("path",{d:"M28.9002 11.1441C28.9002 14.8065 25.8064 17.7754 21.9897 17.7754C20.3775 17.7754 18.8941 17.2454 17.7183 16.3576C19.326 15.1434 20.3582 13.2593 20.3582 11.1441C20.3582 9.02898 19.326 7.14488 17.7183 5.93068C18.8941 5.0428 20.3775 4.51286 21.9897 4.51286C25.8064 4.51286 28.9002 7.48173 28.9002 11.1441Z",fill:"#F79E1B"}))}function s(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"35",height:"24",viewBox:"0 0 35 24",fill:"none"},n.createElement("rect",{x:"0.583984",width:"33.8823",height:"23.395",rx:"3.17647",fill:"#006FCF"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.51456 16.8904V12.0742H12.9612L13.5456 12.7874L14.1493 12.0742H33.9194V16.5582C33.9194 16.5582 33.4024 16.8856 32.8044 16.8904H21.8573L21.1985 16.1312V16.8904H19.0394V15.5944C19.0394 15.5944 18.7445 15.7753 18.1069 15.7753H17.372V16.8904H14.1031L13.5196 16.1619L12.9271 16.8904H7.51456ZM1.16846 8.44654L2.39392 5.76562H4.51323L5.20869 7.26737V5.76562H7.84319L8.2572 6.85104L8.65857 5.76562H20.4847V6.3113C20.4847 6.3113 21.1064 5.76562 22.1281 5.76562L25.9653 5.77821L26.6487 7.2603V5.76
2562H28.8534L29.4602 6.61696V5.76562H31.6851V10.5818H29.4602L28.8787 9.72769V10.5818H25.6395L25.3138 9.82259H24.443L24.1226 10.5818H21.9259C21.0467 10.5818 20.4847 10.0473 20.4847 10.0473V10.5818H17.1726L16.5153 9.82259V10.5818H4.19927L3.87375 9.82259H3.00573L2.68251 10.5818H1.16846V8.44654ZM1.1749 9.96361L2.82778 6.35742H4.08087L5.73217 9.96361H4.63236L4.32896 9.24149H2.55598L2.25101 9.96361H1.1749ZM3.97968 8.45914L3.43925 7.19727L2.89725 8.45914H3.97968ZM5.84586 9.96361V6.35742L7.37507 6.36275L8.26451 8.68779L9.13266 6.35742H10.6496V9.96361H9.68889V7.30642L8.67046 9.96361H7.82788L6.80661 7.30642V9.96361H5.84586ZM11.3069 9.96361V6.35742H14.442V7.16407H12.2778V7.78092H14.3914V8.54012H12.2778V9.18069H14.442V9.96361H11.3069ZM14.9983 9.96361V6.35742H17.1363C17.8447 6.35742 18.4795 6.76849 18.4795 7.52736C18.4795 8.17608 17.9443 8.59393 17.4255 8.63502L18.6897 9.96361H17.5156L16.3636 8.68246H15.9591V9.96361H14.9983ZM17.0573 7.16602H15.9591V7.92521H17.0716C17.2641 7.92521 17.5124 7.78519 17.5124 7.54561C17.5124 7.35939 17.3208 7.16602 17.0573 7.16602ZM19.8527 9.96361H18.8717V6.35742H19.8527V9.96361ZM22.1788 9.96361H21.967C20.9425 9.96361 20.3205 9.2062 20.3205 8.17535C20.3205 7.11903 20.9355 6.35742 22.2293 6.35742H23.2912V7.21152H22.1905C21.6653 7.21152 21.2939 7.59613 21.2939 8.18424C21.2939 8.88262 21.7186 9.17594 22.3305 9.17594H22.5833L22.1788 9.96361ZM22.6162 9.96361L24.2691 6.35742H25.5222L27.1735 9.96361H26.0737L25.7703 9.24149H23.9973L23.6924 9.96361H22.6162ZM25.4211 8.45914L24.8806 7.19727L24.3386 8.45914H25.4211ZM27.2859 9.96361V6.35742H28.5073L30.067 8.62315V6.35742H31.0278V9.96361H29.8458L28.2466 7.63857V9.96361H27.2859ZM8.17184 16.2761V12.6699H11.3069V13.4766H9.14271V14.0934H11.2564V14.8526H9.14271V15.4932H11.3069V16.2761H8.17184ZM23.5338 16.2761V12.6699H26.6689V13.4766H24.5047V14.0934H26.6083V14.8526H24.5047V15.4932H26.6689V16.2761H23.5338ZM11.4286 16.2761L12.9551 14.4953L11.3923 12.6699H12.6027L13.5335 13.7983L14.4674 12.6699H15.6304L14.0881 14.473L15.6174 16.2761H14.4072L13.5034 15.1655L12.6217 16.2761H11.4286ZM15.7314 16.28V12.6738H17.8536C18.7244 12.6738 19.2331 13.2005 19.2331 13.8868C19.2331 14.7152 18.5845 15.1412 17.7288 15.1412H16.7175V16.28H15.7314ZM17.7825 13.4922H16.7174V14.3226H17.7793C18.0599 14.3226 18.2565 14.1481 18.2565 13.9074C18.2565 13.6512 18.0589 13.4922 17.7825 13.4922ZM19.6504 16.2761V12.6699H21.7884C22.4968 12.6699 23.1316 13.081 23.1316 13.8399C23.1316 14.4886 22.5964 14.9064 22.0776 14.9475L23.3417 16.2761H22.1676L21.0157 14.995H20.6112V16.2761H19.6504ZM21.7094 13.4785H20.6111V14.2377H21.7236C21.9162 14.2377 22.1645 14.0977 22.1645 13.8581C22.1645 13.6719 21.9728 13.4785 21.7094 13.4785ZM27.114 16.2761V15.4932H29.0367C29.3212 15.4932 29.4444 15.3489 29.4444 15.1907C29.4444 15.0391 29.3216 14.8858 29.0367 14.8858H28.1679C27.4126 14.8858 26.992 14.454 26.992 13.8058C26.992 13.2275 27.3772 12.6699 28.4995 12.6699H30.3704L29.9659 13.4813H28.3478C28.0385 13.4813 27.9432 13.6336 27.9432 13.7791C27.9432 13.9286 28.0609 14.0934 28.2972 14.0934H29.2074C30.0493 14.0934 30.4147 14.5416 30.4147 15.1284C30.4147 15.7593 30.0076 16.2761 29.1616 16.2761H27.114ZM30.4993 16.2761V15.4932H32.4221C32.7066 15.4932 32.8297 15.3489 32.8297 15.1907C32.8297 15.0391 32.7069 14.8858 32.4221 14.8858H31.5532C30.7979 14.8858 30.3773 14.454 30.3773 13.8058C30.3773 13.2275 30.7625 12.6699 31.8848 12.6699H33.7557L33.3512 13.4813H31.7331C31.4238 13.4813 31.3286 13.6336 31.3286 13.7791C31.3286 13.9286 31.4462 14.0934 31.6825 14.0934H32.5927C33.4347 14.0934 33.8 14.5416 33.8 15.1284C33.8 15.7593 33.3929 16.2761 32.5469 16.2761H30.4993Z",fill:"white"}))}function c(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"35",height:"24",viewBox:"0 0 35 24",fill:"none"},n.createElement("rect",{x:"0.466309",width:"33.8823",height:"23.395",fill:"white"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6059 11.8867C11.6059 13.315 12.7261 14.4224 14.1677 14.4224C14.5752 14.4224 14.9243 14.3423 15.3547 14.1393V13.0236C14.9763 13.4028 14.641 13.5558 14.2118 13.5558C13.2583 13.5558 12.5815 12.8636 12.5815 11.8795C12.5815 10.9467 13.2797 10.2107 14.1677 10.2107C14.6193 10.2107 14.9611 10.372 15.3547 10.7574V9.64225C14.9392 9.43124 14.5975 9.34375 14.19 9.34375C12.7557 9.34375 11.6059 10.4737 11.6059 11.8867ZM9.17641 10.7023C9.17641 10.9649 9.34311 11.1036 9.91128 11.3141C10.9882 11.7085 11.3073 12.0579 11.3073 12.8301C11.3073 13.7706 10.6171 14.4257 9.63338 14.4257C8.91295 14.4257 8.38904 14.1416 7.95288 13.5005L8.56455 12.9108C8.78244 13.3328 9.14622 13.5591 9.59775 13.5591C10.0202 13.5591 10.3328 13.2673 10.3328 12.8736C10.3328 12.6696 10.2381 12.4944 10.0489 12.3707C9.95384 12.3121 9.7652 12.225 9.39449 12.094C8.5053 11.7737 8.2004 11.4309 8.2004 10.7614C8.2004 9.96615 8.85539 9.36914 9.7142 9.36914C10.2464 9.36914 10.7333 9.55125 11.1404 9.90776L10.645 10.5571C10.3984 10.2804 10.1652 10.1636 9.88165 10.1636C9.47362 10.1636 9.17641 10.3963 9.17641 10.7023ZM4.71432 13.1025C4.41692 13.3716 4.03046 13.4889 3.41878 13.4889H3.1647V10.2754H3.41878C4.03046 10.2754 4.40173 10.385 4.71432 10.6685C5.04172 10.9603 5.23861 11.4127 5.23861 11.8781C5.23861 12.3446 5.04172 12.8108 4.71432 13.1025ZM3.60842 9.45508H2.21875V14.3143H3.6011C4.33616 14.3143 4.86682 14.1408 5.3328 13.7533C5.88653 13.2947 6.21392 12.6032 6.21392 11.8882C6.21392 10.454 5.14378 9.45508 3.60842 9.45508ZM6.64935 14.3164H7.59611V9.45703H6.64935V14.3164ZM21.5669 9.45703L22.8611 12.721L24.1722 9.45703H25.1985L23.1017 14.4411H22.5922L20.5326 9.45703H21.5669ZM25.6265 14.3164H28.3113V13.4938H26.5725V12.182H28.2474V11.359H26.5725V10.2804H28.3113V9.45703H25.6265V14.3164ZM29.8839 11.6943H30.1605C30.7652 11.6943 31.0857 11.4313 31.0857 10.9428C31.0857 10.4699 30.7652 10.2227 30.1755 10.2227H29.8839V11.6943ZM30.3423 9.45508C31.434 9.45508 32.0599 9.97999 32.0599 10.8898C32.0599 11.6338 31.6673 12.1223 30.9541 12.2674L32.4822 14.3145H31.3179L30.0076 12.3624H29.884V14.3145H28.9384V9.45508H30.3423Z",fill:"#1D1D1B"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.421 13.289C21.1894 12.0861 20.8384 10.488 19.6371 9.71873C18.4357 8.94951 16.8392 9.30067 16.0707 10.5036C15.3025 11.7063 15.6536 13.3049 16.855 14.0741C18.0563 14.8434 19.6528 14.4917 20.421 13.289Z",fill:"url(#paint0_linear_19428_8815)"}),n.createElement("defs",null,n.createElement("linearGradient",{id:"paint0_linear_19428_8815",x1:"21.812",y1:"11.1113",x2:"17.4588",y2:"8.33063",gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#F6A000"}),n.createElement("stop",{offset:"0.623918",stopColor:"#E47E02"}),n.createElement("stop",{offset:"1",stopColor:"#D36002"}))))}},587:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(14041),i=r(56351),o=r(75933),a=r(30013),s=r(17471),c=r(85939),l=(0,i.PA)((function(e){var t=e.orderformStore,r=t.isProgrammingForm,i=t.canRequestWriter,l=e.step;
2return n.createElement(a.pn,{step:l,title:"Task size",subtitle:"Specify the complexity of your assignment"},n.createElement(a.h4,null,r?n.createElement(s.S,null):n.createElement(s.Q,null)),i&&n.createElement(a.h4,null,n.createElement(o.JU,{text:n.createElement("div",{className:"flex items-center gap-1"},"Your previous expert"," ",n.createElement(o.Ex,{size:"sm",variant:"soft",color:"green"},"Trusted quality")),description:"Choose the specialist youâve worked with before",className:"mb-1.5"}),n.createElement(c.A,null)),n.createElement(a.kl,{validationStatus:l.validationStatus}))}));const u=(0,i.WQ)("orderformStore")(l)},99909:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(95790),r(30935),r(68291),r(99180);var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=(0,i.PA)((function(e){var t=e.configsStore.configs.configsForAcademicWriting,r=t.academicLevelsIds,i=t.academicLevelsById,s=e.orderformStore.formManager,c=r.map((function(e){return{id:e,title:i[e].title,disabled:s.formDisabledItemsIds[o.ks.ACADEMIC_LEVEL].includes(e)}}));return n.createElement(a.BG,{testId:"academicLevelControlValidationRepresenter",error:s.formErrors[o.ks.ACADEMIC_LEVEL],show:s.errorHiglightableKeys[o.ks.ACADEMIC_LEVEL]},n.createElement(a.l6,{testId:"academicLevelControl",triggerClassName:"text-base h-11",options:c,value:s.formValues[o.ks.ACADEMIC_LEVEL],onChange:function(e){s.setValue(o.ks.ACADEMIC_LEVEL,Number(e)),s.finishInteraction(o.ks.ACADEMIC_LEVEL)}}))}));const c=(0,i.WQ)("configsStore","orderformStore")(s)},61861:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=r(24289),c={promotion_name:"calculations and subject expertise order form",promotion_id:"calculations_and_subject_expertise_order_form"},l=(0,i.PA)((function(e){var t=e.orderformStore.formManager;(0,n.useEffect)((function(){s.TQ.viewPromotion(c)}),[]);var r=!!t.formDisabledKeys[o.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE];return n.createElement(a.B_,null,n.createElement(a.dj,{asChild:!0},n.createElement("div",null,n.createElement(a.Sc,{testId:"calculationsAndSubjectExpertiseControlCheckbox",variant:"solid",checked:t.formValues[o.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE],disabled:r,onCheckedChange:function(e){t.setValue(o.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE,e),t.formValues[o.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE]?s.TQ.selectPromotion(c):s.TQ.closePromotion(c),t.finishInteraction(o.ks.CALCULATIONS_AND_SUBJECT_EXPERTISE)},label:"Calculations & Subject Expertise",labelDescription:"For assignments that require calculations and/or advanced domain-specific knowledge."}))),r&&n.createElement(a.MO,{side:"top",align:"center",className:"overflow-hidden rounded-md bg-zinc-900 px-3 py-1.5 text-xs font-medium text-white dark:bg-zinc-100 dark:text-gray-950"},"Your discipline requires narrow subject expertise or calculations"))}));const u=(0,i.WQ)("orderformStore")(l)},21691:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});r(96152),r(95790),r(68450),r(95570),r(84766),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(23510),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264),r(85028),r(58948),r(99180),r(59161),r(29416),r(25400),r(57931),r(24493),r(22892),r(44318),r(34089);var n=r(14041),i=r(93718),o=r.n(i),a=r(75933),s=r(7077),c=r(52484);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}
2finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){var r=new Date(e),n=new Date(t);return r.setHours(0,0,0,0),n.setHours(0,0,0,0),r<n}const y=function(e){var t=e.startDate,r=e.dueDate,i=e.onHoverDate,l=e.onClickDate,u=e.timestampOfFirstAvailableDeadline,f=new Date(t),h=new Date(r),y=p((0,n.useState)({today:f,currentYear:f.getFullYear(),currentMonth:f.getMonth(),currentHours:f.getHours(),currentMinutes:f.getMinutes(),isSelectedDate:!!r}),2),v=y[0],g=y[1];(0,n.useEffect)((function(){var e=new Date(t);v.today.setHours(0,0,0,0)!==e.setHours(0,0,0,0)&&g(d(d({},v),{},{today:e,currentYear:e.getFullYear(),currentMonth:e.getMonth(),currentHours:e.getHours(),currentMinutes:e.getMinutes()}))}),[t]);var b=function(e){var t=new Date(v.currentYear,e);g(d(d({},v),{},{currentYear:t.getFullYear(),currentMonth:t.getMonth()}))},E=function(){var e=v.currentMonth+1;b(e)},w=function(){var e=v.currentMonth-1;b(e)};(0,n.useEffect)((function(){if(r&&v.currentMonth!==h.getMonth()){var e=h.getFullYear()>v.currentYear,t=h.getMonth();b(e?t+12:t)}}),[r]);var S;return n.createElement("div",{className:"mb-3 w-full rounded-md border border-zinc-200 p-3 shadow-md"},(S=v.currentMonth!==f.getMonth()||v.currentYear!==f.getFullYear(),n.createElement("div",{className:"mb-3 flex items-center justify-between"},n.createElement(a.$n,{size:"icon",variant:"outline",className:"disabled:invisible",onClick:w,disabled:!S},n.createElement(s.A,{size:16,color:"#09090B"})),n.createElement("div",{className:"text-sm font-medium text-zinc-950"},n.createElement("span",null,o()(new Date(v.currentYear,v.currentMonth),"mmmm yyyy"))),n.createElement(a.$n,{size:"icon",variant:"outline",onClick:E},n.createElement(c.A,{size:16,color:"#09090B"})))),n.createElement("div",{className:"mb-2 flex w-full justify-between"},["Su","Mo","Tu","We","Th","Fr","Sa"].map((function(e,t){return n.createElement("div",{className:"flex h-8 w-8 items-center justify-center text-sm font-normal text-zinc-500 dark:text-zinc-400",key:"".concat(e,"-").concat(t)},e)}))),function(){var e=v.today,t=v.currentMonth,r=v.currentYear,o=v.currentHours,s=v.currentMinutes,c=v.isSelectedDate,f=e.getDate(),p=e.getMonth(),y=e.getFullYear(),b=[];(function(){for(var e=new Date(r,t).getDay(),n=new Date(r,t,0).getDate(),i=1;i<=e;i+=1){var a=n-e+i,c=new Date(r,t-1,a,o,s).getTime();b.push({key:c,date:a,isToday:a===f&&t-1===p&&r===y,disabled:m(c,u)})}}(),function(){for(var e=new Date(r,t+1,0).getDate(),n=1;n<=e;n+=1){var i=new Date(r,t,n,o,s).getTime();b.push({key:i,date:n,isToday:t===p&&r===y&&n===f,disabled:m(i,u)})}}(),b.length<42)&&function(e){for(var n=1;n<=e;n+=1){var i=new Date(r,t+1,n,o,s).getTime();b.push({key:i,date:n,disabled:m(i,u)})}}(42-b.length);for(var E=function(e){var t=new Date(e);return t.getDate()===h.getDate()&&t.getMonth()===h.getMonth()&&t.getFullYear()===h.getFullYear()&&c},w=[],S=0;S<b.length;S+=7)w.push(b.slice(S,S+7));return n.createElement("div",{className:"grid gap-y-2"},w.map((function(e,t){return n.createElement("div",{key:"week-".concat(t),className:"flex w-full justify-between"},e.map((function(e){return n.createElement(a.$n,{key:e.key,variant:"ghost",className:(0,a.cn)("h-8 w-8 px-2.5 py-1 font-normal text-zinc-950 disabled:text-zinc-400 disabled:opacity-100",{"bg-zinc-200":e.isToday,"bg-primary-700 text-white hover:bg-primary-700 hover:text-white":E(e.key)}),disabled:e.disabled,onMouseEnter:function(){return!c&&i?i(e.key):void 0},onMouseLeave:function(){return!c&&i?i(0):void 0},onClick:function(){return t=e.key,g(d(d({},v),{},{isSelectedDate:!0})),void l(t);var t}},e.date)})))})))}())}},62756:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(99180);var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=(0,i.PA)((function(e){var t=e.orderformStore,r=e.dialogsStore,i=e.className;return n.createElement(a.Q7,{id:"chartsControl",testId:"chartsControl",className:(0,a.cn)("w-48",i),value:t.formManager.formValues[o.ks.CHARTS_QTY],onChange:function(e){t.formManager.setValue(o.ks.CHARTS_QTY,Number(e))},onInteractionStart:function(){t.formManager.startInteraction(o.ks.CHARTS_QTY)},onInteractionEnd:function(){t.formManager.finishInteraction(o.ks.CHARTS_QTY)},onAttemptPlusMax:function(){r.pushDialog(o.g5.MODAL_ORDERFORM_HOURS_PER_PAGE_
2NOTICE,{hoursPerPage:t.hoursPerPage})},max:t.chartsMaxAvailable})}));const c=(0,i.WQ)("orderformStore","dialogsStore")(s)},51791:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=(0,i.PA)((function(e){var t=e.orderformStore;return n.createElement(a.Sc,{testId:"CopyOfSourcesCheckbox",variant:"solid",checked:t.formManager.formValues[o.ks.GET_COPY_OF_SOURCES],onCheckedChange:function(e){t.formManager.setValue(o.ks.GET_COPY_OF_SOURCES,e),t.formManager.finishInteraction(o.ks.GET_COPY_OF_SOURCES)},label:"Printable sources",labelDescription:"PDF copies of the articles, extracts from books, and other cited materials"})}));const c=(0,i.WQ)("orderformStore")(s)},9434:(e,t,r)=>{"use strict";r.d(t,{h:()=>u});var n=r(14041),i=r(56351),o=r(88706),a=r(30567),s=r(3492),c=r(75933),l=(0,i.PA)((function(e){var t=e.orderformStore.formManager,r=e.userProfileStore.availableCouponsCount,i=e.dialogsStore,l=(0,a.U)("only screen and (max-width: 768px)"),u=t.formValues[s.ks.COUPON_CODE];return n.createElement(c.$n,{"data-testid":"ChooseCouponButton",size:"sm",variant:"outline",onClick:function(){i.pushDialog(s.g5.MODAL_AVAILABLE_COUPONS)}},n.createElement(o.A,{size:16}),l?"Choose":u&&r>1?"Choose another":"Choose coupon")}));const u=(0,i.WQ)("orderformStore","userProfileStore","dialogsStore")(l)},22655:(e,t,r)=>{"use strict";r.d(t,{h:()=>d});var n=r(14041),i=r(56351),o=r(3492),a=r(52160),s=r(88706),c=r(75933),l=r(9434),u=(0,i.PA)((function(e){var t=e.orderformStore,r=t.formManager,i=t.isCouponForStemDisabled,u=t.isProgrammingForm,d=t.isCouponForProgrammingOnly,f=t.isCouponHintDisplayed,p=t.couponCodeDescription,h=t.couponCodeError,m=t.showCouponCodeError,y=t.discount,v=e.userProfileStore,g=v.isAuthorized,b=v.availableCouponsCount;return n.createElement("div",{className:"rounded-md bg-bg-subtle p-4"},n.createElement("div",{className:"flex items-center justify-between"},n.createElement(c.dO,{label:"Coupon code",checked:r.formValues[o.ks.COUPON_CODE_SWITCH],onCheckedChange:function(e){r.setValue(o.ks.COUPON_CODE_SWITCH,e)},color:"primary",id:"have_coupon",testId:"CouponSwitch"}),r.formValues[o.ks.COUPON_CODE_SWITCH]&&g&&b>0&&n.createElement(l.h,null)),r.formValues[o.ks.COUPON_CODE_SWITCH]&&n.createElement("div",{className:"mt-4"},n.createElement(c.BG,{error:h,show:m},n.createElement("div",{className:"relative"},n.createElement(c.pd,{type:"text","data-testid":"CouponSwitchControlInput",placeholder:"Enter coupon code",value:r.formValues[o.ks.COUPON_CODE],onChange:function(e){r.setValue(o.ks.COUPON_CODE,e.target.value)},onFocus:function(){r.startInteraction(o.ks.COUPON_CODE)},onBlur:function(){r.finishInteraction(o.ks.COUPON_CODE)},size:"sm",autoFocus:!0}),Boolean(y)&&n.createElement("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2","data-testid":"check-icon-container"},n.createElement(a.A,{height:20,width:20,color:"#047857"})))),f&&n.createElement(c.Fc,{description:n.createElement("div",{className:"font-semibold"},i?"Can be used only with writing service":d&&!u?"Can be used only with programming service":"To apply coupon, adjust order details"),icon:function(){return n.createElement(s.A,{size:20})},"data-testid":"CouponSwitchControlWarningAlert",color:"warning",className:"mt-4 leading-tight"}),Boolean(y)&&p&&n.createElement(c.Fc,{title:"Coupon applied","data-testid":"CouponSwitchControlInfoAlert",description:n.createElement("div",{className:"[&_b]:font-normal",dangerouslySetInnerHTML:{__html:p}}),icon:function(){return n.createElement(s.A,{size:20})},color:"info",className:"mt-4 leading-tight"})))}));const d=(0,i.WQ)("orderformStore","userProfileStore")(u)},82621:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=r(11992),c=(0,i.PA)((function(e){var t=e.orderformStore.deliveryTime,r=e.dialogsStore;return n.createElement(a.$n,{className:"w-full justify-start text-base font-normal",variant:"outline",size:"sm",onClick:function(){return r.pushDialog(o.g5.MODAL_CALENDAR)}},n.createElement(s.A,{color:"#71717a",size:20})," ",t)}));const l=(0,i.WQ)("orderformStore","dialogsStore","configsStore")(c)},26612:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(99180),r(95790);var n=r(14041),i=r(56351),o=r(93718),a=r.n(o),s=r(3492),c=r(75933),l=function(e,t){return 4===e?"Super fast":8===e?"Urgent":0===t?"Recommended":"Close to deadline"},u=function(e){if(e.hours<=24)return"".concat(e.hours,"-hour delivery");var t=Math.floor((e.deadlineTimestamp-e.startDateTimestamp)/864e5);return"".concat(t,"-day delivery")},d=(0,i.PA)((function(e){var t=e.orderformStore,r=t.formManager,i=t.availableDeliveryOptions.map((function(e,t){return{id:e.id,title:l(e.hours,t),description:a()(e.deadlineTimestamp,"mmm dd, h:MM TT"),info:n.createElement(c.Ex,{size:"sm",variant:"outline"},u(e))}}));return n.createElement(c.z6,{"data-testid":"deliveryOptionControl",onChange:function(e){r.setValue(s.ks.TARIFF,Number(e)),r.finishInteraction(s.ks.TARIFF)},options:i,value:r.formValues[s.ks.TARIFF],variant:"solid",size:"sm",className:"gap-1.5"})}));const f=(0,i.WQ)("orderformStore")(d)},61736:(e,t,r)=>{"use strict";r.d(t,{Iy:()=>o,Jd:()=>a,aS:()=>s});r(96656),r(37729),r(21555),r(94356),r(45993),r(24493),r(22892),r(78370),r(95570),r(93249),r(93831
vendor: 4,118 bytes, line 2
2),r(30488),r(95790),r(38415),r(30935),r(68291),r(66542),r(37210),r(79683),r(69399),r(48851),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(40890),r(66264);function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o={"academic english":["english 101"],ENG:["english 101"],research:["english 101","composition"],writing:["english 101","composition"],"writing class":["english 101"],"critical thinking":["english 101","composition"],"english composition":["english 101","composition"],"organizational behavior":["management","human resources management (hrm)"],"emergency management":["management"],"management information system":["management"],"operation management":["management"],"project management":["management"],"strategic management":["management"],planning:["management"],"risk management":["management"],"contract management":["management"],"supply chain management":["management"],"crisis and disaster management":["management"],"labor management":["management"],hospitality:["business studies","management"],"business communication":["business studies"],"business ethics":["business studies"],business:["business studies"],entrepreneurship:["business studies"],international:["business studies"],innovation:["business studies"],gerontology:["health care","psychology","sociology"],"health science":["health care"],"managerial epidemiology":["health care"],"occupational health and safety":["health care"],"public health":["health care"],drugs:["health care"],healthcare:["health care"],recreation:["health care"],epidemiology:["health care"],"mental health":["health care"],"disability studies":["health care"],clinical:["health care"],humanities:["cultural and ethnic studies","history","literature","art (fine arts, performing arts)"],"african studies":["cultural and ethnic studies"],"american studies":["cultural and ethnic studies"],"asian american studies":["cultural and ethnic studies"],"black world studies":["cultural and ethnic studies"],speech:["composition","communications"],essay:["composition"],"college writing":["composition","communications"],"homeland security":["political science","law"],"american government":["political science"],"global east asia":["political science"],government:["political science"],politics:["political science"],military:["political science"],"human rights":["political science"],"social science":["sociology"],race:["sociology"],"social problem":["sociology"],"child development":["education","psychology"],counseling:["education","psychology"],"early child education":["education"],"special education":["education"],teaching:["education"],"child care":["education"],"youth care":["education"],"toddler development":["education"],"infant development":["education"],"chinese history":["history"],"world history":["history"],"african american":["history"],civilization:["history"],"communication theory":["communications"],"data communications":["communications"],"interpersonal communication":["communications"],journalism:["communications"],media:["communications"],"social media":["communications"],"public speaking":["communications"],"social psych
2ology":["psychology"],"abnormal psychology":["psychology"],"organizational behaviour":["psychology"],"applied behavior analysis (aba)":["psychology"],"behavior analysis":["psychology"],"addiction counseling":["psychology"],"human dynamics":["psychology"],"lifespan development":["psychology"],"behavioral sciences":["psychology"],"american literature":["literature"],literacy:["literature"],english:["literature"],"english literature":["literature"],"business law":["law"],"civil liberties":["law"],cyberlaw:["law"],legal:["law"],"art history":["art (fine arts, performing arts)"],dance:["art (fine arts, performing arts)"],fashion:["art (fine arts, performing arts)"],"graphic design":["art (fine arts, performing arts)"],photography:["art (fine arts, performing arts)"],design:["art (fine arts, performing arts)"],"human resources department":["human resources management (hrm)"],"human resources development":["human resources management (hrm)"],"human services":["human resources management (hrm)"],"labour studies":["human resources management (hrm)"],"strategic marketing":["marketing"],advertising:["marketing"],"fashion marketing":["marketing"],"international marketing":["marketing"],"marketing management":["marketing"],summary:["composition","english 101"],compare:["composition","english 101"],contrast:["composition","english 101"],culture:["cultural and ethnic studies"],"technical writing":["english 101"],language:["english 101"],admission:["application letters"],"interior design":["architecture, building and planning"],microbiology:["biology (and other life sciences)"],cyber:["computer science"],cybersecurity:["computer science"],ai:["computer science"],"artificial intelligence":["computer science"],"computer application":["computer science"],criminology:["criminal justice"],crime:["criminal justice"],diversity:["cultural and ethnic studies"],"asian studies":["cultural and ethnic studies"],"uae studies":["cultural and ethnic studies"],"disaster recovery":["it, web"],"information technology":["it, web"],"information system":["it, web"],leadership:["leadership studies"],"organizational leadership":["leadership studies"],psychiatry:["medical sciences (anatomy, physiology, pharmacology etc.)"],medication:["medical sciences (anatomy, physiology, pharmacology etc.)"],dentistry:["medical sciences (anatomy, physiology, pharmacology etc.)"],dental:["medical sciences (anatomy, physiology, pharmacology etc.)"],medical:["medical sciences (anatomy, physiology, pharmacology etc.)"],"advanced practice":["nursing"],bioethics:["philosophy"],"data analysis":["statistics"]};function a(e){var t=new Map;return Object.entries(e).forEach((function(e){var r=n(e,2),i=r[0];r[1].forEach((function(e){t.has(e)||t.set(e,[]),t.get(e).push(i)}))})),Object.fromEntries(t)}function s(e,t,r){var n=e.toLowerCase(),i=t.toLowerCase().split(/\s+/),o=(null==r?void 0:r.map((function(e){return e.toLowerCase()})))||[];return i.every((function(e){return n.includes(e)||o.some((function(t){return t.includes(e)}))}))?1:0}},26611:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(99180),r(95790),r(25400),r(21555),r(30935),r(68291),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(59161),r(29416),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=r(61736);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=(0,i.PA)((function(e){var t=e.orderformStore,r=e.configsStore,i=r.configs.disciplinesById,c=r.isOtherDisciplineDisabled,l=e.otherOptionFormStore,d=e.placeholder,f=t.formManager,p=t.currentOrderServiceTypeConfig,h=t.isProgrammingForm,m=f.formValues,y=f.formDisabledItemsIds,v=f.formErrors,g=f.errorHiglightableKeys,b=(0,s.Jd)(s.Iy),E=p.disciplinesIds.filter((function(e){return e!==o.UH.DISCIPLINE_OTHER_ID})).map((function(e){return u(u({},i[e]),{},{groupId:void 0,disabled:y[o.ks.DISCIPLINE].includes(e),keywords:(null==b?void 0:b[i[e].title.toLowerCase()])||[]})}));return n.createElement(a.BG,{testId:"DisciplineControlValidationRepresenter",error:v[o.ks.DISCIPLINE]||v[o.ks.DISCIPLINE_OTHER],show:g[o.ks.DISCIPLINE]||g[o.ks.DISCIPLINE_OTHER]},n.createElement(a.G3,{testId:"DisciplineControlCombobox",inputClass:"text-base h-11",commandPlaceholder:d||"Select or type...",options:E,shouldOptionsBeTrulyDisabled:!1,value:m[o.ks.DISCIPLINE],onChange:function(e,t){f.setValue(o.ks.DISCIPLINE,Number(e)),f.finishInteraction(o.ks.DISCIPLINE),Number(e)===o.UH.DISCIPLINE_OTHER_ID&&(f.setValue(o.ks.DISCIPLINE_OTHER,t),f.finishInteraction(o.ks.DISCIPLINE_OTHER))},isCustomTypeEnabled:!c,customOptionHeading:h?"Add custom category":"Add custom discipline",onCustomOptionSelect:function(e){return l.setValue(e)},customOptionId:o.UH.DISCIPLINE_OTHER_ID,customOptionText:m[o.ks.DISCIPLINE_OTHER],isCustomOptionDisabled:y[o.ks.DISCIPLINE]&&y[o.ks.DISCIPLINE].includes(o.UH.DISCIPLINE_OTHER_ID),customFilter:s.aS}))}));const p=(0,i.WQ)("orderformStore","configsStore","otherOptionFormStore")(f)},40591:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(85146);var n=r(14041),i=r(56351),o=r(75933),a=(0,i.PA)((function(e){var t=e.file,r=e.orderformStore.filesManager;return n.createElement(o.Zu,{testId:"orderFormFileElement",key:t.instanceId||t.id,onClickRemove:function(){return r.removeFile(t.instanceId)},onRetry:function(){return r.uploadFile(t.instanceId)},name:t.name,size:t.blob&&t.blob.size,uploadError:t.uploadError,progressTotal:t.progressTotal||0,progressLoaded:t.progressLoaded||0,isUploading:void 0!==t.uploadingPromise,blob:t.blob,alertColor:"warning"})}));const s=(0,i.WQ)("orderformStore")(a)},16510:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(95790);var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=r(40591),c=(0,i.PA)((function(e){var t,r=e.orderformStore,i=null===(t=r.filesManager.files)||void 0===t?void 0:t.map((function(e){return n.createElement(s.A,{key:e.instanceId||e.id,file:e})}));return n.createElement(a.qj,{testId:"orderFormFilesPicker",filesElements:i||[],onPickFiles:function(e){return r.formManager.finishInteraction(o.ks.FILES),r.filesManager.addFiles(e)},className:"rounded-t-none",classNameMoreFiles:"rounded-t-none",classNameNoFiles:"rounded-t-none"})}));const l=(0,i.WQ)("orderformStore","configsStore")(c)},18300:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=r(16510),c=(0,i.PA)((function(e){var t=e.orderformStore,r=e.placeholder;return n.createElement("div",null,n.createElement(a.TM,{"data-testid":"instructionsControl",value:t.formManager.formValues[o.ks.PAPER_INSTRUCTIONS],placeholder:r,onChange:function(e){t.formManager.setValue(o.ks.PAPER_INSTRUCTIONS,e.target.value)},onFocus:function(){t.formManager.startInteraction(o.ks.PAPER_INSTRUCTIONS)},onBlur:function(){t.formManager.finishInteraction(o.ks.PAPER_INSTRUCTIONS)},rows:7,className:"min-h-44 rounded-b-none border-b-0"}),n.createElement(s.A,null))}));const l=(0,i.WQ)("orderformStore")(c)},86100:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=r(16510),c=(0,i.PA)((function(e){var t=e.orderformStore,r=e.placeholder,i=function(e,r){t.formManager.setValue(e,r)},c=function(e){t.formManager.finishInteraction(e)};return n.createElement("div",null,n.createElement("div",{className:"rounded-md rounded-b-none border border-b-0 border-zinc-200"}
2,n.createElement(a.BG,{testId:"instructionsWithTitleControlInputValidationRepresenter",error:t.formManager.formErrors[o.ks.TOPIC],show:t.formManager.errorHiglightableKeys[o.ks.TOPIC]},n.createElement(a.pd,{"data-testid":"instructionsWithTitleControlInput",value:t.formManager.formValues[o.ks.TOPIC],maxLength:100,placeholder:"Enter the title of your paper",onChange:function(e){return i(o.ks.TOPIC,e.target.value)},onFocus:function(){return e=o.ks.TOPIC,void t.formManager.startInteraction(e);var e},onBlur:function(){return c(o.ks.TOPIC)},className:"border-0"})),n.createElement(a.wv,null),n.createElement(a.TM,{"data-testid":"instructionsWithTitleControlTextarea",value:t.formManager.formValues[o.ks.PAPER_INSTRUCTIONS],placeholder:r,onChange:function(e){return i(o.ks.PAPER_INSTRUCTIONS,e.target.value)},onBlur:function(){return c(o.ks.PAPER_INSTRUCTIONS)},rows:7,className:"min-h-44 border-0"})),n.createElement(s.A,null))}));const l=(0,i.WQ)("orderformStore")(c)},66441:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(99180),r(95790),r(30935),r(68291),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(14041),i=r(56351),o=r(3492),a=r(30567),s=r(75933);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=(0,i.PA)((function(e){var t=e.orderformStore,r=e.configsStore.configs.configsForAcademicWriting,i=r.languageStylesIds,c=r.languageStylesById,l=(0,a.U)("only screen and (max-width: 768px)"),d=i.map((function(e){return u(u({},c[e]),{},{disabled:t.formManager.formDisabledItemsIds[o.ks.LANGUAGE_STYLE].includes(e)})}));return n.createElement(s.z6,{"data-testid":"languageLevelControl",onChange:function(e){t.formManager.setValue(o.ks.LANGUAGE_STYLE,Number(e)),t.formManager.finishInteraction(o.ks.LANGUAGE_STYLE)},options:d,value:t.formManager.formValues[o.ks.LANGUAGE_STYLE],disabled:t.formManager.formDisabledKeys[o.ks.LANGUAGE_STYLE],variant:"solid",orientation:l?"vertical":"horizontal",size:"sm"})}));const p=(0,i.WQ)("orderformStore","configsStore")(f)},75505:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=(0,i.PA)((function(e){var t=e.orderformStore;return n.createElement(a.dO,{testId:"onlyOwnCodeSolutionControl",checked:t.formManager.formValues[o.ks.ONLY_OWN_CODE_SOLUTION],disabled:t.formManager.formDisabledKeys[o.ks.ONLY_OWN_CODE_SOLUTION],onCheckedChange:function(e){t.formManager.setValue(o.ks.ONLY_OWN_CODE_SOLUTION,e),t.formManager.finishInteraction(o.ks.ONLY_OWN_CODE_SOLUTION)},label:"No open-source or ready-made code is allowed in this task",className:"rounded-md bg-bg-subtle p-4"})}));const c=(0,i.WQ)("orderformStore")(s)},16948:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(99180);var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=(0,i.PA)((function(e){var t=e.orderformStore,r=t.formManager,i=t.hoursPerPage,s=t.pagesMaxAvailable,c=t.isPagesWereCalculatedByWords,l=t.wordsMaxAvailable,u=e.dialogsStore,d=e.className,f=e.inputClassName,p=function(){r.startInteraction(o.ks.PAGES_QTY)},h=function(){r.finishInteraction(o.ks.PAGES_QTY)}
2,m=function(){u.pushDialog(o.g5.MODAL_ORDERFORM_HOURS_PER_PAGE_NOTICE,{hoursPerPage:i})};return n.createElement("div",{"data-testid":"PagesWordsControl",className:(0,a.cn)("flex items-stretch gap-2",d)},n.createElement(a.BG,{testId:"PagesWordsControlValidationRepresenter",error:r.formErrors[o.ks.PAGES_QTY],show:r.errorHiglightableKeys[o.ks.PAGES_QTY]},c?n.createElement(a.Q7,{testId:"wordsControl",id:"wordsControl",value:r.formValues[o.ks.WORDS_QTY],onChange:function(e){r.setValue(o.ks.WORDS_QTY,Number(e))},onInteractionStart:p,onInteractionEnd:h,max:l,step:25,onAttemptPlusMax:m,className:(0,a.cn)("w-48",f)}):n.createElement(a.Q7,{testId:"pagesControl",id:"pagesControl",value:r.formValues[o.ks.PAGES_QTY],onChange:function(e){r.setValue(o.ks.PAGES_QTY,Number(e))},onInteractionStart:p,onInteractionEnd:h,max:s,onAttemptPlusMax:m,className:(0,a.cn)("w-48",f)})),n.createElement(a.Ex,{"data-testid":"PagesWordsControlCount",variant:"soft",size:"lg",color:"blue"},c?"~ ".concat(r.formValues[o.ks.PAGES_QTY]," pages"):"~ ".concat(r.formValues[o.ks.WORDS_QTY]," words")))}));const c=(0,i.WQ)("orderformStore","dialogsStore")(s)},33304:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(14041),i=r(56351),o=r(75933),a=(0,i.PA)((function(e){var t=e.orderformStore,r=t.setIsPagesWereCalculatedByWords,i=t.isPagesWereCalculatedByWords;function a(){r(!i)}return i?n.createElement("span",{"data-testid":"PagesWordsSwitchControl"},n.createElement(o.$n,{"data-testid":"PagesWordsSwitchControlButton",variant:"link",onClick:a},"Pages")," ","/ Words"):n.createElement("span",{"data-testid":"PagesWordsSwitchControl"},"Pages /"," ",n.createElement(o.$n,{"data-testid":"PagesWordsSwitchControlButton",variant:"link",onClick:a},"Words"))}));const s=(0,i.WQ)("orderformStore")(a)},49330:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(3492),a=r(90981),s=r(75933),c=(0,i.PA)((function(e){var t=e.orderformStore;return n.createElement(s.$n,{"data-testid":"paperFormatControlTrigger",size:"sm",variant:"outline",onClick:function(){return t.setIsControlsTriggered(o.ks.PAPER_FORMAT,!0)}},n.createElement(a.A,{size:16}),"Specify formatting")}));const l=(0,i.WQ)("orderformStore")(c)},16468:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(99180),r(95790);var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=(0,i.PA)((function(e){var t=e.orderformStore,r=e.configsStore.configs.configsForAcademicWriting,i=r.paperFormatsIds,s=r.paperFormatsById,c=t.formManager,l=c.formValues,u=c.formErrors,d=c.errorHiglightableKeys,f=i.map((function(e){return s[e]}));return n.createElement(a.BG,{testId:"paperFormatControlValidationRepresenter",error:u[o.ks.PAPER_FORMAT_OTHER],show:d[o.ks.PAPER_FORMAT_OTHER]},n.createElement(a.l6,{testId:"paperFormatControl",onChange:function(e){t.formManager.setValue(o.ks.PAPER_FORMAT,Number(e)),t.formManager.finishInteraction(o.ks.PAPER_FORMAT)},options:f,value:l[o.ks.PAPER_FORMAT],placeholder:"Select or type...",triggerClassName:"text-base h-11"}))}));const c=(0,i.WQ)("configsStore","orderformStore")(s)},43553:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(99180),r(95790);var n=r(14041),i=r(56351),o=r(3492),a=r(30567),s=r(75933),c=(0,i.PA)((function(e){var t=e.orderformStore.formManager,r=e.configsStore.configs.configsForAcademicWriting,i=r.paperLevelsIds,c=r.paperLevelsById,l=(0,a.U)("only screen and (max-width: 768px)"),u=i.map((function(e){return c[e]}));return n.createElement(s.z6,{"data-testid":"paperLevelControl",onChange:function(e){t.setValue(o.ks.PAPER_LEVEL,Number(e)),t.finishInteraction(o.ks.PAPER_LEVEL)},options:u,value:t.formValues[o.ks.PAPER_LEVEL],disabled:t.formDisabledKeys[o.ks.PAPER_LEVEL],variant:"solid",orientation:l?"vertical":"horizontal",size:"sm"})}));const l=(0,i.WQ)("orderformStore","configsStore")(c)},3572:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(95790),r(99180),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264);var n=r(14041),i=r(56351),o=r(92998),a=r(75933),s=r(3492);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}
2finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=(0,i.PA)((function(e){var t=e.orderformStore,r=e.configsStore.configs,i=r.payInPartsValuesIds,l=void 0===i?[]:i,u=r.payInPartsValuesById,d=void 0===u?{}:u,f=t.currency,p=t.formManager,h=t.firstInstallmentForPayInParts,m=t.isPayInPartsAvailable,y=c((0,n.useState)(p.formValues[s.ks.PAY_IN_PARTS]),2),v=y[0],g=y[1],b=p.formValues[s.ks.PAY_IN_PARTS_SWITCH],E=l.map((function(e){var r=d[e],i=Number(r.value),o=p.formValues[s.ks.PAY_IN_PARTS]===r.id;return{id:r.id,title:"".concat(r.value," payments"),description:n.createElement("span",{className:(0,a.cn)(o&&"text-blue-600")},n.createElement(a.wn,{className:"font-semibold",value:h.call(t,i),currency:f,render:function(e){return e},fixed:2})," ","per part")}}));return n.createElement("div",{className:"rounded-md bg-bg-subtle p-4"},n.createElement(a.dO,{className:"items-start",checked:b,onCheckedChange:function(e){if(p.setValue(s.ks.PAY_IN_PARTS_SWITCH,e),e){var t=v||(E.length>0?E[0].id:void 0);p.setValue(s.ks.PAY_IN_PARTS,Number(t))}else g(p.formValues[s.ks.PAY_IN_PARTS]),p.setValue(s.ks.PAY_IN_PARTS,void 0);p.finishInteraction(s.ks.PAY_IN_PARTS_SWITCH),p.finishInteraction(s.ks.PAY_IN_PARTS)},color:"primary",disabled:!m,label:n.createElement(n.Fragment,null,"Pay in parts",n.createElement(a.Ex,{color:"green",className:"ml-3"},n.createElement(o.A,{size:14})," Popular choice")),labelDescription:"Select the best option and see how much you need to pay",testId:"payInPartsControl"}),b&&n.createElement("div",{className:"mt-2 lg:mt-4"},n.createElement(a.z6,{"data-testid":"payInPartsRadioGroupControl",className:"grid grid-cols-1 gap-2 lg:grid-cols-2",variant:"solid",onChange:function(e){p.setValue(s.ks.PAY_IN_PARTS,Number(e)),g(e),p.finishInteraction(s.ks.PAY_IN_PARTS)},options:E,value:p.formValues[s.ks.PAY_IN_PARTS]})))}));const d=(0,i.WQ)("orderformStore","configsStore")(u)},7848:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(14041),i=r(56351),o=r(74507),a=r(92998),s=r(75933),c=r(24289),l=r(3492),u={promotion_name:"premium AI report order form",promotion_id:"premium_ai_report_order_form"},d=(0,i.PA)((function(e){var t=e.orderformStore,r=t.formManager,i=t.tariff;(0,n.useEffect)((function(){c.TQ.viewPromotion(u)}),[]);var d=(null==i?void 0:i.hrs)<=4,f=r.formValues[l.ks.ACADEMIC_LEVEL]===l.Tz.GRADUATE,p=r.formValues[l.ks.ACADEMIC_LEVEL]===l.Tz.PHD,h=f||p,m=r.formDisabledKeys[l.ks.PREMIUM_AI_REPORT];return n.createElement(s.B_,null,n.createElement(s.dj,{asChild:!0},n.createElement("div",null,n.createElement(s.Sc,{testId:"PremiumAIReportCheckboxControl",variant:"solid",size:"md",checked:r.formValues[l.ks.PREMIUM_AI_REPORT],onCheckedChange:function(e){r.setValue(l.ks.PREMIUM_AI_REPORT,e),r.formValues[l.ks.PREMIUM_AI_REPORT]?c.TQ.selectPromotion(u):c.TQ.closePromotion(u),r.finishInteraction(l.ks.PREMIUM_AI_REPORT)},label:n.createElement(n.Fragment,null,"Premium AI report",n.createElement(s.Ex,{color:h?"red":"green",variant:h?"solid":"outline",size:"sm",className:"ml-2"},h&&n.createElement(n.Fragment,null,n.createElement(o.A,{size:12})," Popular with ",f?"Graduate":"PhD"," ","students"),!h&&n.createElement(n.Fragment,null,n.createElement(a.A,{size:12})," Popular choice"))),labelDescription:n.createElement(n.Fragment,null,"Upgrade to get reports from"," ",!d&&n.createElement(n.Fragment,null,n.createElement("span",{className:"font-bold"},"Turnitin")," &"," "),n.createElement("span",{className:"font-bold"},"GPTZero")),disabled:m}))),m&&!r.formValues[l.ks.PREMIUM_AI_REPORT]&&n.createElement(s.MO,{side:"top",align:"center",className:"overflow-hidden rounded-md bg-zinc-900 px-3 py-1.5 text-xs font-medium text-white dark:bg-zinc-100 dark:text-gray-950"},"This service is not available for this order"))}));const f=(0,i.WQ)("orderformStore")(d)},8674:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(99180),r(95790),r(25400),r(21555),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(59161),r(29416),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(14041),i=r(56351),o=r(75933),a=r(3492);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=(0,i.PA)((function(e){var t=e.orderformStore,r=e.configsStore.configs.configsForProgramming,i=r.languagesIds,s=r.languagesById,c=r.groupsOflanguagesById,u=e.otherOptionFormStore,d=t.formManager,f=d.formErrors,p=d.formValues,h=d.errorHiglightableKeys,m=d.formDisabledKeys,y=i.filter((function(e){return e!==a.UH.PROGRAMMING_LANGUAGE_OTHER_ID})).map((function(e){var t,r=s[e],n=null===r.groupId?void 0:r.groupId;return l(l({},r),{},{groupId:n,groupTitle:void 0!==n?null===(t=c[n])||void 0===t?void 0:t.title:void 0})}));return n.createElement(o.BG,{testId:"ProgrammingLanguageControlValidationRepresenter",error:f[a.ks.PROGRAMMING_LANGUAGE]||f[a.ks.PROGRAMMING_LANGUAGE_OTHER],show:h[a.ks.PROGRAMMING_LANGUAGE]||h[a.ks.PROGRAMMING_LANGUAGE_OTHER]},n.createElement(o.G3,{testId:"ProgrammingLanguageControlCombobox",inputClass:"text-base h-11",commandPlaceholder:"Select or type...",onChange:function(e,t){d.setValue(a.ks.PROGRAMMING_LANGUAGE,Number(e)),d.finishInteraction(a.ks.PROGRAMMING_LANGUAGE),Number(e)===a.UH.PROGRAMMING_LANGUAGE_OTHER_ID&&(d.setValue(a.ks.PROGRAMMING_LANGUAGE_OTHER,t),d.finishInteraction(a.ks.PROGRAMMING_LANGUAGE_OTHER))},options:y,value:p[a.ks.PROGRAMMING_LANGUAGE],disabled:m[a.ks.PROGRAMMING_LANGUAGE],isCustomTypeEnabled:!0,customOptionHeading:"Add custom programming language",onCustomOptionSelect:function(e){return u.setValue(e)},customOptionId:a.UH.PROGRAMMING_LANGUAGE_OTHER_ID,customOptionText:p[a.ks.PROGRAMMING_LANGUAGE_OTHER]}))}));const f=(0,i.WQ)("orderformStore","configsStore","otherOptionFormStore")(d)},77574:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=(0,i.PA)((function(e){var t=e.orderformStore.formManager;return n.createElement(a.BG,{testId:"progressiveDeliveryControlValidationRepresenter",error:t.formErrors[o.ks.GET_PROGRESSIVE_DELIVERY],show:t.errorHiglightableKeys[o.ks.GET_PROGRESSIVE_DELIVERY]},n.createElement(a.Sc,{testId:"PDCheckbox",variant:"solid",checked:t.formValues[o.ks.GET_PROGRESSIVE_DELIVERY],disabled:!!t.formDisabledKeys[o.ks.GET_PROGRESSIVE_DELIVERY],onCheckedChange:function(e){t.setValue(o.ks.GET_PROGRESSIVE_DELIVERY,e),t.finishInteraction(o.ks.GET_PROGRESSIVE_DELIVERY)},label:"Progressive delivery",labelDescription:"Part-by-part delivery of large orders with a deadline of 5 days or longer, and with a value of $200 or more"}))}));const c=(0,i.WQ)("orderformStore")(s)},85939:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(9098),r(93831),r(98304),r(1569),r(21555),r(96104),r(95570),r(54),r(85146);var n=r(14041),i=r(56351),o=r(3492),a=r(75933);function s(e){return e.replace(/\s*\([^)]*\)/g,"").trim()}var c=(0,i.PA)((function(e){var t=e.orderformStore,r=e.configsStore.configs.configsForAcademicWriting,i=function(e){return e.find((function(e){return e.orderServiceTypeId===t.currentOrderServiceTypeId}))},c=function(e){return t.availableWriters.find((function(t){return t.id===e}))},l=t.availableWriters.reduce((function(e,t){var r=i(t.assignedOrders);return r?(e.push({id:t.id,title:[t.name,t.id,s(r.lastOrderDisciplineTitle)].join(" ")}),e):e}),[]);return n.createElement(a.G3,{testId:"RequestWriterControlCombobox",inputClass:"text-base h-11",commandPlaceholder:"Type to search",options:l,value:t.formManager.formValues[o.ks.REQUESTED_WRITER],renderValue:function(e){var t=c(e.id);if(!t)return null;var r=i(t.assignedOrders);if(!r)return null;var o=r.ordersCount,a=s(r.lastOrderDisciplineTitle);return n.createElement("span",{className:"!text-sm text-zinc-600"},n.createElement("span",{className:"font-medium text-zinc-950"},t.name)," (",n.createElement("span",{className:"before:content-['#']"},t.id),") â ",o," order",o>1?"s, last":""," in ",a)},renderOption:function(e){var a=c(e.id);if(!a)return null;
2var l=i(a.assignedOrders);if(!l)return null;var u,d,f=l.ordersCount,p=s(l.lastOrderDisciplineTitle),h="";if(t.isProgrammingForm&&a.category!==o.rU.REGULAR&&(h="Top programming level + 40%"),t.isAcademicWritingForm){var m=(u=a.paperLevelId,d=a.languageStyleId,r.paperLevelsById[u].percent+r.languageStylesById[d].percent);h="".concat(a.categoryTitle+(m>0?" (+".concat(m,"%)"):""))}return n.createElement("div",{className:"flex w-full justify-between gap-4"},n.createElement("div",{className:"text-left"},n.createElement("p",{className:"m-0 line-clamp-2 !text-sm text-zinc-600 [text-size-adjust:100%]"},n.createElement("span",{className:"font-medium text-zinc-950"},a.name)," (",n.createElement("span",{className:"before:content-['#']"},a.id),")"," ",n.createElement("span",null,"â ",f," order",f>1?"s, last":""," in ",p))),n.createElement("div",{className:"text-right !text-xs font-medium text-zinc-400 empty:hidden"},h))},onChange:function(e){t.formManager.setValue(o.ks.REQUESTED_WRITER,e)},disabled:t.formManager.formDisabledKeys[o.ks.REQUESTED_WRITER],placeholder:"Select...",clearable:!0})}));const l=(0,i.WQ)("orderformStore","configsStore")(c)},65605:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(95570),r(99180);var n=r(14041),i=r(56351),o=r(3492),a=r(30567),s=r(75933),c=(0,i.PA)((function(e){var t=e.configsStore,r=t.configs,i=t.isAcademicWritingSiteForPaidTraffic,c=e.orderformStore.formManager,l=e.userProfileStore.isAuthorized,u=(0,a.U)("only screen and (max-width: 768px)"),d=[];(r.isAcademicWritingEnabled&&!r.isStemOriented||r.isStemOriented&&l)&&d.push({id:o.B5.ACADEMIC_WRITING,title:i?"Humanities":"Writing",description:i?"Research, paper review, case study, etc.":"Essay, editing, article, CV, research paper, etc."}),r.isProgrammingEnabled&&d.push({id:o.B5.PROGRAMMING,title:"Programming",description:"Coding, modeling, design, debugging, etc."}),r.isCalculationsEnabled&&d.push({id:o.B5.CALCULATIONS,title:"Calculations",description:"Problems, equations, computations, balance sheets, etc."});return n.createElement(s.z6,{"data-testid":"ServiceTypeControl",size:u?"sm":"lg",variant:"solid",onChange:function(e){c.setValue(o.ks.ORDER_SERVICE_TYPE,Number(e)),c.finishInteraction(o.ks.ORDER_SERVICE_TYPE)},options:d,value:c.formValues[o.ks.ORDER_SERVICE_TYPE],orientation:"vertical",className:"gap-1.5"})}));const l=(0,i.WQ)("configsStore","orderformStore","userProfileStore")(c)},83167:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(99180);var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=(0,i.PA)((function(e){var t=e.orderformStore,r=e.dialogsStore,i=e.className;return n.createElement(a.Q7,{id:"slidesControl",testId:"slidesControl",className:(0,a.cn)("w-48",i),value:t.formManager.formValues[o.ks.SLIDES_QTY],onChange:function(e){t.formManager.setValue(o.ks.SLIDES_QTY,Number(e))},onInteractionStart:function(){t.formManager.startInteraction(o.ks.SLIDES_QTY)},onInteractionEnd:function(){t.formManager.finishInteraction(o.ks.SLIDES_QTY)},onAttemptPlusMax:function(){r.pushDialog(o.g5.MODAL_ORDERFORM_HOURS_PER_PAGE_NOTICE,{hoursPerPage:t.hoursPerPage})},max:t.slidesMaxAvailable})}));const c=(0,i.WQ)("orderformStore","dialogsStore")(s)},71552:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(99180),r(95790),r(25400),r(21555),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(59161),r(29416),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(14041),i=r(56351),o=r(75933),a=r(3492);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=(0,i.PA)((function(e){var t=e.orderformStore.formManager,r=e.otherOptionFormStore,i=e.configsStore.configs.configsForCalculations,s=i.softwareIds,u=i.softw
2areById,d=t.formErrors,f=t.formValues,p=t.errorHiglightableKeys,h=t.formDisabledKeys,m=s.filter((function(e){return e!==a.UH.SOFTWARE_OTHER_ID})).map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},u[e])}));return n.createElement(o.BG,{testId:"SoftwareControlValidationRepresenter",error:d[a.ks.SOFTWARE]||d[a.ks.SOFTWARE_OTHER],show:p[a.ks.SOFTWARE]||p[a.ks.SOFTWARE_OTHER]},n.createElement(o.G3,{testId:"SoftwareControlCombobox",inputClass:"text-base h-11",commandPlaceholder:"Select or type...",onChange:function(e,r){t.setValue(a.ks.SOFTWARE,Number(e)),t.finishInteraction(a.ks.SOFTWARE),Number(e)===a.UH.SOFTWARE_OTHER_ID&&(t.setValue(a.ks.SOFTWARE_OTHER,r),t.finishInteraction(a.ks.SOFTWARE_OTHER))},options:m,value:f[a.ks.SOFTWARE],disabled:h[a.ks.SOFTWARE],isCustomTypeEnabled:!0,customOptionHeading:"Add custom software",onCustomOptionSelect:function(e){return r.setValue(e)},customOptionId:a.UH.SOFTWARE_OTHER_ID,customOptionText:f[a.ks.SOFTWARE_OTHER]}))}));const d=(0,i.WQ)("orderformStore","otherOptionFormStore","configsStore")(u)},49432:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(3492),a=r(32869),s=r(75933),c=(0,i.PA)((function(e){var t=e.orderformStore;return n.createElement(s.$n,{"data-testid":"sourcesControlTrigger",size:"sm",variant:"outline",onClick:function(){return t.setIsControlsTriggered(o.ks.SOURCES_QTY,!0)}},n.createElement(a.A,{size:16}),"Specify number of sources")}));const l=(0,i.WQ)("orderformStore")(c)},7823:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(99180);var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=(0,i.PA)((function(e){var t=e.orderformStore,r=e.className,i=t.formManager,s=t.sourcesMaxAvailable;return n.createElement(a.Q7,{id:"sourcesControl",testId:"sourcesControl",value:i.formValues[o.ks.SOURCES_QTY],onChange:function(e){t.formManager.setValue(o.ks.SOURCES_QTY,Number(e))},onInteractionStart:function(){t.formManager.startInteraction(o.ks.SOURCES_QTY)},onInteractionEnd:function(){t.formManager.finishInteraction(o.ks.SOURCES_QTY)},max:s,className:(0,a.cn)("w-48",r)})}));const c=(0,i.WQ)("orderformStore")(s)},47068:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=[{id:"single",title:"Single-spaced"},{id:"double",title:"Double-spaced"}],c=(0,i.PA)((function(e){var t=e.orderformStore,r=e.className,i=e.selectTriggerClassName,c=Boolean(t.formManager.formDisabledKeys[o.ks.SPACING]);return n.createElement("div",{className:r},n.createElement(a.Yl,null,n.createElement(a.B_,null,n.createElement(a.dj,{asChild:!0,className:(0,a.cn)("w-full min-w-44 md:max-w-56",i),"data-testid":"SpacingSelectControlPopoverTrigger"},n.createElement("div",null,n.createElement(a.l6,{testId:"SpacingSelectControl",triggerClassName:"text-base h-11",options:s,value:t.formManager.formValues[o.ks.SPACING],onChange:function(e){t.formManager.setValue(o.ks.SPACING,e),t.formManager.finishInteraction(o.ks.SPACING)},disabled:c}))),c&&n.createElement(a.MO,{className:"flex w-64 rounded-md border border-zinc-200 bg-white px-4 py-3 text-sm text-zinc-950 shadow-md",align:"center","data-testid":"SpacingSelectControlPopoverContent"},"Only double-spacing is available when selecting words. If you need single spacing, mention it in the Instructions field."))))}));const l=(0,i.WQ)("orderformStore")(c)},49611:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(14041),i=r(56351),o=r(92998),a=r(75933),s=r(24289),c=r(3492),l=(0,i.PA)((function(e){var t=e.orderformStore,r=t.formManager,i=t.cost,l={promotion_name:"split payment order form",promotion_id:"split_payment_order_form"};(0,n.useEffect)((function(){s.TQ.viewPromotion(l)}),[]);var u=i.servicesById[c.zv.SPLIT_PAYMENT].pricePercent;return n.createElement("div",{className:"rounded-md bg-bg-subtle p-4"},n.createElement(a.dO,{className:"items-start",checked:Boolean(r.formValues[c.ks.SPLIT_PAYMENT]),disabled:r.formDisabledKeys[c.ks.SPLIT_PAYMENT],onCheckedChange:function(e){r.setValue(c.ks.SPLIT_PAYMENT,e),r.formValues[c.ks.SPLIT_PAYMENT]?s.TQ.selectPromotion(l):s.TQ.closePromotion(l),r.finishInteraction(c.ks.SPLIT_PAYMENT)},color:"primary",label:n.createElement(n.Fragment,null,"Pay in 2",n.createElement(a.Ex,{color:"green",className:"ml-3"},n.createElement(o.A,{size:14})," Popular choice"),n.createElement("span",{className:"ml-auto text-text-muted"},"+".concat(u,"%"))),labelDescription:"Pay 50% of the price now and 50% when the task is ready",testId:"payIn2Control"}))}));const u=(0,i.WQ)("orderformStore")(l)},62041:(e,t,r)=>{"use strict";r.d(t,{t:()=>j});var n=r(14041),i=r(58359),o=r(98395),a=r(6339),s=r(29430),c=r(22994),l=r(80091),u=r(3449),d=r(27550),f=r(4595),p=r(18856),h=r(75846),m=r(95764),y=r(61219),v=r(58591),g=r(6890),b=r(16121),E=r(83173),w=r(49035),S=r(40878),A=r(62896),_=r(72750),x=r
2(32817),P=r(1462),I=r(95340),k=r(88605),O=r(34908),T=r(98518),C=r(9980),R=r(2873),N=r(9971),L=r(99137),D=r(21838),M=r(91092),F={"source-code":i.A,"scripts-and-source-code":o.A,"simple-database":a.A,"operations-and-computations":s.A,"simple-calculations":c.A,"simple-computations":l.A,"statistical-scripts":u.A,"screenshots-of-outputs":d.A,"simple-queries-and-charts":f.A,"charts-and-calculations":f.A,"simple-charts-and-diagrams":p.A,"simple-drawings-tables-map":h.A,"simple-tables-and-charts":m.A,"short-answers-to-questions":y.A,computations:v.A,calculations:g.A,"tables-and-charts":b.A,database:a.A,"structure-and-flowcharts":E.A,"simple-statistical-models":w.A,"models-charts-calculations":S.A,"models-drawings-charts":A.A,"simple-3d-cad-model":_.A,"charts-and-diagrams":f.A,"drawings-tables-map":h.A,"statistical-models":w.A,"3d-cad-model":_.A,"problem-analysis":x.A,"data-schema":P.A,"experiment-observations":I.A,"observations-and-forecasts":k.A,"detailed-explanations":O.A,"brief-report":T.A,documentation:C.A,"detailed-report":R.A,"complex-models":N.A,"advanced-report":L.A,presentation:D.A,other:M.A},j=function(e){var t=e.slug,r=F[t]||M.A;return n.createElement(r,{size:20,className:"mr-2 flex-shrink-0"})}},97318:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(95790),r(85146),r(99180),r(25400),r(21555);var n=r(14041),i=r(56351),o=r(75933),a=r(3492),s=r(62041),c=(0,i.PA)((function(e){var t=e.orderformStore.formManager,r=e.configsStore.configs,i=r.deliverablesDictionary,c=r.configsForCalculations,l=t.formErrors,u=t.errorHiglightableKeys,d=t.formValues,f=c.sizesIds.map((function(e){var t=c.sizesById[e];return{id:t.id,title:t.name}})),p=c.descriptors.filter((function(e){return e.taskSizeId===d[a.ks.TASK_SIZE]&&e.disciplineId===d[a.ks.DISCIPLINE]}))[0];return n.createElement(o.BG,{error:l[a.ks.TASK_SIZE],show:u[a.ks.TASK_SIZE]},n.createElement(o.tU,{value:String(d[a.ks.TASK_SIZE]),onValueChange:function(e){t.setValue(a.ks.TASK_SIZE,Number(e)),t.finishInteraction(a.ks.TASK_SIZE)},className:"w-full rounded-md border border-zinc-200 p-2"},n.createElement(o.j7,{className:"w-full flex-col lg:flex-row"},f.map((function(e){return n.createElement(o.Xi,{key:e.id,value:String(e.id),className:"w-full grow lg:w-auto"},e.title)}))),p&&n.createElement(o.av,{value:String(d[a.ks.TASK_SIZE])},n.createElement("div",{className:"lg:grid lg:grid-cols-2"},n.createElement("div",{className:"mt-2 rounded-lg bg-bg-subtle p-4"},n.createElement("div",{className:"text-sm font-semibold text-zinc-950"},"Examples:"),n.createElement("div",{className:"mt-2 text-sm text-zinc-950 lg:col-span-2"},p.title)),n.createElement("div",{className:"mt-2 p-4 lg:ml-2"},n.createElement("div",{className:"text-sm font-semibold text-zinc-950"},"Possible deliverables:"),n.createElement("ul",{className:"mt-2 space-y-2 text-sm text-zinc-950"},p.deliverablesIds.map((function(e){return n.createElement("li",{className:"flex items-start",key:e},n.createElement(s.t,{slug:i[e].slug}),i[e].name)}))))))))}));const l=(0,i.WQ)("orderformStore","configsStore")(c)},25234:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(95790),r(85146),r(99180),r(1569),r(21555);var n=r(14041),i=r(56351),o=r(75933),a=r(3492),s=r(62041),c=(0,i.PA)((function(e){var t=e.orderformStore.formManager,r=e.configsStore.configs,i=r.deliverablesDictionary,c=r.taskExamplesDictionary,l=r.configsForProgramming,u=t.formErrors,d=t.errorHiglightableKeys,f=t.formValues,p=l.sizesIds.map((function(e){var t=l.sizesById[e];return{id:t.id,title:t.name}})),h=l.descriptors.find((function(e){return e.taskSizeId===f[a.ks.TASK_SIZE]&&e.disciplineId===f[a.ks.DISCIPLINE]}));return n.createElement(o.BG,{error:u[a.ks.TASK_SIZE],show:d[a.ks.TASK_SIZE]},n.createElement(o.tU,{value:String(f[a.ks.TASK_SIZE]),onValueChange:function(e){t.setValue(a.ks.TASK_SIZE,Number(e)),t.finishInteraction(a.ks.TASK_SIZE)},className:"w-full rounded-md border border-zinc-200 p-2"},n.createElement(o.j7,{className:"w-full flex-col lg:flex-row"},p.map((function(e){return n.createElement(o.Xi,{key:e.id,value:String(e.id),className:"w-full grow lg:w-auto"},e.title)}))),h&&n.createElement(o.av,{value:String(f[a.ks.TASK_SIZE])},n.createElement("div",{className:"lg:grid lg:grid-cols-2"},n.createElement("div",{className:"py-4 text-sm text-zinc-950 first-letter:uppercase lg:col-span-2"},h.title),n.createElement("div",{className:"rounded-lg bg-bg-subtle p-4"},n.createElement("div",{className:"text-sm font-semibold text-zinc-950"},"Examples:"),n.createElement("div",{className:"ml-4 mt-2"},n.createElement("ul",{className:"list-disc text-sm text-zinc-950"},h.examplesIds.map((function(e){return n.createElement("li",{key:e},c[e].title)}))))),n.createElement("div",{className:"p-4 lg:ml-2"},n.createElement("div",{className:"text-sm font-semibold text-zinc-950"},"Possible deliverables:"),n.createElement("ul",{className:"mt-2 space-y-2 text-sm text-zinc-950"},h.deliverablesIds.map((function(e){return n.createElement("li",{className:"flex items-start",key:e},n.createElement(s.t,{slug:i[e].slug}),i[e].name)}))))))))}));const l=(0,i.WQ)("orderformStore","configsStore")(c)},17471:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i.A,S:()=>n.A});var n=r(25234),i=r(97318)},78522:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(75933),a=r(3492),s=(0,i.PA)((function(e){var t=e.orderformStore.formManager,r=t.formDisabledKeys[a.ks.TOP_EXPERT];return n.createElement(o.B_,null,n.createElement(o.dj,{asChild:!0},n.createElement("div",null,n.createElement(o.Sc,{testId:"TopExpertCheckboxControl",variant:"solid",checked:t.formValues[a.ks.TOP_EXPERT],onCheckedChange:function(e){t.setValue(a.ks.TOP_EXPERT,e),t.finishInteraction(a.ks.TOP_EXPERT)},label:"Top programming level",labelDescription:"We assign top expert for your task",disabled:r,size:"lg"}))),r&&!t.formValues[a.ks.TOP_EXPERT]&&n.createElement(o.MO,{side:"top",align:"center",className:"overflow-hidden rounded-md bg-zinc-900 px-3 py-1.5 text-xs font-medium text-white dark:bg-zinc-100 dark:text-gray-950"},"This service is not available for this order"))}));const c=(0,i.WQ)("orderformStore")(s)},10324:(e,t,r)=>{"use strict";r.d(t,{Hy:()=>o,Jd:()=>a,aS:()=>s});r(96656),r(37729),r(21555),r(94356),r(45993),r(24493),r(22892),r(78370),r(95570),r(93249),r(93831
2),r(30488),r(95790),r(38415),r(30935),r(68291),r(66542),r(37210),r(79683),r(69399),r(48851),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(40890),r(66264);function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o={powerpoint:["presentation/ppt"],"power point":["presentation/ppt"]};function a(e){var t=new Map;return Object.entries(e).forEach((function(e){var r=n(e,2),i=r[0];r[1].forEach((function(e){t.has(e)||t.set(e,[]),t.get(e).push(i)}))})),Object.fromEntries(t)}function s(e,t,r){var n,i=e.toLowerCase(),o=t.toLowerCase().split(/\s+/),a=null!==(n=null==r?void 0:r.map((function(e){return e.toLowerCase()})))&&void 0!==n?n:[];return o.every((function(e){return i.includes(e)||a.some((function(t){return t.includes(e)}))}))?1:0}},38248:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(99180),r(95790),r(25400),r(21555),r(30935),r(68291),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(59161),r(29416),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=r(10324);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=(0,i.PA)((function(e){var t=e.orderformStore,r=e.configsStore,i=e.otherOptionFormStore,c=r.configs.configsForAcademicWriting,l=c.paperTypesIds,d=c.paperTypesById,f=t.formManager,p=f.formValues,h=f.formDisabledItemsIds,m=f.formErrors,y=f.errorHiglightableKeys,v=(0,s.Jd)(s.Hy),g=l.filter((function(e){return e!==o.UH.TYPE_OF_PAPER_OTHER_ID})).map((function(e){return u(u({},d[e]),{},{disabled:h[o.ks.TYPE_OF_PAPER].includes(e),keywords:(null==v?void 0:v[d[e].title.toLowerCase()])||[]})}));return n.createElement(a.BG,{testId:"TypeOfPaperControlValidationRepresenter",error:m[o.ks.TYPE_OF_PAPER]||m[o.ks.TYPE_OF_PAPER_OTHER],show:y[o.ks.TYPE_OF_PAPER]||y[o.ks.TYPE_OF_PAPER_OTHER]},n.createElement(a.G3,{testId:"TypeOfPaperControlCombobox",inputClass:"text-base h-11",commandPlaceholder:"Select or type...",options:g,shouldOptionsBeTrulyDisabled:!1,value:p[o.ks.TYPE_OF_PAPER],onChange:function(e,t){f.setValue(o.ks.TYPE_OF_PAPER,Number(e)),f.finishInteraction(o.ks.TYPE_OF_PAPER),Number(e)===o.UH.TYPE_OF_PAPER_OTHER_ID&&(f.setValue(o.ks.TYPE_OF_PAPER_OTHER,t),f.finishInteraction(o.ks.TYPE_OF_PAPER_OTHER))},onBlur:function(){f.finishInteraction(o.ks.TYPE_OF_PAPER)},isCustomTypeEnabled:!0,customOptionHeading:"Add custom type of paper",onCustomOptionSelect:function(e){return i.setValue(e)},customOptionId:o.UH.TYPE_OF_PAPER_OTHER_ID,customOptionText:p[o.ks.TYPE_OF_PAPER_OTHER],customFilter:s.aS}))}));const p=(0,i.WQ)("orderformStore","configsStore","otherOptionFormStore")(f)},44564:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(75933),a=r(3492),s=(0,i.PA)((function(e){var t=e.orderformStore.formManager,r=t.formDisabledKeys[a.ks.WELL_COMMENTED_CODE];return n.createElement(o.B_,null,n.createElement(o.dj,{asChild:!0},n.createElement("div",null,n.createElement(o.Sc,{testId:"WellCommentedCodeCheckboxControl",variant:"solid",checked:t.formValues[a.ks.WELL_COMMENTED_CODE],onCheckedChange:function(e){t.setValue(a.ks.WELL_COMMENTED_CODE,e),t.finishInteraction(a.ks.WELL_COMMENTED_CODE)},label:"Well-commented code",labelDescription:"You get all methods and functions in your code
2commented.",disabled:r,size:"lg"}))),r&&!t.formValues[a.ks.WELL_COMMENTED_CODE]&&n.createElement(o.MO,{side:"top",align:"center",className:"overflow-hidden rounded-md bg-zinc-900 px-3 py-1.5 text-xs font-medium text-white dark:bg-zinc-100 dark:text-gray-950"},"This service is not available for this order"))}));const c=(0,i.WQ)("orderformStore")(s)},17266:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>n.A,O0:()=>i.A,nD:()=>o.A});var n=r(35377),i=r(21691),o=r(26612)},13386:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(75933),a=r(3492),s=r(17266),c=(0,i.PA)((function(e){var t=e.orderformStore,r=e.orderformValues,i=e.thirdPartySignInStore,c=function(){t.onAuthorized()};return(0,n.useEffect)((function(){return t.configure({initialValues:r}).catch((function(){})),i.initGoogleOneTapSignIn(c).catch((function(e){console.log(e)})),t.initStorage(Boolean(r)).catch((function(){})),t.showUnpaidDialogIfNeeded().catch((function(){})),function(){t.notificationsManager.removeNotification(a.TB.FORM_RESTORED).catch((function(){})),t.reset(),i.clearGoogleSignIn()}}),[]),t.isLoading?n.createElement(o.x7,{enabled:!0,fullScreen:!0}):n.createElement(s.Ay,null)}));const l=(0,i.WQ)("orderformStore","thirdPartySignInStore")(c)},84928:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(75933),a=r(17266),s=(0,i.PA)((function(e){var t=e.orderformStore,r=e.orderId;return(0,n.useEffect)((function(){return t.configureFromOrder(r).catch((function(){})),function(){t.reset()}}),[]),t.isLoading?n.createElement(o.x7,{enabled:!0,fullScreen:!0}):n.createElement(a.Ay,null)}));const c=(0,i.WQ)("orderformStore")(s)},14507:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(75933),a=r(17266),s=(0,i.PA)((function(e){var t=e.orderformStore,r=e.orderId;return(0,n.useEffect)((function(){return t.configureFromOrder(r).catch((function(){})),function(){t.reset()}}),[]),t.isLoading?n.createElement(o.x7,{enabled:!0,fullScreen:!0}):n.createElement(a.Ay,null)}));const c=(0,i.WQ)("orderformStore")(s)},39808:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d});r(95790),r(92221),r(17306);var n=r(14041),i=r(56351),o=r(6146),a=r(24289),s=r(75933);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}var l=function(e){var t=e.buttons;return t?n.createElement(n.Fragment,null,t.map((function(e){var t=e.id,r=e.isVisible,i=e.handleClick,o=e.variant,a=e.text;return r?n.createElement(s.$n,{key:t,variant:o,onClick:i,className:"w-full"},a):null}))):null},u=(0,i.PA)((function(e){var t=e.tip,r=e.className,i=e.color,u=void 0===i?"success":i,d=function(e){return(0,n.useEffect)((function(){(0,a.ZH)(e)}),[e]),e}(t),f=d.html;return n.createElement(s.Fc,c({color:null!=u?u:void 0,className:r,icon:function(){return n.createElement(o.A,{size:20})},description:n.createElement("div",{dangerouslySetInnerHTML:{__html:f}})},t.actionButtons&&{action:function(){return n.createElement(l,{buttons:t.actionButtons})}}))}));const d=(0,i.WQ)("orderformStore")(u)},13098:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.Ay});var n=r(39808)},94419:(e,t,r)=>{"use strict";r.d(t,{O0:()=>s.O0,XL:()=>n.A,dq:()=>i.A,kz:()=>o.A,mK:()=>a.A,nD:()=>s.nD});var n=r(13386),i=r(84928),o=r(14507),a=r(91837),s=r(17266)},40413:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(95790);var n=r(14041),i=r(56351),o=r(972),a=r(10933),s=r(10484),c=r(75933),l=r(6380),u=(0,i.PA)((function(e){var t=e.orders,r=e.hasMore,i=e.loadMore,u=e.isBlocked,d=e.configsStore,f=e.routerStore,p=d.configs,h=p.isAcademicWritingEnabled,m=p.isCalculationsEnabled,y=p.isProgrammingEnabled,v=h||m||y;return n.createElement("div",{className:"MyOrdersList flex grow flex-col"},0===t.length&&!u&&n.createElement("div",{className:"flex grow flex-col justify-center py-4"},n.createElement(c.L5,{icon:o.A,size:"lg",className:"mx-auto mb-2"}),n.createElement("div",{className:"text-center text-base font-medium text-zinc-950"},"There are no orders yet"),v&&n.createElement("div",{className:"mx-auto mt-6"},n.createElement(c.$n,{onClick:function(){f.pushLocation("/orders/create")}},n.createElement(a.A,{size:20}),"New order"))),n.createElement(c.x7,{enabled:u,sticky:!0},n.createElement("div",{className:"flex flex-col gap-4"},t.map((function(e){return n.createElement(l.A,{key:e.id,order:e.order,isRevisionType:e.isRevisionType})}))),r&&n.createElement("div",{className:"mt-4 flex justify-center"},n.createElement(c.$n,{onClick:i,variant:"outline",size:"sm"},"Load more",n.createElement(s.A,{size:16,color:"#18181B"})))))}
2));const d=(0,i.WQ)("configsStore","routerStore")(u)},39618:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(68450);var n=r(14041),i=r(56351),o=r(3492),a=r(58165);const s=(0,i.PA)((function(e){var t=e.order,r=t.orderServiceTypeId,i=t.academicLevelTitle,s=t.getOrderTaskSizeTitle,c=t.pages,l=t.isPagesWereCalculatedByWords,u=t.wordsQuantity,d="".concat(c," ").concat((0,a.fk)("page",c)),f="".concat(u," ").concat((0,a.fk)("word",u));switch(r){case o.B5.PROGRAMMING:case o.B5.CALCULATIONS:return n.createElement("span",null,s);case o.B5.REVISION_MAJOR:case o.B5.REVISION_MINOR:case o.B5.ACADEMIC_WRITING:default:return n.createElement(n.Fragment,null,n.createElement("span",null,l?f:d),i&&n.createElement("span",null,i))}}))},85350:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(54);var n=r(14041),i=r(56351),o=r(33664),a=r(75933),s=r(3492);const c=(0,i.PA)((function(e){var t=e.order,r=t.orderServiceTypeId,i=t.id,c=t.orderServiceTypeName,l=t.disciplineTitle,u=t.title,d=t.topcat;switch(r){case s.B5.PROGRAMMING:case s.B5.CALCULATIONS:return n.createElement(a.$n,{variant:"link",className:"block truncate text-base font-semibold hover:no-underline hover:opacity-80 [&>*:not(:last-child)]:after:px-1 [&>*:not(:last-child)]:after:content-['/']",asChild:!0},n.createElement(o.N_,{to:"/order/".concat(i),"data-testid":"myOrdersListItem__title",title:[c,l].join(" / ")},n.createElement("span",null,c),l&&n.createElement("span",null,l)));case s.B5.REVISION_MAJOR:case s.B5.REVISION_MINOR:case s.B5.ACADEMIC_WRITING:default:return n.createElement(a.$n,{variant:"link",className:"block truncate text-base font-semibold hover:no-underline hover:opacity-80 [&>*:not(:last-child)]:after:px-1 [&>*:not(:last-child)]:after:content-['/']",asChild:!0},n.createElement(o.N_,{to:"/order/".concat(i),"data-testid":"myOrdersListItem__title",title:[d,u].join(" / ")},n.createElement("span",null,d||l),u&&n.createElement("span",null,u)))}}))},6380:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var n=r(14041),i=r(56351),o=r(33664),a=r(28563),s=r(41440),c=r(51515),l=r(9594),u=r(27079),d=r(72519),f=r(75933),p=r(24289),h=r(3492),m=r(58165),y=r(2343),v=r(85350),g=r(39618),b=(0,i.PA)((function(e){var t,r=e.order,i=e.ordersStore,b=e.dialogsStore,E=e.isRevisionType,w=(0,m.TL)(),S=null===(t=r.appliedCoupon)||void 0===t?void 0:t.value;return n.createElement(f.Zp,{className:"MyOrdersListItem"},n.createElement(f.aR,{className:"p-4 pb-3 md:p-6 md:pb-3"},n.createElement("div",{className:"flex flex-col gap-3 md:flex-row md:justify-between"},n.createElement("div",{className:"md:max-w-[70%]"},n.createElement(v.A,{order:r}),n.createElement("div",{className:"MyOrdersListItem__description mt-3 text-sm text-zinc-950 [&>*:not(:last-child)]:after:px-1 [&>*:not(:last-child)]:after:text-zinc-400 [&>*:not(:last-child)]:after:content-['/']"},n.createElement("span",{className:"before:content-['#']"},r.id),n.createElement(g.A,{order:r})),n.createElement("div",{className:"MyOrdersListItem__deadline mt-1.5 text-sm text-zinc-500"},n.createElement("span",{className:"MyOrdersListItem__deadline-label inline-flex gap-1 pr-1"},n.createElement(a.A,{size:16}),n.createElement("span",{className:"hidden md:inline"},r.statusId!==h.Th.FINISHED&&r.statusId!==h.Th.CANCELLED&&"Deadline:",r.statusId===h.Th.FINISHED&&"Finished:",r.statusId===h.Th.CANCELLED&&"Canceled:")),n.createElement("span",{className:"MyOrdersListItem__deadline-value text-zinc-950"},r.deadlineString))),n.createElement("div",{className:"flex justify-between gap-2 md:flex-col md:items-end"},n.createElement(f.AM,null,n.createElement(f.Wv,null,n.createElement(y.A,{statusId:r.statusId})),n.createElement(f.hl,{sideOffset:4,align:w?"start":"end",className:"p-4 text-sm text-zinc-500"},r.statusDescription)),n.createElement(f.Bc,null,n.createElement(f.m_,null,n.createElement(f.k$,{asChild:!0},n.createElement("div",{className:"flex items-center justify-end gap-2"},S&&n.createElement("div",{className:"text-sm text-zinc-500 line-through"},n.createElement(f.wn,{value:r.noDiscountPrice})),n.createElement("div",{className:"text-xl font-semibold text-emerald-700"},n.createElement(f.wn,{value:r.price})))),S&&n.createElement(f.ZI,{side:"top",align:"center"},n.createElement(f.wn,{value:r.noDiscountPrice-r.price,render:function(e){var t,n="You save ".concat(e);return(null===(t=r.appliedCoupon)||void 0===t?void 0:t.discountTypeId)===h.NS.PERCENT&&(n+=" (".concat(r.a
2ppliedCoupon.value,"%)")),n}}),n.createElement(f.PR,null))))))),n.createElement(f.wv,null),n.createElement(f.Wu,{className:"flex flex-col-reverse gap-4 px-4 py-3 md:flex-row md:justify-between md:px-6"},n.createElement("div",{className:"flex items-center justify-between gap-2 md:justify-start"},n.createElement(f.$n,{variant:r.newMessagesCount>0?"primary":"outline",size:"sm",className:"MyOrdersListItem__button--messages w-full md:w-auto",asChild:!0},n.createElement(o.N_,{to:"/order/".concat(r.id,"/messages")},n.createElement(s.A,{size:16}),"Messages",r.newMessagesCount>0&&n.createElement(f.Ex,{variant:"soft",color:"default",size:"sm"},r.newMessagesCount))),n.createElement(f.$n,{variant:r.newFilesCount>0?"primary":"outline",size:"sm",className:"MyOrdersListItem__button--files w-full md:w-auto",asChild:!0},n.createElement(o.N_,{to:"/order/".concat(r.id,"/files")},n.createElement(c.A,{size:16}),"Files",r.newFilesCount>0&&n.createElement(f.Ex,{variant:"soft",color:"default",size:"sm"},r.newFilesCount)))),n.createElement("div",{className:"flex items-center justify-between gap-2 md:justify-end"},r.statusId===h.Th.FAKE&&n.createElement(f.x7,{enabled:r.isBeingCancelled,size:"sm",className:"w-full md:w-auto"},n.createElement(f.$n,{variant:"ghostDestructive",size:"sm",className:"MyOrdersListItem__button--cancel w-full md:w-auto",onClick:function(){i.cancelOrder(r.id).catch((function(){}))},"data-testid":"myOrdersListItem-cancelButton",id:"cancelOrderButton-myOrdersListItem"},"Cancel order")),r.statusId===h.Th.FAKE&&r.isOrderServiceTypeEnabled&&n.createElement(f.$n,{size:"sm",className:"MyOrdersListItem__button--review-and-pay w-full md:w-auto",id:"reviewAndPayButton-myOrdersListItem",asChild:!0},n.createElement(o.N_,{to:"/order/".concat(r.id,"/pay")},n.createElement(l.A,{size:16}),"Review & Pay")),r.isVisibleTipsForWriterButton&&n.createElement(f.$n,{variant:"outline",size:"sm",className:"MyOrdersListItem__button--tips w-full md:w-auto",onClick:function(){b.pushDialog(h.g5.MODAL_TIPS,{orderId:r.id}),(0,p.WH)("tipsYourWriterOrderButtonClick")},id:"leaveTipButton-myOrdersListItem"},n.createElement(u.A,{size:16}),"Leave a tip"),(r.statusId===h.Th.CANCELLED||r.statusId===h.Th.FINISHED)&&!E&&r.isOrderServiceTypeEnabled&&n.createElement(f.$n,{variant:"outline",size:"sm",className:"MyOrdersListItem__button--duplicate w-full md:w-auto",asChild:!0,id:"duplicateButton-myOrdersListItem"},n.createElement(o.N_,{to:"/order/".concat(r.id,"/reorder")},n.createElement(d.A,{size:16}),"Duplicate")))),r.isLate&&r.statusId!==h.Th.FINISHED&&n.createElement(n.Fragment,null,n.createElement(f.wv,null),n.createElement(f.wL,{className:"px-4 py-3 md:px-6"},n.createElement(f.Fc,{variant:"soft",color:"warning",className:"w-full",description:"Your order is still in progress, weâll send you a completed essay ASAP. Youâll be able to download it for free."}))))}));const E=(0,i.WQ)("ordersStore","dialogsStore")(b)},94214:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(95790);var n=r(14041),i=r(56351),o=r(41440),a=r(75933),s=[{question:"Can you do my assignment?",answer:"Our team is ready to solve any academic problems you may face. We cover everything from essay writing to coding assignment assistance and manage to find a suitable expert for 99.5% of orders. We are committed to providing you with unique solutions to your academic issues and delivering an order tailored to your specific needs. "},{question:"How does our service work?",answer:"Placing an order is fast and easy. We treasure our clientsâ time, which is why your only job is to fill out an order form and specify all the necessary task instructions. As soon as you are done, we will find the most suitable expert for your task and deliver an outstanding order right on time. Free up more of your time by letting us deal with your assignment writing."},{question:"How do you ensure the originality of the assistance provided?",answer:n.createElement(n.Fragment,null,n.createElement("p",{className:"m-0 mb-3"},"Each order is crafted from scratch by our top-notch writers according to your specific requirements. All orders must also pass our internal plagiarism and AI checks to guarantee uniqueness."),n.createElement("p",{className:"m-0"},"We believe that great papers only come from great writers, which is why our team of experts is our main asset. Their employment starts with a multi-layered and rigorous hiring process, so only the most skilled and motivated applicants (which make up 8% of the total candidates) get onto the team. On top of that, we offer coaching and support every step of the way, performing quality control checks and monthly evaluations so that our writers continue to exceed your expectations."))},{question:"How are you different from other services on the market?",answer:"Our 19 years of experience, focus on quality and providing custom solutions, along with overemphasis on having an expert team thatâs truly composed of the best of the best make us stand out from the rest. Together with an easy ordering process, a caring support team, and a customer-first approach, you get a service where you can find all the help you need."},{question:"How much will my order cost?",answer:"The key factors affecting the price are the order's urgency and the quality standard required. To get the most out of our service, order as early as possible, as the more time you provide us with, the less youâll pay. Note that you can pay for your order in 2 parts: 50% when placing the order and the rest after weâve proven that the assignment is complete."},{question:"Do you offer free revisions?",answer:"Yes, we do. Our goal is to provide you with a custom solution that meets your expectations. Therefore, our experts are eager to edit the order until you are fully satisfied. All revisions are made free of charge, provided that the initial instructions remain unchanged. "},{question:"Can I get a refund?",answer:"Yes, we offer partial and full refunds. Your money will be refunded to your card within the shortest time possible according to our money-back policy. However, issuing refunds is a rare practice for us due to the strict quality check that each order goes through. "}],c=(0,i.PA)((function(e){var t=e.configsStore;return n.createElement("div",null,n.createElement("div",{className:"mb-2 text-xl font-semibold text-zinc-950 md:mb-6"},"FAQ: Get to know our service"),n.createElement("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start lg:gap-8"},n.createElement(a.Zp,{className:"grow overflow-hidden"},n.createElement(a.nD,{type:"multiple"},s.map((function(e,t){return n.createElement(a.As,{key:e.question,value:"item-".concat(t)},n.createElement(a.$m,null,e.question),n.createElement(a.ub,null,n.createElement("p",{className:"m-0"},e.answer)))})))),!t.isIOSapp&&n.createElement(a.Zp,{className:"shrink-0 bg-[#FAFAFA] p-8 text-center shadow-none"},n.createElement(a.L5,{icon:o.A,size:"lg",className:"mx-auto mb-4"}),n.createElement("div",{className:"mb-4 text-base font-semibold"},"Got questions?"),n.createElement("div",{className:"mb-4 text-sm"},"Our support team is here to help"),n.createElement(a.$n,{variant:"outline",size:"lg",onClick:function(){window.communicationPanel.openChat()}},"Open Live chat"))))}));const l=(0,i.WQ)("configsStore")(c)},95284:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831
2),r(40890),r(66264);var n=r(14041),i=r(56351),o=r(98518),a=r(63844),s=r(98395),c=r(6890),l=r(75933),u=r(58165),d=r(12419),f=r(57977),p=r(54240);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y=function(e,t,r){r(Math.floor(Math.random()*(t-e+1))+e)},v=(0,i.PA)((function(e){var t=e.routerStore,r=e.configsStore,i=h((0,n.useState)(0),2),m=i[0],v=i[1],g=h((0,n.useState)(0),2),b=g[0],E=g[1],w=h((0,n.useState)(0),2),S=w[0],A=w[1],_=(0,u.TL)();(0,n.useEffect)((function(){y(302,352,v),y(91,132,E),y(80,113,A)}),[]);return n.createElement(l.Zp,{className:"mb-8 md:mb-12"},n.createElement(l.aR,null,n.createElement(l.ZB,{className:"text-xl"},"Welcome to ",r.configs.siteFullName.toLowerCase()," ð"),n.createElement(l.BT,null,"We are here to help you do your tasks faster and live your life to the fullest")),n.createElement(l.wv,null),n.createElement(l.Wu,{className:"flex flex-col gap-6 p-4 lg:flex-row lg:justify-between lg:p-6"},r.configs.isAcademicWritingEnabled&&n.createElement("div",{className:"flex flex-col justify-between gap-4 rounded-lg bg-bg-subtle p-4 lg:w-2/5 lg:shrink-0 lg:grow lg:p-8"},n.createElement("div",null,n.createElement(l.L5,{icon:o.A,size:_?"md":"lg",className:"mb-4"}),n.createElement("div",{className:"mb-0.5 text-xl font-semibold text-zinc-950"},"Writing"),n.createElement("div",{className:"text-base text-zinc-950"},"Original, human-written papers tailored to your needs")),n.createElement("div",null,n.createElement("div",{className:"mb-4 flex flex-wrap items-center gap-x-1 gap-y-2"},n.createElement("div",{className:"md:w-full"},n.createElement("img",{src:d,width:70,height:32,alt:"Writing"})),n.createElement("div",{className:"text-sm font-semibold text-zinc-950"},m," writers"),n.createElement(l.Ex,{variant:"soft",color:"green",size:"md",className:""},n.createElement(a.A,{size:14})," online")),n.createElement(l.$n,{size:"lg",onClick:function(){t.pushLocation("/orders/create/?orderServiceTypeId=37")}},"Order Writing"))),r.configs.isProgrammingEnabled&&n.createElement("div",{className:"flex flex-col justify-between gap-4 rounded-lg bg-bg-subtle p-4 lg:grow lg:p-8"},n.createElement("div",null,n.createElement(l.L5,{icon:s.A,size:"md",className:"mb-4"}),n.createElement("div",{className:"mb-2 text-base font-semibold text-zinc-950"},"Programming"),n.createElement("div",{className:"text-sm text-zinc-950"},"Programming assignment help from pro coders")),n.createElement("div",null,n.createElement("div",{className:"mb-4 flex flex-wrap items-center gap-x-1 gap-y-2"},n.createElement("div",{className:"md:w-full"},n.createElement("img",{src:f,width:70,height:32,alt:"Programming"})),n.createElement("div",{className:"text-sm font-semibold text-zinc-950"},b," experts"),n.createElement(l.Ex,{variant:"soft",color:"green",size:"md",className:""},n.createElement(a.A,{size:14})," online")),n.createElement(l.$n,{variant:r.configs.isAcademicWritingEnabled?"outline":"primary",size:"lg",onClick:function(){t.pushLocation("/orders/create/?orderServiceTypeId=46")}},"Order Programming"))),r.configs.isCalculationsEnabled&&n.createElement("div",{className:"flex flex-col justify-between gap-4 roun
2ded-lg bg-bg-subtle p-4 lg:grow lg:p-8"},n.createElement("div",null,n.createElement(l.L5,{icon:c.A,size:"md",className:"mb-4"}),n.createElement("div",{className:"mb-2 text-base font-semibold text-zinc-950"},"Calculations"),n.createElement("div",{className:"text-sm text-zinc-950"},"Custom solutions to any of your tasks")),n.createElement("div",null,n.createElement("div",{className:"mb-4 flex flex-wrap items-center gap-x-1 gap-y-2"},n.createElement("div",{className:"md:w-full"},n.createElement("img",{src:p,width:70,height:32,alt:"Calculations"})),n.createElement("div",{className:"text-sm font-semibold text-zinc-950"},S," experts"),n.createElement(l.Ex,{variant:"soft",color:"green",size:"md",className:""},n.createElement(a.A,{size:14})," online")),n.createElement(l.$n,{variant:r.configs.isAcademicWritingEnabled||r.configs.isProgrammingEnabled?"outline":"primary",size:"lg",onClick:function(){t.pushLocation("/orders/create/?orderServiceTypeId=45")}},"Order Calculations")))))}));const g=(0,i.WQ)("routerStore","configsStore")(v)},81039:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14041),i=r(95284),o=r(94214);const a=function(){return n.createElement("div",{className:"my-2"},n.createElement(i.A,null),n.createElement(o.A,null))}},2343:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(30935),r(68291);var n=r(14041),i=r(56351),o=r(6146),a=r(75933),s=r(3492);const c=(0,i.PA)((function(e){var t=e.statusId;return[s.Th.FREE_INQUIRY,s.Th.INQUERY_PUBLISHED,s.Th.INQUERY_WRITER_ACCEPTED,s.Th.REPLY_PENDING,s.Th.FAKE,s.Th.CONFIRMATION_PENDING].includes(t)?n.createElement(a.Ex,{color:"yellow",variant:"soft"},n.createElement(o.A,{size:14}),"Payment"):t===s.Th.NEW_PAID?n.createElement(a.Ex,{color:"green",variant:"soft"},n.createElement(o.A,{size:14}),"Instructions review"):[s.Th.ORDER_PUBLISHED,s.Th.WRITER_ACCEPTED,s.Th.WRITER_ASSIGNED,s.Th.DONE,s.Th.REVISION].includes(t)?n.createElement(a.Ex,{color:"blue",variant:"soft"},n.createElement(o.A,{size:14}),"Progress"):t===s.Th.DELIVERED?n.createElement(a.Ex,{color:"magic",variant:"soft"},n.createElement(o.A,{size:14}),"Approval"):t===s.Th.DISPUTE?n.createElement(a.Ex,{color:"red",variant:"soft"},n.createElement(o.A,{size:14}),"Refund requested"):t===s.Th.FINISHED?n.createElement(a.Ex,{color:"green",variant:"soft"},n.createElement(o.A,{size:14}
2),"Finished"):t===s.Th.CANCELLED?n.createElement(a.Ex,{color:"red",variant:"soft"},n.createElement(o.A,{size:14}),"Canceled"):null}))},23793:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(68450);var n=r(14041),i=r(56351),o=r(33664),a=r(3492),s=r(58165),c=r(75933),l=(0,i.PA)((function(e){var t=e.order,r=e.ordersStore,i=e.onDeleteOrder,l=t.id,u=t.orderServiceTypeId,d=t.disciplineTitle,f=t.sizeTitle,p=t.pages,h=t.wordsQuantity,m=t.isPagesWereCalculatedByWords,y=t.price,v=r.setOrderStore(l,t),g=(null==v?void 0:v.isBeingCancelled)||!1;return n.createElement(c.x7,{enabled:g,size:"sm"},n.createElement("div",{className:"mb-4 flex flex-wrap items-center gap-4 rounded-lg bg-bg-subtle px-4 py-2 md:flex-nowrap"},n.createElement("div",{className:"flex w-full flex-nowrap items-center gap-4"},n.createElement(o.N_,{to:"/order/".concat(l),className:"word-break-anywhere flex-auto text-sm font-medium text-blue-600",title:"View order"},d," ",n.createElement("span",null,"/")," ",function(){switch(u){case a.B5.PROGRAMMING:case a.B5.CALCULATIONS:return f;default:return m?"".concat(h||0," ").concat((0,s.fk)("word",h)):"".concat(p||0," ").concat((0,s.fk)("page",p))}}()),n.createElement(c.wn,{className:"text-sm text-zinc-950",value:y})),n.createElement("div",{className:"flex w-full shrink-0 flex-row-reverse justify-between gap-4 md:w-auto md:flex-row"},n.createElement(c.$n,{size:"sm",variant:"ghostDestructive",onClick:function(){return i(l)},disabled:g,"data-testid":"deleteOrder"},"Cancel"),n.createElement(c.$n,{size:"sm","data-testid":"review-and-pay",asChild:!0},n.createElement(o.N_,{className:"text-white",to:"/order/".concat(l,"/pay")},"Review & Pay")))))}));const u=(0,i.WQ)("ordersStore")(l)},51968:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(95790);var n=r(14041),i=r(56351),o=r(23793),a=(0,i.PA)((function(e){var t=e.ordersStore,r=e.userProfileStore,i=function(e){return t.cancelOrder(e).catch((function(){}))};return r.unpaidOrders.map((function(e){return n.createElement(o.A,{key:e.id,order:e,onDeleteOrder:i})}))}));const s=(0,i.WQ)("userProfileStore","ordersStore")(a)},92237:(e,t,r)=>{"use strict";r.d(t,{Vq:()=>o.A,Y$:()=>n.A,gz:()=>a.A,qp:()=>i.A});var n=r(2343),i=(r(6380),r(40413)),o=r(51968),a=r(81039)},79820:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264);var n=r(56351),i=r(14041),o=r(97692),a=r(75933),s=r(88182),c=r(76151);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d=(0,n.PA)((function(e){var t=e.onWantSignIn,r=e.onWantSignUp,n=e.onClose,u=e.changePassFormStore,d=e.configsStore.configs,f=d.isRecaptchaEnabled,p=d.siteEmail,h=e.clientEmail,m=e.buttonsWrapperClass,y=e.inputsWrapperClass,v=l((0,i.useState)({done:!1,email:""}),2),g=v[0],b=v[1];(0,i.useEffect)((function(){return h&&u.formManager.setSilently("email",h),function(){return u.formManager.resetForm()}}),[]);var E=function(e){return function(t){u.formManager.setValue(e,t)}},w=function(){n&&n()};if(g.done){var S=(0,s.o)(g.email);return i.createElement("div",{className:"mt-4 flex flex-col gap-4"},g.email&&i.createElement("div",{className:"flex flex-col items-center gap-2 py-4 text-center"},i.createElement(a.L5,{size:"lg",icon:o.A,"data-testid":"change-password-image"}),i.createElement("div",{className:"text-base font-medium text-zinc-950 dark:text-zinc-50"},"Activate your new password"),i.createElement("div",{"data-testid":"dialog-paragraph-change-password-email-note"},"The activation link has been sent to ",i.createElement("strong",null,g.email))),i.createElement(a.Fc,{variant:"soft",color:"info",className:"pb-4",description:i.createElement(i.Fragment,null,"You may need to check your spam folder and unblock ",i.createElement("strong",null,p),". Contact our Support Team if you have any questions.")}),i.createElement("div",{className:"flex flex-col items-center justify-center gap-4"},t&&i.createElement(a.$n,{variant:"secondary",onClick:t},"â Sign in"),S&&i.createElement("a",{target:"_blank",rel:"noreferrer",href:S,className:(0,a.cn)((0,a.ru)({variant:"primary"}),"no-underline"),onClick:w}
2,"Check mail"),!S&&n&&i.createElement(a.$n,{onClick:w,"data-testid":"dialog-paragraph-change-password-ok-button"},"OK")))}var A=u.formManager,_=A.formValues,x=A.formErrors,P=A.errorHiglightableKeys,I=A.otherErrorsList,k=A.isEdited;return i.createElement(a.x7,{enabled:u.isRestoringPassword},!h&&i.createElement("div",{className:"mb-4"},"We will send an activation link to your email"),i.createElement("form",{onSubmit:function(e){e.preventDefault();var t=u.formManager.formValues.email;return u.restorePassword().then((function(){return b({done:!0,email:t})})).catch((function(){}))},className:"flex flex-col gap-4"},i.createElement(a.to,{errors:I,testId:"restoring-password-incorrect-error"}),i.createElement("div",{className:(0,a.cn)("flex flex-col gap-4 py-4",y)},!h&&i.createElement(a.BG,{error:x.email,show:P.email},i.createElement(a.JU,{text:"Email","data-testid":"restore-password-email-title",className:"mb-1"}),i.createElement(a.pd,{"data-testid":"restore-password-emailControl",value:_.email,onChange:function(e){var t=e.target.value;return E("email")(t)},name:"email",autoComplete:"email",autoFocus:!0})),i.createElement(a.BG,{error:x.password,show:P.password},i.createElement(a.JU,{text:"New Password","data-testid":"restore-password-password-title",className:"mb-1",htmlFor:"rc_pass"}),i.createElement(a.yA,{id:"rc_pass","data-testid":"restore-password-passwordControl",value:_.password,onChange:function(e){var t=e.target.value;return E("password")(t)},name:"newPassword",autoComplete:"new-password"}))),i.createElement("div",{className:(0,a.cn)("mt-0 flex flex-col items-end justify-center gap-4",m)},void 0!==t&&i.createElement(a.$n,{variant:"secondary",onClick:t},"Sign in"),void 0!==r&&i.createElement(a.$n,{variant:"secondary",onClick:r},"Create new account"),i.createElement(a.$n,{type:"submit","data-testid":"restore-password-sendActivationLink-button",disabled:!k},"Send activation link")),f&&i.createElement(c.A,null)))}));const f=(0,n.WQ)("configsStore","changePassFormStore")(d)},76151:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14041);const i=function(){return n.createElement("p",{className:"m-0 text-xs text-zinc-500 dark:text-zinc-400"},"This site is protected by reCAPTCHA and the Google"," ",n.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://policies.google.com/privacy",className:"hover:underline"},"Privacy Policy")," ","and"," ",n.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://policies.google.com/terms",className:"hover:underline"},"Terms of Service")," ","apply.")}},65497:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(75933),a=r(34856),s=(0,i.PA)((function(e){var t=e.recoveryHash,r=e.redirectTo,i=e.resetPasswordStore;(0,n.useEffect)((function(){return r&&i.setRedirectTo(r),i.setRecoveryHash(t).catch((function(){})),i.reset()}),[]);var s=i.isCheckingRecoveryHash,c=i.isResettingPassword,l=i.recoveryHash,u=i.needSetNewPass;return n.createElement(o.x7,{enabled:c||s},t&&(u?n.createElement(a.A,{recoveryHash:l,redirectTo:r}):n.createElement(o.Zp,{className:"max-w-[600px]"},n.createElement(o.aR,null,n.createElement(o.ZB,null,"Confirm password change")),n.createElement(o.Wu,{className:"text-base"},"Your are about to confirm the new password youâve entered before."),n.createElement(o.wL,{className:"justify-end gap-2.5"},n.createElement(o.$n,{variant:"ghostDestructive",onClick:function(){return i.rejectResettingPassword().catch((function(){}))}},"Cancel"),n.createElement(o.$n,{onClick:function(){return i.startResettingPassword().catch((function(){}))}},"Use new password")))))}));const c=(0,i.WQ)("resetPasswordStore")(s)},34856:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(75933),a=r(58165),s=(0,i.PA)((function(e){var t=e.setNewPassStore,r=e.recoveryHash,i=e.redirectTo,s=(0,n.useRef)(null);(0,n.useEffect)((function(){return t.formManager.resetForm()}),[]);var c=function(e){return function(r){return t.formManager.setValue(e,r)}},l=function(e){return function(){return t.formManager.startInteraction(e)}},u=function(e){return function(){return t.formManager.finishInteraction(e)}},d=t.formManager,f=d.formErrors,p=d.formValues,h=d.errorHiglightableKeys,m=d.submitting,y=d.otherErrorsList,v=d.isEdited;return n.createElement("form",{onSubmit:function(e){e.preventDefault(),s.current&&t.startSubmitting(r,i).catch((function(){(0,a.oL)(s.current)}))},ref:s}
2,n.createElement(o.Zp,{className:"max-w-[600px]"},n.createElement(o.aR,null,n.createElement(o.ZB,null,"Reset password")),n.createElement(o.Wu,null,n.createElement(o.x7,{enabled:void 0!==m},n.createElement("div",{className:"flex flex-col gap-4"},n.createElement(o.to,{errors:y}),n.createElement(o.BG,{error:f.newPassword,show:h.newPassword},n.createElement(o.JU,{text:"New password",htmlFor:"newPassword",className:"mb-1"}),n.createElement(o.yA,{value:p.newPassword,onChange:function(e){var t=e.target.value;return c("newPassword")(t)},onFocus:l("newPassword"),onBlur:u("newPassword"),name:"newPassword",autoComplete:"new-password"})),n.createElement(o.BG,{error:f.confirmPassword,show:h.confirmPassword},n.createElement(o.JU,{text:"Confirm password",htmlFor:"confirmPassword",className:"mb-1"}),n.createElement(o.yA,{value:p.confirmPassword,onChange:function(e){var t=e.target.value;return c("confirmPassword")(t)},onFocus:l("confirmPassword"),onBlur:u("confirmPassword"),name:"confirmPassword",autoComplete:"new-password"})),n.createElement(o.$n,{type:"submit",disabled:!v,className:"mr-auto mt-2"},"Set new password"))))))}));const c=(0,i.WQ)("setNewPassStore")(s)},82059:(e,t,r)=>{"use strict";r.d(t,{RO:()=>i.A,Sw:()=>n.A});r(34856);var n=r(79820),i=r(65497)},88182:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});r(9098),r(98140);var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(e.substring(e.indexOf("@")+1).trim()){case"gmail.com":return"https://mail.google.com";case"outlook.com":case"hotmail.com":return"https://outlook.com";case"yahoo.com":return"https://mail.yahoo.com";case"qq.com":return"https://mail.qq.com";default:return}}},6795:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14041),i=r(56351),o=(0,i.PA)((function(e){var t=e.applePayStore;(0,n.useEffect)((function(){return function(){return t.reset()}}),[t]);var r=function(){t.onApplePayButtonClicked()};return n.createElement("div",{className:"ApplePayButton ApplePayButton--black",onClick:r,onKeyDown:function(e){var t=e.code;"Enter"!==t&&"Space"!==t||r()},lang:"en",role:"button","aria-label":"Pay with Apple",tabIndex:0})}));const a=(0,i.WQ)("applePayStore")(o)},72655:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(14041),i=r(56351),o=r(75933),a=(0,i.PA)((function(e){var t=e.checkOutFormStore;return(0,n.useEffect)((function(){return t.init(),function(){t.reset()}}),[]),n.createElement(n.Fragment,null,t.isLoading&&n.createElement(o.x7,{enabled:!0}),n.createElement("div",{id:"checkout-form","data-testid":"CheckOutForm",className:(0,o.cn)("h-0 opacity-0 transition-all",!t.isLoading&&"h-auto opacity-100")}))}));const s=(0,i.WQ)("checkOutFormStore","paymentStore")(a)},4513:(e,t,r)=>{"use strict";r.d(t,{Ee:()=>u,NH:()=>s,WH:()=>f,gc:()=>i,gd:()=>n,m9:()=>c,t8:()=>a,tG:()=>l,u5:()=>d,zE:()=>o});var n="400000",i="400001",o="400002",a="400003",s="400004",c="400005",l="400006",u="400007",d="400008",f="500001"},86012:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14041),i=r(56351),o=(0,i.PA)((function(e){var t=e.googlePayStore,r=(0,n.useRef)(null);return(0,n.useEffect)((function(){return t.init(r.current).catch((function(){})),function(){return t.reset()}}),[t]),n.createElement("div",{className:"GooglePayButton",ref:r})}));const a=(0,i.WQ)("googlePayStore")(o)},6195:(e,t,r)=>{"use strict";r.d(t,{H:()=>i});var n=r(14041);function i(e){return e.hasPayInParts?n.createElement(n.Fragment,null,n.createElement("div",{className:"text-base font-semibold text-zinc-950"},"Pay in parts"),n.createElement("ol",{className:"m-0 list-decimal px-3 py-1.5 text-sm text-zinc-600"},n.createElement("li",{className:"m-0 mb-0.5 p-0"},"Make the first payment and get a personal installment plan."),n.createElement("li",{className:"m-0 p-0"},"Make the next payment only after the first part of your paper is done."))):n.createElement(n.Fragment,null,n.createElement("div",{className:"text-base font-semibold text-zinc-950"},"Pay in 2"),n.createElement("ol",{className:"m-0 list-decimal px-3 py-1.5 text-sm text-zinc-600"},n.createElement("li",{className:"m-0 mb-0.5 p-0"},"We complete your paper and send you a preview for approval."),n.createElement("li",{className:"m-0 p-0"},"You check it and pay the other 50% to download the final version.")))}},28637:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831
2),r(40890),r(66264);var n=r(14041),i=r(56351),o=r(42892),a=r(3233),s=r(10484),c=r(75933),l=r(58165),u=r(62785),d=r(20163);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=(0,i.PA)((function(e){var t=e.paymentStore,r=f((0,n.useState)(!(0,l.TL)()),2),i=r[0],p=r[1],h=(0,l.TL)();return n.createElement(c.Zp,{className:"OrderInfo","data-testid":"orderInfo"},n.createElement("div",{className:"flex gap-2 px-4 pb-3 pt-6 lg:px-6"},n.createElement("div",{"data-testid":"orderInfo_icon",className:"max-w-8"},n.createElement(o.A,{options:{animationData:d,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}}})),n.createElement("div",null,n.createElement(c.ZB,{className:"whitespace-normal text-base","data-testid":"orderInfo__title"},"Order #",t.orderId," is ready to go!"),n.createElement(c.BT,{className:"mt-2 whitespace-normal text-xs text-zinc-700","data-testid":"orderInfo__description"},"We start looking for the best-fit writer for you."))),n.createElement("div",{className:"p-4 pt-0 lg:px-6 lg:pb-3.5 lg:pt-0"},i&&n.createElement(u.A,{items:t.orderInfoRows}),h&&n.createElement(c.$n,{onClick:function(){p(!i)},variant:"outline",className:"w-full md:hidden"},i?"Hide":"Show"," order info",i?n.createElement(a.A,null):n.createElement(s.A,null))))}));const m=(0,i.WQ)("paymentStore")(h)},62785:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(95790);var n=r(14041);const i=function(e){var t=e.items;return 0===t.length?null:n.createElement("div",{className:"mt-1.5 divide-y divide-zinc-200 lg:mt-3.5","data-testid":"orderInfoList"},t.map((function(e){var t=e.title,r=e.titleHint,i=e.value,o=e.valueHint;return n.createElement("div",{className:"flex justify-between gap-8 py-2.5 text-xs",key:t},n.createElement("div",{className:"shrink-0 text-zinc-500 dark:text-zinc-100"},t,r&&n.createElement("div",null,r)),n.createElement("div",{className:"truncate text-right text-zinc-950 dark:text-zinc-50"},i,o&&n.createElement("div",{className:"text-zinc-500 dark:text-zinc-100"},o)))})))}},89489:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(14041),i=r(56351),o=r(6146),a=r(58165),s=r(3492),c=r(75933),l=r(6195),u=function(e){var t=e.children,r=e.popoverContent;return n.createElement(c.AM,null,n.createElement(c.Wv,{className:"flex items-center border-0",type:"button"},t,n.createElement(o.A,{size:14,className:"ml-1"})),n.createElement(c.hl,{align:"start",className:"max-w-80 p-4"},r))},d=(0,i.PA)((function(e){var t=e.paymentStore,r=t.orderData,i=t.order;if(!r)return null;var o=r.totalAmount,d=r.tax,f=r.orderAmount,p=r.installmentType,h=(0,a.hM)(o+d),m=p?f:h;return n.createElement(c.Zp,{className:"p-4 lg:p-6"},n.createElement("div",{className:"summaryList flex flex-col gap-4 text-zinc-950 dark:text-zinc-50"},n.createElement("div",{className:(0,c.cn)("totalPrice flex justify-between text-sm",!p&&"text-base font-semibold")},n.createElement("div",{"data-testid":"payment-totalPriceLabel"},"Total price"),n.createElement("div",{"data-testid":"payment-totalPrice"},n.createElement(c.wn,{value:m}))),Boolean(p)&&n.createElement(n.Fragment,null,n.createElement("div",{className:"my-1 h-px w-full bg-zinc-200"}),n.createElement("div",{className:"paymentInstallment flex justify-between text-base font-semibold"},n.createElement("div",{"data-testid":"payment-installmentLabel"},function(e){switch(e){case s.XP.FIRST:case s.XP.SECOND:return!0;default:return!1}}(p)&&n.createElement(u,{popoverContent:n.createElement(l.H,{hasPayInParts:i.hasPayInParts})},n.createElement("span",null,function(e){switch(e){case s.XP.FIRST:return"First installment";case s.XP.SECOND:return"Second installment";default:return}}(p)))),n.createElement("div",{"data-testid":"payment-installmentPrice"},n.createElement(c.wn,{value:h})))),!!d&&n.createElement("div",{className:"paymentVat flex justify-between text-sm"},n.createElement("div",{"data-testid":"payment-vatLabel"},"VAT included"),n.createElement("div",{"data-testid":"payment-vat"},n.createElement(c.wn,{value:d})))))}));const f=(0,i.WQ)("paymentStore")(d)},97751:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831
2),r(40890),r(66264);var n=r(14041),i=r(56351),o=r(75933),a=r(15369),s=r(54196),c=r(89489),l=r(40065),u=r(85950),d=r(28637),f=r(71761);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var m=(0,i.PA)((function(e){var t=e.paymentStore,r=e.orderId,i=e.paymentRequestId,h=e.paymentData,m=p((0,n.useState)(!1),2),y=m[0],v=m[1],g=t.paymentFailedErrorCode,b=t.order;(0,n.useEffect)((function(){return t.init({orderId:r,paymentRequestId:i,paymentData:h}),function(){return t.reset()}}),[i]),(0,n.useEffect)((function(){var e=t.checkPayIn2ControlVisibility();v(e)}),[g,b]);var E=t.isLoading,w=t.showErrorMessage,S=t.isOrderInfoDisplayed,A=t.isLoadingAfterPayIn2Toggle;return E?n.createElement(o.x7,{enabled:!0}):w?n.createElement(a.A,null):n.createElement(o.x7,{enabled:A},n.createElement("div",null,n.createElement("div",{className:"grid gap-2 md:grid-cols-[4fr_3fr] md:grid-rows-[auto_1fr] md:items-start lg:gap-8"},S&&n.createElement("div",{className:"truncate md:col-start-2 md:row-start-2"},n.createElement(d.A,null)),n.createElement("div",{className:"md:col-start-2"},n.createElement(c.A,null)),n.createElement(o.Zp,{className:"flex flex-col gap-4 p-4 md:col-start-1 md:row-span-2 md:row-start-1 lg:gap-6 lg:p-6"},n.createElement(s.A,{errorCode:g}),y&&n.createElement(f.A,null),!A&&n.createElement(l.A,null))),n.createElement(u.A,null)))}));const y=(0,i.WQ)("paymentStore")(m)},15369:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(33664),o=r(48991),a=r(75933),s=function(){return n.createElement(a.Zp,{className:"mx-auto max-w-[600px]"},n.createElement(a.aR,null,n.createElement(a.ZB,{className:"text-center text-lg","data-testid":"paymentError-title"},"Payment error")),n.createElement(a.Wu,{className:"flex flex-col items-center justify-center pb-8"},n.createElement(a.L5,{icon:o.A,size:"lg",className:"mb-4"}),n.createElement("div",{className:"text-base","data-testid":"paymentError-text"},"This payment canât be processed.")),n.createElement(a.wL,{className:"flex justify-center"},n.createElement(a.$n,{asChild:!0,size:"sm"},n.createElement(i.N_,{to:"/orders","data-testid":"paymentError-button"},"My orders"))))};s.displayName="PaymentError";const c=s},54196:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(56351),o=r(75933),a=r(4513),s=(0,i.PA)((function(e){var t=e.errorCode,r=e.paymentStore;if(!t)return null;return n.createElement(o.iI,{color:"error","data-testid":"paymentFailedError"},n.createElement(o.XL,{"data-testid":"paymentFailedError__title"},function(){switch(t){case a.gc:case a.NH:case a.gd:return"Transaction declined";case a.zE:return"Wrong 3DSecure code";case a.t8:return"Insufficient funds";case a.m9:return"Incorrect card details";case a.tG:return"Your card has expired";case a.Ee:return"Your card is not supported";case a.u5:return"Transaction declined by payment processor";case a.WH:return"Payment system error";default:return"Your payment failed"}}()),n.createElement(o.TN,{"data-testid":"paymentFailedError__description"},function(){switch(t){case a.gc:case a.gd:return"Try another card or contact your bank to authorize the current transaction. Make sure your card allows online and international transactions.";case a.zE:return"Retry and make sure to enter the correct 3DSecure code you received from your bank.";
2case a.t8:return r.checkPayIn2ControlVisibility()?n.createElement(n.Fragment,null,"Try another card, recharging your balance or raising your online payment limit. Consider to try ",n.createElement("span",{className:"font-semibold"},"Pay in 2")," or contact support."):"Try another card, recharging your balance, or raising your online payment limit. Contact support if nothing works.";case a.NH:return"Try another card or contact your bank to authorize the transaction.";case a.m9:return"Retry and make sure to enter the correct card details during checkout.";case a.tG:case a.Ee:return"Try another card to proceed with the payment.";case a.u5:return"Please contact our support team for further assistance.";case a.WH:return"Retry in a few minutes.";default:return"You might have entered wrong credentials or your bank has blocked your transaction."}}()))}));const c=(0,i.WQ)("paymentStore")(s)},85950:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14041),i=r(75933),o=function(e){var t=e.className;return n.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"19.121",viewBox:"0 0 20 19.121"},n.createElement("g",{transform:"translate(-2 -1.879)"},n.createElement("path",{style:{fill:"none",stroke:"#1877F2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2px"},d:"M12,20h9"}),n.createElement("path",{style:{fill:"none",stroke:"#1877F2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2px"},d:"M16.5,3.5a2.121,2.121,0,1,1,3,3L7,19,3,20l1-4Z"})))},a=function(e){var t=e.className;return n.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.827 20.081"},n.createElement("path",{style:{fill:"none",stroke:"#1877F2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2px"},d:"M21.414 2.041v6h-6M1.414 18.041v-6h6"}),n.createElement("path",{style:{fill:"none",stroke:"#1877F2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2px"},d:"M1.924 7.041a9 9 0 0114.85-3.36l4.64 4.36m-20 4l4.64 4.36a9 9 0 0014.85-3.36"}))},s=function(e){var t=e.className;return n.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 22"},n.createElement("path",{d:"M9 21s8-4 8-10V4L9 1 1 4v7c0 6 8 10 8 10z",fill:"none",stroke:"#1877F2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}))};const c=function(){return n.createElement(i.Zp,{className:"mt-2 p-4 lg:mt-6 lg:p-8"},n.createElement("ul",{className:"mt-2 flex flex-col gap-4 lg:flex-row lg:gap-2.5"},n.createElement("li",{className:"flex items-start gap-3","data-testid":"payment-guaranties-authenticity"},n.createElement(o,{className:"shrink-0"}),n.createElement("div",null,n.createElement("div",{className:"mb-1 font-semibold text-blue-600 dark:text-blue-100"},"100% original papers"),n.createElement("p",{className:"text-zinc-950 dark:text-zinc-100"},"You get only zero plagiarism, custom made papers from our service."))),n.createElement("li",{className:"flex items-start gap-3","data-testid":"payment-guaranties-satisfaction"},n.createElement(a,{className:"w-5 shrink-0"}),n.createElement("div",null,n.createElement("div",{className:"mb-1 font-semibold text-blue-600 dark:text-blue-100"},"Refunding"),n.createElement("p",{className:"text-zinc-950 dark:text-zinc-100"},"If youâre unhappy with the paper, you can request your money back."))),n.createElement("li",{className:"flex items-start gap-3","data-testid":"payment-guaranties-confidentiality"},n.createElement(s,{className:"w-4 shrink-0"}),n.createElement("div",null,n.createElement("h4",{className:"mb-1 font-semibold text-blue-600 dark:text-blue-100"},"Confidentiality"),n.createElement("p",{className:"text-zinc-950 dark:text-zinc-100"},"Your data is always safe and secure with our service.")))))}},66672:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(56351),o=r(3492),a=r(10484),s=r(3233),c=r(57201);const l=(0,i.PA)((function(e){var t=e.value,r=e.onClick,i=e.isOpen,l=function(e){switch(e){case o.bv.SAFECHARGE_PAYPAL:return"safeChargePayPal";case o.bv.SAFECHARGE_CREDITCARD:return"safeChargeCreditCard";case o.bv.CHECKOUT:return"checkOut";case o.bv.SOLID:return"solid";default:return e}}(t),u="safeChargePayPal"===l,d="safeChargeCreditCard"===l,f="checkOut"===l,p="solid"===l;return void 0===r?n.createElement("div",{className:"flex h-8 items-center"},u&&n.createElement(c.d5,{className:"h-4 w-[90px]"}),d&&n.createElement(c.Zj,{className:"h-4 w-24"}),f&&n.createElement(c.TT,{className:"h-4 w-[115px]"}),p&&n.createElement(c.mW,{className:"h-[18px] w-[60px]"})):n.createElement("button",{type:"button",className:"flex h-8 w-full cursor-pointer items-center justify-between text-left",onClick:r,"data-testid":"paymentMethodButton-".concat(l)},u&&n.createElement(c.d5,{className:"h-4 w-[90px]"}),d&&n.createElement(c.Zj,{className:"h-4 w-24"}),f&&n.createElement(c.TT,{className:"h-4 w-[115px]"}),p&&n.createElement(c.mW,{className:"h-[18px] w-[60px]"}),!1===i&&n.createElement(a.A,null),!0===i&&n.createElement(s.A,null))}))},17497:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(25400),r(21555),r(95790),r(37210),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831
2),r(40890),r(66264);var n=r(14041),i=r(56351),o=r(53833),a=r(75933),s=r(66672);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=(0,i.PA)((function(e){var t=e.paymentStore,r=c((0,n.useState)(!1),2),i=r[0],l=r[1],u=function(){l((function(e){return!e}))},d=t.activePaymentMethodId,f=t.availablePaymentMethodsIds;if(!d)return null;var p=f.filter((function(e){return e!==d}));return 0===p.length?n.createElement("div",{className:"p-4 lg:p-6"},n.createElement(s.A,{value:d})):n.createElement("div",{className:(0,a.cn)("p-4 lg:p-6",i&&"bg-zinc-100 dark:bg-zinc-500")},n.createElement(s.A,{value:d,onClick:u,isOpen:i}),n.createElement(o.CSSTransition,{in:i,timeout:{enter:500,exit:0},unmountOnExit:!0},n.createElement("ul",{className:"list-clear pt-2"},p.map((function(e){return n.createElement("li",{key:e,className:"border-t border-t-gray-300 pt-2"},n.createElement(s.A,{value:e,onClick:function(){return r=e,u(),void t.setActivePaymentMethodId(r);var r}}))})))))}));const d=(0,i.WQ)("paymentStore")(u)},57201:(e,t,r)=>{"use strict";r.d(t,{TT:()=>a,Zj:()=>i,d5:()=>o,mW:()=>s});var n=r(14041),i=function(e){var t=e.className;return n.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 97 15"},n.createElement("path",{d:"M76.472 15h4.391c2.767 0 3.925-.951 4.536-3.821l1.351-6.4a1.223 1.223 0 00-1.287-1.628h-3.378c-3.056 0-4.021 1.5-4.632 4.1-.611 2.612.177 4.643 2.976 4.643h2.284c-.209 1-.885 1.193-1.9 1.193H76.89zm4.761-5c-1.335 0-1.416-.919-1.174-2.435.225-1.387.74-2.531 2.268-2.531h1.223c.466 0 .563.258.482.613L83.115 10z",className:"fill-['#00c7b1']"}),n.createElement("path",{d:"M69.699 11.889h2.557l1.239-5.665c.193-.889.788-1.079 1.544-1.079h.8c.788 0 1.576-.3 1.576-1.158a1.549 1.549 0 00-.209-.809 2.228 2.228 0 01-.852.111h-1.753a3.408 3.408 0 00-3.683 2.936z",className:"fill-['#00c7b1']"}),n.createElement("path",{d:"M28.472 2.016c1.094 0 1.769-.564 1.769-1.274a1.762 1.762 0 00-.16-.744 3.783 3.783 0 01-1.11.113h-1.448a3.509 3.509 0 00-3.828 3.176h-1.222l-.386 1.741h1.287l-1.5 7h2.541l1.528-7h1.914l.386-1.741h-1.995a1.384 1.384 0 011.528-1.274z",className:"fill-['#00c7b1']"}),n.createElement("path",{d:"M63.443 10.064a.765.765 0 01-.852-.777 1.023 1.023 0 011.094-1.079h2.7l-.257 1.222a.725.725 0 01-.74.635zm-.643 1.824h3.458a1.845 1.845 0 002.075-1.6l.917-4.522a2.2 2.2 0 00.048-.444 2.086 2.086 0 00-2.236-2.031h-5.227L61.481 5.1h4.552c.483 0 .772.191.772.555a.589.589 0 01-.016.159l-.129.666h-3.458c-2.139 0-3.137.984-3.217 2.808-.08 1.745.885 2.6 2.815 2.6z",className:"fill-['#00c7b1']"}),n.createElement("path",{d:"M49.333 12.028h2.555l1.48-6.836h1.7c1.464 0 1.737.4 1.4 1.886l-1.11 4.95h2.574l1.222-5.611c.4-1.87-.869-3.128-2.992-3.128h-2.374l.547-2.821h-2.573z",className:"fill-['#00c7b1']"}),n.createElement("path",{d:"M44.146 12.028h3.619l.45-2.257h-2.96c-2.4 0-3.748-.548-3.281-3.628.4-2.644 1.512-3.418 4.15-3.418h1.9a1.666 1.666 0 001.85-1.548 1.736 1.736 0 00-.209-.822 3.084 3.084 0 01-1.029.113h-2.525c-4.1 0-6.241 1.677-6.836 5.514-.611 3.918 1.367 6.046 4.874 6.046",className:"fill-['#00c7b1']"}),n.createElement("path",{d:"M31.345 11.888h4.807l.418-1.857h-4.182c-1.11 0-1.56-.3-1.5-1.016l.048-.619h4.118a2.465 2.465 0 002.7-2.7c0-1.9-1.512-2.539-4.182-2.539-3.072 0-4.295.809-4.986 3.92-.659 2.984-.145 4.809 2.75 4.809zm.016-5.237a1.866 1.866 0 012.139-1.7c.852 0 1.625.238 1.625.968a.676.676 0 01-.643.73z",className:"fill-['#00c7b1']"}),n.createElement("path",{d:"M90.587 11.888h4.8l.418-1.857h-4.182c-1.11 0-1.56-.3-1.5-1.016l.048-.619h4.118a2.465 2.465 0 002.7-2.7c0-1.9-1.512-2.539-4.182-2.539-3.072 0-4.295.809-4.986 3.92-.66 2.984-.145 4.809 2.75 4.809zm.016-5.237a1.866 1.866 0 012.139-1.7c.852 0 1.625.238 1.625.968a.676.676 0 01-.643.73z",className:"fill-['#00c7b1']"}),n.createElement("path",{d:"M15.023 10.064a.765.765 0 01-.852-.777 1.023 1.023 0 011.094-1.079h2.7l-.257 1.222a.725.725 0 01-.74.635zm-.643 1.824h3.458a1.845 1.845 0 002.075-1.6l.917-4.522a2.206 2.206 0 00.048-.444 2.086 2.086 0 00-2.23
26-2.031h-5.228L13.06 5.1h4.552c.483 0 .772.191.772.555a.588.588 0 01-.016.159l-.129.666h-3.457c-2.139 0-3.137.984-3.217 2.808-.08 1.745.885 2.6 2.815 2.6z",className:"fill-['#00c7b1']"}),n.createElement("path",{d:"M0 12.028h5.806c2.686 0 4.455-1.161 4.568-3.628.08-1.87-.788-3.305-3.072-3.305H5.115c-.869 0-1.206-.4-1.174-1.016.048-.854.6-1.354 1.785-1.354h3.86a1.7 1.7 0 001.882-1.628 1.762 1.762 0 00-.161-.742A3.783 3.783 0 0110.2.47H5.726c-2.59 0-4.375 1.241-4.488 3.6a2.827 2.827 0 003.137 3.218h1.978c.9 0 1.335.323 1.287 1.064-.064 1-.708 1.419-1.834 1.419H.45z",className:"fill-['#00c7b1']"}))},o=function(e){var t=e.className;return n.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 69.619 17"},n.createElement("path",{className:"fill-['#253b80']",d:"M26.096 3.919h-3.818a.53.53 0 00-.524.448l-1.544 9.791a.318.318 0 00.315.367h1.82a.53.53 0 00.524-.448l.417-2.641a.53.53 0 01.524-.448h1.209c2.515 0 3.967-1.217 4.346-3.629a2.941 2.941 0 00-.487-2.465 3.543 3.543 0 00-2.783-.975zm.441 3.576c-.209 1.37-1.256 1.37-2.268 1.37h-.576l.4-2.559a.318.318 0 01.314-.269h.264c.69 0 1.34 0 1.676.393a1.273 1.273 0 01.185 1.064zm10.973-.044h-1.829a.318.318 0 00-.314.269l-.081.511-.128-.185a2.6 2.6 0 00-2.16-.767 4.2 4.2 0 00-4.082 3.677 3.451 3.451 0 00.681 2.809 2.861 2.861 0 002.3.93 3.5 3.5 0 002.531-1.047l-.082.508a.318.318 0 00.314.368h1.647a.53.53 0 00.524-.448l.988-6.258a.317.317 0 00-.313-.367zm-2.549 3.559a2.038 2.038 0 01-2.063 1.746 1.416 1.416 0 01-1.515-1.778 2.047 2.047 0 012.049-1.76 1.543 1.543 0 011.219.5 1.583 1.583 0 01.309 1.294zm12.284-3.559h-1.834a.533.533 0 00-.439.233l-2.534 3.733-1.075-3.587a.532.532 0 00-.509-.379h-1.809a.318.318 0 00-.3.421l2.024 5.939-1.9 2.686a.318.318 0 00.26.5h1.835a.53.53 0 00.436-.228l6.111-8.822a.318.318 0 00-.261-.5z"}),n.createElement("path",{className:"fill-['#179bd7']",d:"M53.654 3.919h-3.819a.53.53 0 00-.524.448l-1.544 9.791a.318.318 0 00.314.367h1.96a.371.371 0 00.366-.314l.438-2.775a.53.53 0 01.524-.448h1.208c2.516 0 3.967-1.217 4.347-3.629a2.939 2.939 0 00-.487-2.465 3.539 3.539 0 00-2.782-.975zm.441 3.576c-.208 1.37-1.255 1.37-2.268 1.37h-.576l.4-2.559a.317.317 0 01.314-.269h.264c.689 0 1.34 0 1.676.393a1.273 1.273 0 01.189 1.065zm10.973-.044H63.24a.317.317 0 00-.314.269l-.081.511-.128-.185a2.6 2.6 0 00-2.159-.767 4.2 4.2 0 00-4.082 3.677 3.453 3.453 0 00.681 2.809 2.862 2.862 0 002.3.93 3.5 3.5 0 002.531-1.047l-.082.508a.318.318 0 00.315.368h1.646a.53.53 0 00.524-.448l.989-6.258a.319.319 0 00-.315-.367zm-2.546 3.558a2.037 2.037 0 01-2.063 1.746 1.416 1.416 0 01-1.515-1.778 2.048 2.048 0 012.049-1.76 1.543 1.543 0 011.219.5 1.575 1.575 0 01.31 1.292zm4.7-6.822l-1.567 9.971a.318.318 0 00.314.367h1.576a.53.53 0 00.524-.448l1.545-9.791a.318.318 0 00-.314-.368h-1.764a.319.319 0 00-.314.269z"}),n.createElement("path",{className:"fill-['#253b80']",d:"M4.056 16.429l.292-1.873-.65-.015H.592L2.75.723a.177.177 0 01.175-.151h5.238c1.739 0 2.938.365 3.565 1.086a2.484 2.484 0 01.571 1.081 3.938 3.938 0 010 1.49l-.007.043v.381l.294.168a2.062 2.062 0 01.595.458 2.141 2.141 0 01.482 1.092 4.665 4.665 0 01-.069 1.585 5.616 5.616 0 01-.643 1.794 3.678 3.678 0 01-1.019 1.127 4.115 4.115 0 01-1.372.625 6.782 6.782 0 01-1.715.2h-.404a1.229 1.229 0 00-.8.3 1.249 1.249 0 00-.41.746l-.031.169-.516 3.3-.023.121a.1.1 0 01-.032.07.086.086 0 01-.054.02H4.056z"}),n.createElement("path",{className:"fill-['#179bd7']",d:"M12.867 4.432q-.023.15-.054.307C12.122 8.285 9.76 9.51 6.742 9.51H5.207a.746.746 0 00-.738.632l-.787 4.989-.222 1.414a.393.393 0 00.388.454h2.725a.656.656 0 00.648-.553l.027-.138.513-3.256.033-.179a.655.655 0 01.648-.554h.408c2.64 0 4.707-1.072 5.311-4.174a3.554 3.554 0 00-.546-3.139 2.606 2.606 0 00-.748-.574z"}),n.createElement("path",{d:"M12.145 4.046a5.447 5.447 0 00-.672-.149 8.533 8.533 0 00-1.355-.1H6.014a.654.654 0 00-.647.554l-.873 5.531-.025.161a.746.746 0 01.738-.632h1.537c3.018 0 5.381-1.226 6.071-4.771.021-.1.038-.207.054-.307a3.682 3.682 0 00-.569-.242l-.155-.049z",fill:"#222d65"}),n.createElement("path",{className:"fill-['#253b80']",d:"M5.368 4.342a.655.655 0 01.647-.559h4.1a8.45 8.45 0 011.355.1 5.4 5.4 0 01.827.2 3.717 3.717 0 01.568.242 3.408 3.408 0 00-.71-3.041C11.378.385 9.968 0 8.164 0H2.927a.751.751 0 00-.74.639L.006 14.605a.458.458 0 00.1.366.448.448 0 00.342.16h3.235l.812-5.2.873-5.586z"}))},a=function(e){var t=e.className;return n.createElement("svg",{className:t,viewBox:"0 0 185 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M137.26 18.918c1.008 0 1.825-.832 1.825-1.857 0-1.026-.817-1.858-1.825-1.858s-1.825.832-1.825 1.858c0 1.025.817 1.857 1.825 1.857zM32.267 18.43c-.816-.342-1.537-.83-2.065-1.466-.576-.636-1.009-1.369-1.345-2.2-.336-.83-.48-1.76-.48-2.737 0-.978.144-1.906.432-2.737.288-.831.72-1.613 1.297-2.2a5.987 5.987 0 012.017-1.466 6.783 6.783 0 012.69-.538c.864 0 1.585.098 2.257.342a6.96 6.96 0 011.777.978c.529.39.913.928 1.201 1.515.336.587.528 1.27.624 1.955H37.31a2.488 2.488 0 00-.816-1.466c-.432-.391-.96-.587-1.585-.587-1.057 0-1.825.391-2.353 1.124-.529.734-.769 1.76-.769 3.031 0 1.27.24 2.248.769 3.03.48.783 1.296 1.125 2.353 1.125.72 0 1.297-.196 1.729-.538.432-.39.72-.929.864-1.71h3.363a5.412 5.412 0 01-1.73 3.568c-.48.44-1.104.83-1.777 1.075a7.21 7.21 0 01-2.353.39 6.228 6.228 0 01-2.738-.488zM46.244 7.09c.48-.685 1.008-1.223 1.585-1.565.576-.342 1.296-.537 2.209-.537a4.36 4.36 0 011.825.39 4.153 4.153 0 011.393 1.027c.384.44.672.978.912 1.564.24.587.337 1.271.337 2.004v8.603h-3.459v-8.114c0-.733-.192-1.32-.576-1.76-.384-.44-.96-.684-1.68-.684-.77 0-1.394.293-1.874.831-.48.538-.768 1.27-.768 2.2v7.527h-3.459V.148h3.459V7.09h.096zM60.172 18.428a5.906 5.906 0 01-2.113-1.466 6.11 6.11 0 01-1.297-2.249 8.593 8.593 0 01-.432-2.737c0-.978.144-1.906.48-2.737a8.251 8.251 0 011.297-2.2 5.985 5.985 0 012.017-1.466 6.316 6.316 0 012.594-.538c1.057 0 1.97.196 2.738.587.816.39 1.44.928 2.017 1.613.528.684.96 1.564 1.249 2.493.288.977.432 2.053.432 3.226H59.74c.144 1.026.48 1.857 1.009 2.444.528.586 1.297.88 2.305.88.673 0 1.2-.147 1.633-.44.384-.294.72-.685.865-1.173h3.41c-.096.586-.336 1.124-.625 1.661-.336.538-.72.978-1.2 1.369a5.154 5.154 0 01-1.777.929c-.673.244-1.441.342-2.258.342a7.841 7.841 0 01-2.93-.538zm.529-9.971c-.48.489-.769 1.222-.96 2.053h5.763c-.048-.831-.337-1.516-.817-2.053-.48-.538-1.152-.782-1.921-.782-.913.049-1.585.293-2.065.782zM74.293 18.43c-.817-.342-1.537-.83-2.066-1.466-.576-.636-1.008-1.369-1.344-2.2-.337-.83-.48-1.76-.48-2.737 0-.978.143-1.906.432-2.737.288-.831.72-1.613 1.296-2.2a5.986 5.986 0 012.018-1.466 6.783 6.783 0 012.69-.538c.864 0 1.584.098 2.257.342a6.962 6.962 0 011.777.978c.528.39.912.928 1.2 1.515.337.587.529 1.27.625 1.955h-3.362a2.488 2.488 0 00-.817-1.466c-.432-.391-.96-.587-1.585-.587-1.056 0-1.825.391-2.353 1.124-.528.734-.769 1.76-.769 3.031 0 1.27.24 2.248.769 3.03.48.783 1.297 1.125 2.353 1.125.72 0 1.297-.196 1.73-.538.432-.39.72-.929.864-1.71h3.314a5.414 5.414 0 01-1.729 3.568c-.48.44-1.105.83-1.777 1.075a7.21 7.21 0 01-2.354.39 6.142 6.142 0 01-2.69-.488zM88.174 14.128v4.448h-3.41V.148h3.41v10.216l4.61-4.985h4.131l-4.803 5.034 5.38 8.163h-4.18l-3.65-6.012-1.488 1.564zM101.285 18.43a6.554 6.554 0 01-2.16-1.466 7.405 7.405 0 01-1.394-2.2c-.336-.83-.48-1.76-.48-2.737 0-.978.144-1.906.48-2.737.337-.831.817-1.613 1.393-2.2.577-.635 1.297-1.124 2.161-1.466a7.025 7.025 0 012.738-.538c1.009 0 1.921.195 2.738.538a6.552 6.552 0 012.161 1.466 7.408 7.408 0 011.393 2.2c.336.83.48 1.76.48 2.737 0 .978-.144 1.906-.48 2.737-.336.831-.817 1.613-1.393 2.2-.576.635-1.297 1.124-2.161 1.466a7.024 7.024 0 01-2.738.538 7.024 7.024 0 01-2.738-.538zm5.188-3.324c.576-.782.8
264-1.808.864-3.128s-.288-2.346-.864-3.128c-.577-.782-1.393-1.222-2.45-1.222-1.057 0-1.873.39-2.449 1.222-.577.782-.865 1.857-.865 3.128 0 1.27.288 2.346.865 3.128.576.782 1.392 1.173 2.449 1.173s1.873-.39 2.45-1.173zM120.881 17.012h-.096a5.813 5.813 0 01-1.489 1.418c-.576.342-1.296.489-2.209.489-1.441 0-2.546-.44-3.362-1.271-.769-.88-1.153-2.004-1.153-3.47v-8.8h3.41v8.213c0 .782.192 1.368.529 1.76.336.39.912.635 1.633.635.816 0 1.441-.293 1.921-.831s.72-1.271.72-2.15V5.378h3.458v13.197h-3.314v-1.564h-.048zM127.557 5.377V1.223h3.362v4.154h2.21v2.298h-2.21v6.99c0 .488.096.83.337 1.026.24.196.528.293.96.293h.673c.096 0 .24 0 .336-.049v2.64c-.192 0-.336.049-.577.049-.192 0-.432.049-.672.049h-.913c-.432 0-.816-.05-1.248-.147a2.838 2.838 0 01-1.105-.489 2.68 2.68 0 01-.816-.977 3.568 3.568 0 01-.337-1.564V7.675h-1.777V5.377h1.777zM144.079 18.38a5.466 5.466 0 01-1.873-1.467 6.01 6.01 0 01-1.153-2.2c-.24-.83-.384-1.76-.384-2.786s.144-1.906.384-2.786c.288-.83.673-1.613 1.153-2.2a5.465 5.465 0 011.873-1.466c.72-.342 1.585-.537 2.546-.537 1.44 0 2.641.39 3.554 1.124.912.733 1.489 1.808 1.729 3.177h-1.537c-.192-.978-.577-1.76-1.249-2.249-.624-.488-1.441-.733-2.449-.733-.769 0-1.393.147-1.97.44-.528.293-1.008.684-1.344 1.222a5.106 5.106 0 00-.769 1.809c-.192.684-.24 1.417-.24 2.2 0 .781.096 1.515.288 2.199.192.684.432 1.27.817 1.808.336.538.816.93 1.344 1.222.529.294 1.201.44 1.922.44 1.104 0 2.017-.342 2.689-.977.673-.636 1.057-1.516 1.201-2.59h1.489c-.144 1.514-.673 2.688-1.633 3.616-.913.88-2.161 1.32-3.746 1.32-1.057-.049-1.922-.244-2.642-.587zM156.903 18.38a5.204 5.204 0 01-1.921-1.467c-.529-.635-.913-1.369-1.201-2.2-.288-.83-.432-1.76-.432-2.786a8.68 8.68 0 01.432-2.786c.288-.83.672-1.613 1.201-2.2a5.203 5.203 0 011.921-1.466 6.087 6.087 0 012.545-.537c.961 0 1.777.195 2.546.537.72.342 1.393.831 1.921 1.467.528.635.913 1.368 1.201 2.2.288.83.384 1.759.384 2.785 0 1.027-.144 1.907-.384 2.787-.288.83-.673 1.612-1.201 2.2a5.212 5.212 0 01-1.921 1.465c-.721.343-1.585.538-2.546.538a6.254 6.254 0 01-2.545-.538zm4.467-1.223c.576-.293 1.008-.684 1.392-1.222a4.74 4.74 0 00.817-1.808 8.111 8.111 0 00.288-2.2c0-.782-.096-1.515-.288-2.2a6.85 6.85 0 00-.817-1.808c-.384-.538-.816-.929-1.392-1.222-.577-.293-1.201-.44-1.922-.44-.72 0-1.393.147-1.921.44a4.167 4.167 0 00-1.393 1.222 5.706 5.706 0 00-.864 1.809 8.111 8.111 0 00-.288 2.2c0 .781.096 1.515.288 2.199.192.684.48 1.27.864 1.808.385.538.865.93 1.393 1.222.528.294 1.201.44 1.921.44.721 0 1.393-.146 1.922-.44zM169.295 5.233v2.004h.048a5.772 5.772 0 011.585-1.662c.624-.44 1.441-.635 2.401-.635.817 0 1.537.195 2.162.586.624.391 1.056 1.027 1.344 1.809h.049a4.768 4.768 0 011.729-1.809c.72-.44 1.537-.635 2.449-.635.576 0 1.057.097 1.537.293.48.195.913.44 1.249.782.336.342.624.782.816 1.32.192.537.288 1.124.288 1.76v9.531h-1.537V9.241c0-.978-.24-1.71-.768-2.2-.528-.488-1.201-.684-1.969-.684-.48 0-.961.098-1.345.244-.432.196-.816.44-1.105.734a4.104 4.104 0 00-.768 1.173 4.118 4.118 0 00-.288 1.564v8.505h-1.585V9.241c0-.978-.24-1.71-.769-2.2-.48-.488-1.104-.684-1.873-.684-.48 0-.912.098-1.345.293-.432.196-.816.44-1.2.782a3.601 3.601 0 00-.817 1.222c-.192.44-.288.978-.288 1.516v8.407h-1.585V5.233h1.585zM15.41 12.024l6.147-10.949a.676.676 0 000-.733C21.413.147 21.173 0 20.932 0H8.252c-.24 0-.48.147-.624.342L1.096 11.633c-.144.245-.144.538 0 .734l6.532 11.29a.697.697 0 00.625.343h12.68c.24 0 .48-.147.624-.342a.676.676 0 000-.733l-6.148-10.9zm-.817-1.466L9.5 1.466h10.23l-5.138 9.092zM8.205 2.2l5.523 9.824-5.523 9.825-5.668-9.825L8.205 2.2zM9.5 22.534l5.092-9.092 5.09 9.092H9.502z",fill:"#00122C"}))},s=function(e){var t=e.className;return n.createElement("svg",{className:t,viewBox:"0 0 224 74",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M26.731 73.5318C34.495 73.5318 40.853 71.6068 45.808 67.7588C50.763 63.9108 53.238 58.6038 53.238 51.8444C53.238 45.2177 51.398 40.1974 47.716 36.7837C44.704 33.9047 40.153 32.0319 34.061 31.161L25.526 29.8558C22.715 29.4542 20.539 28.5505 19 27.1449C17.662 25.8724 16.992 24.1655 16.992 22.0242C16.992 19.4137 17.931 17.255 19.803 15.5482C21.678 13.8413 24.387 12.9878 27.936 12.9878C34.362 12.9878 39.249 14.6271 42.595 17.9077L51.431 9.17247C45.675 3.61747 37.977 0.838867 28.338 0.838867C20.707 0.838867 14.65 2.82947 10.165 6.81297C5.67896 10.7964 3.43697 16.0327 3.43697 22.5263C3.43697 28.5505 5.14397 33.2368 8.5
25797 36.5829C11.771 39.6605 16.39 41.6359 22.414 42.5068L30.948 43.812C33.96 44.2136 36.102 45.0169 37.374 46.2217C38.847 47.695 39.583 49.6704 39.583 52.1456C39.583 55.0248 38.496 57.2308 36.32 58.7718C34.144 60.3108 30.981 61.0818 26.832 61.0818C19.402 61.0818 13.679 59.0738 9.66197 55.0578L0.625977 64.0938C4.03998 67.5078 7.82197 69.9348 11.972 71.3728C16.121 72.8138 21.041 73.5318 26.731 73.5318ZM85.267 73.5318C91.961 73.5318 97.381 71.3908 101.533 67.1058C103.771 64.8288 105.38 62.0088 106.201 58.9228C107.037 55.8108 107.456 51.744 107.456 46.7237C107.456 41.769 107.037 37.7528 106.201 34.6752C105.365 31.5976 103.809 28.8517 101.533 26.442C97.516 22.1574 92.095 20.0162 85.267 20.0162C78.64 20.0162 73.251 22.1574 69.102 26.442C66.825 28.8517 65.269 31.5954 64.433 34.6752C63.597 37.7528 63.178 41.769 63.178 46.7237C63.178 51.6785 63.597 55.7098 64.433 58.8228C65.268 61.9318 66.874 64.7808 69.102 67.1058C73.251 71.3908 78.64 73.5318 85.267 73.5318ZM85.267 61.7848C82.79 61.7848 80.782 61.0138 79.243 59.4748C77.235 57.5328 76.231 53.2828 76.231 46.7237C76.231 40.2302 77.235 36.0132 79.243 34.0728C80.782 32.534 82.79 31.7635 85.267 31.7635C87.81 31.7635 89.851 32.534 91.392 34.0728C93.4 36.0154 94.404 40.2302 94.404 46.7237C94.404 53.2828 93.4 57.5348 91.392 59.4748C89.853 61.0138 87.812 61.7848 85.267 61.7848ZM142.096 72.9288V61.8848H137.076C133.998 61.8848 132.457 60.3128 132.457 57.1658V1.44127H119.405V57.9688C119.405 62.0508 120.692 65.5648 123.27 68.5118C125.846 71.4578 129.646 72.9288 134.666 72.9288H142.096ZM167.773 72.9288V22.1247H154.721V72.9288H167.773ZM198.296 73.5318C203.65 73.5318 207.968 71.6918 211.248 68.0098V72.9288H224V1.44127H210.947V25.2372C207.802 21.7558 203.55 20.0162 198.196 20.0162C192.774 20.0162 188.557 21.5877 185.545 24.7352C183.268 27.0772 181.797 29.9889 181.127 33.4704C180.457 36.9518 180.123 41.3696 180.123 46.7237C180.123 52.1456 180.457 56.5958 181.127 60.0778C181.797 63.5588 183.268 66.4708 185.545 68.8128C188.557 71.9578 192.807 73.5318 198.296 73.5318ZM202.011 61.7848C200.136 61.7848 198.58 61.4158 197.342 60.6798C196.105 59.9448 195.201 58.8228 194.631 57.3168C194.067 55.8278 193.679 54.2773 193.477 52.6978C193.276 51.1263 193.176 49.1334 193.176 46.7237C193.176 44.314 193.276 42.3234 193.477 40.7497C193.675 39.1857 194.063 37.6517 194.631 36.1813C195.199 34.7079 196.105 33.6057 197.342 32.8679C198.58 32.1324 200.136 31.7635 202.011 31.7635C205.626 31.7635 208.018 33.036 209.19 35.5788C210.362 38.1217 210.947 41.8367 210.947 46.7237C210.947 49.0658 210.847 51.0586 210.646 52.6978C210.455 54.3009 210.049 55.8708 209.441 57.3668C208.839 58.8398 207.918 59.9418 206.68 60.6798C205.442 61.4158 203.886 61.7848 202.011 61.7848Z",fill:"#272D3D"}),n.createElement("path",{d:"M167.874 11.6833V1.04053H154.52V11.6833H167.874Z",fill:"#18C95F"}))}},40065:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(14041),i=r(56351),o=r(75933),a=r(17497),s=r(28064),c=r(72655),l=r(43238),u=r(59209),d=r(6795),f=r(86012),p=(0,i.PA)((function(e){var t=e.paymentStore,r=t.isSafeChargeCreditCardActive,i=t.isSafeChargePaypalActive,p=t.isCheckOutActive,h=t.isSolidActive,m=t.isSubmitting,y=t.isRedirectActive,v=t.paymentMethodDescription,g=t.isApplePayActive,b=t.isGooglePayActive,E=t.isAlternativePaymentMethodsAvailable;return n.createElement(o.x7,{enabled:m},E&&n.createElement(n.Fragment,null,n.createElement("div",{className:"flex items-center gap-6",id:"paymentOptionsButtons"},g&&n.createElement(d.A,null),b&&n.createElement(f.A,null)),n.createElement("div",{className:"relative py-4 lg:py-6"},n.createElement("div",{className:"my-2 h-px w-full bg-zinc-200"}),n.createElement("span",{className:"absolute left-1/2 top-1/2 flex w-fit -translate-x-1/2 -translate-y-1/2 items-center bg-white px-2.5 text-xs uppercase tracking-widest text-zinc-500 dark:bg-slate-950 dark:text-zinc-300"},"or pay with card"))),n.createElement(o.Zp,{className:"overflow-hidden"},n.createElement("div",{className:"border-b border-b-zinc-200"},n.createElement(a.A,null)),n.createElement("div",{className:"p-4 lg:p-6",id:"PaymentOptionsFormBody"},(r||i)&&n.createElement(s.A,null),p&&n.createElement(c.A,null),h&&n.createElement(l.A,null),y&&n.createElement(u.A,null)),Boolean(v)&&n.createElement("div",{className:"p-4 pt-0 text-center text-sm text-zinc-500 lg:p-6 lg:pt-0 dark:text-zinc-100","data-testid":"paymentMethodDescription",id:"paymentMethodDescription"},v)))}));const h=(0,i.WQ)("paymentStore")(p)},59209:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(14041),i=r(56351),o=r(75933),a=(0,i.PA)((function(e){var t=e.paymentStore,r=t.orderData,i=t.activePaymentMethod;return n.createElement(o.$n,{size:"lg",onClick:function(){t.redirectToExternalPaymentPage()},className:"w-full"},"Pay ",n.createElement(o.wn,{value:r.totalAmount+i.tax}))}));const s=(0,i.WQ)("paymentStore")(a)},28064:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});r(68450),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(11823),r(17306),r(42411),r(86940),r(69008),r(13849),r(83040),r(48851),r(96656),r(94356),r(45993);var n=r(14041),i=r(56351),o=r(21377),a=r(75933),s=r(3492),c=r(58165);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}
2function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(this,r)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t,r){return(t=y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var v=(0,i.PA)(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(h,e);var t,r,i,l=f(h);function h(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(p(e=l.call.apply(l,[this].concat(r))),"focusOnField",(function(){var t=e.props.safeChargeFormStore.formManager;if(t){var r=t.formErrors;r[s.xs.CARD_NUMBER]?e.cardNumber.focus():r[s.xs.EXPIRATION]?e.expirationDate.focus():r[s.xs.CVC]&&e.cvc.focus()}})),m(p(e),"handleSubmit",(function(t){var r=e.props.safeChargeFormStore;return t.preventDefault(),r.startSubmitting(e.cardNumber).catch((function(){(0,c.oL)(),e.focusOnField()}))})),m(p(e),"handleChange",(function(t){var r=t.field,n=t.complete;e.props.safeChargeFormStore.formManager.setValue(r,n)})),m(p(e),"handleChangeEmail",(function(t){e.props.safeChargeFormStore.formManager.setValue("email",t)})),m(p(e),"createSafeChargeForm",(function(){var t=e.props.safeChargeFormStore.safeCharge;e.safeChargeFields=t.fields({});var r={base:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',fontSize:"16px",fontSmoothing:"antialiased","::placeholder":{color:"#71717a"},color:"#09090b"},invalid:{color:"#dc2626"}};e.cardNumber=e.safeChargeFields.create(s.xs.CARD_NUMBER,{style:r}),e.cardNumber.attach("#".concat(s.xs.CARD_NUMBER)),e.cardNumber.on("change",e.handleChange),e.expirationDate=e.safeChargeFields.create(s.xs.EXPIRATION,{style:r}),e.expirationDate.attach("#".concat(s.xs.EXPIRATION)),e.expirationDate.on("change",e.handleChange),e.cvc=e.safeChargeFields.create(s.xs.CVC,{style:r}),e.cvc.attach("#".concat(s.xs.CVC)),e.cvc.on("change",e.handleChange)})),m(p(e),"init",(function(){var t=e.props,r=t.safeChargeFormStore,n=t.paymentStore;return r.init().then((function(){n.isSafeChargeCreditCardActive&&e.createSafeChargeForm()}))})),e}return t=h,(r=[{key:"componentDidMount",value:function(){this.init()}},{key:"componentWillUnmount",value:function(){this.props.safeChargeFormStore.dispose()}},{key:"render",value:function(){var e=this.props,t=e.safeChargeFormStore.formManager,r=e.paymentStore,i=r.orderData,c=r.activePaymentMethod.tax;if(!t)return n.createElement(a.x7,{enabled:!0});var l=t.formValues,u=t.formAvailableKeysById,d=t.errorHiglightableKeys,f=t.formErrors;return n.createElement("form",{onSubmit:this.handleSubmit,className:"SafeChargeForm"},u[s.xs.CARD_NUMBER]&&u[s.xs.EXPIRATION]&&u[s.xs.CVC]&&n.createElement("div",{className:"SafeChargeForm__input-wrapper SafeChargeForm__input-wrapper--info"},n.createElement(a.BG,{show:d[s.xs.CARD_NUMBER],error:f[s.xs.CARD_NUMBER],className:"SafeChargeForm__input-validation-representer"},n.createElement(a.JU,{text:"Card information",className:"mb-1",htmlFor:"payment-SafeChargeForm-card"}
2),n.createElement(a.pd,{tabIndex:-1,className:"SafeChargeForm__input h-10 read-only:bg-white read-only:text-zinc-950",id:"payment-SafeChargeForm-card"},n.createElement("div",{id:s.xs.CARD_NUMBER}))),n.createElement("div",{className:"SafeChargeForm__input-group"},n.createElement("div",{className:"SafeChargeForm__input-wrapper"},n.createElement(a.BG,{show:d[s.xs.EXPIRATION],error:f[s.xs.EXPIRATION],className:"SafeChargeForm__input-validation-representer"},n.createElement(a.pd,{tabIndex:-1,className:"SafeChargeForm__input h-10 read-only:bg-white read-only:text-zinc-950"},n.createElement("div",{id:s.xs.EXPIRATION})))),n.createElement("div",{className:"SafeChargeForm__input-wrapper"},n.createElement(a.BG,{show:d[s.xs.CVC],error:f[s.xs.CVC],className:"SafeChargeForm__input-validation-representer"},n.createElement(a.pd,{tabIndex:-1,className:"SafeChargeForm__input h-10 read-only:bg-white read-only:text-zinc-950"},n.createElement("div",{id:s.xs.CVC})))))),n.createElement("div",{className:"SafeChargeForm__input-wrapper SafeChargeForm__input-wrapper--email"},n.createElement(a.BG,{show:d.email,error:f.email,className:"SafeChargeForm__input-validation-representer"},n.createElement(a.JU,{text:"Email",className:"mb-1",htmlFor:"payment-SafeChargeForm-email"}),n.createElement(a.pd,{value:l.email,onChange:this.handleChangeEmail,className:"SafeChargeForm__input",placeholder:"Your email",id:"payment-SafeChargeForm-email"}))),n.createElement(a.$n,{type:"submit",className:"SafeChargeForm__submit-button"},n.createElement(o.A,{size:20}),n.createElement("span",null,"Pay ",n.createElement(a.wn,{value:i.totalAmount+c}))))}}])&&u(t.prototype,r),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),h}(n.Component));const g=(0,i.WQ)("safeChargeFormStore","paymentStore")(v)},43238:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(14041),i=r(56351),o=r(75933),a=(0,i.PA)((function(e){var t=e.solidFormStore;return(0,n.useEffect)((function(){return t.init(),function(){return t.reset()}}),[]),n.createElement(o.x7,{enabled:t.isLoading},n.createElement("div",{id:"solid-form"}))}));const s=(0,i.WQ)("solidFormStore")(a)},71761:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(14041),i=r(56351),o=r(92998),a=r(24289),s=r(75933),c=r(3492),l=(0,i.PA)((function(e){var t=e.paymentStore,r=t.paymentFailedErrorCode,i={promotion_name:r===c.nl.INSUFFICIENT_FUNDS?"split payment when insufficient funds":"split payment payment page",promotion_id:r===c.nl.INSUFFICIENT_FUNDS?"split_payment_insufficient_funds":"split_payment_payment_page"};return(0,n.useEffect)((function(){a.TQ.viewPromotion(i)}),[]),n.createElement("div",{className:"rounded-md bg-bg-subtle p-4"},n.createElement(s.dO,{className:"items-start",checked:t.payIn2Value,onCheckedChange:function(){return t.payIn2Value?a.TQ.closePromotion(i):a.TQ.selectPromotion(i),t.togglePayIn2()},color:"primary",label:n.createElement(n.Fragment,null,"Pay in 2",n.createElement(s.Ex,{color:"green",className:"ml-3"},n.createElement(o.A,{size:14})," Popular choice"),n.createElement("span",{className:"ml-auto text-text-muted"},"+5%")),labelDescription:"Pay 50% of the price now and 50% when the task is ready",testId:"payIn2Control"}))}));const u=(0,i.WQ)("paymentStore")(l)},5155:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(14041),i=r(39067),o=r.n(i),a=r(56351),s=r(15369),c=r(97751),l=(0,a.PA)((function(e){var t=e.userProfileStore.isBanned,r=e.configsStore.isOrderPlacingProhibited,i=e.orderId,o=e.paymentRequestId,a=e.paymentData;return t||r?n.createElement(s.A,null):n.createElement(c.A,{orderId:i,paymentRequestId:o,paymentData:a})}));l.propTypes={orderId:o().number.isRequired,paymentRequestId:o().number,paymentData:o().object,userProfileStore:o().shape({isBanned:o().bool.isRequired}).isRequired,configsStore:o().shape({isOrderPlacingProhibited:o().bool.isRequired}).isRequired};const u=(0,a.WQ)("userProfileStore","configsStore")(l)},42278:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});r(21555),r(5858),r(55983),r(37210),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831
2),r(40890),r(66264),r(85028),r(58948),r(99180),r(59161),r(29416),r(25400),r(57931),r(24493),r(22892),r(44318),r(34089);var n=r(14041),i=r(33664),o=r(56351),a=r(75079),s=r(65002),c=r(90983),l=r(75933);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y=(0,o.PA)((function(e){var t=e.userProfileStore,r=e.ordersStore,o=e.routerStore,u=e.configsStore,d=e.orderId,p=e.appMessageComponent,m=h((0,n.useState)({order:{},isLoadingOrder:!0}),2),y=m[0],v=m[1];(0,n.useEffect)((function(){r.setOrderStore(d).loadOrder().then((function(e){v({order:e,isLoadingOrder:!1}),t.sendFingerprint({submitAction:"pay",orderId:d}).catch((function(){}))})).catch((function(){})).finally((function(){v((function(e){return f(f({},e),{},{isLoadingOrder:!1})}))})).catch((function(){})),t.startLoadingProfile().catch((function(){}))}),[]);var g=y.order,b=g.rewardPointsEarned,E=g.discountAchieved,w=y.isLoadingOrder,S=Boolean(b||E);return w?n.createElement(l.x7,{enabled:!0,fullScreen:!0,"data-testid":"ui-blocker"}):n.createElement("div",{className:"mx-auto flex max-w-[600px] flex-col gap-4 md:gap-6"},n.createElement(l.Zp,null,n.createElement(l.aR,null,n.createElement(l.ZB,{"data-testid":"paymentSuccessful-heading",className:"text-center"},"Payment successful")),n.createElement(l.Wu,{className:"flex flex-col items-center"},n.createElement("div",{className:"pb-8 pt-4 text-center","data-testid":"paymentSuccessful-text"},n.createElement(l.L5,{icon:a.A,size:"lg",className:"mx-auto mb-2"}),n.createElement("div",{className:"mb-2 text-base font-medium"},"Thanks for entrusting your paper to us"),n.createElement("div",{className:"text-xs"},"We've already started processing your order")),n.createElement(l.$n,{onClick:function(){o.replaceLocation("/order/".concat(d))},"data-testid":"paymentSuccessful-button"},"View order"))),S&&n.createElement(l.Zp,null,n.createElement(l.aR,null,n.createElement(l.ZB,null,"Loyalty program")),n.createElement(l.Wu,{className:"flex flex-col gap-4 md:gap-6"},Boolean(b)&&n.createElement(l.Fc,{color:"magic",title:"".concat(b," Loyalty Points added"),description:"Youâve earned ".concat(b," Loyalty Points with this order"),icon:function(){return n.createElement(s.A,{size:20,strokeWidth:1.5})},action:function(){return n.createElement(l.$n,{variant:"outline",asChild:!0},n.createElement(i.N_,{to:"/rewards"},"Check progress"))}}),E&&n.createElement(l.Fc,{color:"magic",title:"New discount level achieved",description:"Youâve got a ".concat(E,"% discount on your next orders!"),icon:function(){return n.createElement(c.A,{size:20,strokeWidth:1.5})},action:function(){return n.createElement(l.$n,{variant:"outline",asChild:!0},n.createElement(i.N_,{to:"/rewards"},"Check discount"))}}))),u.isCustomWritingsCom&&!u.isIOSapp&&n.createElement(l.Zp,null,n.createElement(l.Wu,{className:"pt-6"}
2,n.createElement(p,{message:"Download our app to track your order and use our Assignment planner!",link:"https://collegehelp.onelink.me/GXVs/paymentsucess",classModifier:"cw"}))))}));const v=(0,o.WQ)("ordersStore","routerStore","configsStore","userProfileStore")(y)},67652:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(93831),r(40890),r(95790);var n=r(14041),i=r(56351),o=r(34783),a=r(43636),s=r(24289),c=r(3492),l=r(75933),u=(0,i.PA)((function(e){var t=e.tipsStore,r=e.onClose,i=e.orderId;(0,n.useEffect)((function(){return(0,s.WH)("tipsFormMount"),t.configure(i).catch((function(){})),function(){(0,s.WH)("tipsFormUnmount"),t.reset()}}),[]);var u=function(e){var t=e.type,r=e.value;switch(t){case c.AP.PERCENT:return"".concat(r,"%");case c.AP.CUSTOM_AMOUNT:return"Custom";default:return n.createElement(l.wn,{value:r,fixed:0})}},d=t.tipsAmountById[t.formManager.formValues.tipId],f=!!d&&!t.formManager.formErrors.customValue,p=t.tipsValuesIds.map((function(e){var r=t.tipsValuesById[e];return{id:e,title:u(r)}}));return n.createElement(l.x7,{enabled:t.isLoading||void 0!==t.formManager.submitting},n.createElement("form",{onSubmit:function(e){e.preventDefault();var n=t.formManager.formValues.tipId,i=t.tipsValuesById,o=t.tipsAmountById,a=i[n],c=a.type,l=a.value,u="$".concat(o[n]);return(0,s.WH)("tipSubmit",{type:c,value:l||o[n],amount:u}),t.submit().then(r).catch((function(){}))},"data-testid":"tips-form"},n.createElement("div",{className:"md:py-4"},n.createElement(l.L5,{icon:o.A,size:"lg",className:"mx-auto"}),n.createElement("div",{className:"my-2 text-center text-base font-medium"},"Thank you for using our service!"),n.createElement("div",{className:"mb-4 text-center text-sm md:mb-8"},"You can leave us a tip if you like our work ð¥°"),n.createElement(l.z6,{"data-testid":"tips-form-radio-group",variant:"solid",size:"sm",orientation:"horizontal",className:"grid-rows-2 gap-3 font-medium md:auto-cols-auto md:grid-rows-1 md:gap-4",onChange:function(e){t.formManager.setValue("tipId",e);var r=t.tipsValuesById[e].type;(0,s.WH)("tipsRadiobuttonsClick",{type:r})},options:p,value:t.formManager.formValues.tipId}),t.isCustomAmountChosen&&n.createElement(l.BG,{error:t.formManager.formErrors.customValue,show:t.formManager.formInteractedKeys.customValue},n.createElement("div",{className:"relative mt-3 md:mt-4"},n.createElement(a.A,{size:20,color:"#71717A",className:"absolute left-3 top-2.5 block"}),n.createElement(l.pd,{"data-testid":"tips-form-custom-amount",autoFocus:!0,className:"pl-10",onChange:function(e){var r=t.formManager,n=e.target.value;n&&!/^[0-9.]+$/.test(n)||(r.setValue("customValue",n||""),r.finishInteraction("customValue"))},value:t.formManager.formValues.customValue,placeholder:"Type custom amount",name:"custom-amount"}))),!t.formManager.formValues.tipId&&n.createElement(l.Fc,{"data-testid":"tips-form-alert",description:"Select the tip or type your custom amount",variant:"soft",color:"warning",className:"mt-3 md:mt-4"})),n.createElement(l.Es,{className:"justify-center"},n.createElement(l.$n,{variant:"outline",size:"sm",onClick:r,"data-testid":"tips-form-close-button"},"Close"),n.createElement(l.$n,{type:"submit",size:"sm",disabled:!f,"data-testid":"tips-form-submit-button"},"Give tip"," ",f&&n.createElement(l.Ex,{variant:"soft",size:"sm",className:"font-medium"},"$",d)))))}));const d=(0,i.WQ)("tipsStore")(u)},75870:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(30935),r(68291),r(93831),r(28882);var n=r(14041),i=r(39067),o=r.n(i),a=r(56351),s=r(3492),c=function(e){var t=e.dialogsStore,r=e.order,i=e.location;return(0,n.useEffect)((function(){var e=r.id,n=r.isVisibleTipsForWriterButton;i.search.includes("showTipsDialog")&&n&&t.pushDialog(s.g5.MODAL_TIPS,{orderId:e})})),null};c.propTypes={dialogsStore:o().shape({pushDialog:o().func.isRequired}).isRequired,location:o().shape({search:o().string.isRequired}).isRequired,order:o().shape({id:o().number.isRequired,isVisibleTipsForWriterButton:o().bool.isRequired}).isRequired};const l=(0,a.WQ)("dialogsStore")(c)},97990:(e,t,r)=>{"use strict";r.d(t,{$z:()=>a.A,BB:()=>n.A,Je:()=>i.A,p2:()=>o.A});var n=r(42278),i=r(67652),o=r(5155),a=r(75870)},18435:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(21555),r(5858);var n=r(14041),i=r(56351),o=r(8030),a=r(9870),s=r.n(a),c=r(75933),l=r(58165),u=r(3492),d=u.gG.MAX_UPLOADING_FILE_SIZE,f=u.gG.MAX_UPLOADING_FILE_SIZE_FOR_CUSTOMWRITINGS,p=(0,i.PA)((function(e){var t=e.orderId,r=e.configsStore,i=e.notificationsStore,a=r.configs,u=r.isCustomWritingsCom,p=a.siteFullName;return n.createElement(c.Fc,{color:"error",icon:o.A,title:n.createElement(n.Fragment,null,"Canât upload files larger than"," ",u?s()(f):s()(d),"."),description:n.createElement(n.Fragment,null,"Please e-mail the file to"," ",n.createElement("a",{href:"mailto:info@".concat(p.toLowerCase()),className:"font-normal text-current underline hover:no-underline"},"info@",p.toLowerCase())," ","indicating the"," ",n.createElement(c.$n,{variant:"linkDestructive",onClick:function(){return e=t,(0,l.lW)((function(){return Promise.resolve(e)})).then((function(){i.pushNotification({title:"Order id copied to clipboard",view:"success",closeButton:!1})})).catch((function(){i.pushNotification({title:"Failed to copy order id",view:"error",closeButton:!1})}));var e},title:"Copy order id",className:"font-normal underline decoration-dotted underline-offset-auto hover:no-underline"},"Order ID"),"."),className:"mt-4"})}));const h=(0,i.WQ)("configsStore","notificationsStore")(p)},15743:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(95790),r(1569),r(21555),r(9020),r(79683),r(69399),r(23510),r(96152),r(34237),r(54);var n=r(14041),i=r(56351),o=r(93718),a=r.n(o),s=r(75933),c=r(3492),l=r(74276),u=r(18435),d=r(24103),f=r(80125),p=(0,i.PA)((function(e){var t,r,i=e.order,o=e.onDone,p=e.configsStore,h=e.dialogsStore,m=e.requestRevisionFreeStore,y=m.blockedDeadlinesIdsDueToSeason,v=m.enabledDeadlinesIds,g=m.availableDeadlinesIds,b=m.formManager,E=b.formValues,w=b.formErrors,S=b.otherErrorsList,A=b.errorHiglightableKeys,_=b.formAttemptsToSubmitCount,x=b.submitting,P=p.configs,I=P.revisionDeadlinesById,k=P.hotSeasonStopAt,O=y.map((function(e){return I[e].hrs})),T=g.map((function(e){return I[e]})),C=null===(t=T.find((function(e){return e.hrs===E.deadlineHours})))||void 0===t?void 0:t.id;(0,n.useEffect)((function(){return m.init(i.id),function(){return m.reset()}}),[]);return n.createElement(s.x7,{enabled:void 0!==x},n.createElement("form",{onSubmit:function(e){return e.preventDefault(),m.startRequestingFreeRevision(i).then((function(){o(),h.pushDialog(c.g5.MODAL_REVISION_SUCCESS,{orderId:i.id})})).catch((function(){}))}},n.createElement("div",{className:"mb-4 text-base font-medium text-zinc-950 dark:text-zinc-50"},"Parts of writing to improve"),n.createElement(s.to,{errors:S,skipCodes:0===_?[c.I.VALIDATION_FAILED]:[],testId:"revision-options-error",className:"mb-2"}),f.map((function(e){var t=e.testId,r=e.checkedFlag,i=e.commentBody,o=e.title,a=e.description,s=e.placeholder;return n.createElement(d.A,{testId:t,className:"mb-2",key:r+i,checkedFlag:r,commentBody:i,title:o,description:a,placeholder:s,formManager:m.formManager})})),n.createElement(s.wv,{className:"my-6"}),n.createElement("div",null,n.createElement("div",{"data-testid":"additionalMaterialsLabel",className:"mb-1 text-base font-medium text-zinc-950 dark:text-zinc-50"},"Upload files"),n.createElement("div",{className:"mb-1.5 text-sm text-zinc-500 dark:text-zinc-300"},"Donât forget to upload additional materials if there are any"),n.createElement(l.h,{attachementsManager:m.filesManager,testId:"filesControl"}),(null===(r=m.filesManager)||void 0===r?void 0:r.isSomeFileExceededSizeLimit)&&n.createElement(u.A,{orderId:i.id})),n.createElement(s.wv,{className:"my-6"}),n.createElement("div",{className:"mb-6"},n.createElement(s.Sc,{checked:E.revisionDiffWriterFlag,onCheckedChange:function(e){return m.formManager.setValue("revisionDiffWriterFlag",e)},label:"Request a different writer",testId:"requestDifferentWriterCheckbox"}),E.revisionDiffWriterFlag&&n.createElement("div",{className:"mt-2 text-sm text-zinc-500 md:ml-6 md:mr-2 dark:text-zinc-50","data-testid":"free-revision-different-writer-option-description"},n.createElement("p",{className:"mb-4"},"We may need more time to find you a new writer, so make sure you adjust your revision deadline accordingly."),n.createElement("p",null,"On average, you should add extra 12-24 hours to the initial time for a new writer to complete a revision."))),n.createElement(s.BG,{error:w.deadlineHours,show:A.deadlineHours,className:"mb-4 md:mb-6 md:max-w-80"},n.createElement(s.JU,{text:"I need revision within:",htmlFor:"deadlineControl",className:"mb-1.5"}),n.createElement(s.l6,{triggerId:"deadlineControl","data-testid":"revisionDeadlineControl",onChange:function(e){if(e){var t=parseInt(I[e].hrs,10);m.formManager.setValue("deadlineHours",t)}else m.formManager.setValue("deadlineHours",void 0)},options:T,defaultValue:null==C?void 0:C.toString(),placeholder:"Select deadline"})),O.length>0&&n.createElement("p",{"data-testid":"free-revision-deadline-notify",className:"pb-4 text-sm md:pb-6"},"Please note that the minimum revision deadline you can select right now is"," ",I[v[0]].hrs," hours. Starting"," ",n.createElement("strong",null,a()(k,"mmmm dd (yyyy)")),","," ",n.createElement("span",{style:{whiteSpace:"nowrap"}},"the"," ",n.createElement("strong",null,O.join(" and "),"-hours"))," ","revision deadline will become available once again. Thank y
2ou for your understanding."),n.createElement(s.Es,{className:"md:mt-6"},n.createElement(s.$n,{variant:"outline",onClick:function(){o()},"data-testid":"cancel-revision-request"},"Cancel"),n.createElement(s.$n,{type:"submit","data-testid":"request-free-revision",id:"requestRevisionButton-freeRevisionForm"},"Request revision"))))}));const h=(0,i.WQ)("configsStore","dialogsStore","requestRevisionFreeStore","ordersStore")(p)},42491:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});r(9098),r(93831),r(98304),r(1569),r(21555),r(96104),r(95570),r(54),r(85146),r(9020),r(68450),r(25400),r(95790),r(30935),r(68291),r(79683),r(69399),r(5858),r(59161),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(66264),r(23510),r(22892),r(11823),r(86940),r(17626),r(84766);var n=r(14041),i=r(56351),o=r(3492),a=r(75933),s=r(58165),c=r(24289),l=r(74276),u=r(18435),d=r(24103);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(){p=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};l(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,s){var c=d(e[i],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==f(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=d(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(f(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=l(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),l(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),l(x,c,"Generator"),l(x,a,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function m(e){return e.replace(/\s*\([^)]*\)/g,"").trim()}var y=r(73537),v=(0,i.PA)((function(e){var t,r=e.orderId,i=e.onDone,f=e.configsStore,v=e.ordersStore,g=e.requestRevisionPaidStore,b=e.userProfileStore,E=e.routerStore,w=e.shouldHideCancelButton,S=f.configs.paidRevisionDeadlinesById,A=f.isIOSapp,_=function(){i()},x=function(){var e,t=(e=p().mark((function e(t){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.prev=1,e.next=4,g.requestRevision();case 4:r=e.sent,_(),E.pushLocation("/payment/".concat(r)),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),(0,s.oL)();case 12:case"end":return e.stop()}}),e,null,[[1,9]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){h(o,n,i,a,s,"next",e)}function s(e){h(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();(0,n.useEffect)((function(){return g.init(r).then((function(){c.TQ.viewItem(g.orderInfoForGA4)})).catch(_),function(){return g.reset()}}),[]);var P,I,k,O=function(e,t){return e.find((function(e){return e.orderServiceTypeId===t}))},T=function(e){return g.availableWriters.find((function(t){return t.id===e}))},C=v.getOrderStore(r).order,R=g.originalOrderFiles,N=g.isLoadingOrder,L=g.discountPrice,D=g.formManager,M=D.formErrors,F=D.errorHiglightableKeys,j=D.formAttemptsToSubmitCount,B=D.formValues,V=D.otherErrorsList,U=D.submitting,z=[{title:"Minor",id:o.B5.REVISION_MINOR},{title:"Major",id:o.B5.REVISION_MAJOR}],G=A?"revision policy":n.createElement("a",{className:"hover:underline",href:"/revisions-policy.html",rel:"nofollow noopener noreferrer",target:"_blank"},"Revision Policy");return N?n.createElement(a.x7,{enabled:!0}):n.createElement(a.x7,{enabled:b.isBanned,showSpinner:!1,transparencyLevel:"hard"},n.createElement(a.x7,{enabled:g.isLoading||void 0!==U},n.createElement("form",{className:"flex flex-col gap-4",onSubmit:x},n.createElement(a.Fc,{color:"info",description:n.createElement(n.Fragment,null,"Either the deadline for a free revisions has expired, or you have requested significant alterations to your order. Proceed with a paid revision in order to make the required amendments. For more information, read our ",G,"."),"data-testid":"revisionPolicy"}),n.createElement(a.Fc,{description:"Submit the revision instructions below and upload the needed materials right upon completing an order for a paid revision. All your instructions will be forwarded to the writer.","data-testid":"revisionInstruction"}),n.createElement("div",{"data-testid":"revisedFileslLabel",className:"text-lg font-medium text-zinc-950 dark:text-zinc-50"},"Select files to be revised"),n.createElement(a.BG,{error:M.selectedSiteFilesIds,show:F.selectedSiteFilesIds},R.map((function(e){return n.createElement(a.Sc,{key:e.id,checked:B.selectedSiteFilesIds.includes(e.id),onCheckedChange:function(t){return function(e,t){var r=parseInt(t,10),n=e,i=g.formManager.formValues;n?g.formManager.setValue("selectedSiteFilesIds",i.selectedSiteFilesIds.concat(r)):g.formManager.setValue("selectedSiteFilesIds",i.selectedSiteFilesIds.filter((function(e){return e!==r})))}
2(t,e.id)},label:e.name,testId:"fileCheckbox"})}))),n.createElement(a.wv,null),n.createElement("div",{"data-testid":"partsOfWritingImproveLabel",className:"text-base font-medium text-zinc-950 dark:text-zinc-50"},"Parts of writing to improve"),n.createElement("div",null,n.createElement(a.to,{errors:V,skipCodes:0===j?[o.I.VALIDATION_FAILED]:[],testId:"revision-options-error",className:"mb-2"}),y.map((function(e){var t=e.testId,r=e.checkedFlag,i=e.commentBody,o=e.title,a=e.description;return n.createElement(d.A,{testId:t,className:"mb-1",key:r+i,checkedFlag:r,commentBody:i,title:o,description:a,formManager:g.formManager})}))),n.createElement(a.wv,null),n.createElement("div",{className:"flex flex-col gap-2"},n.createElement("div",{className:"text-base font-medium text-zinc-950 dark:text-zinc-50"},"Select specific writer if needed"),n.createElement("div",{className:"flex flex-col gap-2 md:flex-row md:flex-wrap md:items-center",id:"specificWriterWrapper"},n.createElement(a.Sc,{checked:!!B.requestedWriterId,onCheckedChange:function(e){var t=e?g.getWriterIdFromOriginalOrder():void 0;g.formManager.setValue("requestedWriterId",t)},label:"I want the writer",testId:"writerCheckbox",className:"shrink-0"}),n.createElement(a.BG,{error:M.requestedWriterId,show:!!F.requestedWriterId,className:"shrink-1 w-full grow-0 md:max-w-80",testId:"writerContainer"},n.createElement(a.G3,{options:(I=g.availableWriters,k=g.originalOrderStore,I.reduce((function(e,t){var r,n=O(t.assignedOrders,(null==k||null===(r=k.order)||void 0===r?void 0:r.orderServiceTypeId)||o.B5.ACADEMIC_WRITING);return n?(e.push({id:t.id,title:[t.name,t.id,m(n.lastOrderDisciplineTitle)].join(" ")}),e):e}),[])),placeholder:"Best available",value:B.requestedWriterId,onChange:function(e){g.formManager.setValue("requestedWriterId",e)},renderValue:function(e){var t,r=T(e.id);if(!r)return null;var i=g.originalOrderStore,a=O(r.assignedOrders,(null==i||null===(t=i.order)||void 0===t?void 0:t.orderServiceTypeId)||o.B5.ACADEMIC_WRITING);if(!a)return null;var s=a.ordersCount,c=m(a.lastOrderDisciplineTitle);return n.createElement("span",{className:"!text-sm text-zinc-600"},n.createElement("span",{className:"font-medium text-zinc-950"},r.name)," (",n.createElement("span",{className:"before:content-['#']"},r.id),") â ",s," order",s>1?"s, last":""," in ",c)},renderOption:function(e){var t,r,i=T(e.id);if(!i)return null;var a=g.originalOrderStore,s=O(i.assignedOrders,(null==a||null===(t=a.order)||void 0===t?void 0:t.orderServiceTypeId)||o.B5.ACADEMIC_WRITING);if(!s)return null;var c,l,u,d=s.ordersCount,p=m(s.lastOrderDisciplineTitle),h="";if((null==a||null===(r=a.order)||void 0===r?void 0:r.orderServiceTypeId)===o.B5.ACADEMIC_WRITING){var y=(c=i.paperLevelId,l=i.languageStyleId,(u=f.configs.configsForAcademicWriting).paperLevelsById[c].percent+u.languageStylesById[l].percent);h="".concat(i.categoryTitle+(y>0?" (+".concat(y,"%)"):""))}return n.createElement("div",{className:"flex w-full justify-between gap-4"},n.createElement("div",{className:"text-left"},n.createElement("p",{className:"m-0 line-clamp-2 !text-sm text-zinc-600 [text-size-adjust:100%]"},n.createElement("span",{className:"font-medium text-zinc-950"},i.name)," (",n.createElement("span",{className:"before:content-['#']"},i.id),")"," ",n.createElement("span",null,"â ",d," order",d>1?"s, last":""," in"," ",p))),n.createElement("div",{className:"text-right !text-xs font-medium text-zinc-400 empty:hidden"},h))}})),n.createElement("div",{className:"shrink-0"},"to complete my order, if possible.")),n.createElement("div",{"data-testid":"writersInstruction",className:"text-xs text-zinc-950 dark:text-zinc-50"},"Please note that our writers are rated. Selecting an advanced writer will involve an additional fee.")),n.createElement(a.wv,null),n.createElement("div",null,n.createElement("div",{"data-testid":"additionalMaterialsLabel",className:"mb-1 text-base font-medium text-zinc-950 dark:text-zinc-50"},"Upload files"),n.createElement("div",{className:"mb-1.5 text-sm text-zinc-500 dark:text-zinc-300"},"Upload all the relevant files here, since a new order for revision will be created"),n.createElement(l.A,{attachementsManager:g.attachementsManager,testId:"filesControl"}),(null===(t=g.attachementsManager)||void 0===t?void 0:t.isSomeFileExceededSizeLimit)&&n.createElement(u.A,{orderId:r})),n.createElement(a.wv,null),n.createElement("div",{id:"deadlineForRevisionWrapper"},n.createElement("div",{className:"mb-1 text-base font-medium text-zinc-950 dark:text-zinc-50","data-testid":"deadlineLabel"},"Deadline for revision"),n.createElement("div",{className:"mb-1.5 text-sm text-zinc-500 dark:text-zinc-300","data-testid":"deadlineMessage"},"Make sure you provide the writer with as much time as possible to complete your revision"),n.createElement(a.BG,{error:M.tariffId,show:F.tariffId},n.createElement(a.l6,{"data-testid":"deadlineOptionsControl",triggerClassName:"md:max-w-80",onChange:function(e){e&&(g.formManager.setValue("tariffId",parseInt(e,10)),g.formManager.setValue("tariffHrs",parseInt(S[e].hrs,10)))},options:g.availableTariffsIds.map((function(e){return S[e]})),placeholder:g.formManager.formValues.tariffId,value:g.formManager.formValues.tariffId}))),n.createElement(a.wv,null),n.createElement("div",{id:"sourcesWrapper"},n.createElement("div",{className:"mb-1 text-base font-medium text-zinc-950 dark:text-zinc-50","data-testid":"sourcesLabel"},"Sources"),n.createElement("div",{className:"mb-1.5 text-sm text-zinc-500 dark:text-zinc-300","data-testid":"sourcesMessage"},"Please specify the number of sources to be used, if required"),n.createElement(a.BG,{error:M.sources,show:F.sources},n.createElement(a.Q7,{className:"md:max-w-52","data-testid":"sourcesControl",value:B.sources,onChange:(P="sources",function(e){g.formManager.setValue(P,e)})}))),n.createElement(a.wv,null),n.createElement("div",{id:"revisionTypeWrapper"},n.createElement("div",{className:"mb-1 text-base font-medium text-zinc-950 dark:text-zinc-50","data-testid":"typeLabel"},"Revision type"),n.createElement("div",{className:"mb-1.5 text-sm text-zinc-500 dark:text-zinc-300","data-testid":"typeMessage"},"Revisions may vary in complexity. Choose the type that best matches your requirements."),n.createElement(a.BG,{error:M.revisionTypeId,show:F.revisionTypeId},n.createElement(a.z6,{"data-testid":"revision-type",onChange:function(e){g.changeRevisionTypeId(parseInt(e,10))}
2,options:z,value:B.revisionTypeId}))),0!==L&&n.createElement(n.Fragment,null,n.createElement(a.wv,null),n.createElement("div",{className:"flex flex-col gap-2 md:flex-row md:items-end"},n.createElement(a.JU,{text:"Coupon code"},n.createElement(a.pd,{className:"mt-1.5 md:max-w-80",value:B.couponCode,readOnly:!0})),n.createElement(a.iI,{color:"success"},n.createElement(a.TN,null,n.createElement(a.wn,{value:L,render:function(e){return n.createElement(n.Fragment,null,"You save ",n.createElement("b",null,e))}}))))),n.createElement(a.wv,null),n.createElement("div",{className:"flex items-center justify-between rounded-lg border border-zinc-200 p-4 shadow-sm"},n.createElement("div",{className:"text-sm text-zinc-500 dark:text-zinc-300"},"Total price"),n.createElement("div",{className:"text-lg font-medium text-zinc-950 dark:text-zinc-50","data-testid":"totalPrice"},n.createElement(a.wn,{value:g.price}))),n.createElement(a.Es,null,!(w&&C.statusId===o.Th.FAKE)&&n.createElement(a.$n,{variant:"outline",onClick:_},"Cancel"),n.createElement(a.$n,{type:"submit"},"Continue to payment")))))}));const g=(0,i.WQ)("configsStore","ordersStore","requestRevisionPaidStore","userProfileStore","routerStore")(v)},86998:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(95790),r(9020),r(1569),r(21555),r(79683),r(69399),r(23510),r(96152),r(34237),r(54);var n=r(14041),i=r(56351),o=r(93718),a=r.n(o),s=r(75933),c=r(3492),l=r(74276),u=r(18435),d=r(24103),f=r(80125),p=(0,i.PA)((function(e){var t,r,i=e.order,o=e.onDone,p=e.configsStore,h=e.dialogsStore,m=e.requestRevisionFreeStore,y=c.Xx.REVISION_PROFESSORS_FEEDBACK,v=m.blockedDeadlinesIdsDueToSeason,g=m.enabledDeadlinesIds,b=m.availableDeadlinesIds,E=m.formManager,w=E.formValues,S=E.formErrors,A=E.otherErrorsList,_=E.errorHiglightableKeys,x=E.formAttemptsToSubmitCount,P=E.submitting,I=p.configs,k=I.revisionDeadlinesById,O=I.hotSeasonStopAt,T=v.map((function(e){return k[e].hrs})),C=b.map((function(e){return k[e]}));(0,n.useEffect)((function(){return m.init(i.id),m.formManager.setValue("freeRevisionType",y),function(){return m.reset()}}),[]);if(w.freeRevisionType!==y)return null;var R=null===(t=C.find((function(e){return e.hrs===w.deadlineHours})))||void 0===t?void 0:t.id;return n.createElement(s.x7,{enabled:void 0!==P},n.createElement("form",{onSubmit:function(e){return e.preventDefault(),m.startRequestingFreeRevision(i).then((function(){o(),h.pushDialog(c.g5.MODAL_REVISION_SUCCESS,{orderId:i.id})})).catch((function(){}))}},n.createElement("div",{className:"mb-4 text-base font-medium text-zinc-950 dark:text-zinc-50"},"Parts of writing to improve"),n.createElement(s.to,{errors:A,skipCodes:0===x?[c.I.VALIDATION_FAILED]:[],testId:"revision-options-error",className:"mb-2"}),f.map((function(e){var t=e.testId,r=e.checkedFlag,i=e.commentBody,o=e.title,a=e.description;return n.createElement(d.A,{testId:t,className:"mb-2",key:r+i,checkedFlag:r,commentBody:i,title:o,description:a,formManager:m.formManager})})),n.createElement(s.wv,{className:"my-6"}),n.createElement("div",null,n.createElement("div",{"data-testid":"additionalMaterialsLabel",className:"mb-1 text-base font-medium text-zinc-950 dark:text-zinc-50"},"Upload files"),n.createElement("div",{className:"mb-1.5 text-sm text-zinc-500 dark:text-zinc-300"},"Share files containing your professorâs feedback for us to revise your paper"),n.createElement(s.BG,{error:S.uploadedFilesIds,show:_.uploadedFilesIds},n.createElement(l.A,{attachementsManager:m.filesManager,testId:"filesControl"})),(null===(r=m.filesManager)||void 0===r?void 0:r.isSomeFileExceededSizeLimit)&&n.createElement(u.A,{orderId:i.id})),n.createElement(s.wv,{className:"my-6"}),n.createElement(s.BG,{error:S.deadlineHours,show:_.deadlineHours,className:"mb-4 md:mb-6 md:max-w-80"},n.createElement(s.JU,{text:"I need revision within:",htmlFor:"deadlineControl",className:"mb-1.5"}),n.createElement(s.l6,{triggerId:"deadlineControl","data-testid":"revisionDeadlineControl",onChange:function(e){if(e){var t=parseInt(k[e].hrs,10);m.formManager.setValue("deadlineHours",t)}else m.formManager.setValue("deadlineHours",void 0)},options:C,defaultValue:null==R?void 0:R.toString(),placeholder:"Select deadline"})),T.length>0&&n.createElement("p",{"data-testid":"free-revision-deadline-notify",className:"pb-4 text-sm md:pb-6"},"Please note that the minimum revision deadline you can select right now is"," ",k[g[0]].hrs," hours. Starting"," ",n.createElement("strong",null,a()(O,"mmmm dd (yyyy)")),","," ",n.createElement("span",{style:{whiteSpace:"nowrap"}},"the"," ",n.createElement("strong",null,T.join(" and "),"-hours"))," ","revision deadline will become available once again. Thank y
2ou for your understanding."),n.createElement(s.Es,{className:"md:mt-6"},n.createElement(s.$n,{variant:"outline",onClick:function(){o()},"data-testid":"cancel-revision-professor-request"},"Cancel"),n.createElement(s.$n,{type:"submit","data-testid":"request-professor-revision",id:"requestRevisionButton-professorsFeedbackRevisionForm"},"Request revision"))))}));const h=(0,i.WQ)("dialogsStore","requestRevisionFreeStore","configsStore","ordersStore")(p)},74276:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,h:()=>a});r(95790),r(85146);var n=r(14041),i=r(56351),o=r(75933),a=(0,i.PA)((function(e){var t=e.testId,r=e.attachementsManager;(0,n.useEffect)((function(){return function(){r.dispose(),r.reset()}}),[]);var i=r.files.map((function(e){return n.createElement(o.Zu,{key:e.instanceId,onClickRemove:function(){return r.removeFile(e.instanceId)},onRetry:function(){return r.uploadFile(e.instanceId)},name:e.name,size:e.blob&&e.blob.size,uploadError:e.uploadError,progressTotal:e.progressTotal,progressLoaded:e.progressLoaded,isUploading:void 0!==e.uploadingPromise,blob:e.blob,alertColor:"warning"})}));return n.createElement("div",{className:"","data-testid":t},n.createElement(o.qj,{filesElements:i,onPickFiles:function(e){return r.addFiles(e)}}))}));const s=a},24103:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(79683),r(69399);var n=r(14041),i=r(56351),o=r(75933);const a=(0,i.PA)((function(e){var t=e.formManager,r=e.checkedFlag,i=e.commentBody,a=e.title,s=e.description,c=e.placeholder,l=void 0===c?"Provide details":c,u=e.className,d=e.testId;return n.createElement("div",{className:u},n.createElement(o.Sc,{testId:d,checked:t.formValues[r],onCheckedChange:function(e){return t.setValue(r,e)},label:a}),t.formValues[r]&&n.createElement("div",{className:"pb-3 pt-2 md:pl-6"},n.createElement("div",{className:"mb-2 text-xs text-zinc-500 dark:text-zinc-50"},s),n.createElement(o.BG,{error:t.formErrors[i],show:t.errorHiglightableKeys[i]},n.createElement(o.TM,{onChange:function(e){return t.setValue(i,e.target.value)},value:t.formValues[i],placeholder:l,rows:6}))))}))},35532:(e,t,r)=>{"use strict";r.d(t,{Qz:()=>o.A,_R:()=>i.A,eW:()=>n.A});var n=r(15743),i=r(86998),o=r(42491)},20335:(e,t,r)=>{"use strict";r.d(t,{$m:()=>y,As:()=>h,Fk:()=>m,nD:()=>p,ub:()=>v});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(20198),o=r(10484),a=r(51057),s=["className"],c=["className","children"],l=["className","children"],u=["className","children"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var p=i.bL,h=(0,n.forwardRef)((function(e,t){var r=e.className,o=f(e,s);return n.createElement(i.q7,d({ref:t,className:(0,a.cn)("border-b border-b-zinc-200 outline-none focus-within:border-b-transparent focus-within:ring-2 focus-within:ring-inset focus-within:ring-primary-200 hover:bg-bg-subtle dark:border-b-zinc-800 dark:hover:bg-transparent",r)},o))}));h.displayName="AccordionItem";var m=(0,n.forwardRef)((function(e,t){var r=e.className,o=e.children,s=f(e,c);return n.createElement(i.l9,d({ref:t,className:(0,a.cn)("flex flex-1 items-center justify-between p-4 text-left text-base font-medium text-zinc-950 outline-none transition-all dark:text-zinc-50 [&[data-state=open]>svg]:rotate-180",r)},s),o)})),y=(0,n.forwardRef)((function(e,t){var r=e.className,a=e.children,s=f(e,l);return n.createElement(i.Y9,{className:"flex"},n.createElement(m,d({ref:t,className:r},s),a,n.createElement(o.A,{size:16,className:"shrink-0 text-zinc-500 transition-all dark:text-zinc-400"})))}));y.displayName=i.l9.displayName;var v=(0,n.forwardRef)((function(e,t){var r=e.className,o=e.children,s=f(e,u);return n.createElement(i.UC,d({ref:t,className:"overflow-hidden px-4 text-sm text-zinc-500 data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down dark:text-zinc-400"},s),n.createElement("div",{className:(0,a.cn)("pb-4",r)},o))}));v.displayName=i.UC.displayName},32899:(e,t,r)=>{"use strict";r.d(t,{$m:()=>n.$m,As:()=>n.As,Fk:()=>n.Fk,nD:()=>n.nD,ub:()=>n.ub});var n=r(20335)},51263:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>y,TN:()=>h,XL:()=>p,iI:()=>m});r(29416),r(98140),r(92221),r(17306),r(79683),r(69399);
2var n=r(14041),i=r(7890),o=r(51057),a=["className","children"],s=["className"],c=["className","variant","color","children"],l=["title","description","icon","action"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var f=(0,i.F)("rounded-lg px-4 py-3 text-sm",{variants:{variant:{soft:"",solid:""},color:{default:"",info:"",success:"",warning:"",error:"",magic:""}},compoundVariants:[{color:"default",variant:"soft",className:"bg-bg-subtle text-zinc-950 dark:bg-zinc-100 dark:text-gray-950"},{color:"default",variant:"solid",className:"text-white bg-zinc-900 dark:text-zinc-50"},{color:"info",variant:"soft",className:"bg-blue-50 text-blue-600 dark:bg-blue-950 dark:text-blue-400"},{color:"info",variant:"solid",className:"bg-blue-600 text-white dark:bg-blue-400 dark:text-gray-950"},{color:"success",variant:"soft",className:"bg-green-50 text-emerald-700 dark:bg-green-950 dark:text-emerald-300"},{color:"success",variant:"solid",className:"bg-emerald-600 text-white dark:bg-emerald-300 dark:text-gray-950"},{color:"warning",variant:"soft",className:"bg-yellow-50 text-yellow-700 dark:bg-yellow-950 dark:text-yellow-300"},{color:"warning",variant:"solid",className:"bg-yellow-500 text-white dark:bg-yellow-500 dark:text-gray-950"},{color:"error",variant:"soft",className:"bg-red-50 text-red-600 dark:bg-red-950 dark:text-red-400"},{color:"error",variant:"solid",className:"text-white bg-red-600 dark:bg-red-400 dark:text-gray-950"},{color:"magic",variant:"soft",className:"bg-violet-50 text-purple-600 dark:bg-violet-950 dark:text-purple-400"},{color:"magic",variant:"solid",className:"bg-violet-600 text-white dark:bg-violet-400 dark:text-gray-950"}],defaultVariants:{variant:"soft",color:"default"}}),p=(0,n.forwardRef)((function(e,t){var r=e.className,i=e.children,s=d(e,a);return n.createElement("div",u({ref:t,className:(0,o.cn)("font-semibold",r)},s),i)}));p.displayName="AlertTitle";var h=(0,n.forwardRef)((function(e,t){var r=e.className,i=d(e,s);return n.createElement("div",u({ref:t,className:r},i))}));h.displayName="AlertDescription";var m=(0,n.forwardRef)((function(e,t){var r=e.className,i=e.variant,a=e.color,s=e.children,l=d(e,c);return n.createElement("div",u({ref:t,role:"alert",className:(0,o.cn)(f({variant:i,color:a}),r)},l),s)}));m.displayName="AlertContainer";var y=(0,n.forwardRef)((function(e,t){var r=e.title,i=e.description,o=e.icon,a=e.action,s=d(e,l);return n.createElement(m,u({ref:t},s),n.createElement("div",{className:"flex flex-wrap items-center gap-3"},n.createElement("div",{className:"flex flex-1 items-center gap-3 sm:min-w-48"},o&&n.createElement("div",{className:"h-5 w-5 shrink-0"},n.createElement(o,null)),n.createElement("div",null,r&&n.createElement(p,null,r),i&&n.createElement(h,null,i))),a&&n.createElement("div",{className:"w-full *:w-full sm:w-auto"},n.createElement(a,null))))}));y.displayName="Alert"},38715:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>n.Fc,TN:()=>n.TN,XL:()=>n.XL,iI:()=>n.iI});var n=r(51263)},82975:(e,t,r)=>{"use strict";r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(36273),o=r(7890),a=r(51057),s=["className","size"],c=["className"],l=["className"],u=["size","src","alt","fallback","className","isOnline"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var p=(0,o.F)("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12",xl:"h-14 w-14","2xl":"h-16 w-16"}},defaultVariants:{size:"md"}}),h={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl"},m={xs:"w-[9px] h-[9px]",sm:"w-[11px] h-[11px]",md:"w-[13px] h-[13px]",lg:"w-[15px] h-[15px]",xl:"w-[17px] h-[17px]","2xl":"w-[19px] h-[19px]"},y=(0,n.forwardRef)((function(e,t){var r=e.className,o=e.size,c=f(e,s);return n.createElement(i.bL,d({ref:t,className:(0,a.cn)(p({size:o,className:r}))},c))}));y.displayName=i.bL.displayName;var v=(0,n.forwardRef)((function(e,t){var r=e.className,o=f(e,c);return n.createElement(i._V,d({ref:t,className:(0,a.cn)("aspect-square h-full w-full",r)},o))}));v.displayName=i._V.displayName;var g=(0,n.forwardRef)((function(e,t){var r=e.className,o=f(e,l);return n.createElement(i.H4,d({ref:t,className:(0,a.cn)("flex h-full w-full items-center justify-center rounded-full bg-zinc-50 font-medium text-zinc-500 dark:bg-slate-800",r)},o))}));g.displayName=i.H4.displayName,(0,n.forwardRef)((function(e,t){var r=e.size,i=e.src,o=e.alt,s=e.fallback,
2c=e.className,l=e.isOnline,p=f(e,u);return n.createElement(y,d({ref:t,size:r,className:(0,a.cn)(c,"relative overflow-visible")},p),i&&n.createElement(v,{src:i,alt:o||"",className:"object-cover"}),n.createElement(g,{className:(0,a.cn)("",h[r])},s),l&&n.createElement("span",{className:(0,a.cn)("absolute bottom-0 right-0 box-border rounded-full border-[1.5px] border-solid border-zinc-50 bg-emerald-600 dark:border-zinc-950",m[r])}))})).displayName="Avatar"},93542:(e,t,r)=>{"use strict";r(82975)},26167:(e,t,r)=>{"use strict";r.d(t,{E:()=>u});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(7890),o=r(51057),a=["className","variant","color","size"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=(0,i.F)("inline-flex shrink-0 items-center gap-1 border box-border rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200 focus-visible:ring-offset-2 dark:focus-visible:ring-zinc-300 dark:focus-visible:ring-offset-0",{variants:{variant:{solid:"border-transparent text-white dark:text-gray-950",soft:"border-transparent",outline:"bg-white dark:bg-zinc-950"},color:{default:"",blue:"",green:"",red:"",yellow:"",magic:""},size:{sm:"px-2 py-px text-xs",md:"px-2 py-px text-sm",lg:"px-3 py-[3px] text-sm"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-primary-700 dark:bg-zinc-50"},{variant:"solid",color:"blue",className:"bg-blue-600 dark:bg-blue-400"},{variant:"solid",color:"green",className:"bg-emerald-600 dark:bg-emerald-300"},{variant:"solid",color:"red",className:"bg-red-600 dark:bg-red-400"},{variant:"solid",color:"yellow",className:"bg-yellow-500"},{variant:"solid",color:"magic",className:"bg-violet-600 dark:bg-violet-400"},{variant:"soft",color:"default",className:"bg-secondary-100 dark:bg-secondary-800 text-slate-950 dark:text-zinc-50"},{variant:"soft",color:"blue",className:"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-400"},{variant:"soft",color:"green",className:"bg-green-50 dark:bg-green-950 text-emerald-700 dark:text-emerald-300"},{variant:"soft",color:"red",className:"bg-red-50 dark:bg-red-950 text-red-600 dark:text-red-400"},{variant:"soft",color:"yellow",className:"bg-yellow-50 dark:bg-yellow-950 text-yellow-700 dark:text-yellow-300"},{variant:"soft",color:"magic",className:"bg-violet-50 dark:bg-violet-950 text-purple-600 dark:text-purple-400"},{variant:"outline",color:"default",className:"border-zinc-200 dark:border-zinc-500 text-zinc-950 dark:text-zinc-50"},{variant:"outline",color:"blue",className:"border-blue-400 dark:border-blue-600 text-blue-600 dark:text-blue-400"},{variant:"outline",color:"green",className:"border-emerald-500 text-emerald-700 dark:text-emerald-300"},{variant:"outline",color:"red",className:"border-red-400 dark:border-red-600 text-red-600 dark:text-red-400"},{variant:"outline",color:"yellow",className:"border-yellow-400 dark:border-yellow-600 text-yellow-700 dark:text-yellow-300"},{variant:"outline",color:"magic",className:"border-violet-300 dark:border-violet-700 text-purple-600 dark:text-purple-400"}],defaultVariants:{variant:"outline",color:"default",size:"md"}});function u(e){var t=e.className,r=e.variant,i=e.color,u=e.size,d=c(e,a);return n.createElement("div",s({className:(0,o.cn)(l({variant:r,color:i,size:u}),t)},d))}},79806:(e,t,r)=>{"use strict";r.d(t,{E:()=>n.E});var n=r(26167)},55749:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(14041),i=r(86090);const o=function(e){var t=e.when,r=e.message,o=void 0===r?"Changes you made may not be saved. Continue navigating anyway?":r;return(0,n.useEffect)((function(){var e=function(e){return t?(e.preventDefault(),e.returnValue=o,o):null};return window.onbeforeunload||(window.onbeforeunload=e),function(){window.onbeforeunload===e&&(window.onbeforeunload=null)}}),[t,o]),n.createElement(i.XG,{when:t,message:o})}},39565:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>u});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(34412),o=r(7890),a=r(51057),s=["className","variant","size","asChild","type"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var u=(0,o.F)("appearance-none inline-flex justify-center items-center gap-2 rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-200 disabled:pointer-events-none disabled:opacity-50 dark:focus-visible:ring-zinc-100 dark:focus-visible:ring-offset-0",{variants:{variant:{primary:"bg-primary-700 text-white shadow hover:bg-primary-900 focus-visible:bg-primary-800 dark:bg-zinc-50 dark:text-gray-950 dark:hover:bg-zinc-50/90 dark:focus-visible:bg-zinc-50/90",secondary:"bg-secondary-100 text-zinc-950 shadow-sm hover:bg-secondary-200 dark:bg-secondary-800 dark:text-zinc-50 dark:hover:bg-secondary-800/80",outline:"border text-zinc-950 border-zinc-200 bg-white shadow-sm hover:bg-zinc-50 hover:text-zinc-950 dark:border-zinc-800 dark:text-zinc-50 dark:bg-zinc-950 dark:hover:bg-zinc-800 dark:hover:text-zinc-50",destructive:"bg-red-600 text-white shadow-sm hover:bg-red-700 dark:bg-red-400 dark:text-gray-950 dark:hover:bg-red-400/80",ghost:"bg-transparent text-zinc-950 border-0 hover:bg-zinc-50 hover:text-zinc-950 dark:text-slate-50 dark:hover:bg-zinc-800 dark:hover:text-zinc-50",ghostDestructive:"text-red-600 bg-transparent border-0 hover:bg-red-100 focus-visible:ring-red-200 dark:text-red-400 dark:bg-zinc-950 dark:hover:bg-red-300 dark:hover:text-red-950",link:"text-blue-600 bg-transparent border-0 underline-offset-4 hover:underline dark:text-blue-400 !p-0",linkDestructive:"text-red-600 bg-transparent border-0 underline-offset-4 hover:underline dark:text-red-400 !p-0"},size:{sm:"px-3 py-2",md:"px-4 py-2.5",lg:"px-4 py-2.5 text-base",xl:"px-4 py-3 text-base",icon:"p-2.5"}},defaultVariants:{variant:"primary",size:"md"}}),d=n.forwardRef((function(e,t){var r=e.className,o=e.variant,d=e.size,f=e.asChild,p=void 0!==f&&f,h=e.type,m=void 0===h?"button":h,y=l(e,s),v=p?i.DX:"button";return n.createElement(v,c({className:(0,a.cn)(u({variant:o,size:d,className:r})),ref:t,type:m},y))}));d.displayName="Button"},98667:(e,t,r)=>{"use strict";r.d(t,{$:()=>n.$,r:()=>n.r});var n=r(39565)},89027:(e,t,r)=>{"use strict";r(29416),r(98140),r(79683),r(85028),r(58948),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(92221),r(17306),r(48851),r(96656),r(94356),r(45993),r(14041),r(52484),r(98656),r(51057),r(98667)},18801:(e,t,r)=>{"use strict";r.d(t,{BT:()=>y,Wu:()=>v,ZB:()=>m,Zp:()=>p,aR:()=>h,wL:()=>g});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(51057),o=["className"],a=["className"],s=["className","children"],c=["className"],l=["className"],u=["className"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var p=(0,n.forwardRef)((function(e,t){var r=e.className,a=f(e,o);return n.createElement("div",d({ref:t,className:(0,i.cn)("relative rounded-lg border bg-white text-slate-950 shadow-sm dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",r)},a))}));p.displayName="Card";var h=(0,n.forwardRef)((function(e,t){var r=e.className,o=f(e,a);return n.createElement("div",d({ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",r)},o))}));
2h.displayName="CardHeader";var m=(0,n.forwardRef)((function(e,t){var r=e.className,o=e.children,a=f(e,s);return n.createElement("div",d({ref:t,className:(0,i.cn)("text-lg font-semibold leading-snug text-zinc-950 dark:text-zinc-50",r)},a),o)}));m.displayName="CardTitle";var y=(0,n.forwardRef)((function(e,t){var r=e.className,o=f(e,c);return n.createElement("div",d({ref:t,className:(0,i.cn)("text-sm text-slate-500 dark:text-slate-400",r)},o))}));y.displayName="CardDescription";var v=(0,n.forwardRef)((function(e,t){var r=e.className,o=f(e,l);return n.createElement("div",d({ref:t,className:(0,i.cn)("p-6 pt-0",r)},o))}));v.displayName="CardContent";var g=(0,n.forwardRef)((function(e,t){var r=e.className,o=f(e,u);return n.createElement("div",d({ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",r)},o))}));g.displayName="CardFooter"},3223:(e,t,r)=>{"use strict";r.d(t,{S:()=>m});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(91129),o=r(7890),a=r(52160),s=r(51057),c=r(77935),l=["variant","size","label","labelDescription","labelInfo","className","testId"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var f=(0,o.F)("peer shrink-0 flex items-center justify-center rounded shadow-md transition-all bg-white data-[state=checked]:bg-primary-700 hover:data-[state=checked]:bg-primary-900 dark:bg-zinc-950 dark:data-[state=checked]:bg-zinc-50 hover:dark:data-[state=checked]:bg-zinc-200 border border-zinc-900 data-[state=checked]:border-primary-700 dark:border-zinc-50 data-[state=checked]:border-zinc-50 hover:dark:data-[state=checked]:border-zinc-200 text-zinc-50 dark:text-gray-900 focus-visible:outline-none disabled:cursor-not-allowed disabled:!text-zinc-400 disabled:!bg-zinc-100 dark:disabled:!bg-zinc-500 disabled:!border-gray-200 disabled:shadow-none",{variants:{variant:{soft:"validation-error-border focus-visible:data-[state=checked]:bg-primary-800 focus-visible:dark:data-[state=checked]:bg-zinc-100 focus-visible:dark:data-[state=checked]:bg-zinc-100 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-200 dark:focus-visible:ring-zinc-300 dark:focus-visible:ring-offset-0",solid:"border-zinc-200 dark:border-zinc-50"},size:{sm:"w-3.5 h-3.5",md:"w-4 h-4",lg:"w-5 h-5"}},compoundVariants:[{variant:"soft",size:"sm",className:"mt-0.5"},{variant:"soft",size:"md",className:"mt-0.5"}],defaultVariants:{variant:"soft",size:"md"}}),p=(0,o.F)("flex gap-2 [&>span]:has-[:disabled]:!opacity-60",{variants:{variant:{soft:"flex-row-reverse justify-end",solid:'validation-error-border items-center justify-between cursor-pointer transition-all rounded-lg bg-white hover:bg-zinc-50 has-[[data-state="checked"]]:bg-blue-50 dark:bg-zinc-950 dark:hover:bg-zinc-900 dark:has-[[data-state="checked"]]:bg-blue-950 border border-zinc-200 hover:border-zinc-300 has-[[data-state="checked"]]:border-blue-500 has-[:focus-visible]:border-zinc-300 dark:border-zinc-500 has-[:focus-visible]:outline-none has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-offset-2 has-[:focus-visible]:ring-primary-200 dark:has-[:focus-visible]:ring-zinc-300 dark:has-[:focus-visible]:ring-offset-0 has-[:disabled]:cursor-not-allowed has-[:disabled]:!border-gray-200 has-[:disabled]:!bg-zinc-100 dark:has-[:disabled]:!bg-zinc-700'},size:{sm:"",md:"",lg:""}},compoundVariants:[{variant:"solid",size:"sm",className:"p-3"},{variant:"solid",size:"md",className:"p-4"},{variant:"solid",size:"lg",className:"p-6"}],defaultVariants:{variant:"soft",size:"md"}}),h={sm:10,md:12,lg:14},m=(0,n.forwardRef)((function(e,t){var r=e.variant,o=void 0===r?"soft":r,m=e.size,y=void 0===m?"md":m,v=e.label,g=e.labelDescription,b=e.labelInfo,E=e.className,w=e.testId,S=d(e,l);return n.createElement(c.J,{text:v,description:g,info:b,required:S.required,
2className:(0,s.cn)(p({variant:o,size:y}),E),"data-testid":w},n.createElement(i.bL,u({className:(0,s.cn)(f({variant:o,size:y})),ref:t},S),n.createElement(i.C1,{className:"flex items-center justify-center text-current"},n.createElement(a.A,{strokeWidth:3,size:h[y]}))))}));m.displayName="Checkbox"},9806:(e,t,r)=>{"use strict";r.d(t,{S:()=>n.S});var n=r(3223)},24467:(e,t,r)=>{"use strict";r.d(t,{G:()=>m});r(9098),r(1569),r(21555),r(95790),r(37210),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264);var n=r(14041),i=r(52512),o=r(41259),a=r(52160),s=r(58591),c=r(29118),l=r(51057),u=r(98667),d=r(28304),f=r(16832);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e){var t=e.options,r=e.value,h=e.onChange,m=e.onFocus,y=void 0===m?function(){}:m,v=e.onBlur,g=void 0===v?function(){}:v,b=e.customFilter,E=e.disabled,w=void 0!==E&&E,S=e.shouldOptionsBeTrulyDisabled,A=void 0===S||S,_=e.renderOption,x=void 0===_?function(e){return e.title}:_,P=e.renderValue,I=void 0===P?function(e){return e.title}:P,k=e.placeholder,O=void 0===k?"Select an option...":k,T=e.commandPlaceholder,C=void 0===T?"Type a command for search...":T,R=e.inputClass,N=e.optionsContentClass,L=e.testId,D=e.defaultOpen,M=void 0!==D&&D,F=e.isCustomTypeEnabled,j=void 0!==F&&F,B=e.onCustomOptionSelect,V=e.customOptionId,U=e.customOptionText,z=void 0===U?"":U,G=e.isCustomOptionDisabled,W=void 0!==G&&G,H=e.customOptionHeading,$=void 0===H?"Add a custom description":H,Y=e.clearable,q=void 0!==Y&&Y,K=p(n.useState(!1),2),Q=K[0],X=K[1],Z=p((0,n.use
2State)(""),2),J=Z[0],ee=Z[1],te=p((0,n.useState)(""),2),re=te[0],ne=te[1],ie=(0,n.useRef)(null);(0,n.useEffect)((function(){var e;M&&(null===(e=ie.current)||void 0===e||e.click())}),[]),(0,n.useEffect)((function(){Q||ee("")}),[Q]),(0,n.useEffect)((function(){r===V&&z&&ne(z)}),[V,z,r]);var oe=(0,c.M)(t),ae=j&&r===V?{id:V,title:z||re,disabled:!1}:void 0,se=J.trim(),ce=ae||t.find((function(e){return e.id===r})),le=t.find((function(e){return e.title.toLowerCase()===se.toLowerCase()})),ue=j&&(""!==se&&!le||r===V);return n.createElement(f.AM,{open:Q,onOpenChange:X},n.createElement(f.Wv,{asChild:!0},n.createElement(u.$,{ref:ie,variant:"outline",role:"combobox","aria-expanded":Q,size:"sm",className:(0,l.cn)("validation-error-border h-9 w-full justify-between bg-white text-start font-normal hover:bg-white hover:enabled:border-border-hover disabled:bg-bg-disabled dark:bg-zinc-950 dark:hover:bg-zinc-950 dark:hover:enabled:border-border-hover-dark dark:disabled:bg-transparent",R),disabled:w,"data-testid":L},ce?q?n.createElement(u.$,{variant:"outline",size:"sm",className:"w-auto max-w-9/10 gap-1 px-2 py-1 text-left",asChild:!0},n.createElement("div",null,n.createElement("span",{className:"w-full truncate"},I(ce))," ",n.createElement(i.A,{size:22,className:"p-1 text-zinc-500",onClick:function(){return h(void 0)}}))):n.createElement("span",{className:"truncate"},I(ce)):n.createElement("span",{className:"truncate text-zinc-500"},O),n.createElement(o.A,{size:16,className:"ml-2 shrink-0 opacity-50"}))),n.createElement(f.hl,{className:(0,l.cn)("w-[--radix-popover-trigger-width] p-0",N),align:"start",sideOffset:4},n.createElement(d.uB,{onFocus:y,onBlur:g,filter:b},n.createElement(d.G7,{placeholder:C,className:"h-9 py-0",value:J,onValueChange:function(e){return ee(e)}}),n.createElement(d.oI,null,!j&&n.createElement(d.xL,null,"No option found."),oe.map((function(e){return n.createElement(d.L$,{key:e.id,heading:e.title},e.options.map((function(e){return n.createElement(d.h_,{key:e.id,className:"!text-sm [text-size-adjust:100%]",value:e.title,onSelect:function(){h(e.id),ee(""),X(!1)},keywords:e.keywords,"data-really-disabled":e.disabled,disabled:A&&e.disabled},x(e),r===e.id&&n.createElement(a.A,{className:"ml-auto h-4 w-4 shrink-0"}))})))})),ue&&n.createElement(d.L$,{heading:$,forceMount:!0},n.createElement(d.h_,{onSelect:function(){var e=se||(r===V?re:"");B&&B(e),e&&ne(e),ee(""),h(V,e),X(!1)},className:"flex cursor-pointer items-center gap-2 !text-sm",value:se||re,"data-really-disabled":W,disabled:A&&W},n.createElement(s.A,{size:16,className:"min-w-4"}),n.createElement("div",{className:"word-break-anywhere"},se||(r===V?re:"")),r===V&&n.createElement(a.A,{className:"ml-auto h-4 w-4 shrink-0"})))))))}},6764:(e,t,r)=>{"use strict";r.d(t,{G:()=>n.G});var n=r(24467)},40619:(e,t,r)=>{"use strict";r.d(t,{G7:()=>y,L$:()=>b,h_:()=>E,oI:()=>v,uB:()=>m,xL:()=>g});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(63262),o=r(58323),a=r(51057),s=["className"],c=["className"],l=["className"],u=["className"],d=["className"],f=["className"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function h(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var m=(0,n.forwardRef)((function(e,t){var r=e.className,i=h(e,s);return n.createElement(o.uB,p({ref:t,className:(0,a.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-zinc-950 dark:bg-zinc-950 dark:text-zinc-50",r)},i))}));m.displayName=o.uB.displayName;var y=(0,n.forwardRef)((function(e,t){var r=e.className,s=h(e,c);return n.createElement("div",{className:"flex items-center border-b px-3 dark:border-b-zinc-800"},n.createElement(i.A,{size:16,className:"mr-2 shrink-0 opacity-50"}),n.createElement(o.uB.Input,p({ref:t,className:(0,a.cn)("flex h-10 w-full rounded-md border-transparent bg-transparent py-3 text-sm outline-none placeholder:text-zinc-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-zinc-400",r)},s)))}));y.displayName=o.uB.Input.displayName;var v=(0,n.forwardRef)((function(e,t){var r=e.className,i=h(e,l);return n.createElement(o.uB.List,p({ref:t,className:(0,a.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",r)},i))}));v.displayName=o.uB.List.displayName;var g=(0,n.forwardRef)((function(e,t){return n.createElement(o.uB.Empty,p({ref:t,className:"py-6 text-center text-sm"},e))}));g.displayName=o.uB.Empty.displayName;var b=(0,n.forwardRef)((function(e,t){var r=e.className,i=h(e,u);return n.createElement(o.uB.Group,p({ref:t,className:(0,a.cn)("overflow-hidden p-1 text-zinc-950 dark:text-zinc-50 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-zinc-500 dark:[&_[cmdk-group-heading]]:text-zinc-400",r)},i))}));b.displayName=o.uB.Group.displayName,(0,n.forwardRef)((function(e,t){var r=e.className,i=h(e,d);return n.createElement(o.uB.Separator,p({ref:t,className:(0,a.cn)("-mx-1 h-px bg-zinc-200 dark:bg-zinc-800",r)},i))})).displayName=o.uB.Separator.displayName;var E=(0,n.forwardRef)((function(e,t){var r=e.className,i=h(e,f);return n.createElement(o.uB.Item,p({ref:t,className:(0,a.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-zinc-100 data-[selected=true]:text-zinc-900 data-[disabled=true]:opacity-50 data-[really-disabled=true]:opacity-50 dark:data-[selected=true]:bg-zinc-800 dark:data-[selected=true]:text-zinc-50",r)},i))}));E.displayName=o.uB.Item.displayName},28304:(e,t,r)=>{"use strict";r.d(t,{G7:()=>n.G7,L$:()=>n.L$,h_:()=>n.h_,oI:()=>n.oI,uB:()=>n.uB,xL:()=>n.xL});var n=r(40619)},50367:(e,t,r)=>{"use strict";r.d(t,{v:()=>f});r(85146),r(1569),r(21555),r(78527),r(78366),r(29416),r(98140),r(79683),r(37210),r(69399),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(74874),r(93831
2),r(40890),r(66264),r(92221),r(17306);var n=r(14041),i=r(6764),o=r(70807),a=["phoneValue","onPhoneChange","onPhoneFocus","onPhoneBlur","type","countryValue","countries","onCountryChange","testId"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var d=function(e,t){return e.name>t.name?1:e.name<t.name?-1:0},f=function(e){var t=e.phoneValue,r=e.onPhoneChange,l=void 0===r?function(){}:r,f=e.onPhoneFocus,p=void 0===f?function(){}:f,h=e.onPhoneBlur,m=void 0===h?function(){}:h,y=e.type,v=void 0===y?"tel":y,g=e.countryValue,b=e.countries,E=e.onCountryChange,w=e.testId,S=u(e,a),A=c((0,n.useState)(t),2),_=A[0],x=A[1],P=(0,n.useRef)(null);return n.createElement("div",{className:"grid grid-cols-[110px_1fr] gap-1.5"},n.createElement(i.G,{options:b.sort(d),onChange:function(e){if(e){var t=b.find((function(t){return t.id===e}));g&&t.id===g||(E(t),g&&x(t.dialCode)),P.current&&setTimeout((function(){var e;return null===(e=P.current)||void 0===e?void 0:e.focus()}),10)}else E()},disabled:!1,value:g,testId:w?"".concat(w,"-select"):void 0,renderOption:function(e){return t=e,n.createElement("div",{className:"flex items-center gap-2 overflow-hidden whitespace-nowrap"},n.createElement("div",{className:"rc-tel-input__flag rc-tel-input__flag--".concat(t.id," grow-1 shrink-0")}),n.createElement("div",{className:"overflow-hidden text-ellipsis"},t.title));var t},renderValue:function(e){return t=e,n.createElement("div",{className:"flex items-center gap-2"},n.createElement("div",{className:"rc-tel-input__flag rc-tel-input__flag--".concat(t.id)}),n.createElement("div",null,t.id.toUpperCase()));var t},inputClass:"h-11",optionsContentClass:"w-40",commandPlaceholder:"Type a country..."}),n.createElement(o.p,s({type:v,ref:P,onChange:function(e){l(e),x(e)},onBlur:m,onFocus:p,"data-testid":w?"".concat(w,"-input"):void 0},S,{value:_})))};f.displayName="CountryTelephoneInput"},95723:(e,t,r)=>{"use strict";r.d(t,{v:()=>n.v});var n=r(50367)},79205:(e,t,r)=>{"use strict";r(14041),r(98667),r(16832),r(89027)},58614:(e,t,r)=>{"use strict";r(14041),r(98667),r(16832),r(89027)},76439:(e,t,r)=>{"use strict";r(79205),r(58614)},95533:(e,t,r)=>{"use strict";r.d(t,{Es:()=>S,L3:()=>g,lG:()=>w,rr:()=>b});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(9984),o=r(52512),a=r(7890),s=r(51057),c=["className"],l=["className"],u=["className"],d=["className","children","mode","onClose","position","size","displayCloseButton"],f=["className"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function h(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var m=(0,a.F)("relative w-full mx-auto z-50 rounded-lg border border-zinc-200 bg-white p-6 shadow-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 dark:border-zinc-800 dark:bg-zinc-950",{variants:{position:{center:"sm:my-auto",top:""},size:{md:"max-w-md",lg:"max-w-3xl",xl:"max-w-4xl"}},defaultVariants:{position:"center",size:"md"}}),y=i.bL,v=(i.l9,i.ZL,i.bm),g=(0,n.forwardRef)((function(e,t){var r=e.className,o=h(e,c);return n.createElement(i.hE,p({ref:t,className:(0,s.cn)("mb-2 text-lg font-semibold text-zinc-950 dark:text-zinc-50",r),"data-testid":"dialog-title"},o))}));g.displayName=i.hE.displayName;var b=(0,n.forwardRef)((function(e,t){var r=e.className,o=h(e,l);return n.createElement(i.VY,p({ref:t,className:(0,s.cn)("mb-4 text-sm text-zinc-500 dark:text-zinc-400",r)},o,{"data-testid":"dialog-description"}))}));b.displayName=i.VY.displayName;var E=(0,n.forwardRef)((function(e,t){var r=e.className,o=h(e,u);return n.createElement(i.hJ,p({ref:t,className:(0,s.cn)("overflow-y-auto data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","fixed inset-0 z-50 flex flex-col bg-black/80 p-6",r)},o))}));E.displayName=i.hJ.displayName;var w=(0,n.forwardRef)((function(e,t){var r=e.className,a=e.children,c=e.mode,l=void 0===c?"dialog":c,u=e.onClose,f=e.position,g=e.size,b=e.displayCloseButton,w=void 0===b||b,S=h(e,d);return n.createElement(y,{onOpenChange:"dialog"===l&&u?u:void 0,open:!0},n.createElement(E,{className:(0,s.cn)("md"!==g&&"p-4")},n.createElement(i.UC,p({ref:t,className:(0,s.cn)(m({position:f,size:g}),r),"aria-describedby":void 0},S),a,"dialog"===l&&n.createElement(v,{className:"absolute right-3 top-3 rounded-sm text-zinc-700 opacity-70 transition-opacity hover:opacity-100",title:"Close","data-testid":"close-button"},w&&n.createElement(o.A,{size:16})))))}));w.displayName="Dialog";var S=function(e){var t=e.className,r=h(e,f);return n.createElement("div",p({className:(0,s.cn)("mt-4 flex flex-col justify-end gap-2 sm:flex-row sm:gap-3",t)},r))};S.displayName="DialogFooter"},21851:(e,t,r)=>{"use strict";r.d(t,{Es:()=>n.Es,L3:()=>n.L3,lG:()=>n.lG,rr:()=>n.rr});var n=r(95533)},49997:(e,t,r)=>{"use strict";r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(12091),o=r(52484),a=r(52160),s=r(45803),c=r(51057),l=["className","inset","children"],u=["className"],d=["className","sideOffset"],f=["className","inset"],p=["className","children","checked"],h=["className","children"],m=["className","inset"],y=["className"];function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function g(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}i.bL,i.l9,i.YJ,i.ZL,i.Pb,i.z6;(0,n.forwardRef)((function(e,t){var r=e.className,a=e.inset,s=e.children,u=g(e,l);return n.createElement(i.ZP,v({ref:t,className:(0,c.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-zinc-100 data-[state=open]:bg-zinc-100 dark:focus:bg-zinc-800 dark:data-[state=open]:bg-zinc-800",a&&"pl-8",r)},u),s,n.createElement(o.A,{className:"ml-auto h-4 w-4"}))})).displayName=i.ZP.displayName,(0,n.forwardRef)((function(e,t){var r=e.className,o=g(e,u);
2return n.createElement(i.G5,v({ref:t,className:(0,c.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50",r)},o))})).displayName=i.G5.displayName,(0,n.forwardRef)((function(e,t){var r=e.className,o=e.sideOffset,a=void 0===o?4:o,s=g(e,d);return n.createElement(i.ZL,null,n.createElement(i.UC,v({ref:t,sideOffset:a,className:(0,c.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-md dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r)},s)))})).displayName=i.UC.displayName,(0,n.forwardRef)((function(e,t){var r=e.className,o=e.inset,a=g(e,f);return n.createElement(i.q7,v({ref:t,className:(0,c.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-zinc-50 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",o&&"pl-8",r)},a))})).displayName=i.q7.displayName,(0,n.forwardRef)((function(e,t){var r=e.className,o=e.children,s=e.checked,l=g(e,p);return n.createElement(i.H_,v({ref:t,className:(0,c.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-zinc-50 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",r),checked:s},l),n.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},n.createElement(i.VF,null,n.createElement(a.A,{className:"h-4 w-4"}))),o)})).displayName=i.H_.displayName,(0,n.forwardRef)((function(e,t){var r=e.className,o=e.children,a=g(e,h);return n.createElement(i.hN,v({ref:t,className:(0,c.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-zinc-50 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",r)},a),n.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center text-primary-700 dark:text-current"},n.createElement(i.VF,null,n.createElement(s.A,{strokeWidth:4,className:"fill-current"}))),o)})).displayName=i.hN.displayName,(0,n.forwardRef)((function(e,t){var r=e.className,o=e.inset,a=g(e,m);return n.createElement(i.JU,v({ref:t,className:(0,c.cn)("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",r)},a))})).displayName=i.JU.displayName,(0,n.forwardRef)((function(e,t){var r=e.className,o=g(e,y);return n.createElement(i.wv,v({ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-zinc-100 dark:bg-zinc-800",r)},o))})).displayName=i.wv.displayName},1065:(e,t,r)=>{"use strict";r(49997)},8411:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});r(25400),r(21555),r(66264),r(23510),r(30935),r(68291),r(95790);var n=r(14041),i=r(51057),o=r(38715),a=function(e){var t=e.className,r=e.errors,a=e.skipCodes,s=void 0===a?[]:a,c=e.renderMessage,l=void 0===c?function(e){return e.message}:c,u=e.testId,d=r.filter((function(e){return e instanceof Error&&!s.includes(e.code)}));return 0===d.length?null:n.createElement("div",{className:(0,i.cn)("flex flex-col gap-4",t),"data-invalid":d.length>0,"data-testid":u},d.map((function(e,t){return e.presented=!0,n.createElement(o.Fc,{color:"error",key:t,description:l(e)})})))}},76711:(e,t,r)=>{"use strict";r.d(t,{t:()=>n.t});var n=r(8411)},87771:(e,t,r)=>{"use strict";r.d(t,{o:()=>f});r(29416),r(98140),r(79683),r(37210),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(66264),r(92221),r(17306),r(93831
2),r(40890),r(11505);var n=r(14041),i=r(91092),o=r(51057),a=["fileName","fallbackFileExtension","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function d(e){switch(e){case"jpg":case"jpeg":case"png":case"webp":case"avif":case"ico":case"svg":case"gif":case"tiff":case"bmp":case"doc":case"docx":case"odt":case"rtf":case"psd":case"exe":case"dmg":return"bg-[#3873FF]";case"xls":case"xlsx":case"csv":case"java":case"py":case"asp":case"go":case"json":case"js":case"ts":case"jsx":case"tsx":case"css":case"scss":case"sass":case"less":case"html":case"cdr":return"bg-[#0DB664]";case"pdf":case"ppt":case"pptx":return"bg-[#FF1607]";case"rar":case"zip":case"txt":case"c4d":return"bg-[#344054]";case"fig":case"mp4":case"mpg":case"avi":case"mov":case"mp3":case"wav":case"aep":return"bg-[#6E45F0]";case"ai":return"bg-[#FF5C00]";case"blend":return"bg-[#FF8A00]";case"sketch":return"bg-[#FFBA35]";default:return"bg-zinc-600"}}var f=function(e){var t,r=e.fileName,l=e.fallbackFileExtension,f=e.className,p=u(e,a);r&&/\.[a-z]{2,4}$/.test(r)?t=c(r.match(/[a-z]+$/)||[],1)[0]:t=l;return n.createElement("div",s({className:(0,o.cn)("relative",f)},p),n.createElement(i.A,{size:32,strokeWidth:1.2,className:"text-zinc-300"}),t&&n.createElement("div",{className:(0,o.cn)("absolute bottom-1.5 left-0.5 rounded-sm p-0.5 text-[8px] font-bold uppercase leading-none text-white",d(t))},t))}},19384:(e,t,r)=>{"use strict";r.d(t,{o:()=>n.o});var n=r(87771)},99643:(e,t,r)=>{"use strict";r.d(t,{q:()=>l});r(74874),r(94356),r(30935),r(68291),r(95570),r(25400),r(21555),r(5858);var n=r(14041),i=r(25275),o=r(51057),a=r(38110),s=r(79806);function c(e){e.preventDefault()}var l=function(e){var t=e.filesElements,r=e.onPickFiles,l=e.className,u=e.classNameMoreFiles,d=e.classNameNoFiles,f=e.testId,p=(0,n.useRef)([]),h=(0,n.useRef)(null),m=(0,n.useRef)(null),y=(0,n.useCallback)((function(e){var t;if(!1!==function(e){var t=Array.from(e&&e.dataTransfer&&e.dataTransfer.types||["Files"]);return t.includes("Files")||t.includes("application/x-moz-file")}(e)){var r,n;if(0===p.current.length)null===(r=h.current)||void 0===r||r.classList.add("flex"),null===(n=h.current)||void 0===n||n.classList.remove("hidden");h&&null!==(t=h.current)&&void 0!==t&&t.contains(e.target)&&!p.current.includes(e.target)&&p.current.push(e.target),e.dataTransfer.dropEffect="copy"}}),[]),v=(0,n.useCallback)((function(e){var t,r;(p.current=p.current.filter((function(t){return t!==e.target})),0===p.current.length)&&(null===(t=h.current)||void 0===t||t.classList.add("hidden"),null===(r=h.current)||void 0===r||r.classList.remove("flex"))}),[]);(0,n.useEffect)((function(){return window.addEventListener("dragenter",y),window.addEventListener("dragleave",v),window.addEventListener("drop",v),function(){window.removeEventListener("dragenter",y),window.removeEventListener("dragleave",v),window.removeEventListener("drop",v)}}),[]);var g=(0,n.useCallback)((function(e){var t,n;e.preventDefault(),(e.dataTransfer?(0,a.A)(e.dataTransfer):Promise.resolve(e.target.files)).then(r),p.current=[],null===(t=h.current)||void 0===t||t.classList.add("hidden"),null===(n=h.current)||void 0===n||n.classList.remove("flex")}),[]),b=(0,n.useCallback)((function(e){var t=Array.from(e.dataTransfer?e.dataTransfer.files:e.target.files);e.target.value="",r(t)}),[]),E=(0,n.useCallback)((function(){var e,t,r;null===(e=h.current)||void 0===e||e.classList.add("hidden"),null===(t=h.current)||void 0===t||t.classList.remove("flex"),p.current=[],null===(r=m.current)||void 0===r||r.click()}),[]);return n.createElement("div",{className:(0,o.cn)("text-zinc-950",l),"data-testid":f},n.createElement("div",{onDragEnter:c,onDragOver:c,onDragLeave:c,onDrop:g},t.length>0&&n.createElement("div",{className:(0,o.cn)("rounded-t-md border-x border-t",u)},t),n.createElement("button",{type:"button",className:(0,o.cn)("flex w-full flex-col items-center gap-4 roun
2ded-md border border-dashed bg-bg-subtle p-4",t.length>0&&"rounded-t-none",d),onClick:E},n.createElement(i.A,{size:40,className:"text-icon-muted"}),n.createElement("div",null,n.createElement("span",{className:"font-medium"},"Click to upload")," or drag and drop"),n.createElement(s.E,{variant:"soft",color:"default",size:"lg"},"Make sure files do not contain personal data (names, contacts, etc).")),n.createElement("div",{className:"fixed bottom-0 left-0 right-0 top-0 hidden bg-white p-10 opacity-70",ref:h},n.createElement("div",{className:"flex grow items-center justify-center rounded-lg border-2 border-dashed border-border-info p-4 text-3xl"},"Drop files here")),n.createElement("input",{ref:m,type:"file",multiple:!0,style:{display:"none"},onChange:b})))}},38110:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(21555),r(5858),r(55983),r(96656),r(94356),r(45993),r(95790),r(93831),r(11505),r(85146),r(25400),r(95570),r(68450),r(74874),r(66542),r(37210),r(79683),r(69399),r(48851),r(84766),r(23510),r(96152),r(34237),r(40890),r(66264);function n(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e){var t=e;return new Promise((function(e){Promise.all(t.map((function(e){return new Promise((function(r){!e.name.match(/\.([a-z0-9]+)$/i)&&e.size<=8192||8192===e.size||4096===e.size||e.size<=1024?function(e){return new Promise((function(t,r){window.FileReader||r();var n=new window.FileReader;n.onload=function(){t(this.result)},n.onerror=function(){r(this.error)},n.readAsText(e)}))}(e).catch((function(){t=t.filter((function(t){return t!==e}))})).finally((function(){return r()})):r()}))}))).finally((function(){return e(t)}))}))}function a(e,t){return new Promise((function(r){e&&e.isFile?t&&t.getAsFile?r([t.getAsFile()]):e.file((function(e){try{r([e])}catch(e){r([])}})):e&&e.isDirectory?e.createReader().readEntries((function(e){var t=[];Promise.all(e.map((function(e){return a(e).then((function(e){return t.push.apply(t,n(e))}))}))).finally((function(){return r(t)}))})):r([])}))}function s(e){return Promise.all(e.filter((function(e){return"file"===e.kind})).map((function(e){return a(e.webkitGetAsEntry())}))).then((function(e){var t;return(t=Array.prototype).concat.apply(t,n(e))}))}
2function c(e){var t=e.files&&Array.from(e.files),r=e.items&&Array.from(e.items);return r&&r.length>0&&r.some((function(e){return!!e.webkitGetAsEntry}))?s(r):t&&t.length>0?o(t):Promise.reject()}},34808:(e,t,r)=>{"use strict";r.d(t,{q:()=>n.q});var n=r(99643)},42205:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});r(85146),r(96656),r(21555),r(94356),r(45993),r(25152),r(28344),r(97643),r(6190),r(257);var n=r(14041),i=r(9870),o=r.n(i),a=r(77602),s=r(51057),c=r(19384),l=r(12908),u=r(98667),d=r(38715),f=function(e){var t=e.name,r=e.size,i=e.isUploading,f=e.progressTotal,p=e.progressLoaded,h=e.onClickRemove,m=e.blob,y=e.uploadError,v=e.testId,g=e.onRetry,b=e.alertColor,E=void 0===b?"error":b,w=g?function(){return n.createElement(u.$,{type:"button",variant:"outline",size:"sm",onClick:g},"Retry")}:void 0,S=(0,n.useCallback)((function(){if(m)if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(m);else{var e=window.URL.createObjectURL(m);window.open(e),window.URL.revokeObjectURL(e)}}),[]),A=Math.min(100,p/f*100)||0;return n.createElement("div",{className:"flex flex-col gap-4 border-b p-3 text-sm last:border-b-0","data-testid":v},n.createElement("div",{className:"flex flex-row items-center justify-between gap-4"},n.createElement("button",{type:"button",onClick:S,className:(0,s.cn)("flex items-center gap-4 truncate text-left blur-none transition-all",(i||y)&&"pointer-events-none opacity-70 blur-[1px]")},n.createElement(c.o,{fileName:t}),n.createElement("div",{className:"truncate"},n.createElement("div",{className:"truncate font-medium"},t),n.createElement("div",{className:"text-text-muted"},r&&o()(r)))),n.createElement(u.$,{onClick:h,variant:"outline",size:"icon"},n.createElement(a.A,{size:16}))),i&&n.createElement(l.k,{value:A}),y&&n.createElement(d.Fc,{title:y.message,color:E,action:w}))}},37787:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n.Z});var n=r(42205)},39902:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(29416),r(98140),r(79683),r(34042);var n=r(14041),i=r(58165),o=["value","currency","render","fixed"];function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var s=function(e){var t=e.value,r=e.currency,s=e.render,c=e.fixed,l=a(e,o),u=(0,i.$g)(t,{currency:r,fixed:c});return n.createElement("span",l,s?s(u):u)};s.defaultProps={render:function(e){return e},fixed:2};const c=s},31487:(e,t,r)=>{"use strict";r.d(t,{Et:()=>p,d0:()=>f,jc:()=>d});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(80307),o=r(51057),a=["openDelay"],s=["tabIndex"],c=["className","align","sideOffset"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}i.i3;var d=function(e){var t=e.openDelay,r=void 0===t?150:t,o=u(e,a);return n.createElement(i.bL,l({openDelay:r},o))};d.displayName=i.bL.displayName;var f=(0,n.forwardRef)((function(e,t){var r=e.tabIndex,o=void 0===r?0:r,a=u(e,s);return n.createElement(i.l9,l({},a,{tabIndex:o,ref:t}))}));f.displayName=i.l9.displayName;var p=(0,n.forwardRef)((function(e,t){var r=e.className,a=e.align,s=e.sideOffset,d=void 0===s?8:s,f=u(e,c);return n.createElement(i.UC,l({ref:t,align:a,sideOffset:d,className:(0,o.cn)("z-50","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
2de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r)},f))}));p.displayName=i.UC.displayName},94675:(e,t,r)=>{"use strict";r.d(t,{Et:()=>n.Et,d0:()=>n.d0,jc:()=>n.jc});var n=r(31487)},47867:(e,t,r)=>{"use strict";r.d(t,{B_:()=>m,MO:()=>v,Yl:()=>h,dj:()=>y});r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264),r(29416),r(98140),r(92221),r(17306),r(37210);var n=r(14041),i=r(16832),o=r(94675),a=r(51057),s=["className"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f=(0,n.createContext)(void 0),p=function(){return(0,n.useContext)(f)},h=function(e){var t=e.children,r=u((0,n.useState)(void 0),2),i=r[0],o=r[1];return(0,n.useEffect)((function(){o(window.matchMedia("(pointer: coarse)").matches)}),[]),n.createElement(f.Provider,{value:i},t)},m=function(e){return p()?n.createElement(i.AM,e):n.createElement(o.jc,e)},y=function(e){return p()?n.createElement(i.Wv,e):n.createElement(o.d0,e)},v=(0,n.forwardRef)((function(e,t){var r=e.className,u=l(e,s);return p()?n.createElement(i.hl,c({},u,{className:(0,a.cn)("w-auto p-0",r),ref:t})):n.createElement(o.Et,c({},u,{className:r,ref:t}))}))},44237:(e,t,r)=>{"use strict";r.d(t,{B_:()=>n.B_,MO:()=>n.MO,Yl:()=>n.Yl,dj:()=>n.dj});var n=r(47867)},73919:(e,t,r)=>{"use strict";r.d(t,{L:()=>l});
2var n=r(14041),i=r(7890),o=r(51057),a=(0,i.F)("rounded-md flex justify-center items-center border border-blue-600/[.04] bg-[#F0F5FF] dark:border-gray-800/[.24] dark:bg-[#1B2949] shrink-0 box-border",{variants:{size:{xs:"w-10 h-10 rounded-md p-[3px]",sm:"w-12 h-12 rounded-lg p-1",md:"w-[72px] h-[72px] rounded-2xl p-2",lg:"w-24 h-24 rounded-3xl p-2",xl:"w-[120px] h-[120px] rounded-4xl p-2"}},defaultVariants:{size:"sm"}}),s={xs:"rounded-[3px]",sm:"rounded",md:"rounded-lg",lg:"rounded-2xl",xl:"rounded-3xl"},c={xs:16,sm:20,md:24,lg:32,xl:40},l=function(e){var t=e.icon,r=e.size,i=void 0===r?"sm":r,l=e.className;return n.createElement("div",{className:(0,o.cn)(a({size:i}),l)},n.createElement("div",{className:(0,o.cn)("flex h-full w-full items-center justify-center border border-blue-600/[.06] bg-white bg-gradient-to-b from-blue-600/[0.02] to-blue-600/[0.04] shadow-[0_2px_6px_0_rgba(37,99,235,0.16)] dark:border-blue-600/[.06] dark:bg-[#333] dark:from-blue-600/[0.32] dark:to-blue-600/[0.24] dark:shadow-[0_2px_6px_0_rgba(37,99,235,0.24)]",s[i])},n.createElement(t,{className:"text-blue-600 dark:text-white",size:c[i]})))}},23579:(e,t,r)=>{"use strict";r.d(t,{L:()=>n.L});var n=r(73919)},54415:(e,t,r)=>{"use strict";r.d(t,{p:()=>u});r(29416),r(98140),r(79683),r(92221),r(17306);
2var n=r(14041),i=r(7890),o=r(51057),a=["className","size","type","readOnly","disabled","tabIndex","children"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=(0,i.F)("flex w-full appearance-none text-ellipsis whitespace-nowrap text-zinc-950 dark:text-zinc-400 rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 transition-colors shadow-sm placeholder:text-zinc-500 disabled:cursor-not-allowed disabled:bg-zinc-100 dark:disabled:bg-zinc-700 disabled:text-zinc-400 dark:disabled:text-zinc-500 disabled:border-zinc-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-200 dark:focus-visible:ring-zinc-300 dark:focus-visible:ring-offset-0 file:border-0 file:bg-zinc-200 dark:file:bg-zinc-800 file:font-medium file:rounded file:p-1 file:text-sm file:text-zinc-950 dark:file:text-zinc-300 [-moz-appearance:_textfield] [&::-webkit-outer-spin-button]:m-0 [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none read-only:bg-zinc-100 read-only:text-zinc-400",{variants:{size:{sm:"text-sm px-3 py-2",md:"text-base px-3 py-2",lg:"text-base p-3"}},defaultVariants:{size:"md"}}),u=(0,n.forwardRef)((function(e,t){var r=e.className,i=e.size,u=void 0===i?"md":i,d=e.type,f=e.readOnly,p=e.disabled,h=e.tabIndex,m=e.children,y=c(e,a),v=(0,o.cn)("validation-error-border",l({size:u}),r);return m?(0,n.cloneElement)(n.Children.only(m),{className:(0,o.cn)(v,m.className),tabIndex:f||p?-1:h||0}):n.createElement("input",s({type:d,className:v,ref:t,disabled:p,tabIndex:h,readOnly:f},y))}));u.displayName="Input"},82229:(e,t,r)=>{"use strict";r.d(t,{p:()=>n.p});var n=r(54415)},17283:(e,t,r)=>{"use strict";r.d(t,{J:()=>l});r(29416),r(98140),r(92221),r(17306),r(79683),r(69399);var n=r(14041),i=r(97914),o=r(51057),a=["className","text","required","info","children","description"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=(0,n.forwardRef)((function(e,t){var r=e.className,l=e.text,u=e.required,d=e.info,f=e.children,p=e.description,h=c(e,a);return n.createElement(i.b,s({ref:t,className:(0,o.cn)("block text-sm",r)},h),n.createElement("span",{className:"block flex-1"},n.createElement("span",{className:"flex items-center text-left font-medium text-zinc-950 dark:text-neutral-50","data-testid":"labels-title"},l,u&&n.createElement("span",{className:"ml-0.5 block text-red-600"},"*"),d&&n.createElement("span",{className:"ml-1 flex items-center"},d)),p&&n.createElement("span",{className:"mt-1 block text-zinc-500 dark:text-zinc-400","data-testid":"labels-description"},p)),f)}));l.displayName="Label"},77935:(e,t,r)=>{"use strict";r.d(t,{J:()=>n.J});var n=r(17283)},31743:(e,t,r)=>{"use strict";r.d(t,{Q:()=>p});r(29416),r(98140),r(79683),r(92221),r(17306),r(9020),r(78527);var n=r(14041),i=r(51048),o=r(22994),a=r(98667),s=r(82229),c=r(51057),l=["value","onInteractionStart","onInteractionEnd","min","max","step","onAttemptPlusMax","onAttemptMinusMin","onChange","className","testId"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var f=function(){},p=function(e){var t=e.value,r=e.onInteractionStart,p=void 0===r?f:r,h=e.onInteractionEnd,m=void 0===h?f:h,y=e.min,v=void 0===y?0:y,g=e.max,b=void 0===g?999:g,E=e.step,w=void 0===E?1:E,S=e.onAttemptPlusMax,A=e.onAttemptMinusMin,_=e.onChange,x=void 0===_?f:_,P=e.className,I=e.testId,k=d(e,l),O=(0,n.useRef)(null),T=(0,n.useRef)(null),C=function(){O.current&&(clearTimeout(O.current),O.current=null),T.current&&(clearInterval(T.current),T.current=null)},R=function(e){var t=parseInt(e,10);if(isNaN(t))return x(v||0);b&&S&&e>b&&S(),v&&A&&e<v&&A(),x(Math.min(b,Math.max(v,t)))},N=function(e){C(),O.current=setTimeout((function(){T.current=setInterval((function(){R(t+e)}),200)}),300)};return(0,n.useEffect)((function(){return function(){clearInterval(T.current),clearTimeout(O.current)}}),[]),n.createElement("div",{className:(0,c.cn)("validation-error-border flex w-full gap-1.5",P),"data-testid":I},n.createElement(a.$,{variant:"outline",size:"icon",className:"h-11 w-11 shrink-0",id:"".concat(k.id,"Minus")||0,"data-testid":"".concat(I,"Minus"),onClick:function(){R(t-w),m()},onMouseDown:function(){return N(-w)},onMouseUp:C,onMouseOut:C},n.createElement(i.A,{size:20,className:"text-zinc-900"})),n.createElement(s.p,u({"data-testid":"".concat(I,"Input"),className:"h-11 min-w-20 text-center",type:"number",value:t,onChange:function(e){var t=e.target.value;return R(t)},onFocus:p,onBlur:m,min:v,max:b},k)),n.createElement(a.$,{variant:"outline",size:"icon",className:"h-11 w-11 shrink-0",id:"".concat(k.id,"Plus")||0,"data-testid":"".concat(I,"Plus"),onClick:function(){R(t+w),m()},onMouseDown:function(){return N(w)},onMouseUp:C,onMouseOut:C},n.createElement(o.A,{size:20,className:"text-zinc-900"})))};p.displayName="NumberInput"},60502:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n.Q});var n=r(31743)},97007:(e,t,r)=>{"use strict";r.d(t,{LN:()=>p,TK:()=>v,YW:()=>h,sT:()=>y,zY:()=>m});r(29416),r(98140),r(79683),r(92221),r(17306);
2var n=r(14041),i=r(7890),o=r(51057),a=["className","size","children"],s=["className"],c=["className","children"],l=["className"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var f=(0,i.F)("w-full flex flex-col grow px-2 bg-bg-subtle",{variants:{size:{sm:"pt-1 pb-2 md:pt-2 md:pb-4",md:"p-2 md:py-4"}},defaultVariants:{size:"md"}}),p=(0,n.forwardRef)((function(e,t){var r=e.className,i=e.children;return n.createElement("div",{ref:t,className:(0,o.cn)("mx-auto flex w-full max-w-[1216px] grow flex-col",r)},i)}));p.displayName="PageContainer";var h=(0,n.forwardRef)((function(e,t){var r=e.className,i=e.size,s=e.children,c=d(e,a);return n.createElement("div",u({ref:t,className:(0,o.cn)(f({size:i,className:r}))},c),s)}));h.displayName="Page";var m=(0,n.forwardRef)((function(e,t){var r=e.className,i=d(e,s);return n.createElement("div",u({ref:t,className:(0,o.cn)("flex flex-col justify-center gap-3 py-0.5",r)},i))}));m.displayName="PageHeader";var y=(0,n.forwardRef)((function(e,t){var r=e.className,i=e.children,a=d(e,c);return n.createElement("div",u({ref:t,className:(0,o.cn)("text-base font-semibold uppercase text-zinc-950 dark:text-zinc-50",r)},a),i)}));y.displayName="PageTitle";var v=(0,n.forwardRef)((function(e,t){var r=e.className,i=d(e,l);return n.createElement("div",u({ref:t,className:r},i))}));v.displayName="PageContent"},77028:(e,t,r)=>{"use strict";r.d(t,{LN:()=>n.LN,TK:()=>n.TK,YW:()=>n.YW,sT:()=>n.sT,zY:()=>n.zY});var n=r(97007)},77303:(e,t,r)=>{"use strict";r.d(t,{y:()=>p});r(29416),r(98140),r(79683),r(37210),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264),r(92221),r(17306);var n=r(14041),i=r(78233),o=r(82229),a=r(98667),s=r(51057),c=["className"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var p=(0,n.forwardRef)((function(e,t){var r=e.className,d=f(e,c),p=u((0,n.useState)(!1),2),h=p[0],m=p[1];return n.createElement("div",{className:"relative"},n.createElement(o.p,l({type:h?"text":"password",className:(0,s.cn)("pr-10",r),ref:t},d)),n.createElement(a.$,{variant:"link",size:"icon",onClick:function(){m((function(e){return!e}))},title:h?"Hide password":"Show password",className:"absolute right-2 top-[50%] h-7 w-7 translate-y-[-50%] p-1 opacity-80 hover:opacity-100 focus-visible:opacity-100"},n.createElement(i.A,{size:20,strokeWidth:1.67,className:h?"text-primary-500":"text-zinc-500"})))}));p.displayName="PasswordInput"},34717:(e,t,r)=>{"use strict";r.d(t,{y:()=>n.y});var n=r(77303)},47535:(e,t,r)=>{"use strict";r.d(t,{AM:()=>l,Wv:()=>u,hl:()=>d});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(57829),o=r(51057),a=["className","align","sideOffset"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=i.bL,u=i.l9,d=(i.Mz,i.bm,(0,n.forwardRef)((function(e,t){var r=e.className,l=e.align,u=e.sideOffset,d=void 0===u?8:u,f=c(e,a);return n.createElement(i.ZL,null,n.createElement(i.UC,s({ref:t,align:l,sideOffset:d,className:(0,o.cn)("z-50 w-72 rounded-md border border-slate-200 bg-white p-4 text-slate-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",r)},f)))})));d.displayName=i.UC.displayName},16832:(e,t,r)=>{"use strict";r.d(t,{AM:()=>n.AM,Wv:()=>n.Wv,hl:()=>n.hl});var n=r(47535)},48619:(e,t,r)=>{"use strict";r.d(t,{k:()=>d});r(29416),r(98140),r(79683),r(37210),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831),r(40890),r(66264),r(92221),r(17306);var n=r(14041),i=r(58903),o=r(51057),a=["className","indicatorClassName","renderValue","value"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var d=(0,n.forwardRef)((function(e,t){var r=e.className,l=e.indicatorClassName,d=e.renderValue,f=e.value,p=void 0===f?0:f,h=u(e,a),m=c((0,n.useState)(6),2),y=m[0],v=m[1],g=(0,n.useRef)(null);return(0,n.useEffect)((function(){d&&v(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=6;if(!e)return r;var n=e.clientWidth,i=e.parentElement.clientWidth;if(100===t)return(i-n)/2;var o=i-n-6;return r=i/100*t-n/2,Math.min(Math.max(r,6),o)}(g.current,p))}),[p,d]),n.createElement(i.bL,s({ref:t,className:(0,o.cn)("relative h-2 w-full overflow-hidden rounded-full bg-slate-900/20 dark:bg-slate-50/20",r)},h),n.createElement(i.C1,{className:(0,o.cn)("h-full w-full flex-1 bg-slate-900 transition-all duration-1000 dark:bg-slate-50",l),style:{transform:"translateX(-".concat(100-p,"%)")}}),d&&n.createElement("div",{className:"absolute left-1 top-1/2 -translate-y-1/2",ref:g,style:{left:y}},d()))}));d.displayName=i.bL.displayName},12908:(e,t,r)=>{"use strict";r.d(t,{k:()=>n.k});var n=r(48619)},11949:(e,t,r)=>{"use strict";r.d(t,{z:()=>m});r(29416),r(98140),r(92221),r(17306),r(95790),r(79683),r(69399);
2var n=r(14041),i=r(7890),o=r(90309),a=r(51057),s=r(77935),c=["className"],l=["className","options","onChange","variant","size","value","orientation"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var f=(0,i.F)("disabled:cursor-not-allowed focus-visible:outline-none",{variants:{variant:{soft:"focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-200 dark:focus-visible:ring-primary-700 dark:focus-visible:ring-offset-zinc-900",solid:"border-zinc-200 dark:border-zinc-50 enabled:data-[state=checked]:border-blue-500"},size:{sm:"w-3.5 h-3.5 p-0.5 ",md:"w-4 h-4 p-[3px]",lg:"w-5 h-5 p-1"}},compoundVariants:[{variant:"soft",size:"sm",className:"mt-[3px]"},{variant:"soft",size:"md",className:"mt-0.5"}],defaultVariants:{variant:"soft",size:"md"}}),p=(0,i.F)("flex gap-2 cursor-pointer has-[:disabled]:cursor-not-allowed",{variants:{variant:{soft:"flex-row-reverse justify-end has-[:disabled]:opacity-60",solid:'grow items-center justify-between rounded-lg bg-white has-[:enabled]:has-[[data-state="unchecked"]]:hover:bg-zinc-50 has-[[data-state="checked"]]:bg-blue-50 dark:bg-zinc-950 dark:has-[:enabled]:has-[[data-state="unchecked"]]:hover:bg-zinc-900 dark:has-[[data-state="checked"]]:bg-blue-950 border border-zinc-200 has-[:enabled]:has-[[data-state="unchecked"]]:hover:border-zinc-300 has-[[data-state="checked"]]:border-blue-500 has-[:focus-visible]:border-zinc-300 dark:border-zinc-500 has-[:focus-visible]:outline-none has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-offset-2 has-[:focus-visible]:ring-primary-200 dark:has-[:focus-visible]:ring-zinc-300 dark:has-[:focus-visible]:ring-offset-0 has-[:disabled]:!border-gray-200 has-[:disabled]:!bg-zinc-100 dark:has-[:disabled]:!bg-zinc-700 [&>span]:has-[:disabled]:!opacity-60'},size:{sm:"",md:"",lg:""}},compoundVariants:[{variant:"solid",size:"sm",className:"p-3"},{variant:"solid",size:"md",className:"p-4"},{variant:"solid",size:"lg",className:"p-6"}],defaultVariants:{variant:"soft",size:"md"}}),h=(0,n.forwardRef)((function(e,t){var r=e.className,i=d(e,c);return n.createElement(o.q7,u({ref:t,className:(0,a.cn)("aspect-square rounded-full border border-zinc-900 dark:border-zinc-50",r)},i),n.createElement(o.C1,{className:"flex h-full w-full items-center justify-center rounded-full bg-primary-700 data-[disabled]:bg-zinc-400 dark:bg-white"}))}));h.displayName=o.q7.displayName;var m=(0,n.forwardRef)((function(e,t){var r=e.className,i=e.options,c=e.onChange,m=e.variant,y=e.size,v=e.value,g=e.orientation,b=void 0===g?"vertical":g,E=d(e,l);return n.createElement(o.bL,u({},E,{className:(0,a.cn)("grid gap-2","horizontal"===b&&"auto-cols-fr grid-flow-col",r),ref:t,value:void 0===v?void 0:String(v),onValueChange:function(e){c(e)}}),i.map((function(e){return n.createElement(s.J,{key:e.id,text:e.title,description:e.description,info:e.info,className:p({variant:m,size:y}),"data-testid":"radio-button"},n.createElement(h,{value:String(e.id),className:f({variant:m,size:y}),disabled:e.disabled}))})))}));m.displayName=o.bL.displayName},1785:(e,t,r)=>{"use strict";r.d(t,{z:()=>n.z});var n=r(11949)},67441:(e,t,r)=>{"use strict";r.d(t,{l6:()=>O});r(29416),r(98140),r(79683),r(92221),r(17306),r(95790);var n=r(14041),i=r(10484),o=r(3233),a=r(52160),s=r(3928),c=r(51057),l=r(29118),u=["className","children"],d=["className"],f=["className"],p=["className","children","position"],h=["className"],m=["className","children"],y=["className"],v=["options","value","onChange","placeholder","triggerClassName","testId","triggerId"];function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}function b(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var E=s.bL,w=s.YJ,S=s.WT,A=(0,n.forwardRef)((function(e,t){var r=e.className,o=e.children,a=b(e,u);return n.createElement(s.l9,g({ref:t,className:(0,c.cn)("validation-error-border flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm text-zinc-950 shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200 focus-visible:ring-offset-2 hover:enabled:border-border-hover disabled:pointer-events-none disabled:bg-bg-disabled disabled:opacity-60 data-[placeholder]:text-text-muted dark:border-zinc-800 dark:text-zinc-50 dark:placeholder:text-zinc-400 dark:focus-visible:ring-primary-500 dark:focus-visible:ring-offset-zinc-900 dark:hover:enabled:border-border-hover-dark dark:disabled:bg-transparent [&>span]:line-clamp-1",r)},a),o,n.createElement(s.In,{asChild:!0},n.createElement(i.A,{size:20,strokeWidth:1.67,className:"text-icon-muted"})))}));A.displayName=s.l9.displayName;var _=(0,n.forwardRef)((function(e,t){var r=e.className,i=b(e,d);return n.createElement(s.PP,g({ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",r)},i),n.createElement(o.A,{size:20,strokeWidth:1.67,className:"text-icon-muted"}))}));_.displayName=s.PP.displayName;var x=(0,n.forwardRef)((function(e,t){var r=e.className,o=b(e,f);return n.createElement(s.wn,g({ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",r)},o),n.createElement(i.A,{size:20,strokeWidth:1.67,className:"text-icon-muted"}))}));x.displayName=s.wn.displayName;var P=(0,n.forwardRef)((function(e,t){var r=e.className,i=e.children,o=e.position,a=void 0===o?"popper":o,l=b(e,p);return n.createElement(s.ZL,null,n.createElement(s.UC,g({ref:t,className:(0,c.cn)("relative z-50 max-h-96 min-w-12 overflow-hidden rounded-md border border-zinc-200 bg-white text-zinc-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:a},l),n.createElement(_,null),n.createElement(s.LM,{className:(0,c.cn)("p-1","popper"===a&&"box-border h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},i),n.createElement(x,null)))}));P.displayName=s.UC.displayName;var I=(0,n.forwardRef)((function(e,t){var r=e.className,i=b(e,h);return n.createElement(s.JU,g({ref:t,className:(0,c.cn)("px-2 py-1.5 text-sm font-semibold",r)},i))}));I.displayName=s.JU.displayName;var k=(0,n.forwardRef)((function(e,t){var r=e.className,i=e.children,o=b(e,m);return n.createElement(s.q7,g({ref:t,className:(0,c.cn)("relative box-border flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",r)},o),n.createElement("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},n.createElement(s.VF,null,n.createElement(a.A,{size:12}))),n.createElement(s.p4,null,i))}));k.displayName=s.q7.displayName,(0,n.forwardRef)((function(e,t){var r=e.className,i=b(e,y);return n.createElement(s.wv,g({ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-zinc-100 dark:bg-zinc-800",r)},i))})).displayName=s.wv.displayName;
2var O=function(e){var t=e.options,r=e.value,i=e.onChange,o=e.placeholder,a=e.triggerClassName,s=e.testId,c=e.triggerId,u=b(e,v),d=(0,l.M)(t);return n.createElement(E,g({},u,{value:void 0===r?void 0:String(r),onValueChange:function(e){return i(e)}}),n.createElement(A,{className:a,id:c,"data-testid":s},n.createElement(S,{placeholder:o})),n.createElement(P,null,d.map((function(e){return n.createElement(w,{key:e.id},e.title&&n.createElement(I,null,e.title),e.options.map((function(e){var t=e.id,r=e.title,i=e.disabled;return n.createElement(k,{key:t,value:String(t),disabled:i},r)})))}))))};O.displayName=E.displayName},37919:(e,t,r)=>{"use strict";r.d(t,{l6:()=>n.l6});var n=r(67441)},55375:(e,t,r)=>{"use strict";r.d(t,{w:()=>l});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(39515),o=r(51057),a=["className","orientation","decorative"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=(0,n.forwardRef)((function(e,t){var r=e.className,l=e.orientation,u=void 0===l?"horizontal":l,d=e.decorative,f=void 0===d||d,p=c(e,a);return n.createElement(i.b,s({ref:t,decorative:f,orientation:u,className:(0,o.cn)("shrink-0 bg-slate-200 dark:bg-slate-800","horizontal"===u?"h-[1px] w-full":"h-full w-[1px]",r)},p))}));l.displayName=i.b.displayName},57778:(e,t,r)=>{"use strict";r.d(t,{w:()=>n.w});var n=r(55375)},59622:(e,t,r)=>{"use strict";r.d(t,{_:()=>a,o:()=>i.o});r(92221),r(66264),r(23510),r(17306);var n=r(14041),i=r(51391);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}var a=function(e){var t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return n.createElement(i.l,o({className:"toaster group w-full max-w-[460px]",toastOptions:{classNames:{toast:"toast group w-full group-[.toaster]:inherit group-[.toaster]:bg-white group-[.toaster]:text-zinc-950 group-[.toaster]:border-zinc-200 group-[.toaster]:shadow-lg group-[.toaster]:rounded-lg group-[.toaster]:p-4 group-[.toaster]:pr-6 dark:group-[.toaster]:bg-zinc-950 dark:group-[.toaster]:text-neutral-50 dark:group-[.toaster]:border-zinc-800",title:"group-[.toast]:text-sm group-[.toast]:font-semibold",description:"group-[.toast]:text-zinc-500 group-[.toast]:text-xs dark:group-[.toast]:text-zinc-400",content:"toast-content",actionButton:"toast-action-button !bg-white !text-zinc-950 py-2 !px-4 !h-8 ring-1 ring-zinc-200 text-sm font-medium dark:!bg-zinc-950 dark:!text-white dark:ring-zinc-800",closeButton:"toast-close-button group-[.toast]:border-inherit group-[.toast]:bg-inherit",success:'success [&.success[data-type="success"]]:bg-green-50 [&.success[data-type="success"]]:border-emerald-300 [&.success[data-type="success"]]:text-emerald-700 dark:[&.success[data-type="success"]]:bg-green-950 dark:[&.success[data-type="success"]]:border-emerald-700 dark:[&.success[data-type="success"]]:text-emerald-300',error:'error [&.error[data-type="error"]]:bg-red-50 [&.error[data-type="error"]]:border-red-400 [&.error[data-type="error"]]:text-red-600 dark:[&.error[data-type="error"]]:bg-red-950 dark:[&.error[data-type="error"]]:border-red-600 dark:[&.error[data-type="error"]]:text-red-400',warning:'warning [&.warning[data-type="warning"]]:bg-yellow-50 [&.warning[data-type="warning"]]:border-yellow-400 [&.warning[data-type="warning"]]:border-red-400 [&.warning[data-type="warning"]]:text-yellow-700 dark:[&.warning[data-type="warning"]]:bg-yellow-950 dark:[&.warning[data-type="warning"]]:border-yellow-600 dark:[&.warning[data-type="warning"]]:text-yellow-300',icon:"toast-icon hidden"}}},t))}},68877:(e,t,r)=>{"use strict";r.d(t,{d:()=>p});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(40276),o=r(7890),a=r(17283),s=r(51057),c=["className","size","label","labelDescription","labelInfo","testId"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var d=(0,o.F)("cursor-pointer disabled:cursor-not-allowed inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#0073E6] focus-visible:ring-offset-2 focus-visible:ring-offset-white data-[state=checked]:bg-[#0073E6] data-[state=unchecked]:bg-zinc-200 dark:focus-visible:ring-slate-300 dark:focus-visible:ring-offset-zinc-800 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-zinc-800",{variants:{size:{sm:"w-d h-5",md:"w-11 h-6"}},defaultVariants:{size:"md"}}),f={sm:"w-4 h-4 data-[state=checked]:translate-x-4",md:"w-5 h-5 data-[state=checked]:translate-x-5"},p=(0,n.forwardRef)((function(e,t){var r=e.className,o=e.size,p=void 0===o?"md":o,h=e.label,m=e.labelDescription,y=e.labelInfo,v=e.testId,g=u(e,c);return n.createElement(a.J,{text:h,description:m,info:y,className:(0,s.cn)("flex cursor-pointer flex-row-reverse items-center justify-end gap-2 has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-60",r),"data-testid":v},n.createElement(i.bL,l({className:(0,s.cn)(d({size:p}))},g,{ref:t}),n.createElement(i.zi,{className:(0,s.cn)("pointer-events-none block rounded-full bg-white shadow-lg ring-0 transition-transform dark:bg-slate-950",f[p])})))}));p.displayName="Switch"},3411:(e,t,r)=>{"use strict";r.d(t,{d:()=>n.d});var n=r(68877)},23213:(e,t,r)=>{"use strict";r.d(t,{Xi:()=>p,av:()=>h,j7:()=>f,tU:()=>d});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(38404),o=r(51057),a=["className","alignment"],s=["className"],c=["className"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var d=i.bL,f=(0,n.forwardRef)((function(e,t){var r=e.className,s=e.alignment,c=void 0===s?"horizontal":s,d=u(e,a);return n.createElement(i.B8,l({ref:t,className:(0,o.cn)("inline-flex w-full items-center justify-center rounded-md bg-zinc-50 p-1 text-zinc-500 dark:bg-zinc-900 dark:text-zinc-400","vertical"===c&&"flex-col items-stretch gap-1",r)},d))}));f.displayName=i.B8.displayName;var p=(0,n.forwardRef)((function(e,t){var r=e.className,a=u(e,s);return n.createElement(i.l9,l({ref:t,className:(0,o.cn)("inline-flex grow items-center justify-center rounded px-4 py-1 text-sm font-medium text-zinc-500 transition-all hover:text-zinc-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-70 data-[state=active]:bg-white data-[state=active]:text-zinc-950 data-[state=active]:shadow-md md:px-8","dark:text-zinc-400 dark:hover:text-zinc-50 dark:focus-visible:ring-zinc-300 dark:data-[state=active]:bg-zinc-950 dark:data-[state=active]:text-zinc-50",r)},a))}));p.displayName=i.l9.displayName;var h=(0,n.forwardRef)((function(e,t){var r=e.className,a=u(e,c);return n.createElement(i.UC,l({ref:t,className:(0,o.cn)("focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200 focus-visible:ring-offset-2 dark:text-zinc-50 dark:focus-visible:ring-zinc-300",r)},a))}));h.displayName=i.UC.displayName},10823:(e,t,r)=>{"use strict";r.d(t,{Xi:()=>n.Xi,av:()=>n.av,j7:()=>n.j7,tU:()=>n.tU});var n=r(23213)},84437:(e,t,r)=>{"use strict";r.d(t,{p:()=>d});r(93831),r(98304),r(40890),r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(82229),o=["value","onChange","type"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var c=/\D/g,l=/^\d+$/;function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(c,"");return e&&0!==e.length?"+".concat(e):""}var d=(0,n.forwardRef)((function(e,t){var r=e.value,c=e.onChange,d=void 0===c?function(){}:c,f=e.type,p=void 0===f?"tel":f,h=s(e,o),m=(0,n.useCallback)((function(e){var t=e.target.value.replace("+","");(l.test(t)||""===t)&&d(t)}),[d]);return n.createElement(i.p,a({type:p,ref:t,value:u(r),onChange:m,maxLength:16},h))}));d.displayName="TelephoneInput"},70807:(e,t,r)=>{"use strict";r.d(t,{p:()=>n.p});var n=r(84437)},21289:(e,t,r)=>{"use strict";r.d(t,{T:()=>c});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(51057),o=["className"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var c=(0,n.forwardRef)((function(e,t){var r=e.className,c=s(e,o);return n.createElement("textarea",a({className:(0,i.cn)("validation-error-border flex min-h-[60px] w-full rounded-md border border-zinc-200 bg-transparent px-3.5 py-3 text-base text-zinc-950 shadow-[0px_1px_2px_0px_rgba(16,24,40,0.05)] placeholder:text-zinc-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-200 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:border-zinc-200 disabled:bg-zinc-100 disabled:text-zinc-400 dark:border-zinc-800 dark:text-zinc-100 dark:placeholder:text-zinc-400 dark:focus-visible:ring-zinc-300 dark:focus-visible:ring-offset-0 dark:disabled:bg-zinc-700",r),ref:t},c))}));c.displayName="Textarea"},56834:(e,t,r)=>{"use strict";r.d(t,{T:()=>n.T});var n=r(21289)},4343:(e,t,r)=>{"use strict";r.d(t,{Bc:()=>u,PR:()=>h,ZI:()=>p,k$:()=>f,m_:()=>d});r(29416),r(98140),r(79683),r(92221),r(17306);var n=r(14041),i=r(22311),o=r(51057),a=["className","sideOffset"],s=["className"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var u=i.Kq,d=i.bL,f=i.l9,p=(0,n.forwardRef)((function(e,t){var r=e.className,s=e.sideOffset,u=void 0===s?4:s,d=l(e,a);return n.createElement(i.UC,c({ref:t,sideOffset:u,arrowPadding:8,className:(0,o.cn)("group z-50 overflow-hidden rounded-md bg-zinc-900 px-3 py-1.5 text-xs font-medium text-white dark:bg-zinc-100 dark:text-gray-950",r)},d))}));p.displayName=i.UC.displayName;var h=function(e){var t=e.className,r=l(e,s);return n.createElement(i.i3,c({width:"12",height:"7",className:(0,o.cn)("visible fill-zinc-900 group-data-[side=top]:mt-[-1px] dark:fill-zinc-100",t)},r))};h.displayName=i.i3.displayName},18438:(e,t,r)=>{"use strict";r.d(t,{Bc:()=>n.Bc,PR:()=>n.PR,ZI:()=>n.ZI,k$:()=>n.k$,m_:()=>n.m_});var n=r(4343)},69255:(e,t,r)=>{"use strict";r.d(t,{x:()=>c,y:()=>s});r(10881),r(37210),r(79683),r(69399),r(21555),r(48851),r(96656),r(94356),r(45993),r(95570),r(84766),r(23510),r(96152),r(34237),r(85146),r(74874),r(93831
2),r(40890),r(66264);var n=r(14041),i=r(51057);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=function(e){var t=e.position,r=e.size,o=void 0===r?"md":r,a=e.className;return n.createElement("div",{className:(0,i.cn)("absolute bottom-0 left-0 right-0 top-0 z-10 flex h-full justify-center","top"===t&&"items-start","center"===t&&"items-center","bottom"===t&&"items-end",a)},n.createElement("div",{className:(0,i.cn)("relative mx-auto my-0 block animate-spin-faster rounded-full border-solid border-b-black/60 border-l-black/60 border-r-black/10 border-t-black/10","dark:border-b-white/60 dark:border-l-white/60 dark:border-r-white/10 dark:border-t-white/10","sm"===o&&"h-[22px] w-[22px] border-[2px]","md"===o&&"h-[44px] w-[44px] border-[3px]","fixed"===t&&"fixed top-1/2")}))},c=function(e){var t=e.children,r=e.className,a=e.enabled,c=e.showSpinner,l=void 0===c||c,u=e.fullScreen,d=void 0!==u&&u,f=e.sticky,p=void 0!==f&&f,h=e.size,m=void 0===h?"md":h,y=e.transparencyLevel,v=void 0===y?"soft":y,g=e.testId,b=(0,n.useRef)(null),E=o((0,n.useState)(),2),w=E[0],S=E[1],A=function(){if(b.current)if(a&&l&&!d&&p){for(var e=window.scrollY||0,t=b.current,r=0;t;)r+=t.offsetTop||0,t=t.offsetParent;var n=e+window.innerHeight/2;n<r+50?S("top"):n>r+b.current.offsetHeight-50?S("bottom"):S("fixed")}else S("center")};return(0,n.useEffect)((function(){return A(),window.document.addEventListener("scroll",A),function(){window.document.removeEventListener("scroll",A)}}),[t,b.current,d]),t||a?n.createElement("div",{className:(0,i.cn)("relative w-full opacity-100 transition-opacity",a&&d&&"fixed bottom-0 left-0 right-0 top-0 z-[999]",a&&"none"===v&&"opacity-100",a&&"soft"===v&&"opacity-80",a&&"hard"===v&&"opacity-20",a&&"sm"===m&&"min-h-[22px]",a&&"md"===m&&"min-h-[44px]",r),ref:b,"data-testid":g},a&&n.createElement("div",{className:"absolute bottom-0 left-0 right-0 top-0 z-10"},l&&n.createElement(s,{position:w,size:m})),t):null}},24853:(e,t,r)=>{"use strict";r.d(t,{x:()=>n.x,y:()=>n.y});var n=r(69255)},38195:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});r(66264),r(23510);var n=r(14041),i=r(24221),o=r(51057),a=function(e){var t=e.className,r=e.children,a=e.error,s=e.renderErrorContent,c=void 0===s?function(e){return e.message}:s,l=e.show,u=e.testId,d=!a,f=l&&!d;return f&&a instanceof Error&&(a.presented=!0),n.createElement("div",{className:(0,o.cn)("",t,d&&"valid",f&&"invalid [&_.validation-error-border]:!border-text-error"),"data-invalid":f,"data-testid":u},r,f&&a instanceof Error&&n.createElement("div",{className:"mt-1 flex items-center gap-2 text-sm text-text-error"},n.createElement(i.A,{size:20,strokeWidth:1.67}),c(a)))}},49059:(e,t,r)=>{"use strict";r.d(t,{B:()=>n.B});var n=r(38195)},75933:(e,t,r)=>{"use strict";r.d(t,{$m:()=>f.$m,$n:()=>n.$,AM:()=>u.AM,As:()=>f.As,BG:()=>T.B,BT:()=>o.BT,B_:()=>b.B_,Bc:()=>h.Bc,Es:()=>d.Es,Ex:()=>l.E,Fc:()=>c.Fc,Fk:()=>f.Fk,G3:()=>g.G,JU:()=>R.J,L3:()=>d.L3,L5:()=>a.L,LN:()=>m.LN,MO:()=>b.MO,NC:()=>P.A,PR:()=>h.PR,Q7:()=>j.Q,Sc:()=>L.S,TK:()=>m.TK,TM:()=>C.T,TN:()=>c.TN,Wu:()=>o.Wu,Wv:()=>u.Wv,XL:()=>c.XL,Xi:()=>p.Xi,YW:()=>m.YW,Yl:()=>b.Yl,ZB:()=>o.ZB,ZI:()=>h.ZI,Zp:()=>o.Zp,Zu:()=>w.Z,_m:()=>i._,aR:()=>o.aR,av:()=>p.av,cn:()=>s.cn,dO:()=>N.d,dj:()=>b.dj,hl:()=>u.hl,iI:()=>c.iI,j7:()=>p.j7,k$:()=>h.k$,ke:()=>x.k,l6:()=>v.l6,lG:()=>d.lG,m_:()=>h.m_,nD:()=>f.nD,oR:()=>i.o,oS:()=>E.o,pd:()=>y.p,pi:()=>M.p,qj:()=>S.q,rr:()=>d.rr,ru:()=>n.r,sT:()=>m.sT,tU:()=>p.tU,to:()=>O.t,ub:()=>f.ub,vD:()=>F.v,wL:()=>o.wL,wn:()=>I.A,wv:()=>_.w,x7:()=>k.x,y$:()=>k.y,yA:()=>A.y,z6:()=>D.z,zY:()=>m.zY});var n=r(98667),i=r(59622),o=r(18801),a=r(23579),s=r(51057),c=r(38715),l=r(79806),u=r(16832),d=(r(1065),r(21851)),f=r(32899),p=r(10823),h=r(18438),m=r(77028),y=r(82229),v=r(37919),g=(r(28304),r(6764)),b=(r(94675),r(44237)),E=r(19384),w=r(37787),S=r(34808),A=r(34717),_=r(57778),x=r(12908),P=r(55749),I=r(39902),k=r(24853),O=r(76711),T=r(49059),C=r(56834),R=r(77935),N=r(3411),L=r(9806),D=r(1785),M=(r(76439),r(70807)),F=r(95723),j=r(60502);r(93542),r(89027)},29118:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});r(24493),r(21555),r(22892),r(95570),r(1569),r(68450);function n(e){var t=[],r={id:1726821237347,options:[]};return e.forEach((function(e){if(void 0===e.groupId)r.options.push(e);else{var n=t.find((function(t){return t.id===e.groupId}));n?n.options.push(e):t.push({id:e.groupId,title:e.groupTitle,options:[e]})}})),t.concat(r)}},51057:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var n=r(24838),i=r(61226);function o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.QP)((0,n.$)(t))}},26677:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,_:()=>c});r(95570),r(98140),r(94298),r(24493),r(21555),r(22892),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,"$state",e.states.OPEN),o(this,"$registrations",[])}var t,r,n;return t=e,(r=[{key:"isOpen",get:function(){return this.$state===e.states.OPEN}},{key:"register",value:function(e){var t=this;return this.$registrations.push(e),function(){var r=t.$registrations.indexOf(e);-1!==r&&t.$registrations.splice(r,1)}}},{key:"cancel",value:function(){this.isOpen&&(this.$state=e.states.CANCELLATION_REQUIRED,this.$registrations.forEach((function(e){e()}
vendor: 5,446 bytes, line 2
2)),this.$registrations=[])}},{key:"close",value:function(){this.isOpen&&(this.$state=e.states.CLOSED,this.$registrations=[])}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();o(s,"states",{OPEN:1,CANCELLATION_REQUIRED:2,CLOSED:3});var c=new s},59576:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});r(66264),r(23510),r(29416),r(5974),r(85028),r(58948),r(79683),r(69399),r(21555),r(99180),r(59161),r(5858),r(48851),r(96656),r(94356),r(45993),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(95570),r(22892),r(85146),r(11823),r(86940),r(17626),r(84766);var n=r(83794),i=r(3492),o=r(77474),a=r(94428),s=r(74519),c=r(45655);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(){u=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new R(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,a,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&n.call(_,a)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,o,a,s){var c=p(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(l(t)+" is not iterable")}return E.prototype=w,i(x,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,c,"Generator"),d(x,a,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){d(o,n,i,a,s,"next",e)}function s(e){d(o,n,i,a,s,"throw",e)}a(void 0)}))}}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function h(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var y=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"type",void 0),h(this,"key",void 0),h(this,"storage",void 0),h(this,"isSavingEnabled",!1),h(this,"$savingToStorageDisposer",void 0),!t||"string"!=typeof t.storageKey||""===t.storageKey)throw new Error('The option "storageKey" with type of string is required.');if(t.isEncrypted&&!t.encryptionKey)throw new Error('The option "encryptionKey" is required for encrypted storage.');if(t.isEncrypted&&!(0,c.Di)()){var r=new Error('"Web Crypto API" is not available in your browser.');throw r.code=i.I.WEB_API_ERROR,r}this.type=t.type||"session",this.key=t.storageKey,this.isEncrypted=t.isEncrypted||!1,this.encryptionKey=t.encryptionKey,this.$setStorage()}var t,r,l,d,m;return t=e,r=[{key:"$setStorage",value:function(){"local"===this.type?this.storage=s.A:this.storage=a.A}},{key:"get",value:(m=f(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storage.getItem(this.key);case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",void 0);case 5:if(!this.isEncrypted){e.next=15;break}return e.prev=6,e.next=9,(0,c.Yc)(t,this.encryptionKey);case 9:t=e.sent,e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(6),e.abrupt("return",void 0);case 15:return e.abrupt("return",JSON.parse(t));case 16:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(){return m.apply(this,arguments)})},{key:"save",value:(d=f(u().mark((function e(t){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isSavingEnabled){e.next=2;break}return e.abrupt("return",void 0);case 2:if(void 0===t){e.next=9;break}if(r=JSON.stringify(t),!this.isEncrypted){e.next=8;break}return e.next=7,(0,c.w)(r,this.encryptionKey);case 7:r=e.sent;case 8:return e.abrupt("return",this.storage.setItem(this.key,r));case 9:return e.abrupt("return",void 0);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"startSaving",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fireImmediately:!1},i=r.fireImmediately,a=void 0!==i&&i,s=r.debounce;this.stopSaving(),this.isSavingEnabled=!0;var c=s?(0,o.A)((function(e){return t.save(e)}),s):function(e){return t.save(e)};this.$savingToStorageDisposer=(0,n.mJ)(e,c,{name:"saving to storage by key: ".concat(this.key),fireImmediately:a})}},{key:"stopSaving",value:function(){this.isSavingEnabled=!1,void 0!==this.$savingToStorageDisposer&&this.$savingToStorageDisposer()}},{key:"clear",value:function(){return this.storage.removeItem(this.key)}}],r&&p(t.prototype,r),l&&p(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}()},14658:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h,t0:()=>s.A});
2r(79683),r(69399),r(21555),r(37210),r(81152),r(30329),r(93831),r(10881),r(34237),r(96152),r(85146),r(68450),r(17306),r(66264),r(23510),r(5974),r(24493),r(22892),r(29416),r(48851),r(96656),r(94356),r(45993);var n=r(30350),i=r.n(n),o=r(64674),a=r.n(o),s=r(7120);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var l="INVALID_DATA",u="<<anonymous>>";var d=function(e){var t=c(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t};function f(e){function t(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;if(null===r[n]||void 0===r[n]){if(t)return null;if(null===r[n]||void 0===r[n])return new(i())("The ".concat(a," `").concat(s||n,"` is marked as required ")+"in `".concat(o,"`, but its value is `").concat(r[n],"`."),l)}return e(r,n,o,a,s||n)}var r=t.bind(null,!1);return r.isOptional=t.bind(null,!0),r}function p(e){return f((function(t,r,n,o,a){var s=t[r];if(d(s)!==e){var c=function(e){var t=d(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}(s);return new(i())("Invalid ".concat(o," `").concat(a,"` of type ")+"`".concat(c,"` supplied to `").concat(n,"`, expected ")+"`".concat(e,"`."),l)}return null}))}const h={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:f((function(){return null})),arrayOf:function(e){return f((function(t,r,n,o,a){if("function"!=typeof e)return new(i())("Property `".concat(a,"` of component `").concat(n,"` ")+"has invalid PropType notation inside arrayOf.",l);var s=t[r];if(!Array.isArray(s)){var c=d(s);return new(i())("Invalid ".concat(o," `").concat(a,"` of type ")+"`".concat(c,"` supplied to `").concat(n,"`, expected an array."),l)}for(var u=0;u<s.length;u+=1){var f=e(s,u,n,o,"".concat(a,"[").concat(u,"]"));if(f instanceof Error)return f}return null}))},instanceOf:function(e){return f((function(t,r,n,o,a){if(!(t[r]instanceof e))try{t[r]=new e(t[r])}catch(e){}if(!(t[r]instanceof e)){var s=e.name||u,c=(d=t[r]).constructor&&d.constructor.name?d.constructor.name:u;return new(i())("Invalid ".concat(o," `").concat(a,"` of type ")+"`".concat(c,"` supplied to `").concat(n,"`, expected ")+"instance of `".concat(s,"`."),l)}var d;return null}))},objectOf:function(e){return f((function(t,r,n,o,a){if("function"!=typeof e)return new(i())("Property `".concat(a,"` of component `").concat(n,"` ")+"has invalid PropType notation inside objectOf.",l);var s,c=t[r],u=d(c);return"object"!==u?new(i())("Invalid ".concat(o," `").concat(a,"` of type ")+"`".concat(u,"` supplied to `").concat(n,"`, expected an object."),l):(Object.keys(c).forEach((function(t){s=s||e(c,t,n,o,"".concat(a,".").concat(t))})),s instanceof Error?s:null)}))},oneOf:function(e){return Array.isArray(e)?f((function(t,r,n,o,a){for(var s,c,u=t[r],d=0;d<e.length;d+=1)if(s=u,c=e[d],s===c?0!==s||1/s==1/c:s!=s&&c!=c)return null;var f=JSON.stringify(e);return new(i())("Invalid ".concat(o," `").concat(a,"` of value `").concat(u,"` ")+"supplied to `".concat(n,"`, expected one of ").concat(f,"."),l)})):(a()(!1,"Invalid argument supplied to oneOf, expected an instance of array."),function(){return null})},oneOfType:function(e){return Array.isArray(e)?f((function(t,r,n,o,a){for(var s=0;s<e.length;s+=1){if(null==(0,e[s])(t,r,n,o,a))return null}return new(i())("Invalid ".concat(o," `").concat(a,"` supplied to `").concat(n,"`."),l)})):(a()(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),function(){return null})},shape:function(e){return f((function(t,r,n,o,a){var s,c=t[r],u=d(c);return"object"!==u?new(i())("Invalid ".concat(o," `").concat(a,"` of type `").concat(u,"` ")+"supplied to `".concat(n,"`, expected `object`."),l):(Object.keys(e).forEach((function(t){var r=e[t];s=s||r&&r(c,t,n,o,"".concat(a,".").concat(t))})),s instanceof Error?s:null)}))}}},7120:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});r(24493),r(21555),r(22892),r(29416),r(66264),r(23510),r(92221),r(75947);const n=function(e,t){return function(r){var n=r;Object.keys(t).forEach((function(i){var o=t[i](n,i,e,"property");if(o instanceof Error)throw console.warn("Rejected data:",r,o),o})),Object.assign(this,r),Object.freeze(this)}}},59755:(e,t,r)=>{"use strict";
2r(93831),r(28882),r(68450),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993),r(4656)},61434:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});r(66264),r(23510);const n=function(e,t,r){var n=document.createElement("script");return n.src=e,n.async=!0,n.onload=t,n.onerror=function(){return r(new Error("Script load error"))},document.body.appendChild(n),function(){n.parentNode&&n.parentNode.removeChild(n)}}},86931:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});r(84766),r(23510),r(96152),r(21555),r(34237),r(98140);const n=function(){try{var e=Math.random().toString(32).slice(2);document.cookie=e;var t=document.cookie.indexOf(e)>-1;return document.cookie="".concat(e,";expires=Thu, 01 Jan 1970 00:00:01 GMT"),t}catch(e){return!1}}},43885:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){var t=e.pages,r=void 0===t?0:t,n=e.spacing,i=void 0===n?"double":n,o=e.charts,a=void 0===o?0:o,s=e.slides;return r*("double"===i?1:2)+a/2+(void 0===s?0:s)/2}},83990:(e,t,r)=>{"use strict";r.d(t,{Ri:()=>s,TV:()=>a});r(85146),r(93831),r(11505),r(81152),r(30329),r(10881),r(34237),r(98304),r(85028),r(58948),r(79683),r(69399),r(21555),r(66264),r(23510),r(99180),r(59161),r(29416),r(25400),r(57931),r(95570),r(24493),r(22892),r(44318),r(34089),r(48851),r(96656),r(94356),r(45993);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){var t=e.name,r=e.value,n=e.options,a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({path:"/"},void 0===n?{}:n),s=encodeURIComponent(t)+"="+encodeURIComponent(r);for(var c in a){s+="; "+c;var l=a[c];!0!==l&&(s+="="+l)}document.cookie=s}function s(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}},54607:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});r(21555),r(5858),r(79683),r(69399),r(48851),r(96656),r(94356),r(45993);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}const i=function(e){if(("undefined"==typeof ClipboardItem||n(ClipboardItem))&&navigator.clipboard.write){var t=new ClipboardItem({"text/plain":e().then((function(e){return new Promise(e?function(t){t(new Blob([e],{type:"text/plain"}))}:function(e){e(new Blob[""])})}))});return new Promise((function(e,r){navigator.clipboard.write([t]).then(e).catch(r)}))}return new Promise((function(t,r){e().then((function(e){return window.navigator.clipboard.writeText(e)})).then(t).catch(r)}))}},5758:(e,t,r)=>{"use strict";r.d(t,{Di:()=>f,Yc:()=>g,w:()=>y});r(38415),r(21555),r(96656),r(8033),r(23025),r(21004),r(83166),r(41546),r(86852),r(65827),r(27150),r(64931),r(75439),r(91326),r(54710),r(66e3),r(88155),r(34391),r(14825),r(49852),r(55587),r(11511),r(18568),r(28075),r(75437),r(98799),r(52757),r(12181),r(8118),r(32637),r(39003),r(98268),r(87220),r(91385),r(79683),r(69399),r(48851),r(94356),r(45993),r(68450),r(23510),r(55903),r(82535),r(86483),r(70971),r(43801),r(16641),r(84766),r(5858),r(37210),r(74874),r(96152),r(34237),r(85146),r(93831
vendor: 4,688 bytes, line 2
2),r(40890),r(66264),r(59161),r(19948),r(99629),r(84667),r(56767),r(83040),r(42411),r(24493),r(95570),r(22892),r(11823),r(86940),r(17626);function n(){n=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),s=new R(n||[]);return o(a,"_invoke",{value:k(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function E(){}function w(){}var S={};d(S,s,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(N([])));_&&_!==r&&i.call(_,s)&&(S=_);var x=w.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(n,o,a,s){var l=p(e[n],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==c(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var n;o(this,"_invoke",{value:function(e,i){function o(){return new t((function(t,n){r(e,i,t,n)}))}return n=n?n.then(o,o):o()}})}function k(t,r,n){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(i.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(c(t)+" is not iterable")}return E.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(I.prototype),d(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),d(x,u,"Generator"),d(x,s,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(C),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){a(o,n,i,s,c,"next",e)}function c(e){a(o,n,i,s,c,"throw",e)}s(void 0)}))}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var l=["decrypt","encrypt","importKey","deriveKey"],u=16,d=12;function f(){var e;return"object"===c(window.crypto)&&"object"===c(window.crypto.subtle)&&"function"==typeof window.crypto.getRandomValues&&l.every((function(e){return"function"==typeof window.crypto.subtle[e]}))&&void 0!==window.TextDecoder&&void 0!==window.TextEncoder&&"function"==typeof(null===(e=window.Uint8Array)||void 0===e?void 0:e.from)}function p(e){return window.crypto.getRandomValues(new Uint8Array(e))}function h(e){return window.crypto.subtle.importKey("raw",e,"PBKDF2",!1,["deriveKey"])}function m(e,t,r){return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:e,iterations:1e4,hash:"SHA-256"},t,{name:"AES-GCM",length:256},!1,r)}function y(e,t){return v.apply(this,arguments)}function v(){return(v=s(n().mark((function e(t,r){var o,a,s,c,l,f,y,v,g;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(new TextEncoder).encode(t),a=(new TextEncoder).encode(r),e.next=4,h(a);case 4:return s=e.sent,c=p(u),e.next=8,m(c,s,["encrypt"]);case 8:return l=e.sent,f=p(d),e.next=12,window.crypto.subtle.encrypt({name:"AES-GCM",iv:f},l,o);
2case 12:return y=e.sent,v=new Uint8Array(y),g=[].concat(i(c),i(f),i(v)),e.abrupt("return",btoa(g));case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e,t){return b.apply(this,arguments)}function b(){return(b=s(n().mark((function e(t,r){var i,o,a,s,c,l,f,p,y,v;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Uint8Array.from(atob(t).split(",")),o=(new TextEncoder).encode(r),a=i.slice(0,u),s=i.slice(u,u+d),c=i.slice(u+d),e.next=7,h(o);case 7:return l=e.sent,e.next=10,m(a,l,["decrypt"]);case 10:return f=e.sent,e.next=13,window.crypto.subtle.decrypt({name:"AES-GCM",iv:s},f,c);case 13:return p=e.sent,y=new Uint8Array(p),v=(new TextDecoder).decode(y),e.abrupt("return",v);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},45655:(e,t,r)=>{"use strict";r.d(t,{Di:()=>n.Di,Yc:()=>n.Yc,ZA:()=>i.Z,w:()=>n.w});var n=r(5758),i=r(16248)},16248:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});r(95790),r(73511),r(23510),r(96152),r(21555),r(34237),r(99180),r(96104),r(54),r(93831),r(11505),r(9020);function n(e){return e.split("").map((function(e){return e.charCodeAt(0)}))}function i(e){return"0".concat(Number(e).toString(16)).substr(-2)}function o(e,t){return t.split("").map(n).map((function(t){return n(e).reduce((function(e,t){return e^t}),t)})).map(i).join("")}},77474:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});r(78527);const n=function(e,t){var r;return function(){var n=arguments,i=this;clearTimeout(r),r=setTimeout((function(){return e.apply(i,n)}),t)}}},59343:(e,t,r)=>{"use strict";r.d(t,{TL:()=>i});r(93831),r(40890);var n=function(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}},i=function(){return n()&&window.innerWidth<640}},68644:(e,t,r)=>{"use strict";r.d(t,{TH:()=>l,oL:()=>u});r(93831),r(40890),r(95570),r(21555),r(5858),r(68450),r(96656),r(94356),r(45993),r(95790),r(78527),r(37210),r(79683),r(69399),r(48851),r(74874),r(84766),r(23510),r(96152),r(34237),r(85146),r(66264);var n=r(56454),i=r.n(n);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=function(e,t){switch(e){case window:case document.documentElement:case document.body:return"number"==typeof t?(window.scrollTo(c(e),t),void(document.documentElement.scrollTop=t)):Math.max(window.pageYOffset||0,document.documentElement.scrollTop);default:return"number"==typeof t?void(e.scrollTop=t):e.scrollTop}},c=function e(t,r){switch(t){case window:case document.documentElement:case document.body:return"number"==typeof r?(window.scrollTo(r,e(t)),void(document.documentElement.scrollLeft=r)):Math.max(window.pageXOffset||0,document.documentElement.scrollLeft);default:return"number"==typeof r?void(t.scrollLeft=r):t.scrollLeft}},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;if(!e)return Promise.resolve();var r=[e].concat(o(function(e){var t=[],r=e.parentNode;do{var n=window.getComputedStyle(r),i=/(auto|scroll)/;(i.test(n.overflow)||i.test(n["overflow-x"])||i.test(n["overflow-y"]))&&t.push(r),r=r.parentNode}while(r!==document.body&&null!==r);return t}(e)));return Promise.all(r.map((function(e,n){for(var o=r[n+1]||document.body,a=0,l=e;l.offsetParent&&o.contains(l);)a+=l.offsetTop||0,l=l.offsetParent;var u=l===document.body?window.innerHeight:l.clientHeight;if(!(a>s(o)&&a+e.clientHeight<s(o)+u)){var d=a-u/2+e.clientHeight/2,f=c(o),p=s(o);return i()({onTick:function(e){c(o,f+(0-f)*e),s(o,p+(d-p)*e)},duration:t})}})))},u=function(e){setTimeout((function(){var t=(e&&e instanceof window.HTMLElement?e:document).querySelectorAll("[data-invalid=true]")[0];t&&l(t).then((function(){return new Promise((function(e){setTimeout(e,50)}))})).then((function(){var e=t.querySelectorAll("input, textarea")[0];e&&e.focus()})).then((function(){return i()({onTick:function(e){t.style.position="relative",t.style.zIndex=100,t.style.transform="scale(".concat(1+.08*e,")")},duration:200})})).then((function(){return i()({onTick:function(e){t.style.transform="scale(".concat(1.08-.05*e,")")},duration:200})})).then((function(){t.style.transform=null,t.style.position=null,t.style.zIndex=null}))}))}},17189:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});r(34042),r(20884),r(99180),r(68450),r(56460);const n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.currency,n=void 0===r?{}:r,i=t.fixed,o=void 0===i?2:i,a=n.symbol,s=void 0===a?"$":a,c=n.rate,l=void 0===c?1:c,u=n.isInverted,d=void 0!==u&&u?e/l:e*l;return"number"==typeof e&&Number.isFinite(e)?"".concat(e<0?"â":"").concat(s).concat(Math.abs(d).toFixed(o)):"N/A"}},57245:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(21555),r(5858),r(78527),r(95790),r(54),r(96104),r(95570),r(5974),r(85028),r(58948),r(79683),r(69399),r(66264),r(23510),r(99180),r(59161),r(48851),r(96656),r(94356),r(45993);var n=r(88427),i=r.n(n);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=function(){return new Promise((function(e){var t={excludes:{touchSupport:!0,timezoneOffset:!0,webdriver:!0,colorDepth:!0,deviceMemory:!0,pixelRatio:!0,hardwareConcurrency:!0,screenResolution:!0,sessionStorage:!0,localStorage:!0,indexedDb:!0,addBehavior:!0,openDatabase:!0,cpuClass:!0,platform:!0,doNotTrack:!0,webglVendorAndRenderer:!0,adBlock:!0,hasLiedLanguages:!0,hasLiedResolution:!0,hasLiedOs:!0,hasLiedBrowser:!0,fontsFlash:!0,enumerateDevices:!0,userAgent:!1,language:!1,availableScreenResolution:!1,timezone:!1,plugins:!1,canvas:!1,webgl:!1,fonts:!1,audio:!1}};setTimeout((function(){i().get(t,(function(t){var r=t.map((function(e){return e.value})),n=i().x64hash128(r.join(""),31),o=t.reduce((function(e,t){return e.push(a({},t.key,t.value)),e}),[]);e({fingerprintHash:n,fingerprintData:JSON.stringify(o)})}))}),500)}))}},43359:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e,t){return Math.floor(Math.random()*(t-e+1))+e}},98526:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});
2r(96152),r(93831),r(98304),r(23510),r(21555),r(34237),r(96656),r(8033),r(23025),r(21004),r(83166),r(41546),r(86852),r(65827),r(27150),r(64931),r(75439),r(91326),r(54710),r(66e3),r(88155),r(34391),r(14825),r(49852),r(55587),r(11511),r(18568),r(28075),r(75437),r(98799),r(52757),r(12181),r(8118),r(32637),r(39003),r(98268),r(87220),r(91385);var n=r(83990);const i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cookieName,r=void 0===t?"gb_uuid":t,i=e.cookieExpires,o=r,a=void 0===i?400:i,s=new Date;s.setTime(s.getTime()+864e5*a);if((0,n.Ri)(o))return(0,n.Ri)(o);var c,l=null!==(c=window)&&void 0!==c&&null!==(c=c.crypto)&&void 0!==c&&c.randomUUID?window.crypto.randomUUID():([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}));return(0,n.TV)({name:o,value:l,options:{expires:s.toUTCString()}}),l}},58165:(e,t,r)=>{"use strict";r.d(t,{$g:()=>l.A,HZ:()=>a.A,Hd:()=>v.A,JO:()=>b.J,L$:()=>f.Ay,Ri:()=>A.Ri,TH:()=>o.TH,TL:()=>i.TL,TV:()=>A.TV,XO:()=>c.A,ZA:()=>_.ZA,_R:()=>c._,am:()=>E.A,dM:()=>n.A,fk:()=>u.A,hM:()=>m.A,ki:()=>y.A,lW:()=>p.A,oL:()=>o.oL,qF:()=>d.A,rQ:()=>b.r,rV:()=>g.A,ri:()=>h.A,sZ:()=>s.A,t0:()=>f.t0,wc:()=>w.A,yk:()=>S.A});var n=r(86931),i=r(59343),o=r(68644),a=r(74519),s=r(94428),c=r(26677),l=r(17189),u=r(68369),d=r(42122),f=r(14658),p=r(54607),h=r(43885),m=r(2173),y=r(61434),v=r(57245),g=(r(77474),r(43359)),b=r(4656),E=r(42446),w=r(59576),S=(r(59755),r(98526)),A=r(83990),_=r(45655)},79121:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){var t="__storageTest__";try{return window[e].setItem(t,t),window[e].removeItem(t),!0}catch(e){return!1}}},2173:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){return Math.round(100*e)/100}},42446:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});r(21555),r(5858);function n(e){return Promise.resolve(e()).catch((function(e){0}))}},74519:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(21555),r(5858);var n=r(79121),i={getItem:function(){return null},setItem:function(){},removeItem:function(){},clear:function(){}};if((0,n.A)("localStorage")){var o=window;i=o.localStorage}const a={getItem:function(e){return new Promise((function(t){t(i.getItem(e))}))},setItem:function(e,t){return new Promise((function(r){r(i.setItem(e,t))}))},removeItem:function(e){return new Promise((function(t){t(i.removeItem(e))}))}}},68369:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e,t,r){return"number"!=typeof t||1===t?e:r||"".concat(e,"s")}},4656:(e,t,r)=>{"use strict";r.d(t,{J:()=>i,r:()=>o});var n=r(28196),i=n.parse,o=n.stringify},94428:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(21555),r(5858);var n=r(79121),i={getItem:function(){return null},setItem:function(){},removeItem:function(){},clear:function(){}};if((0,n.A)("sessionStorage")){var o=window;i=o.sessionStorage}const a={getItem:function(e){return new Promise((function(t){t(i.getItem(e))}))},setItem:function(e,t){return new Promise((function(r){r(i.setItem(e,t))}))},removeItem:function(e){return new Promise((function(t){t(i.removeItem(e))}))}}},42122:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(93718),i=r.n(n);const o=function(e){return i()(e,"mmm d, yyyy 'at' h:MM TT")}},44200:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});var n=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},97057:(e,t,r)=>{"use strict";r.d(t,{Bh:()=>l.A,Bp:()=>c.B,Ce:()=>o.A,J5:()=>m.J,OR:()=>p.A,Rp:()=>n.A,Ru:()=>c.R,Z3:()=>s.Z3,az:()=>s.az,g0:()=>f.A,ih:()=>h.A,lZ:()=>a.A,mw:()=>s.Ay,nd:()=>u.A,r9:()=>y.A,wJ:()=>i.A,yL:()=>d.A});var n=r(96618),i=r(15581),o=r(71325),a=r(76186),s=r(60873),c=r(31208),l=r(21230),u=r(27816),d=r(38091),f=(r(23411),r(80133),r(6087)),p=r(52979),h=r(65251),m=r(36909),y=(r(86607),r(38216));r(89388)},89388:(e,t,r)=>{"use strict";r.d(t,{Im:()=>n});r(9098),r(25400),r(21555),r(95790),r(24493),r(22892),r(29416),r(68450);var n=function(e){return"string"==typeof e?""===e.trim():!1===e||void 0===e}},38216:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(30935),r(68291);var n=r(30350),i=r.n(n),o=r(3492);const a=function(e,t){if(t.includes(e))return new(i())("This value is disabled",o.I.VALIDATION_FAILED)}},96618:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(93831),r(40890);var n=r(30350),i=r.n(n),o=r(3492),a=r(89388),s=r(44200);const c=function(e){if(!(0,a.Im)(e)&&!s.G.test(e))return new(i())("Invalid email address",o.I.VALIDATION_FAILED)}},27816:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(85661),r(99180);var n=r(30350),i=r.n(n),o=r(3492);const a=function(e){if(!Number.isInteger(Number(e)))return new(i())("Must be an integer",o.I.VALIDATION_FAILED)}},31208:(e,t,r)=>{"use strict";r.d(t,{B:()=>s,R:()=>c});var n=r(30350),i=r.n(n),o=r(3492),a=r(89388),s=function(e){return function(t){if(!(0,a.Im)(t)&&t.length<e)return new(i())("Must be at least ".concat(e," characters"),o.I.VALIDATION_FAILED)}},c=function(e){return function(t){if(!(0,a.Im)(t)&&t.length>e)return new(i())("Must be no more than ".concat(e," characters"),o.I.VALIDATION_FAILED)}}},21230:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(93831),r(40890);var n=r(30350),i=r.n(n),o=r(3492),a=r(89388);const s=function(e){if(!(0,a.Im)(e)&&!/^[A-Za-z\s]+$/.test(e))return new(i())("Only latin letters and spaces allowed",o.I.VALIDATION_FAILED)}},23411:(e,t,r)=>{"use strict";r(30350),r(3492)},80133:(e,t,r)=>{"use strict";r(30350),r(3492),r(89388)},86607:(e,t,r)=>{"use strict";r(30350),r(3492),r(89388)},36909:(e,t,r)=>{"use strict";r.d(t,{J:()=>s});var n=r(30350),i=r.n(n),o=r(3492),a=r(89388),s=function(e){return function(t){return function(r){if(!(0,a.Im)(r)&&r<t){var n=e||"Must be at least ".concat(t);return new(i())(n,o.I.VALIDATION_FAILED)}}}};s()},71325:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(93831),r(40890);var n=r(30350),i=r.n(n),o=r(3492),a=r(89388);const s=function(e){if(!(0,a.Im)(e)&&!/^(?=.*\D)(?=.*\d)[\D\d]*$/.test(e))return new(i())("Must contain numbers, as well as letters or symbols",o.I.VALIDATION_FAILED)}},52979:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(30350),i=r.n(n),o=r(3492);const a=function(e,t){if(0===e.length)return new(i())("You have to select at least 1 ".concat(t),o.I.VALIDATION_FAILED)}},6087:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(1569),r(21555);var n=r(30350),i=r.n(n),o=r(3492);const a=function(e,t){if(!e.find((function(e){return!!e})))return new(i())("You have to select at least 1 ".concat(t),o.I.VALIDATION_FAILED)}},38091:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(30935),r(68291),r(54);var n=r(30350),i=r.n(n),o=r(3492);const a=function(e){return function(t){if(!e.includes(t))return new(i())("Must be one of: ".concat(e.join(", ")),o.I.VALIDATION_FAILED)}}},15581:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(93831),r(40890);var n=r(30350),i=r.n(n),o=r(3492),a=r(89388);const s=function(e){if(!(0,a.Im)(e)&&!/^[^ ]*$/.test(e))return new(i())("Your password shouldn't contain spaces",o.I.VALIDATION_FAILED)}},76186:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(30350),i=r.n(n),o=r(3492),a=r(89388);const s=function(e){if(!(0,a.Im)(e)&&(e.length<5||e.length>15))return new(i())("Invalid phone number",o.I.VALIDATION_FAILED)}},60873:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,Z3:()=>s,az:()=>l});var n=r(30350),i=r.n(n),o=r(3492),a=r(89388),s=function(e){return function(t){if((0,a.Im)(t))return new(i())(e,o.I.VALIDATION_FAILED)}},c=s("This field is required"),l=function(e,t){if(e&&(0,a.Im)(t))return new(i())("This field is required.",o.I.VALIDATION_FAILED)}},65251:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(30350),i=r.n(n),o=r(3492),a=r(9870),s=r.n(a);const c=function(e,t){if(t instanceof Blob!=!1)return t.size>e?new(i())("Canât upload files larger than ".concat(s()(e)),o.I.VALIDATION_FAILED):void 0}},2500:(e,t,r)=>{e.exports={default:r(43e3),__esModule:!0}},56293:(e,t,r)=>{e.exports={default:r(14417),__esModule:!0}},53398:(e,t,r)=>{e.exports={default:r(59418),__esModule:!0}},47534:(e,t,r)=>{e.exports={default:r(47858),__esModule:!0}},50778:(e,t,r)=>{e.exports={default:r(89574),__esModule:!0}},91577:(e,t,r)=>{e.exports={default:r(51174),__esModule:!0}},75570:(e,t,r)=>{e.exports={default:r(68102),__esModule:!0}},4081:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},38457:(e,t,r)=>{"use strict";t.__esModule=!0;var n,i=r(53398),o=(n=i)&&n.__esModule?n:{default:n};t.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,o.default)(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},30052:(e,t,r)=>{"use strict";t.__esModule=!0;var n,i=r(2500),o=(n=i)&&n.__esModule?n:{default:n};t.default=o.default||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}},14801:(e,t,r)=>{"use strict";t.__esModule=!0;var n=a(r(50778)),i=a(r(56293)),o=a(r(24488));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,o.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.default?(0,n.default)(e,t):e.__proto__=t)}},83042:(e,t,r)=>{"use strict";t.__esModule=!0;var n,i=r(24488),o=(n=i)&&n.__esModule?n:{default:n};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},24488:(e,t,r)=>{"use strict";t.__esModule=!0;var n=a(r(75570)),i=a(r(91577)),o="function"==typeof i.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(n.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},43e3:(e,t,r)=>{r(21248),e.exports=r(59640).Object.assign},14417:(e,t,r)=>{r(8313);var n=r(59640).Object;e.exports=function(e,t){return n.create(e,t)}},59418:(e,t,r)=>{r(94274);var n=r(59640).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},47858:(e,t,r)=>{r(68314),e.exports=r(59640).Object.getPrototypeOf},89574:(e,t,r)=>{r(27214),e.exports=r(59640).Object.setPrototypeOf},51174:(e,t,r)=>{r(81496),r(67092),r(84346),r(47666),e.exports=r(59640).Symbol},68102:(e,t,r)=>{r(6421),r(18148),e.exports=r(48254).f("iterator")},15941:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},86546:e=>{e.exports=function(){}},33578:(e,t,r)=>{var n=r(13807);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},44418:(e,t,r)=>{var n=r(40111),i=r(81691),o=r(11683);e.exports=function(e){return function(t,r,a){var s,c=n(t),l=i(c.length),u=o(a,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}}},18655:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},59640:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},25098:(e,t,r)=>{var n=r(15941);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},41274:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},13741:(e,t,r)=>{e.exports=!r(58082)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},56820:(e,t,r)=>{var n=r(13807),i=r(25872).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},42474:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},57319:(e,t,r)=>{var n=r(64161),i=r(41970),o=r(16375);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),c=o.f,l=0;s.length>l;
vendor: 15,341 bytes, line 2
2)c.call(e,a=s[l++])&&t.push(a);return t}},53597:(e,t,r)=>{var n=r(25872),i=r(59640),o=r(25098),a=r(33051),s=r(78739),c="prototype",l=function(e,t,r){var u,d,f,p=e&l.F,h=e&l.G,m=e&l.S,y=e&l.P,v=e&l.B,g=e&l.W,b=h?i:i[t]||(i[t]={}),E=b[c],w=h?n:m?n[t]:(n[t]||{})[c];for(u in h&&(r=t),r)(d=!p&&w&&void 0!==w[u])&&s(b,u)||(f=d?w[u]:r[u],b[u]=h&&"function"!=typeof w[u]?r[u]:v&&d?o(f,n):g&&w[u]==f?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[c]=e[c],t}(f):y&&"function"==typeof f?o(Function.call,f):f,y&&((b.virtual||(b.virtual={}))[u]=f,e&l.R&&E&&!E[u]&&a(E,u,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},58082:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},25872:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},78739:e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},33051:(e,t,r)=>{var n=r(51577),i=r(60058);e.exports=r(13741)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},20082:(e,t,r)=>{var n=r(25872).document;e.exports=n&&n.documentElement},50038:(e,t,r)=>{e.exports=!r(13741)&&!r(58082)((function(){return 7!=Object.defineProperty(r(56820)("div"),"a",{get:function(){return 7}}).a}))},89243:(e,t,r)=>{var n=r(18655);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},35951:(e,t,r)=>{var n=r(18655);e.exports=Array.isArray||function(e){return"Array"==n(e)}},13807:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},90462:(e,t,r)=>{"use strict";var n=r(78265),i=r(60058),o=r(27018),a={};r(33051)(a,r(3468)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},35029:(e,t,r)=>{"use strict";var n=r(89852),i=r(53597),o=r(5237),a=r(33051),s=r(9212),c=r(90462),l=r(27018),u=r(53721),d=r(3468)("iterator"),f=!([].keys&&"next"in[].keys()),p="keys",h="values",m=function(){return this};e.exports=function(e,t,r,y,v,g,b){c(r,t,y);var E,w,S,A=function(e){if(!f&&e in I)return I[e];switch(e){case p:case h:return function(){return new r(this,e)}}return function(){return new r(this,e)}},_=t+" Iterator",x=v==h,P=!1,I=e.prototype,k=I[d]||I["@@iterator"]||v&&I[v],O=k||A(v),T=v?x?A("entries"):O:void 0,C="Array"==t&&I.entries||k;if(C&&(S=u(C.call(new e)))!==Object.prototype&&S.next&&(l(S,_,!0),n||"function"==typeof S[d]||a(S,d,m)),x&&k&&k.name!==h&&(P=!0,O=function(){return k.call(this)}),n&&!b||!f&&!P&&I[d]||a(I,d,O),s[t]=O,s[_]=m,v)if(E={values:x?O:A(h),keys:g?O:A(p),entries:T},b)for(w in E)w in I||o(I,w,E[w]);else i(i.P+i.F*(f||P),t,E);return E}},14740:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},9212:e=>{e.exports={}},89852:e=>{e.exports=!0},87986:(e,t,r)=>{var n=r(50001)("meta"),i=r(13807),o=r(78739),a=r(51577).f,s=0,c=Object.isExtensible||function(){return!0},l=!r(58082)((function(){return c(Object.preventExtensions({}))})),u=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[n].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!o(e,n)&&u(e),e}}},81280:(e,t,r)=>{"use strict";var n=r(13741),i=r(64161),o=r(41970),a=r(16375),s=r(59228),c=r(89243),l=Object.assign;e.exports=!l||r(58082)((function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=l({},e)[r]||Object.keys(l({},t)).join("")!=n}))?function(e,t){for(var r=s(e),l=arguments.length,u=1,d=o.f,f=a.f;l>u;)for(var p,h=c(arguments[u++]),m=d?i(h).concat(d(h)):i(h),y=m.length,v=0;y>v;)p=m[v++],n&&!f.call(h,p)||(r[p]=h[p]);return r}:l},78265:(e,t,r)=>{var n=r(33578),i=r(52124),o=r(42474),a=r(94104)("IE_PROTO"),s=function(){},c="prototype",l=function(){var e,t=r(56820)("iframe"),n=o.length;for(t.style.display="none",r(20082).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;n--;)delete l[c][o[n]];return l()};e.exports=Object.create||function(e,t){var r;return null!==e?(s[c]=n(e),r=new s,s[c]=null,r[a]=e):r=l(),void 0===t?r:i(r,t)}},51577:(e,t,r)=>{var n=r(33578),i=r(50038),o=r(41698),a=Object.defineProperty;t.f=r(13741)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},52124:(e,t,r)=>{var n=r(51577),i=r(33578),o=r(64161);e.exports=r(13741)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,c=0;s>c;)n.f(e,r=a[c++],t[r]);return e}},16139:(e,t,r)=>{var n=r(16375),i=r(60058),o=r(40111),a=r(41698),s=r(78739),c=r(50038),l=Object.getOwnPropertyDescriptor;t.f=r(13741)?l:function(e,t){if(e=o(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},29835:(e,t,r)=>{var n=r(40111),i=r(58501).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},58501:(e,t,r)=>{var n=r(65923),i=r(42474).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},41970:(e,t)=>{t.f=Object.getOwnPropertySymbols},53721:(e,t,r)=>{var n=r(78739),i=r(59228),o=r(94104)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},65923:(e,t,r)=>{var n=r(78739),i=r(40111),o=r(44418)(!1),a=r(94104)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),c=0,l=[];for(r in s)r!=a&&n(s,r)&&l.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~o(l,r)||l.push(r));return l}},64161:(e,t,r)=>{var n=r(65923),i=r(42474);e.exports=Object.keys||function(e){return n(e,i)}},16375:(e,t)=>{t.f={}.propertyIsEnumerable},83709:(e,t,r)=>{var n=r(53597),i=r(59640),o=r(58082);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},60058:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5237:(e,t,r)=>{e.exports=r(33051)},24612:(e,t,r)=>{var n=r(13807),i=r(33578),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=r(25098)(Function.call,r(16139).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return o(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:o}},27018:(e,t,r)=>{var n=r(51577).f,i=r(78739),o=r(3468)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},94104:(e,t,r)=>{var n=r(6922)("keys"),i=r(50001);e.exports=function(e){return n[e]||(n[e]=i(e))}},6922:(e,t,r)=>{var n=r(59640),i=r(25872),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(89852)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},52446:(e,t,r)=>{var n=r(57373),i=r(41274);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),c=n(r),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},11683:(e,t,r)=>{var n=r(57373),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},57373:e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},40111:(e,t,r)=>{var n=r(89243),i=r(41274);e.exports=function(e){return n(i(e))}},81691:(e,t,r)=>{var n=r(57373),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},59228:(e,t,r)=>{var n=r(41274);e.exports=function(e){return Object(n(e))}},41698:(e,t,r)=>{var n=r(13807);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},50001:e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}},51418:(e,t,r)=>{var n=r(25872),i=r(59640),o=r(89852),a=r(48254),s=r(51577).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},48254:(e,t,r)=>{t.f=r(3468)},3468:(e,t,r)=>{var n=r(6922)("wks"),i=r(50001),o=r(25872).Symbol,a="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},28439:(e,t,r)=>{"use strict";var n=r(86546),i=r(14740),o=r(9212),a=r(40111);e.exports=r(35029)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},21248:(e,t,r)=>{var n=r(53597);n(n.S+n.F,"Object",{assign:r(81280)})},8313:(e,t,r)=>{var n=r(53597);n(n.S,"Object",{create:r(78265)})},94274:(e,t,r)=>{var n=r(53597);n(n.S+n.F*!r(13741),"Object",{defineProperty:r(51577).f})},68314:(e,t,r)=>{var n=r(59228),i=r(53721);r(83709)("getPrototypeOf",(function(){return function(e){return i(n(e))}}))},27214:(e,t,r)=>{var n=r(53597);n(n.S,"Object",{setPrototypeOf:r(24612).set})},67092:()=>{},6421:(e,t,r)=>{"use strict";var n=r(52446)(!0);r(35029)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},81496:(e,t,r)=>{"use strict";var n=r(25872),i=r(78739),o=r(13741),a=r(53597),s=r(5237),c=r(87986).KEY,l=r(58082),u=r(6922),d=r(27018),f=r(50001),p=r(3468),h=r(48254),m=r(51418),y=r(57319),v=r(35951),g=r(33578),b=r(13807),E=r(59228),w=r(40111),S=r(41698),A=r(60058),_=r(78265),x=r(29835),P=r(16139),I=r(41970),k=r(51577),O=r(64161),T=P.f,C=k.f,R=x.f,N=n.Symbol,L=n.JSON,D=L&&L.stringify,M="prototype",F=p("_hidden"),j=p("toPrimitive"),B={}.propertyIsEnumerable,V=u("symbol-registry"),U=u("symbols"),z=u("op-symbols"),G=Object[M],W="function"==typeof N&&!!I.f,H=n.QObject,$=!H||!H[M]||!H[M].findChild,Y=o&&l((function(){return 7!=_(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=T(G,t);n&&delete G[t],C(e,t,r),n&&e!==G&&C(G,t,n)}:C,q=function(e){var t=U[e]=_(N[M]);return t._k=e,t},K=W&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},Q=function(e,t,r){return e===G&&Q(z,t,r),g(e),t=S(t,!0),g(r),i(U,t)?(r.enumerable?(i(e,F)&&e[F][t]&&(e[F][t]=!1),r=_(r,{enumerable:A(0,!1)})):(i(e,F)||C(e,F,A(1,{})),e[F][t]=!0),Y(e,t,r)):C(e,t,r)},X=function(e,t){g(e);for(var r,n=y(t=w(t)),i=0,o=n.length;o>i;)Q(e,r=n[i++],t[r]);return e},Z=function(e){var t=B.call(this,e=S(e,!0));return!(this===G&&i(U,e)&&!i(z,e))&&(!(t||!i(this,e)||!i(U,e)||i(this,F)&&this[F][e])||t)},J=function(e,t){if(e=w(e),t=S(t,!0),e!==G||!i(U,t)||i(z,t)){var r=T(e,t);return!r||!i(U,t)||i(e,F)&&e[F][t]||(r.enumerable=!0),r}},ee=function(e){for(var t,r=R(w(e)),n=[],o=0;r.length>o;)i(U,t=r[o++])||t==F||t==c||n.push(t);return n},te=function(e){for(var t,r=e===G,n=R(r?z:w(e)),o=[],a=0;n.length>a;)!i(U,t=n[a++])||r&&!i(G,t)||o.push(U[t]);return o};W||(s((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(r){this===G&&t.call(z,r),i(this,F)&&i(this[F],e)&&(this[F][e]=!1),Y(this,e,A(1,r))};return o&&$&&Y(G,e,{configurable:!0,set:t}),q(e)})[M],"toString",(function(){return this._k})),P.f=J,k.f=Q,r(58501).f=x.f=ee,r(16375).f=Z,I.f=te,o&&!r(89852)&&s(G,"propertyIsEnumerable",Z,!0),h.f=function(e){return q(p(e))}),a(a.G+a.W+a.F*!W,{Symbol:N});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;re.length>ne;)p(re[ne++]);for(var ie=O(p.store),oe=0;ie.length>oe;)m(ie[oe++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return i(V,e+="")?V[e]:V[e]=N(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in V)if(V[t]===e)return t},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!W,"Object",{create:function(e,t){return void 0===t?_(e):X(_(e),t)},defineProperty:Q,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=l((function(){I.f(1)}));a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return I.f(E(e))}}),L&&a(a.S+a.F*(!W||l((function(){var e=N();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))}))),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(b(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!K(t))return t}),n[1]=t,D.apply(L,n)}}),N[M][j]||r(33051)(N[M],j,N[M].valueOf),d(N,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},84346:(e,t,r)=>{r(51418)("asyncIterator")},47666:(e,t,r)=>{r(51418)("observable")},18148:(e,t,r)=>{r(28439);for(var n=r(25872),i=r(33051),o=r(9212),a=r(3468)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=n[l],d=u&&u.prototype;d&&!d[a]&&i(d,a,l),o[l]=o.Array}},7991:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],c=o[1],l=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,c)),u=0,d=c>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[u++]=255&t);1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(c(e,s,s+a>l?l:s+a));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",a=0;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},1048:(e,t,r)=>{"use strict";const n=r(7991),i=r(39318),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|m(e,t);let n=s(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return p(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const i=function(e){if(c.isBuffer(e)){const t=0|h(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Q(e.length)?s(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|h(e))}function f(e){const t=e.length<0?0:0|h(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(e).length;default:if(i)return n?-1:$(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return P(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Q(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}
vendor: 5,415 bytes, line 2
2else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){let o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===c)return n*a}else-1!==n&&(o-=o-n),n=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){let r=!0;for(let n=0;n<c;n++)if(l(e,o+n)!==l(t,n)){r=!1;break}if(r)return o}return-1}function E(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let a;for(n>o/2&&(n=o/2),a=0;a<n;++a){const n=parseInt(t.substr(2*a,2),16);if(Q(n))return a;e[r+a]=n}return a}function w(e,t,r,n){return q($(t,e.length-r),e,r,n)}function S(e,t,r,n){return q(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function A(e,t,r,n){return q(Y(t),e,r,n)}function _(e,t,r,n){return q(function(e,t){let r,n,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function P(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(o=c));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){const t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=I));return r}(n)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},c.allocUnsafe=function(e){return d(e)},c.allocUnsafeSlow=function(e){return d(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=c.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(K(t,Uint8Array))i+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?P(this,0,e):y.apply(this,arguments)}
vendor: 12,029 bytes, line 2
2,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(o,a),l=this.slice(n,i),u=e.slice(t,r);for(let e=0;e<s;++e)if(l[e]!==u[e]){o=l[e],a=u[e];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return E(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const I=4096;function k(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function O(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function T(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=X[e[n]];return i}function C(e,t,r){const n=e.slice(t,r);let i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function L(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function D(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function M(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(e,t,r,n,o){return t=+t,r>>>=0,o||M(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function j(e,t,r,n,o){return t=+t,r>>>=0,o||M(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Z((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=Z((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Z((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=Z((function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Z((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Z((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Z((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Z((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,n),a=o.length;
vendor: 4,272 bytes, line 2
2if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};const B={};function V(e,t,r){B[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function U(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){G(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||W(t,e.length-(r+1))}(n,i,o)}function G(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,r){if(Math.floor(e)!==e)throw G(e,r),new B.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}V("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),V("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),V("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=U(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function $(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Y(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Q(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Z(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},79818:(e,t,r)=>{"use strict";var n=r(528),i=r(28498),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},28498:(e,t,r)=>{"use strict";var n=r(80330),i=r(528),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),c=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=s(n,a,arguments);c&&l&&(c(t,"length").configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var d=function(){return s(n,o,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d},95938:e=>{"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);
vendor: 5,305 bytes, line 2
2for(var i,o=t.call(arguments,1),a=Math.max(0,n.length-o.length),s=[],c=0;c<a;c++)s.push("$"+c);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var r=n.apply(this,o.concat(t.call(arguments)));return Object(r)===r?r:this}return n.apply(e,o.concat(t.call(arguments)))})),n.prototype){var l=function(){};l.prototype=n.prototype,i.prototype=new l,l.prototype=null}return i}},80330:(e,t,r)=>{"use strict";var n=r(95938);e.exports=Function.prototype.bind||n},40538:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}r.d(t,{Ft:()=>U});var i,o={exports:{}},a="object"==typeof Reflect?Reflect:null,s=a&&"function"==typeof a.apply?a.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};i=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var c=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}o.exports=l,o.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}b(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&b(e,"error",t,r)}(e,i,{once:!0})}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function d(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function p(e,t,r,n){var i,o,a,s;if(d(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=f(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function y(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):g(i,i.length)}function v(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function b(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||c(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||c(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return f(this)},l.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)s(c,this,t);else{var l=c.length,u=g(c,l);for(r=0;r<l;++r)s(u[r],this,t)}return!0},l.prototype.addListener=function(e,t){return p(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return p(this,e,t,!0)},l.prototype.once=function(e,t){return d(t),this.on(e,m(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return d(t),this.prependListener(e,m(this,e,t)),this},l.prototype.removeListener=function(e,t){var r,n,i,o,a;if(d(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
2("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},l.prototype.listeners=function(e){return y(this,e,!0)},l.prototype.rawListeners=function(e){return y(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},l.prototype.listenerCount=v,l.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};var E,w,S,A,_,x,P,I=n(o.exports);function k(e){return null!=e&&"function"==typeof e}function O(e,t,r){e>31&&(e=31);const n=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)}(0,Math.min(r,t*Math.pow(2,e)));return Math.min(r,t+n)}function T(e){return Math.min(1e3*e,2147483647)}!function(e){e[e.timeout=1]="timeout",e[e.transportClosed=2]="transportClosed",e[e.clientDisconnected=3]="clientDisconnected",e[e.clientClosed=4]="clientClosed",e[e.clientConnectToken=5]="clientConnectToken",e[e.clientRefreshToken=6]="clientRefreshToken",e[e.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",e[e.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",e[e.subscriptionRefreshToken=9]="subscriptionRefreshToken",e[e.transportWriteError=10]="transportWriteError",e[e.connectionClosed=11]="connectionClosed",e[e.badConfiguration=12]="badConfiguration"}(E||(E={})),function(e){e[e.connectCalled=0]="connectCalled",e[e.transportClosed=1]="transportClosed",e[e.noPing=2]="noPing",e[e.subscribeTimeout=3]="subscribeTimeout",e[e.unsubscribeError=4]="unsubscribeError"}(w||(w={})),function(e){e[e.disconnectCalled=0]="disconnectCalled",e[e.unauthorized=1]="unauthorized",e[e.badProtocol=2]="badProtocol",e[e.messageSizeLimit=3]="messageSizeLimit"}(S||(S={})),function(e){e[e.subscribeCalled=0]="subscribeCalled",e[e.transportClosed=1]="transportClosed"}(A||(A={})),function(e){e[e.unsubscribeCalled=0]="unsubscribeCalled",e[e.unauthorized=1]="unauthorized",e[e.clientClosed=2]="clientClosed"}(_||(_={})),function(e){e.Disconnected="disconnected",e.Connecting="connecting",e.Connected="connected"}(x||(x={})),function(e){e.Unsubscribed="unsubscribed",e.Subscribing="subscribing",e.Subscribed="subscribed"}(P||(P={}));class C extends I{constructor(e,t,r){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=t,this.state=P.Unsubscribed,this._centrifuge=e,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._setOptions(r),this._centrifuge._debugEnabled?(this.on("state",(e=>{this._centrifuge._debug("subscription state",t,e.oldState,"->",e.newState)})),this.on("error",(e=>{this._centrifuge._debug("subscription error",t,e)}))):this.on("error",(function(){Function.prototype()}))}ready(e){return this.state===P.Unsubscribed?Promise.reject({code:E.subscriptionUnsubscribed,message:this.state}):this.state===P.Subscribed?Promise.resolve():new Promise(((t,r)=>{const n={resolve:t,reject:r};e&&(n.timeout=setTimeout((function(){r({code:E.timeout,message:"timeout"})}),e)),this._promises[this._nextPromiseId()]=n}))}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(A.subscribeCalled,"subscribe called"))}unsubscribe(){this._setUnsubscribed(_.unsubscribeCalled,"unsubscribe called",!0)}publish(e){const t=this;return this._methodCall().then((function(){return t._centrifuge.publish(t.channel,e)}))}presence(){const e=this;return this._methodCall().then((function(){return e._centrifuge.presence(e.channel)}))}presenceStats(){const e=this;return this._methodCall().then((function(){return e._centrifuge.presenceStats(e.channel)}))}history(e){const t=this;return this._methodCall().then((function(){return t._centrifuge.history(t.channel,e)}))}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:E.subscriptionUnsubscribed,message:this.state}):new Promise(((e,t)=>{const r=setTimeout((function(){t({code:E.timeout,message:"timeout"})}),this._centrifuge._config.timeout);this._promises[this._nextPromiseId()]={timeout:r,resolve:e,reject:t}}))}_nextPromiseId(){return++this._promiseId}_needRecover(){return!0===this._recover}_isUnsubscribed(){return this.state===P.Unsubscribed}_isSubscribing(){return this.state===P.Subscribing}_isSubscribed(){return this.state===P.Subscribed}_setState(e){if(this.state!==e){const t=this.state;
2return this.state=e,this.emit("state",{newState:e,oldState:t,channel:this.channel}),!0}return!1}_usesToken(){return""!==this._token||null!==this._getToken}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(e){if(!this._isSubscribing())return;this._clearSubscribingState(),e.recoverable&&(this._recover=!0,this._offset=e.offset||0,this._epoch=e.epoch||""),this._setState(P.Subscribed);const t=this._centrifuge._getSubscribeContext(this.channel,e);this.emit("subscribed",t),this._resolvePromises();const r=e.publications;if(r&&r.length>0)for(const e in r)r.hasOwnProperty(e)&&this._handlePublication(r[e]);!0===e.expires&&(this._refreshTimeout=setTimeout((()=>this._refresh()),T(e.ttl)))}_setSubscribing(e,t){this._isSubscribing()||(this._isSubscribed()&&this._clearSubscribedState(),this._setState(P.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:e,reason:t}),this._subscribe())}_subscribe(){if(this._centrifuge._debug("subscribing on",this.channel),!this._centrifuge._transportIsOpen)return this._centrifuge._debug("delay subscribe on",this.channel,"till connected"),null;const e=this,t={channel:e.channel};return!this._usesToken()||this._token?e._getData?(e._getData(t).then((function(t){e._isSubscribing()&&(e._data=t,e._sendSubscribe(e._token))})),null):e._sendSubscribe(e._token):(this._getSubscriptionToken().then((function(r){e._isSubscribing()&&(r?(e._token=r,e._getData?e._getData(t).then((function(t){e._isSubscribing()&&(e._data=t,e._sendSubscribe(r))})):e._sendSubscribe(r)):e._failUnauthorized())})).catch((function(t){e._isSubscribing()&&(t instanceof V?e._failUnauthorized():(e.emit("error",{type:"subscribeToken",channel:e.channel,error:{code:E.subscriptionSubscribeToken,message:void 0!==t?t.toString():""}}),e._scheduleResubscribe()))})),null)}_sendSubscribe(e){if(!this._centrifuge._transportIsOpen)return null;const t={channel:this.channel};if(e&&(t.token=e),this._data&&(t.data=this._data),this._positioned&&(t.positioned=!0),this._recoverable&&(t.recoverable=!0),this._joinLeave&&(t.join_leave=!0),this._needRecover()){t.recover=!0;const e=this._getOffset();e&&(t.offset=e);const r=this._getEpoch();r&&(t.epoch=r)}const r={subscribe:t};return this._inflight=!0,this._centrifuge._call(r).then((e=>{this._inflight=!1;const t=e.reply.subscribe;this._handleSubscribeResponse(t),e.next&&e.next()}),(e=>{this._inflight=!1,this._handleSubscribeError(e.error),e.next&&e.next()})),r}_handleSubscribeError(e){this._isSubscribing()&&(e.code!==E.timeout?this._subscribeError(e):this._centrifuge._disconnect(w.subscribeTimeout,"subscribe timeout",!0))}_handleSubscribeResponse(e){this._isSubscribing()&&this._setSubscribed(e)}_setUnsubscribed(e,t,r){this._isUnsubscribed()||(this._isSubscribed()&&(r&&this._centrifuge._unsubscribe(this),this._clearSubscribedState()),this._isSubscribing()&&(this._inflight&&r&&this._centrifuge._unsubscribe(this),this._clearSubscribingState()),this._setState(P.Unsubscribed)&&this.emit("unsubscribed",{channel:this.channel,code:e,reason:t}),this._rejectPromises({code:E.subscriptionUnsubscribed,message:this.state}))}_handlePublication(e){const t=this._centrifuge._getPublicationContext(this.channel,e);this.emit("publication",t),e.offset&&(this._offset=e.offset)}_handleJoin(e){const t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("join",{channel:this.channel,info:t})}_handleLeave(e){const t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("leave",{channel:this.channel,info:t})}_resolvePromises(){for(const e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(const t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}_scheduleResubscribe(){const e=this,t=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout((function(){e._isSubscribing()&&e._subscribe()}),t)}_subscribeError(e){if(this._isSubscribing())if(e.code<100||109===e.code||!0===e.temporary){109===e.code&&(this._token="");const t={channel:this.channel,type:"subscribe",error:e};
2this._centrifuge.state===x.Connected&&this.emit("error",t),this._scheduleResubscribe()}else this._setUnsubscribed(e.code,e.message,!1)}_getResubscribeDelay(){const e=O(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,e}_setOptions(e){e&&(e.since&&(this._offset=e.since.offset,this._epoch=e.since.epoch,this._recover=!0),e.data&&(this._data=e.data),e.getData&&(this._getData=e.getData),void 0!==e.minResubscribeDelay&&(this._minResubscribeDelay=e.minResubscribeDelay),void 0!==e.maxResubscribeDelay&&(this._maxResubscribeDelay=e.maxResubscribeDelay),e.token&&(this._token=e.token),e.getToken&&(this._getToken=e.getToken),!0===e.positioned&&(this._positioned=!0),!0===e.recoverable&&(this._recoverable=!0),!0===e.joinLeave&&(this._joinLeave=!0))}_getOffset(){const e=this._offset;return null!==e?e:0}_getEpoch(){const e=this._epoch;return null!==e?e:""}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearResubscribeTimeout(){null!==this._resubscribeTimeout&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null)}_getSubscriptionToken(){this._centrifuge._debug("get subscription token for channel",this.channel);const e={channel:this.channel},t=this._getToken;if(null===t)throw this.emit("error",{type:"configuration",channel:this.channel,error:{code:E.badConfiguration,message:"provide a function to get channel subscription token"}}),new V("");return t(e)}_refresh(){this._clearRefreshTimeout();const e=this;this._getSubscriptionToken().then((function(t){if(!e._isSubscribed())return;if(!t)return void e._failUnauthorized();e._token=t;const r={sub_refresh:{channel:e.channel,token:t}};e._centrifuge._call(r).then((t=>{const r=t.reply.sub_refresh;e._refreshResponse(r),t.next&&t.next()}),(t=>{e._refreshError(t.error),t.next&&t.next()}))})).catch((function(t){t instanceof V?e._failUnauthorized():(e.emit("error",{type:"refreshToken",channel:e.channel,error:{code:E.subscriptionRefreshToken,message:void 0!==t?t.toString():""}}),e._refreshTimeout=setTimeout((()=>e._refresh()),e._getRefreshRetryDelay()))}))}_refreshResponse(e){this._isSubscribed()&&(this._centrifuge._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),!0===e.expires&&(this._refreshTimeout=setTimeout((()=>this._refresh()),T(e.ttl))))}_refreshError(e){this._isSubscribed()&&(e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",channel:this.channel,error:e}),this._refreshTimeout=setTimeout((()=>this._refresh()),this._getRefreshRetryDelay())):this._setUnsubscribed(e.code,e.message,!0))}_getRefreshRetryDelay(){return O(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed(_.unauthorized,"unauthorized",!0)}}class R{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return null!==this.options.sockjs}initialize(e,t){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class N{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return void 0!==this.options.websocket&&null!==this.options.websocket}initialize(e,t){let r="";"protobuf"===e&&(r="centrifuge-protobuf"),this._transport=""!==r?new this.options.websocket(this.endpoint,r):new this.options.websocket(this.endpoint),"protobuf"===e&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class L{constructor(e,t){this.endpoint=e,this.options=t,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(e){if(!e.ok)throw new Error(e.status);return e}_fetchEventTarget(e,t,r){const n=new EventTarget;return(0,e.options.fetch)(t,r).then(e._handleErrors).then((t=>{n.dispatchEvent(new Event("open"));let r="",i=0,o=new Uint8Array;const a=t.body.getReader();return new e.options.readableStream({start:t=>function s(){return a.read().then((({done:a,value:c})=>{if(a)return n.dispatchEvent(new Event("close")),void t.close();try{if("json"===e._protocol)for(r+=e._utf8decoder.decode(c);i<r.length;)if("\n"===r[i]){const e=r.substring(0,i);n.dispatchEvent(new MessageEvent("message",{data:e})),r=r.substring(i+1),i=0}else++i;else{const t=new Uint8Array(o.length+c.length);for(t.set(o),t.set(c,o.length),o=t;;){const t=e.options.decoder.decodeReply(o);if(!t.ok)break;{const e=o.slice(0,t.pos);n.dispatchEvent(new MessageEvent("message",{data:e})),o=o.slice(t.pos)}}}}catch(e){return n.dispatchEvent(new Event("error",{detail:e})),n.dispatchEvent(new Event("close")),void t.close()}s()})).catch((function(e){n.dispatchEvent(new Event("error",{detail:e})),n.dispatchEvent(new Event("close")),t.close()}))}()})})).catch((e=>{n.dispatchEvent(new Event("error",{detail:e})),n.dispatchEvent(new Event("close"))})),n}supported(){return null!==this.options.fetch&&null!==this.options.readableStream&&"undefined"!=typeof TextDecoder&&"undefined"!=typeof AbortController&&"undefined"!=typeof EventTarget&&"undefined"!=typeof Event&&"undefined"!=typeof MessageEvent&&"undefined"!=typeof Error}initialize(e,t,r){let n,i;this._protocol=e,this._abortController=new AbortController,"json"===e?(n={Accept:"application/json","Content-Type":"application/json"},i=r):(n={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},i=r);const o={method:"POST",headers:n,body:i,mode:"cors",credentials:"same-origin",cache:"no-cache",signal:this._abortController.signal},a=this._fetchEventTarget(this,this.endpoint,o);a.addEventListener("open",(()=>{t.onOpen()})),a.addEventListener("error",(e=>{this._abortController.abort(),t.onError(e)})),a.addEventListener("close",(()=>{this._abortController.abort(),t.onClose({code:4,reason:"connection closed"})})),a.addEventListener("message",(e=>{t.onMessage(e.data)}))}close(){this._abortController.abort()}send(e,t,r){let n,i;const o={session:t,node:r,data:e};"json"===this._protocol?(n={"Content-Type":"application/json"},i=JSON.stringify(o)):(n={"Content-Type":"application/octet-stream"},i=this.options.encoder.encodeEmulationRequest(o));const a={method:"POST",headers:n,body:i,mode:"cors",credentials:"same-origin",cache:"no-cache"};(0,this.options.fetch)(this.options.emulationEndpoint,a)}}class D{constructor(e,t){this.endpoint=e,this.options=t,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return null!==this.options.eventsource&&null!==this.options.fetch}initialize(e,t,r){let n;n=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint),n.searchParams.append("cf_connect",r);const i=new this.options.eventsource(n.toString(),{});this._transport=i;i.onopen=function(){t.onOpen()},i.onerror=function(e){i.close(),t.onError(e),t.onClose({code:4,reason:"connection closed"})},i.onmessage=function(e){t.onMessage(e.data)},this._onClose=function(){t.onClose({code:4,reason:"connection closed"})}}close(){this._transport.close(),null!==this._onClose&&this._onClose()}send(e,t,r){const n={session:t,node:r,data:e},i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),mode:"cors",credentials:"same-origin",cache:"no-cache"};(0,this.options.fetch)(this.options.emulationEndpoint,i)}}function M(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;class F{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return void 0!==this.options.webtransport&&null!==this.options.webtransport}initialize(e,t){return M(this,void 0,void 0,(function*(){let r;r=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint),"protobuf"===e&&r.searchParams.append("cf_protocol","protobuf"),this._protocol=e;const n=new EventTarget;this._transport=new this.options.webtransport(r.toString()),this._transport.closed.then((()=>{t.onClose({code:4,reason:"connection closed"})})).catch((()=>{t.onClose({code:4,reason:"connection closed"})}));try{yield this._transport.ready}catch(e){return void this.close()}let i;try{i=yield this._transport.createBidirectionalStream()}catch(e){return void this.close()}this._stream=i,this._writer=this._stream.writable.getWriter(),n.addEventListener("close",(()=>{t.onClose({code:4,reason:"connection closed"})})),n.addEventListener("message",(e=>{t.onMessage(e.data)})),this._startReading(n),t.onOpen()}))}_startReading(e){return M(this,void 0,void 0,(function*(){const t=this._stream.readable.getReader();let r="",n=0,i=new Uint8Array;try{for(;;){const{done:o,value:a}=yield t.read();if(a.length>0)if("json"===this._protocol)for(r+=this._utf8decoder.decode(a);n<r.length;)if("\n"===r[n]){const t=r.substring(0,n);e.dispatchEvent(new MessageEvent("message",{data:t})),r=r.substring(n+1),n=0}else++n;else{const t=new Uint8Array(i.length+a.length);for(t.set(i),t.set(a,i.length),i=t;;){const t=this.options.decoder.decodeReply(i);if(!t.ok)break;{const r=i.slice(0,t.pos);e.dispatchEvent(new MessageEvent("message",{data:r})),i=i.slice(t.pos)}}}if(o)break}}catch(t){e.dispatchEvent(new Event("close"))}}))}close(){return M(this,void 0,void 0,(function*(){try{this._writer&&(yield this._writer.close()),this._transport.close()}catch(e){}}))}send(e){return M(this,void 0,void 0,(function*(){let t;t="json"===this._protocol?(new TextEncoder).encode(e+"\n"):e;try{yield this._writer.write(t)}catch(e){this.close()}}))}}class j{name(){return"json"}encodeCommands(e){return e.map((e=>JSON.stringify(e))).join("\n")}decodeReplies(e){return e.trim().split("\n").map((e=>JSON.parse(e)))}}const B={token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};
2class V extends Error{constructor(e){super(e),this.name=this.constructor.name}}class U extends I{constructor(e,t){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=x.Disconnected,this._transportIsOpen=!1,this._endpoint=e,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new j,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},B),t),this._configure(),this._debugEnabled?(this.on("state",(e=>{this._debug("client state",e.oldState,"->",e.newState)})),this.on("error",(e=>{this._debug("client error",e)}))):this.on("error",(function(){Function.prototype()}))}newSubscription(e,t){if(null!==this.getSubscription(e))throw new Error("Subscription to the channel "+e+" already exists");const r=new C(this,e,t);return this._subs[e]=r,r}getSubscription(e){return this._getSub(e)}removeSubscription(e){e&&(e.state!==P.Unsubscribed&&e.unsubscribe(),this._removeSubscription(e))}subscriptions(){return this._subs}ready(e){return this.state===x.Disconnected?Promise.reject({code:E.clientDisconnected,message:"client disconnected"}):this.state===x.Connected?Promise.resolve():new Promise(((t,r)=>{const n={resolve:t,reject:r};e&&(n.timeout=setTimeout((function(){r({code:E.timeout,message:"timeout"})}),e)),this._promises[this._nextPromiseId()]=n}))}connect(){this._isConnected()?this._debug("connect called when already connected"):this._isConnecting()?this._debug("connect called when already connecting"):(this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting())}disconnect(){this._disconnect(S.disconnectCalled,"disconnect called",!1)}setToken(e){this._token=e}send(e){const t={send:{data:e}},r=this;return this._methodCall().then((function(){return r._transportSendCommands([t])?Promise.resolve():Promise.reject(r._createErrorObject(E.transportWriteError,"transport write error"))}))}rpc(e,t){const r={rpc:{method:e,data:t}},n=this;return this._methodCall().then((function(){return n._callPromise(r,(function(e){return{data:e.rpc.data}}))}))}publish(e,t){const r={publish:{channel:e,data:t}},n=this;return this._methodCall().then((function(){return n._callPromise(r,(function(){return{}}))}))}history(e,t){const r={history:this._getHistoryRequest(e,t)},n=this;return this._methodCall().then((function(){return n._callPromise(r,(function(t){const r=t.history,i=[];if(r.publications)for(let t=0;t<r.publications.length;t++)i.push(n._getPublicationContext(e,r.publications[t]));return{publications:i,epoch:r.epoch||"",offset:r.offset||0}}))}))}presence(e){const t={presence:{channel:e}},r=this;return this._methodCall().then((function(){return r._callPromise(t,(function(e){const t=e.presence.presence;for(const e in t)if(t.hasOwnProperty(e)){const r=t[e].conn_info,n=t[e].chan_info;r&&(t[e].connInfo=r),n&&(t[e].chanInfo=n)}return{clients:t}}))}))}presenceStats(e){const t={presence_stats:{channel:e}},r=this;return this._methodCall().then((function(){return r._callPromise(t,(function(e){const t=e.presence_stats;return{numUsers:t.num_users,numClients:t.num_clients}}))}))}startBatching(){this._batching=!0}stopBatching(){const e=this;Promise.resolve().then((function(){Promise.resolve().then((function(){e._batching=!1,e._flush()}))}))}_debug(...e){this._debugEnabled&&function(e,t){if(globalThis.console){const r=globalThis.console[e];k(r)&&r.apply(globalThis.console,t)}}("debug",e)}_formatOverride(){}_configure(){if(!("Promise"in globalThis))throw new Error("Promise polyfill required");if(!this._endpoint)throw new Error("endpoint configuration required");if(null!==this._config.token&&(this._token=this._config.token),null!==this._config.data&&(this._data=this._config.data),this._codec=new j,this._formatOverride(),(!0===this._config.debug||"undefined"!=typeof localStorage&&localStorage.getItem("centrifuge.debug"))&&(this._debugEnabled=!0),this._debug("config",this._config),"string"==typeof this._endpoint);else{if(!("object"==typeof this._endpoint&&this._endpoint instanceof Array))throw new Error("unsupported url configuration type: only string or array of objects are supported");this._transports=this._endpoint,this._emulation=!0;for(const e in this._transports)if(this._transports.hasOwnProperty(e)){const t=this._transports[e];if(!t.endpoint||!t.transport)throw new Error("malformed transport configuration");const r=t.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(r)<0)throw new Error("unsupported transport name: "+r)}}}_setState(e){if(this.state!==e){this._reconnecting=!1;const t=this.state;
2return this.state=e,this.emit("state",{newState:e,oldState:t}),!0}return!1}_isDisconnected(){return this.state===x.Disconnected}_isConnecting(){return this.state===x.Connecting}_isConnected(){return this.state===x.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let e=null;null!==this._config.networkEventTarget?e=this._config.networkEventTarget:void 0!==globalThis.addEventListener&&(e=globalThis),e&&(e.addEventListener("offline",(()=>{this._debug("offline event triggered"),this.state!==x.Connected&&this.state!==x.Connecting||(this._disconnect(w.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)})),e.addEventListener("online",(()=>{this._debug("online event triggered"),this.state===x.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())})),this._networkEventsSet=!0)}_getReconnectDelay(){const e=O(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,e}_clearOutgoingRequests(){for(const e in this._callbacks)if(this._callbacks.hasOwnProperty(e)){const t=this._callbacks[e];clearTimeout(t.timeout);const r=t.errback;if(!r)continue;r({error:this._createErrorObject(E.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(const e in this._subs){if(!this._subs.hasOwnProperty(e))continue;const t=this._subs[e];t.state===P.Subscribed&&t._setSubscribing(A.transportClosed,"transport closed")}for(const e in this._serverSubs)this._serverSubs.hasOwnProperty(e)&&this.emit("subscribing",{channel:e})}_handleWriteError(e){for(const t of e){const e=t.id;if(!(e in this._callbacks))continue;const r=this._callbacks[e];clearTimeout(this._callbacks[e].timeout),delete this._callbacks[e];(0,r.errback)({error:this._createErrorObject(E.transportWriteError,"transport write error")})}}_transportSendCommands(e){if(!e.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(e),this._session,this._node)}catch(t){return this._debug("error writing commands",t),this._handleWriteError(e),!1}return!0}_initializeTransport(){let e;null!==this._config.websocket?e=this._config.websocket:"function"!=typeof globalThis.WebSocket&&"object"!=typeof globalThis.WebSocket||(e=globalThis.WebSocket);let t=null;null!==this._config.sockjs?t=this._config.sockjs:void 0!==globalThis.SockJS&&(t=globalThis.SockJS);let r=null;null!==this._config.eventsource?r=this._config.eventsource:void 0!==globalThis.EventSource&&(r=globalThis.EventSource);let n=null;null!==this._config.fetch?n=this._config.fetch:void 0!==globalThis.fetch&&(n=globalThis.fetch);let i=null;if(null!==this._config.readableStream?i=this._config.readableStream:void 0!==globalThis.ReadableStream&&(i=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let o=0;for(;;){if(o>=this._transports.length)throw new Error("no supported transport found");const a=this._transports[this._currentTransportIndex],s=a.transport,c=a.endpoint;if("websocket"===s){if(this._debug("trying websocket transport"),this._transport=new N(c,{websocket:e}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,o++;continue}}else if("webtransport"===s){if(this._debug("trying webtransport transport"),this._transport=new F(c,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,o++;continue}}else if("http_stream"===s){if(this._debug("trying http_stream transport"),this._transport=new L(c,{fetch:n,readableStream:i,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,o++;continue}}else if("sse"===s){if(this._debug("trying sse transport"),this._transport=new D(c,{eventsource:r,fetch:n,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,o++;continue}}else{if("sockjs"!==s)throw new Error("unknown transport "+s);if(this._debug("trying sockjs"),this._transport=new R(c,{sockjs:t,
2sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,o++;continue}}break}}else{if(o=this._endpoint,a="http",0===o.lastIndexOf(a,0))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new N(this._endpoint,{websocket:e}),!this._transport.supported())throw new Error("WebSocket not available")}var o,a;const s=this,c=this._transport,l=this._nextTransportId();s._debug("id of transport",l);let u=!1;const d=[];if(this._transport.emulation()){const e=s._sendConnect(!0);d.push(e)}this._setNetworkEvents();const f=this._codec.encodeCommands(d);let p;this._transportClosed=!1,p=setTimeout((function(){c.close()}),this._config.timeout),this._transport.initialize(this._codec.name(),{onOpen:function(){if(p&&(clearTimeout(p),p=null),s._transportId!=l)return s._debug("open callback from non-actual transport"),void c.close();u=!0,s._debug(c.subName(),"transport open"),c.emulation()||(s._transportIsOpen=!0,s._transportWasOpen=!0,s.startBatching(),s._sendConnect(!1),s._sendSubscribeCommands(),s.stopBatching(),s.emit("__centrifuge_debug:connect_frame_sent",{}))},onError:function(e){s._transportId==l?s._debug("transport level error",e):s._debug("error callback from non-actual transport")},onClose:function(e){if(p&&(clearTimeout(p),p=null),s._transportId!=l)return void s._debug("close callback from non-actual transport");s._debug(c.subName(),"transport closed"),s._transportClosed=!0,s._transportIsOpen=!1;let t="connection closed",r=!0,n=0;if(e&&"code"in e&&e.code&&(n=e.code),e&&e.reason)try{const n=JSON.parse(e.reason);t=n.reason,r=n.reconnect}catch(i){t=e.reason,(n>=3500&&n<4e3||n>=4500&&n<5e3)&&(r=!1)}n<3e3?(1009===n?(n=S.messageSizeLimit,t="message size limit exceeded",r=!1):(n=w.transportClosed,t="transport closed"),s._emulation&&!s._transportWasOpen&&(s._currentTransportIndex++,s._currentTransportIndex>=s._transports.length&&(s._triedAllTransports=!0,s._currentTransportIndex=0))):s._transportWasOpen=!0,s._isConnecting()&&!u&&s.emit("error",{type:"transport",error:{code:E.transportClosed,message:"transport closed"},transport:c.name()}),s._reconnecting=!1,s._disconnect(n,t,r)},onMessage:function(e){s._dataReceived(e)}},f),s.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(e){const t=this._constructConnectCommand(),r=this;return this._call(t,e).then((e=>{const t=e.reply.connect;r._connectResponse(t),e.next&&e.next()}),(e=>{r._connectError(e.error),e.next&&e.next()})),t}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting())return void this._debug("stop reconnecting: client not in connecting state");if(this._reconnecting)return void this._debug("reconnect already in progress, return from reconnect routine");if(!1===this._transportClosed)return void this._debug("waiting for transport close");this._reconnecting=!0;const e=this,t=""===this._token;this._refreshRequired||t&&null!==this._config.getToken?this._getToken().then((function(t){e._isConnecting()&&(null!=t&&null!=t?(e._token=t,e._debug("connection token refreshed"),e._config.getData?e._config.getData().then((function(t){e._isConnecting()&&(e._data=t,e._initializeTransport())})):e._initializeTransport()):e._failUnauthorized())})).catch((function(t){if(!e._isConnecting())return;if(t instanceof V)return void e._failUnauthorized();e.emit("error",{type:"connectToken",error:{code:E.clientConnectToken,message:void 0!==t?t.toString():""}});const r=e._getReconnectDelay();e._debug("error on connection token refresh, reconnect after "+r+" milliseconds",t),e._reconnecting=!1,e._reconnectTimeout=setTimeout((()=>{e._startReconnecting()}),r)})):this._config.getData?this._config.getData().then((function(t){e._isConnecting()&&(e._data=t,e._initializeTransport())})):this._initializeTransport()}_connectError(e){this.state===x.Connecting&&(109===e.code&&(this._refreshRequired=!0),e.code<100||!0===e.temporary||109===e.code?(this.emit
2("error",{type:"connect",error:e}),this._debug("closing transport due to connect error"),this._disconnect(e.code,e.message,!0)):this._disconnect(e.code,e.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let e=!1;!this._emulation||this._transportWasOpen||this._triedAllTransports||(e=!0);let t=this._getReconnectDelay();e&&(t=0),this._debug("reconnect after "+t+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout((()=>{this._startReconnecting()}),t)}_constructConnectCommand(){const e={};this._token&&(e.token=this._token),this._data&&(e.data=this._data),this._config.name&&(e.name=this._config.name),this._config.version&&(e.version=this._config.version);const t={};let r=!1;for(const e in this._serverSubs)if(this._serverSubs.hasOwnProperty(e)&&this._serverSubs[e].recoverable){r=!0;const n={recover:!0};this._serverSubs[e].offset&&(n.offset=this._serverSubs[e].offset),this._serverSubs[e].epoch&&(n.epoch=this._serverSubs[e].epoch),t[e]=n}return r&&(e.subs=t),{connect:e}}_getHistoryRequest(e,t){const r={channel:e};return void 0!==t&&(t.since&&(r.since={offset:t.since.offset},t.since.epoch&&(r.since.epoch=t.since.epoch)),void 0!==t.limit&&(r.limit=t.limit),!0===t.reverse&&(r.reverse=!0)),r}_methodCall(){return this._isConnected()?Promise.resolve():new Promise(((e,t)=>{const r=setTimeout((function(){t({code:E.timeout,message:"timeout"})}),this._config.timeout);this._promises[this._nextPromiseId()]={timeout:r,resolve:e,reject:t}}))}_callPromise(e,t){return new Promise(((r,n)=>{this._call(e,!1).then((e=>{r(t(e.reply)),e.next&&e.next()}),(e=>{n(e.error),e.next&&e.next()}))}))}_dataReceived(e){this._serverPing>0&&this._waitServerPing();const t=this._codec.decodeReplies(e);this._dispatchPromise=this._dispatchPromise.then((()=>{let e;this._dispatchPromise=new Promise((t=>{e=t})),this._dispatchSynchronized(t,e)}))}_dispatchSynchronized(e,t){let r=Promise.resolve();for(const t in e)e.hasOwnProperty(t)&&(r=r.then((()=>this._dispatchReply(e[t]))));r=r.then((()=>{t()}))}_dispatchReply(e){let t;const r=new Promise((e=>{t=e}));if(null==e)return this._debug("dispatch: got undefined or null reply"),t(),r;const n=e.id;return n&&n>0?this._handleReply(e,t):e.push?this._handlePush(e.push,t):this._handleServerPing(t),r}_call(e,t){return new Promise(((r,n)=>{e.id=this._nextCommandId(),this._registerCall(e.id,r,n),t||this._addCommand(e)}))}_startConnecting(){this._debug("start connecting"),this._setState(x.Connecting)&&this.emit("connecting",{code:w.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(e,t,r){if(this._isDisconnected())return;this._transportIsOpen=!1;const n=this.state;this._reconnecting=!1;const i={code:e,reason:t};let o=!1;if(r?o=this._setState(x.Connecting):(o=this._setState(x.Disconnected),this._rejectPromises({code:E.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),n===x.Connecting&&this._clearReconnectTimeout(),n===x.Connected&&this._clearConnectedState(),o&&(this._isConnecting()?this.emit("connecting",i):this.emit("disconnected",i)),this._transport){this._debug("closing existing transport");const e=this._transport;this._transport=null,e.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(S.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)throw this.emit("error",{type:"configuration",error:{code:E.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),new V("");return this._config.getToken({})}_refresh(){const e=this._client,t=this;this._getToken().then((function(r){if(e!==t._client)return;if(!r)return void t._failUnauthorized();if(t._token=r,t._debug("connection token refreshed"),!t._isConnected())return;const n={refresh:{token:t._token}};t._call(n,!1).then((e=>{const r=e.reply.refresh;t._refreshResponse(r),e.next&&e.next()}),(e=>{t._refreshError(e.error),e.next&&e.next()}))})).catch((function(e){t._isConnected()&&(e instanceof V?t._failUnauthorized():(t.emit("error",{type:"refreshToken",error:{code:E.clientRefreshToken,message:void 0!==e?e.toString():""}}),t._refreshTimeout=setTimeout((()=>t._refresh()),t._getRefreshRetryDelay())))}))}
2_refreshError(e){e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",error:e}),this._refreshTimeout=setTimeout((()=>this._refresh()),this._getRefreshRetryDelay())):this._disconnect(e.code,e.message,!1)}_getRefreshRetryDelay(){return O(0,5e3,1e4)}_refreshResponse(e){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),e.expires&&(this._client=e.client,this._refreshTimeout=setTimeout((()=>this._refresh()),T(e.ttl)))}_removeSubscription(e){null!==e&&delete this._subs[e.channel]}_unsubscribe(e){if(!this._transportIsOpen)return;const t={unsubscribe:{channel:e.channel}},r=this;this._call(t,!1).then((e=>{e.next&&e.next()}),(e=>{e.next&&e.next(),r._disconnect(w.unsubscribeError,"unsubscribe error",!0)}))}_getSub(e){const t=this._subs[e];return t||null}_isServerSub(e){return void 0!==this._serverSubs[e]}_sendSubscribeCommands(){const e=[];for(const t in this._subs){if(!this._subs.hasOwnProperty(t))continue;const r=this._subs[t];if(!0!==r._inflight&&r.state===P.Subscribing){const t=r._subscribe();t&&e.push(t)}}return e}_connectResponse(e){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=e.client,this._setState(x.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),e.expires&&(this._refreshTimeout=setTimeout((()=>this._refresh()),T(e.ttl))),this._session=e.session,this._node=e.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();const t={client:e.client,transport:this._transport.subName()};e.data&&(t.data=e.data),this.emit("connected",t),this._resolvePromises(),this._processServerSubs(e.subs||{}),e.ping&&e.ping>0?(this._serverPing=1e3*e.ping,this._sendPong=!0===e.pong,this._waitServerPing()):this._serverPing=0}_processServerSubs(e){for(const t in e){if(!e.hasOwnProperty(t))continue;const r=e[t];this._serverSubs[t]={offset:r.offset,epoch:r.epoch,recoverable:r.recoverable||!1};const n=this._getSubscribeContext(t,r);this.emit("subscribed",n)}for(const t in e){if(!e.hasOwnProperty(t))continue;const r=e[t];if(r.recovered){const e=r.publications;if(e&&e.length>0)for(const r in e)e.hasOwnProperty(r)&&this._handlePublication(t,e[r])}}for(const t in this._serverSubs)this._serverSubs.hasOwnProperty(t)&&(e[t]||(this.emit("unsubscribed",{channel:t}),delete this._serverSubs[t]))}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){null!==this._reconnectTimeout&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){null!==this._serverPingTimeout&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){0!==this._config.maxServerPingDelay&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout((()=>{this._isConnected()&&this._disconnect(w.noPing,"no ping",!0)}),this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(e,t){const r={channel:e,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1};t.recovered&&(r.recovered=!0),t.positioned&&(r.positioned=!0),t.recoverable&&(r.recoverable=!0),t.was_recovering&&(r.wasRecovering=!0);let n="";"epoch"in t&&(n=t.epoch);let i=0;return"offset"in t&&(i=t.offset),(r.positioned||r.recoverable)&&(r.streamPosition={offset:i,epoch:n}),t.data&&(r.data=t.data),r}_handleReply(e,t){const r=e.id;if(!(r in this._callbacks))return void t();const n=this._callbacks[r];if(clearTimeout(this._callbacks[r].timeout),delete this._callbacks[r],"error"in(i=e)&&null!==i.error){const r=n.errback;if(!r)return void t();r({error:e.error,next:t})}else{const r=n.callback;if(!r)return;r({reply:e,next:t})}var i}_handleJoin(e,t){const r=this._getSub(e);if(r)r._handleJoin(t);else if(this._isServerSub(e)){const r={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("join",r)}}_handleLeave(e,t){const r=this._getSub(e);if(r)r._handleLeave(t);else if(this._isServerSub(e)){const r={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("leave",r)}}_handleUnsubscribe(e,t){const r=this._getSub(e);r?t.code<2500?r._setUnsubscribed(t.code,t.reason,!1):r._setSubscribing(t.code,t.reason):this._isServerSub(e)&&(delete this._serverSubs[e],this.emit
2("unsubscribed",{channel:e}))}_handleSubscribe(e,t){this._serverSubs[e]={offset:t.offset,epoch:t.epoch,recoverable:t.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(e,t))}_handleDisconnect(e){const t=e.code;let r=!0;(t>=3500&&t<4e3||t>=4500&&t<5e3)&&(r=!1),this._disconnect(t,e.reason,r)}_getPublicationContext(e,t){const r={channel:e,data:t.data};return t.offset&&(r.offset=t.offset),t.info&&(r.info=this._getJoinLeaveContext(t.info)),t.tags&&(r.tags=t.tags),r}_getJoinLeaveContext(e){const t={client:e.client,user:e.user};return e.conn_info&&(t.connInfo=e.conn_info),e.chan_info&&(t.chanInfo=e.chan_info),t}_handlePublication(e,t){const r=this._getSub(e);if(r)r._handlePublication(t);else if(this._isServerSub(e)){const r=this._getPublicationContext(e,t);this.emit("publication",r),void 0!==t.offset&&(this._serverSubs[e].offset=t.offset)}}_handleMessage(e){this.emit("message",{data:e.data})}_handleServerPing(e){if(this._sendPong){const e={};this._transportSendCommands([e])}e()}_handlePush(e,t){const r=e.channel;e.pub?this._handlePublication(r,e.pub):e.message?this._handleMessage(e.message):e.join?this._handleJoin(r,e.join):e.leave?this._handleLeave(r,e.leave):e.unsubscribe?this._handleUnsubscribe(r,e.unsubscribe):e.subscribe?this._handleSubscribe(r,e.subscribe):e.disconnect&&this._handleDisconnect(e.disconnect),t()}_flush(){const e=this._commands.slice(0);this._commands=[],this._transportSendCommands(e)}_createErrorObject(e,t,r){const n={code:e,message:t};return r&&(n.temporary=!0),n}_registerCall(e,t,r){this._callbacks[e]={callback:t,errback:r,timeout:null},this._callbacks[e].timeout=setTimeout((()=>{delete this._callbacks[e],k(r)&&r({error:this._createErrorObject(E.timeout,"timeout")})}),this._config.timeout)}_addCommand(e){this._batching?this._commands.push(e):this._transportSendCommands([e])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(const e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(const t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}}U.SubscriptionState=P,U.State=x,U.UnauthorizedError=V},7890:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});var n=r(18046);const i=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=n.$,a=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return o(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:a,defaultVariants:s}=t,c=Object.keys(a).map((e=>{const t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;const o=i(t)||i(n);return a[e][o]})),l=r&&Object.entries(r).reduce(((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e}),{}),u=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce(((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every((e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...l}[t]):{...s,...l}[t]===r}))?[...e,r,n]:e}),[]);return o(e,c,u,null==r?void 0:r.class,null==r?void 0:r.className)}},18046:(e,t,r)=>{"use strict";function n(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=n(e[t]))&&(i&&(i+=" "),i+=r);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function i(){for(var e,t,r=0,i="";r<arguments.length;)(e=arguments[r++])&&(t=n(e))&&(i&&(i+=" "),i+=t);return i}r.d(t,{$:()=>i})},24838:(e,t,r)=>{"use strict";function n(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=n(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function i(){for(var e,t,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=n(e))&&(i&&(i+=" "),i+=t);return i}r.d(t,{$:()=>i})},85529:(e,t,r)=>{"use strict";r.d(t,{a:()=>v});var n=1,i=.9,o=.8,a=.17,s=.1,c=.999,l=.9999,u=.99,d=/[\\\/_+.#"@\[\(\{&]/,f=/[\\\/_+.#"@\[\(\{&]/g,p=/[\s-]/,h=/[\s-]/g;function m(e,t,r,y,v,g,b){if(g===t.length)return v===e.length?n:u;var E=`${v},${g}`;
2if(void 0!==b[E])return b[E];for(var w,S,A,_,x=y.charAt(g),P=r.indexOf(x,v),I=0;P>=0;)(w=m(e,t,r,y,P+1,g+1,b))>I&&(P===v?w*=n:d.test(e.charAt(P-1))?(w*=o,(A=e.slice(v,P-1).match(f))&&v>0&&(w*=Math.pow(c,A.length))):p.test(e.charAt(P-1))?(w*=i,(_=e.slice(v,P-1).match(h))&&v>0&&(w*=Math.pow(c,_.length))):(w*=a,v>0&&(w*=Math.pow(c,P-v))),e.charAt(P)!==t.charAt(g)&&(w*=l)),(w<s&&r.charAt(P-1)===y.charAt(g+1)||y.charAt(g+1)===y.charAt(g)&&r.charAt(P-1)!==y.charAt(g))&&((S=m(e,t,r,y,P+1,g+2,b))*s>w&&(w=S*s)),w>I&&(I=w),P=r.indexOf(x,P+1);return b[E]=I,I}function y(e){return e.toLowerCase().replace(h," ")}function v(e,t,r){return m(e=r&&r.length>0?""+(e+" "+r.join(" ")):e,t,y(e),y(t),0,0,{})}},58323:(e,t,r)=>{"use strict";r.d(t,{uB:()=>k});var n=r(85529),i=r(47953),o=r(14041),a=r(38970),s='[cmdk-group=""]',c='[cmdk-group-items=""]',l='[cmdk-item=""]',u=`${l}:not([aria-disabled="true"])`,d="cmdk-item-select",f="data-value",p=(e,t,r)=>(0,n.a)(e,t,r),h=o.createContext(void 0),m=()=>o.useContext(h),y=o.createContext(void 0),v=()=>o.useContext(y),g=o.createContext(void 0),b=o.forwardRef(((e,t)=>{let r=N((()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",filtered:{count:0,items:new Map,groups:new Set}}})),n=N((()=>new Set)),i=N((()=>new Map)),m=N((()=>new Map)),v=N((()=>new Set)),g=C(e),{label:b,children:E,value:w,onValueChange:S,filter:A,shouldFilter:_,loop:x,disablePointerSelection:P=!1,vimBindings:I=!0,...k}=e,L=o.useId(),D=o.useId(),M=o.useId(),V=o.useRef(null),U=F();R((()=>{if(void 0!==w){let e=w.trim();r.current.value=e,z.emit()}}),[w]),R((()=>{U(6,q)}),[]);let z=o.useMemo((()=>({subscribe:e=>(v.current.add(e),()=>v.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)Y(),H(),U(1,$);else if("value"===e&&(n||U(5,q),void 0!==(null==(i=g.current)?void 0:i.value))){let e=null!=t?t:"";return void(null==(a=(o=g.current).onValueChange)||a.call(o,e))}z.emit()}},emit:()=>{v.current.forEach((e=>e()))}})),[]),G=o.useMemo((()=>({value:(e,t,n)=>{var i;t!==(null==(i=m.current.get(e))?void 0:i.value)&&(m.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,W(t,n)),U(2,(()=>{H(),z.emit()})))},item:(e,t)=>(n.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),U(3,(()=>{Y(),H(),r.current.value||$(),z.emit()})),()=>{m.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=K();U(4,(()=>{Y(),(null==t?void 0:t.getAttribute("id"))===e&&$(),z.emit()}))}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{m.current.delete(e),i.current.delete(e)}),filter:()=>g.current.shouldFilter,label:b||e["aria-label"],disablePointerSelection:P,listId:L,inputId:M,labelId:D,listInnerRef:V})),[]);function W(e,t){var n,i;let o=null!=(i=null==(n=g.current)?void 0:n.filter)?i:p;return e?o(e,r.current.search,t):0}function H(){if(!r.current.search||!1===g.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach((r=>{let n=i.current.get(r),o=0;n.forEach((t=>{let r=e.get(t);o=Math.max(r,o)})),t.push([r,o])}));let n=V.current;Q().sort(((t,r)=>{var n,i;let o=t.getAttribute("id"),a=r.getAttribute("id");return(null!=(n=e.get(a))?n:0)-(null!=(i=e.get(o))?i:0)})).forEach((e=>{let t=e.closest(c);t?t.appendChild(e.parentElement===t?e:e.closest(`${c} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${c} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=V.current.querySelector(`${s}[${f}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function $(){let e=Q().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(f);z.setState("value",t||void 0)}function Y(){var e,t,o,a;if(!r.current.search||!1===g.current.shouldFilter)return void(r.current.filtered.count=n.current.size);r.current.filtered.groups=new Set;let s=0;for(let i of n.current){let n=W(null!=(t=null==(e=m.current.get(i))?void 0:e.value)?t:"",null!=(a=null==(o=m.current.get(i))?void 0:o.keywords)?a:[]);r.current.filtered.items.set(i,n),n>0&&s++}for(let[e,t]of i.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=s}function q(){var e,t,r;let n=K();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(s))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function K(){var e;return null==(e=V.current)?void 0:e.querySelector(`${l}[aria-selected="true"]`)}function Q(){var e;return Array.from(null==(e=V.current)?void 0:e.querySelectorAll(u))}function X(e){let t=Q()[e];t&&z.setState("value",t.getAttribute(f))}function Z(e){var t;let r=K(),n=Q(),i=n.findIndex((e=>e===r)),o=n[i+e];null!=(t=g.current)&&t.loop&&(o=i+e<0?n[n.length-1]:i+e===n.length?n[0]:n[i+e]),o&&z.setState("value",o.getAttribute(f))}function J(e){let t,r=K(),n=null==r?void 0:r.closest(s);for(;n&&!t;)n=e>0?O(n,s):T(n,s),t=null==n?void 0:n.querySelector(u);t?z.setState("value",t.getAttribute(f)):Z(e)}let ee=()=>X(Q().length-1),te=e=>{e.preventDefault(),e.metaKey?ee():e.altKey?J(1):Z(1)},re=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?J(-1):Z(-1)};return o.createElement(a.sG.div,{ref:t,tabIndex:-1,...k,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=k.onKeyDown)||t.call(k,e),!e.defaultPrevented)switch(e.key){case"n":case"j":I&&e.ctrlKey&&te(e);break;case"ArrowDown":te(e);break;case"p":case"k":I&&e.ctrlKey&&re(e);break;case"ArrowUp":re(e);break;case"Home":e.preventDefault(),X(0);break;case"End":e.preventDefault(),ee();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=K();if(t){let e=new Event(d);t.dispatchEvent(e)}}}}},o.createElement("label",{"cmdk-label":"",htmlFor:G.inputId,id:G.labelId,style:B},b),j(e,(e=>o.createElement(y.Provider,{value:z},o.createElement(h.Provider,{value:G},e)))))})),E=o.forwardRef(((e,t)=>{var r,n;let i=o.useId(),s=o.useRef(null),c=o.useContext(g),l=m(),u=C(e),f=null!=(n=null==(r=u.current)?void 0:r.forceMount)?n:null==c?void 0:c.forceMount;R((()=>
2{if(!f)return l.item(i,null==c?void 0:c.id)}),[f]);let p=M(i,s,[e.value,e.children,s],e.keywords),h=v(),y=D((e=>e.value&&e.value===p.current)),b=D((e=>!(!f&&!1!==l.filter())||(!e.search||e.filtered.items.get(i)>0)));function E(){var e,t;w(),null==(t=(e=u.current).onSelect)||t.call(e,p.current)}function w(){h.setState("value",p.current,!0)}if(o.useEffect((()=>{let t=s.current;if(t&&!e.disabled)return t.addEventListener(d,E),()=>t.removeEventListener(d,E)}),[b,e.onSelect,e.disabled]),!b)return null;let{disabled:S,value:A,onSelect:_,forceMount:x,keywords:P,...I}=e;return o.createElement(a.sG.div,{ref:L([s,t]),...I,id:i,"cmdk-item":"",role:"option","aria-disabled":!!S,"aria-selected":!!y,"data-disabled":!!S,"data-selected":!!y,onPointerMove:S||l.disablePointerSelection?void 0:w,onClick:S?void 0:E},e.children)})),w=o.forwardRef(((e,t)=>{let{heading:r,children:n,forceMount:i,...s}=e,c=o.useId(),l=o.useRef(null),u=o.useRef(null),d=o.useId(),f=m(),p=D((e=>!(!i&&!1!==f.filter())||(!e.search||e.filtered.groups.has(c))));R((()=>f.group(c)),[]),M(c,l,[e.value,e.heading,u]);let h=o.useMemo((()=>({id:c,forceMount:i})),[i]);return o.createElement(a.sG.div,{ref:L([l,t]),...s,"cmdk-group":"",role:"presentation",hidden:!p||void 0},r&&o.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),j(e,(e=>o.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},o.createElement(g.Provider,{value:h},e)))))})),S=o.forwardRef(((e,t)=>{let{alwaysRender:r,...n}=e,i=o.useRef(null),s=D((e=>!e.search));return r||s?o.createElement(a.sG.div,{ref:L([i,t]),...n,"cmdk-separator":"",role:"separator"}):null})),A=o.forwardRef(((e,t)=>{let{onValueChange:r,...n}=e,i=null!=e.value,s=v(),c=D((e=>e.search)),u=D((e=>e.value)),d=m(),p=o.useMemo((()=>{var e;
2let t=null==(e=d.listInnerRef.current)?void 0:e.querySelector(`${l}[${f}="${encodeURIComponent(u)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return o.useEffect((()=>{null!=e.value&&s.setState("search",e.value)}),[e.value]),o.createElement(a.sG.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":p,id:d.inputId,type:"text",value:i?e.value:c,onChange:e=>{i||s.setState("search",e.target.value),null==r||r(e.target.value)}})})),_=o.forwardRef(((e,t)=>{let{children:r,label:n="Suggestions",...i}=e,s=o.useRef(null),c=o.useRef(null),l=m();return o.useEffect((()=>{if(c.current&&s.current){let e,t=c.current,r=s.current,n=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;r.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return n.observe(t),()=>{cancelAnimationFrame(e),n.unobserve(t)}}}),[]),o.createElement(a.sG.div,{ref:L([s,t]),...i,"cmdk-list":"",role:"listbox","aria-label":n,id:l.listId},j(e,(e=>o.createElement("div",{ref:L([c,l.listInnerRef]),"cmdk-list-sizer":""},e))))})),x=o.forwardRef(((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:a,contentClassName:s,container:c,...l}=e;return o.createElement(i.bL,{open:r,onOpenChange:n},o.createElement(i.ZL,{container:c},o.createElement(i.hJ,{"cmdk-overlay":"",className:a}),o.createElement(i.UC,{"aria-label":e.label,"cmdk-dialog":"",className:s},o.createElement(b,{ref:t,...l}))))})),P=o.forwardRef(((e,t)=>D((e=>0===e.filtered.count))?o.createElement(a.sG.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),I=o.forwardRef(((e,t)=>{let{progress:r,children:n,label:i="Loading...",...s}=e;return o.createElement(a.sG.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},j(e,(e=>o.createElement("div",{"aria-hidden":!0},e))))})),k=Object.assign(b,{List:_,Item:E,Input:A,Group:w,Separator:S,Dialog:x,Empty:P,Loading:I});function O(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function T(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function C(e){let t=o.useRef(e);return R((()=>{t.current=e})),t}var R="undefined"==typeof window?o.useEffect:o.useLayoutEffect;function N(e){let t=o.useRef();return void 0===t.current&&(t.current=e()),t}function L(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function D(e){let t=v(),r=()=>e(t.snapshot());return o.useSyncExternalStore(t.subscribe,r,r)}function M(e,t,r,n=[]){let i=o.useRef(),a=m();return R((()=>{var o;let s=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),c=n.map((e=>e.trim()));a.value(e,s,c),null==(o=t.current)||o.setAttribute(f,s),i.current=s})),i}var F=()=>{let[e,t]=o.useState(),r=N((()=>new Map));return R((()=>{r.current.forEach((e=>e())),r.current=new Map}),[e]),(e,n)=>{r.current.set(e,n),t({})}};function j({asChild:e,children:t},r){return e&&o.isValidElement(t)?o.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},r(t.props.children)):r(t)}var B={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},39603:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.d(t,{A:()=>n})},14148:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}r.d(t,{m:()=>n})},16504:(e,t,r)=>{"use strict";r.d(t,{s:()=>o,t:()=>i});var n=r(14041);function i(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function o(...e){return(0,n.useCallback)(i(...e),e)}},87108:(e,t,r)=>{"use strict";r.d(t,{A:()=>
2o,q:()=>i});var n=r(14041);function i(e,t){const r=(0,n.createContext)(t);function i(e){const{children:t,...i}=e,o=(0,n.useMemo)((()=>i),Object.values(i));return(0,n.createElement)(r.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){const o=(0,n.useContext)(r);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let r=[];const i=()=>{const t=r.map((e=>(0,n.createContext)(e)));return function(r){const i=(null==r?void 0:r[e])||t;return(0,n.useMemo)((()=>({[`__scope${e}`]:{...r,[e]:i}})),[r,i])}};return i.scopeName=e,[function(t,i){const o=(0,n.createContext)(i),a=r.length;function s(t){const{scope:r,children:i,...s}=t,c=(null==r?void 0:r[e][a])||o,l=(0,n.useMemo)((()=>s),Object.values(s));return(0,n.createElement)(c.Provider,{value:l},i)}return r=[...r,i],s.displayName=t+"Provider",[s,function(r,s){const c=(null==s?void 0:s[e][a])||o,l=(0,n.useContext)(c);if(l)return l;if(void 0!==i)return i;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},a(i,...t)]}function a(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const i=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return(0,n.useMemo)((()=>({[`__scope${t.scopeName}`]:i})),[i])}};return r.scopeName=t.scopeName,r}},47953:(e,t,r)=>{"use strict";r.d(t,{UC:()=>H,ZL:()=>G,bL:()=>z,hJ:()=>W});var n=r(39603),i=r(14041),o=r(14148),a=r(16504),s=r(87108),c=r(14520),l=r(78520),u=r(10551),d=r(33490),f=r(49119),p=r(42460),h=r(38970),m=r(97160),y=r(52344),v=r(24788),g=r(39521);const b="Dialog",[E,w]=(0,s.A)(b),[S,A]=E(b),_=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,u=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,p]=(0,l.i)({prop:n,defaultProp:o,onChange:a});return(0,i.createElement)(S,{scope:t,triggerRef:u,contentRef:d,contentId:(0,c.B)(),titleId:(0,c.B)(),descriptionId:(0,c.B)(),open:f,onOpenChange:p,onOpenToggle:(0,i.useCallback)((()=>p((e=>!e))),[p]),modal:s},r)},x="DialogPortal",[P,I]=E(x,{forceMount:void 0}),k=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=A(x,t);return(0,i.createElement)(P,{scope:t,forceMount:r},i.Children.map(n,(e=>(0,i.createElement)(p.C,{present:r||a.open},(0,i.createElement)(f.Z,{asChild:!0,container:o},e)))))},O="DialogOverlay",T=(0,i.forwardRef)(((e,t)=>{const r=I(O,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,s=A(O,e.__scopeDialog);return s.modal?(0,i.createElement)(p.C,{present:o||s.open},(0,i.createElement)(C,(0,n.A)({},a,{ref:t}))):null})),C=(0,i.forwardRef)(((e,t)=>{const{__scopeDialog:r,...o}=e,a=A(O,r);return(0,i.createElement)(y.A,{as:g.DX,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(h.sG.div,(0,n.A)({"data-state":j(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))})),R="DialogContent",N=(0,i.forwardRef)(((e,t)=>{const r=I(R,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,s=A(R,e.__scopeDialog);return(0,i.createElement)(p.C,{present:o||s.open},s.modal?(0,i.createElement)(L,(0,n.A)({},a,{ref:t})):(0,i.createElement)(D,(0,n.A)({},a,{ref:t})))})),L=(0,i.forwardRef)(((e,t)=>{const r=A(R,e.__scopeDialog),s=(0,i.useRef)(null),c=(0,a.s)(t,r.contentRef,s);return(0,i.useEffect)((()=>{const e=s.current;
2if(e)return(0,v.Eq)(e)}),[]),(0,i.createElement)(M,(0,n.A)({},e,{ref:c,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()})),onFocusOutside:(0,o.m)(e.onFocusOutside,(e=>e.preventDefault()))}))})),D=(0,i.forwardRef)(((e,t)=>{const r=A(R,e.__scopeDialog),o=(0,i.useRef)(!1),a=(0,i.useRef)(!1);return(0,i.createElement)(M,(0,n.A)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,i;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(o.current||null===(i=r.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());o.current=!1,a.current=!1},onInteractOutside:t=>{var n,i;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null===(i=r.triggerRef.current)||void 0===i?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}}))})),M=(0,i.forwardRef)(((e,t)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,...l}=e,f=A(R,r),p=(0,i.useRef)(null),h=(0,a.s)(t,p);return(0,m.Oh)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:c},(0,i.createElement)(u.qW,(0,n.A)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":j(f.open)},l,{ref:h,onDismiss:()=>f.onOpenChange(!1)}))),!1)})),F="DialogTitle";function j(e){return e?"open":"closed"}const B="DialogTitleWarning",[V,U]=(0,s.q)(B,{contentName:R,titleName:F,docsSlug:"dialog"}),z=_,G=k,W=T,H=N},10551:(e,t,r)=>{"use strict";r.d(t,{qW:()=>m});var n=r(39603),i=r(14041),o=r(14148),a=r(38970),s=r(16504),c=r(44204),l=r(34574);const u="dismissableLayer.update",d="dismissableLayer.pointerDownOutside",f="dismissableLayer.focusOutside";let p;const h=(0,i.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=(0,i.forwardRef)(((e,t)=>{var r;const{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:g,onPointerDownOutside:b,onFocusOutside:E,onInteractOutside:w,onDismiss:S,...A}=e,_=(0,i.useContext)(h),[x,P]=(0,i.useState)(null),I=null!==(r=null==x?void 0:x.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,k]=(0,i.useState)({}),O=(0,s.s)(t,(e=>
2P(e))),T=Array.from(_.layers),[C]=[..._.layersWithOutsidePointerEventsDisabled].slice(-1),R=T.indexOf(C),N=x?T.indexOf(x):-1,L=_.layersWithOutsidePointerEventsDisabled.size>0,D=N>=R,M=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=(0,c.c)(e),n=(0,i.useRef)(!1),o=(0,i.useRef)((()=>{}));return(0,i.useEffect)((()=>{const e=e=>{if(e.target&&!n.current){const i={originalEvent:e};function a(){v(d,r,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[..._.branches].some((e=>e.contains(t)));D&&!r&&(null==b||b(e),null==w||w(e),e.defaultPrevented||null==S||S())}),I),F=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=(0,c.c)(e),n=(0,i.useRef)(!1);return(0,i.useEffect)((()=>{const e=e=>{if(e.target&&!n.current){v(f,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[..._.branches].some((e=>e.contains(t)))||(null==E||E(e),null==w||w(e),e.defaultPrevented||null==S||S())}),I);return(0,l.U)((e=>{N===_.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&S&&(e.preventDefault(),S()))}),I),(0,i.useEffect)((()=>{if(x)return m&&(0===_.layersWithOutsidePointerEventsDisabled.size&&(p=I.body.style.pointerEvents,I.body.style.pointerEvents="none"),_.layersWithOutsidePointerEventsDisabled.add(x)),_.layers.add(x),y(),()=>{m&&1===_.layersWithOutsidePointerEventsDisabled.size&&(I.body.style.pointerEvents=p)}}),[x,I,m,_]),(0,i.useEffect)((()=>()=>{x&&(_.layers.delete(x),_.layersWithOutsidePointerEventsDisabled.delete(x),y())}),[x,_]),(0,i.useEffect)((()=>{const e=()=>k({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)}),[]),(0,i.createElement)(a.sG.div,(0,n.A)({},A,{ref:O,style:{pointerEvents:L?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,F.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,M.onPointerDownCapture)}))}));function y(){const e=new CustomEvent(u);document.dispatchEvent(e)}function v(e,t,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,a.hO)(i,o):i.dispatchEvent(o)}},97160:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>o});var n=r(14041);let i=0;function o(){(0,n.useEffect)((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),i--}}),[])}function a(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},33490:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});var n=r(39603),i=r(14041),o=r(16504),a=r(38970),s=r(44204);const c="focusScope.autoFocusOnMount",l="focusScope.autoFocusOnUnmount",u={bubbles:!1,cancelable:!0},d=(0,i.forwardRef)(((e,t)=>{const{loop:r=!1,trapped:d=!1,onMountAutoFocus:h,onUnmountAutoFocus:v,...g}=e,[b,E]=(0,i.useState)(null),w=(0,s.c)(h),S=(0,s.c)(v),A=(0,i.useRef)(null),_=(0,o.s)(t,(e=>E(e))),x=(0,i.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,i.useEffect)((()=>{if(d){function e(e){if(x.paused||!b)return;const t=e.target;b.contains(t)?A.current=t:m(A.current,{select:!0})}function t(e){if(x.paused||!b)return;const t=e.relatedTarget;null!==t&&(b.contains(t)||m(A.current,{select:!0}))}function r(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&m(b)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[d,b,x.paused]),(0,i.useEffect)((()=>
2{if(b){y.add(x);const t=document.activeElement;if(!b.contains(t)){const r=new CustomEvent(c,u);b.addEventListener(c,w),b.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(m(n,{select:t}),document.activeElement!==r)return}((e=f(b),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&m(b))}return()=>{b.removeEventListener(c,w),setTimeout((()=>{const e=new CustomEvent(l,u);b.addEventListener(l,S),b.dispatchEvent(e),e.defaultPrevented||m(null!=t?t:document.body,{select:!0}),b.removeEventListener(l,S),y.remove(x)}),0)}}var e}),[b,w,S,x]);const P=(0,i.useCallback)((e=>{if(!r&&!d)return;if(x.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[i,o]=function(e){const t=f(e),r=p(t,e),n=p(t.reverse(),e);return[r,n]}(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&m(o,{select:!0})):(e.preventDefault(),r&&m(i,{select:!0})):n===t&&e.preventDefault()}}),[r,d,x.paused]);return(0,i.createElement)(a.sG.div,(0,n.A)({tabIndex:-1},g,{ref:_,onKeyDown:P}))}));function f(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function p(e,t){for(const r of e)if(!h(r,{upTo:t}))return r}function h(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function m(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const y=function(){let e=[];return{add(t){const r=e[0];t!==r&&(null==r||r.pause()),e=v(e,t),e.unshift(t)},remove(t){var r;e=v(e,t),null===(r=e[0])||void 0===r||r.resume()}}}();function v(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}},14520:(e,t,r)=>{"use strict";var n;r.d(t,{B:()=>c});var i=r(14041),o=r(7469);const a=(n||(n=r.t(i,2)))["useId".toString()]||(()=>{});let s=0;function c(e){const[t,r]=i.useState(a());return(0,o.N)((()=>{e||r((e=>null!=e?e:String(s++)))}),[e]),e||(t?`radix-${t}`:"")}},49119:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(39603),i=r(14041),o=r(43144),a=r(38970);const s=(0,i.forwardRef)(((e,t)=>{var r;const{container:s=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...c}=e;return s?o.createPortal((0,i.createElement)(a.sG.div,(0,n.A)({},c,{ref:t})),s):null}))},42460:(e,t,r)=>{"use strict";r.d(t,{C:()=>s});var n=r(14041),i=r(43144),o=r(16504),a=r(7469);const s=e=>{const{present:t,children:r}=e,s=function(e){const[t,r]=(0,n.useState)(),o=(0,n.useRef)({}),s=(0,n.useRef)(e),l=(0,n.useRef)("none"),u=e?"mounted":"unmounted",[d,f]=function(e,t){return(0,n.useReducer)(((e,r)=>{const n=t[e][r];return null!=n?n:e}),e)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,n.useEffect)((()=>{const e=c(o.current);l.current="mounted"===d?e:"none"}),[d]),(0,a.N)((()=>{const t=o.current,r=s.current;if(r!==e){const n=l.current,i=c(t);if(e)f("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))f("UNMOUNT");else{f(r&&n!==i?"ANIMATION_OUT":"UNMOUNT")}s.current=e}}),[e,f]),(0,a.N)((()=>{if(t){const e=e=>{const r=c(o.current).includes(e.animationName);e.target===t&&r&&(0,i.flushSync)((()=>f("ANIMATION_END")))},r=e=>{e.target===t&&(l.current=c(o.current))};return t.addEventListener("animationstart",r),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",r),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}f("ANIMATION_END")}),[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:(0,n.useCallback)((e=>{e&&(o.current=getComputedStyle(e)),r(e)}),[])}}(t),l="function"==typeof r?r({present:s.isPresent}):n.Children.only(r),u=(0,o.s)(s.ref,l.ref);return"function"==typeof r||s.isPresent?(0,n.cloneElement)(l,{ref:u}):null};function c(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},38970:(e,t,r)=>{"use strict";r.d(t,{hO:()=>c,sG:()=>s});var n=r(39603),i=r(14041),o=r(43144),a=r(39521);const s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const r=(0,i.forwardRef)(((e,r)=>{const{asChild:o,...s}=e,c=o?a.DX:t;return(0,i.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,i.createElement)(c,(0,n.A)({},s,{ref:r}))}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function c(e,t){e&&(0,o.flushSync)((()=>
2e.dispatchEvent(t)))}},39521:(e,t,r)=>{"use strict";r.d(t,{DX:()=>a});var n=r(39603),i=r(14041),o=r(16504);const a=(0,i.forwardRef)(((e,t)=>{const{children:r,...o}=e,a=i.Children.toArray(r),c=a.find(l);if(c){const e=c.props.children,r=a.map((t=>t===c?i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null:t));return(0,i.createElement)(s,(0,n.A)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,r):null)}return(0,i.createElement)(s,(0,n.A)({},o,{ref:t}),r)}));a.displayName="Slot";const s=(0,i.forwardRef)(((e,t)=>{const{children:r,...n}=e;return(0,i.isValidElement)(r)?(0,i.cloneElement)(r,{...u(n,r.props),ref:t?(0,o.t)(t,r.ref):r.ref}):i.Children.count(r)>1?i.Children.only(null):null}));s.displayName="SlotClone";const c=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function l(e){return(0,i.isValidElement)(e)&&e.type===c}function u(e,t){const r={...t};for(const n in t){const i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}},44204:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(14041);function i(e){const t=(0,n.useRef)(e);return(0,n.useEffect)((()=>{t.current=e})),(0,n.useMemo)((()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)}),[])}},78520:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(14041),i=r(44204);function o({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[o,a]=function({defaultProp:e,onChange:t}){const r=(0,n.useState)(e),[o]=r,a=(0,n.useRef)(o),s=(0,i.c)(t);return(0,n.useEffect)((()=>{a.current!==o&&(s(o),a.current=o)}),[o,a,s]),r}({defaultProp:t,onChange:r}),s=void 0!==e,c=s?e:o,l=(0,i.c)(r);return[c,(0,n.useCallback)((t=>{if(s){const r="function"==typeof t?t(e):t;r!==e&&l(r)}else a(t)}),[s,e,a,l])]}},34574:(e,t,r)=>{"use strict";r.d(t,{U:()=>o});var n=r(14041),i=r(44204);function o(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=(0,i.c)(e);(0,n.useEffect)((()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[r,t])}},7469:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(14041);const i=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?n.useLayoutEffect:()=>{}},52344:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(34117),i=r(14041),o=r(5449),a=r(73860),s=i.forwardRef((function(e,t){return i.createElement(o.G,(0,n.Cl)({},e,{ref:t,sideCar:a.A}))}));s.classNames=o.G.classNames;const c=s},93421:(e,t,r)=>{"use strict";r.d(t,{DK:()=>y});var n=r(34117),i=r(14041),o=r(20472),a=r(75119),s=r(89082),c=r(66232),l=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},u=function(e){return[e.deltaX,e.deltaY]},d=function(e){return e&&"current"in e?e.current:e},f=function(e,t){return e[0]===t[0]&&e[1]===t[1]},p=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},h=0,m=[];function y(e){var t=i.useRef([]),r=i.useRef([0,0]),y=i.useRef(),v=i.useState(h++)[0],g=i.useState((function(){return(0,a.T0)()}))[0],b=i.useRef(e);i.useEffect((function(){b.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(v));var t=(0,n.fX)([e.lockRef.current],(e.shards||[]).map(d),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(v))})),function(){document.body.classList.remove("block-interactivity-".concat(v)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(v))}))}}}),[e.inert,e.lockRef.current,e.shards]);var E=i.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!b.current.allowPinchZoom;var n,i=l(e),o=r.current,a="deltaX"in e?e.deltaX:o[0]-i[0],s="deltaY"in e?e.deltaY:o[1]-i[1],u=e.target,d=Math.abs(a)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=(0,c.K)(d,u);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=(0,c.K)(d,u)),!f)return!1;if(!y.current&&"changedTouches"in e&&(a||s)&&(y.current=n),!n)return!0;var p=y.current||n;return(0,c.Q)(p,t,e,"h"===p?a:s,!0)}),[]),w=i.useCallback((function(e){var r=e;if(m.length&&m[m.length-1]===g){var n="deltaY"in r?u(r):l(r),i=t.current.filter((function(e){return e.name===r.type&&e.target===r.target&&f(e.delta,n)}))[0];if(i&&i.should)r.cancelable&&r.preventDefault();
2else if(!i){var o=(b.current.shards||[]).map(d).filter(Boolean).filter((function(e){return e.contains(r.target)}));(o.length>0?E(r,o[0]):!b.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),S=i.useCallback((function(e,r,n,i){var o={name:e,delta:r,target:n,should:i};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),A=i.useCallback((function(e){r.current=l(e),y.current=void 0}),[]),_=i.useCallback((function(t){S(t.type,u(t),t.target,E(t,e.lockRef.current))}),[]),x=i.useCallback((function(t){S(t.type,l(t),t.target,E(t,e.lockRef.current))}),[]);i.useEffect((function(){return m.push(g),e.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:x}),document.addEventListener("wheel",w,s.X),document.addEventListener("touchmove",w,s.X),document.addEventListener("touchstart",A,s.X),function(){m=m.filter((function(e){return e!==g})),document.removeEventListener("wheel",w,s.X),document.removeEventListener("touchmove",w,s.X),document.removeEventListener("touchstart",A,s.X)}}),[]);var P=e.removeScrollBar,I=e.inert;return i.createElement(i.Fragment,null,I?i.createElement(g,{styles:p(v)}):null,P?i.createElement(o.jp,{gapMode:"margin"}):null)}},5449:(e,t,r)=>{"use strict";r.d(t,{G:()=>l});var n=r(34117),i=r(14041),o=r(96141),a=r(49311),s=r(7920),c=function(){},l=i.forwardRef((function(e,t){var r=i.useRef(null),o=i.useState({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:c}),l=o[0],u=o[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,y=e.shards,v=e.sideCar,g=e.noIsolation,b=e.inert,E=e.allowPinchZoom,w=e.as,S=void 0===w?"div":w,A=(0,n.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=v,x=(0,a.S)([r,t]),P=(0,n.Cl)((0,n.Cl)({},A),l);return i.createElement(i.Fragment,null,m&&i.createElement(_,{sideCar:s.O,removeScrollBar:h,shards:y,noIsolation:g,inert:b,setCallbacks:u,allowPinchZoom:!!E,lockRef:r}),d?i.cloneElement(i.Children.only(f),(0,n.Cl)((0,n.Cl)({},P),{ref:x})):i.createElement(S,(0,n.Cl)({},P,{className:p,ref:x}),f))}));l.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},l.classNames={fullWidth:o.pN,zeroRight:o.Mi}},89082:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=!1;if("undefined"!=typeof window)try{var i=Object.defineProperty({},"passive",{get:function(){return n=!0,!0}});window.addEventListener("test",i,i),window.removeEventListener("test",i,i)}catch(e){n=!1}var o=!!n&&{passive:!1}},66232:(e,t,r)=>{"use strict";r.d(t,{K:()=>i,Q:()=>s});var n=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},i=function(e,t){var r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),o(e,r)){var n=a(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body);return!1},o=function(e,t){return"v"===e?function(e){return n(e,"overflowY")}(t):function(e){return n(e,"overflowX")}(t)},a=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},s=function(e,t,r,n,i){var s=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),c=s*n,l=r.target,u=t.contains(l),d=!1,f=c>0,p=0,h=0;do{var m=a(e,l),y=m[0],v=m[1]-m[2]-s*y;(y||v)&&o(e,l)&&(p+=v,h+=y),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(f&&(i&&0===p||!i&&c>p)||!f&&(i&&0===h||!i&&-c>h))&&(d=!0),d}},7920:(e,t,r)=>{"use strict";r.d(t,{O:()=>n});var n=(0,r(95778).f)()},73860:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1666),i=r(93421),o=r(7920);const a=(0,n.m)(o.O,i.DK)},29386:(e,t,r)=>{"use strict";var n=r(46357),i=r(40215),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},75292:(e,t,r)=>{"use strict";var n=r(56653),i=r(40215),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a constructor")}},12834:(e,t,r)=>{"use strict";var n=r(46357),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},75845:(e,t,r)=>{"use strict";var n=r(73683),i=r(42104),o=r(78449).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},97157:(e,t,r)=>{"use strict";var n=r(14775).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},42135:(e,t,r)=>{"use strict";var n=r(55161),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},50151:(e,t,r)=>{"use strict";var n=r(41634),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},61651:e=>{"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},42372:(e,t,r)=>{"use strict";var n=r(84543);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},48180:(e,t,r)=>{"use strict";var n,i,o,a=r(61651),s=r(95180),c=r(54523),l=r(46357),u=r(41634),d=r(85889),f=r(47611),p=r(40215),h=r(76587),m=r(9704),y=r(63642),v=r(55161),g=r(17763),b=r(27943),E=r(73683),w=r(76048),S=r(14317),A=S.enforce,_=S.get,x=c.Int8Array,P=x&&x.prototype,I=c.Uint8ClampedArray,k=I&&I.prototype,O=x&&g(x),T=P&&g(P),C=Object.prototype,R=c.TypeError,N=E("toStringTag"),L=w("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",M=a&&!!b&&"Opera"!==f(c.opera),F=!1,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8},V=function(e){var t=g(e);
vendor: 10,513 bytes, line 2
2if(u(t)){var r=_(t);return r&&d(r,D)?r[D]:V(t)}},U=function(e){if(!u(e))return!1;var t=f(e);return d(j,t)||d(B,t)};for(n in j)(o=(i=c[n])&&i.prototype)?A(o)[D]=i:M=!1;for(n in B)(o=(i=c[n])&&i.prototype)&&(A(o)[D]=i);if((!M||!l(O)||O===Function.prototype)&&(O=function(){throw new R("Incorrect invocation")},M))for(n in j)c[n]&&b(c[n],O);if((!M||!T||T===C)&&(T=O.prototype,M))for(n in j)c[n]&&b(c[n].prototype,T);if(M&&g(k)!==T&&b(k,T),s&&!d(T,N))for(n in F=!0,y(T,N,{configurable:!0,get:function(){return u(this)?this[L]:void 0}}),j)c[n]&&h(c[n],L,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:F&&L,aTypedArray:function(e){if(U(e))return e;throw new R("Target is not a typed array")},aTypedArrayConstructor:function(e){if(l(e)&&(!b||v(O,e)))return e;throw new R(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(s){if(r)for(var i in j){var o=c[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(r){try{o.prototype[e]=t}catch(e){}}}T[e]&&!r||m(T,e,r?t:M&&P[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(s){if(b){if(r)for(n in j)if((i=c[n])&&d(i,e))try{delete i[e]}catch(e){}if(O[e]&&!r)return;try{return m(O,e,r?t:M&&O[e]||t)}catch(e){}}for(n in j)!(i=c[n])||i[e]&&!r||m(i,e,t)}},getTypedArrayConstructor:V,isView:function(e){if(!u(e))return!1;var t=f(e);return"DataView"===t||d(j,t)||d(B,t)},isTypedArray:U,TypedArray:O,TypedArrayPrototype:T}},16330:(e,t,r)=>{"use strict";var n=r(54523),i=r(1008),o=r(95180),a=r(61651),s=r(50094),c=r(76587),l=r(63642),u=r(86519),d=r(84543),f=r(42135),p=r(44827),h=r(55966),m=r(60192),y=r(50721),v=r(15498),g=r(17763),b=r(27943),E=r(29712).f,w=r(34453),S=r(80231),A=r(6143),_=r(14317),x=s.PROPER,P=s.CONFIGURABLE,I="ArrayBuffer",k="DataView",O="prototype",T="Wrong index",C=_.getterFor(I),R=_.getterFor(k),N=_.set,L=n[I],D=L,M=D&&D[O],F=n[k],j=F&&F[O],B=Object.prototype,V=n.Array,U=n.RangeError,z=i(w),G=i([].reverse),W=v.pack,H=v.unpack,$=function(e){return[255&e]},Y=function(e){return[255&e,e>>8&255]},q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},K=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Q=function(e){return W(y(e),23,4)},X=function(e){return W(e,52,8)},Z=function(e,t,r){l(e[O],t,{configurable:!0,get:function(){return r(this)[t]}})},J=function(e,t,r,n){var i=R(e),o=m(r),a=!!n;if(o+t>i.byteLength)throw new U(T);var s=i.bytes,c=o+i.byteOffset,l=S(s,c,c+t);return a?l:G(l)},ee=function(e,t,r,n,i,o){var a=R(e),s=m(r),c=n(+i),l=!!o;if(s+t>a.byteLength)throw new U(T);for(var u=a.bytes,d=s+a.byteOffset,f=0;f<t;f++)u[d+f]=c[l?f:t-f-1]};if(a){var te=x&&L.name!==I;if(d((function(){L(1)}))&&d((function(){new L(-1)}))&&!d((function(){return new L,new L(1.5),new L(NaN),1!==L.length||te&&!P})))te&&P&&c(L,"name",I);else{(D=function(e){return f(this,M),new L(m(e))})[O]=M;for(var re,ne=E(L),ie=0;ne.length>ie;)(re=ne[ie++])in D||c(D,re,L[re]);M.constructor=D}b&&g(j)!==B&&b(j,B);var oe=new F(new D(2)),ae=i(j.setInt8);oe.setInt8(0,2147483648),oe.setInt8(1,2147483649),!oe.getInt8(0)&&oe.getInt8(1)||u(j,{setInt8:function(e,t){ae(this,e,t<<24>>24)},setUint8:function(e,t){ae(this,e,t<<24>>24)}},{unsafe:!0})}else M=(D=function(e){f(this,M);var t=m(e);N(this,{type:I,bytes:z(V(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)})[O],j=(F=function(e,t,r){f(this,j),f(e,M);var n=C(e),i=n.byteLength,a=p(t);if(a<0||a>i)throw new U("Wrong offset");if(a+(r=void 0===r?i-a:h(r))>i)throw new U("Wrong length");N(this,{type:k,buffer:e,byteLength:r,byteOffset:a,bytes:n.bytes}),o||(this.buffer=e,this.byteLength=r,this.byteOffset=a)})[O],o&&(Z(D,"byteLength",C),Z(F,"buffer",R),Z(F,"byteLength",R),Z(F,"byteOffset",R)),u(j,{getInt8:function(e){return J(this,1,e)[0]<<24>>24},getUint8:function(e){return J(this,1,e)[0]},getInt16:function(e){var t=J(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=J(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return K(J(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return K(J(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return H(J(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return H(J(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){ee(this,1,e,$,t)},setUint8:function(e,t){ee(this,1,e,$,t)},setInt16:function(e,t){ee(this,2,e,Y,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){ee(this,2,e,Y,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){ee(this,4,e,q,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){ee(this,4,e,q,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){ee(this,4,e,Q,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){ee(this,8,e,X,t,arguments.length>2&&arguments[2])}});A(D,I),A(F,k),e.exports={ArrayBuffer:D,DataView:F}},52485:(e,t,r)=>{"use strict";var n=r(70581),i=r(47418),o=r(65526),a=r(86142),s=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),c=o(r),l=i(e,c),u=i(t,c),d=arguments.length>2?arguments[2]:void 0,f=s((void 0===d?c:i(d,c))-u,c-l),p=1;for(u<l&&l<u+f&&(p=-1,u+=f-1,l+=f-1);f-- >0;)u in r?r[l]=r[u]:a(r,l),l+=p,u+=p;return r}},34453:(e,t,r)=>{"use strict";var n=r(70581),i=r(47418),o=r(65526);e.exports=function(e){for(var t=n(this),r=o(t),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),c=a>2?arguments[2]:void 0,l=void 0===c?r:i(c,r);l>s;)t[s++]=e;return t}},13371:(e,t,r)=>{"use strict";var n=r(32077).forEach,i=r(4486)("forEach");e.exports=i?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},18282:(e,t,r)=>{"use strict";var n=r(65526);e.exports=function(e,t){for(var r=0,i=n(t),o=new e(i);i>r;)o[r]=t[r++];return o}},47996:(e,t,r)=>{"use strict";var n=r(81232),i=r(92957),o=r(70581),a=r(43167),s=r(45745),c=r(56653),l=r(65526),u=r(69904),d=r(36417),f=r(30787),p=Array;e.exports=function(e){var t=o(e),r=c(this),h=arguments.length,m=h>1?arguments[1]:void 0,y=void 0!==m;y&&(m=n(m,h>2?arguments[2]:void 0));var v,g,b,E,w,S,A=f(t),_=0;if(!A||this===p&&s(A))for(v=l(t),g=r?new this(v):p(v);v>_;_++)S=y?m(t[_],_):t[_],u(g,_,S);else for(w=(E=d(t,A)).next,g=r?new this:[];!(b=i(w,E)).done;_++)S=y?a(E,m,[b.value,_],!0):b.value,u(g,_,S);return g.length=_,g}},42753:(e,t,r)=>{"use strict";var n=r(20853),i=r(47418),o=r(65526),a=function(e){return function(t,r,a){var s,c=n(t),l=o(c),u=i(a,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},9983:(e,t,r)=>{"use strict";var n=r(81232),i=r(70191),o=r(70581),a=r(65526),s=function(e){var t=1===e;return function(r,s,c){for(var l,u=o(r),d=i(u),f=n(s,c),p=a(d);p-- >0;)if(f(l=d[p],p,u))switch(e){case 0:return l;case 1:return p}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},32077:(e,t,r)=>{"use strict";var n=r(81232),i=r(1008),o=r(70191),a=r(70581),s=r(65526),c=r(40797),l=i([].push),u=function(e){var t=1===e,r=2===e,i=3===e,u=4===e,d=6===e,f=7===e,p=5===e||d;return function(h,m,y,v){for(var g,b,E=a(h),w=o(E),S=n(m,y),A=s(w),_=0,x=v||c,P=t?x(h,A):r||f?x(h,0):void 0;A>_;_++)if((p||_ in w)&&(b=S(g=w[_],_,E),e))if(t)P[_]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return _;case 2:l(P,g)}else switch(e){case 4:return!1;case 7:l(P,g)}return d?-1:i||u?u:P}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},4667:(e,t,r)=>{"use strict";var n=r(41881),i=r(20853),o=r(44827),a=r(65526),s=r(4486),c=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),f=u||!d;e.exports=f?function(e){if(u)return n(l,this,arguments)||0;var t=i(this),r=a(t),s=r-1;for(arguments.length>1&&(s=c(s,o(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},17445:(e,t,r)=>{"use strict";var n=r(84543),i=r(73683),o=r(72844),a=i("species");e.exports=function(e){return o>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},4486:(e,t,r)=>{"use strict";var n=r(84543);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},47262:(e,t,r)=>{"use strict";var n=r(29386),i=r(70581),o=r(70191),a=r(65526),s=TypeError,c=function(e){return function(t,r,c,l){n(r);var u=i(t),d=o(u),f=a(u),p=e?f-1:0,h=e?-1:1;if(c<2)for(;;){if(p in d){l=d[p],p+=h;break}if(p+=h,e?p<0:f<=p)throw new s("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=h)p in d&&(l=r(l,d[p],p,u));return l}};e.exports={left:c(!1),right:c(!0)}},81119:(e,t,r)=>{"use strict";var n=r(95180),i=r(36872),o=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},80231:(e,t,r)=>{"use strict";var n=r(47418),i=r(65526),o=r(69904),a=Array,s=Math.max;e.exports=function(e,t,r){for(var c=i(e),l=n(t,c),u=n(void 0===r?c:r,c),d=a(s(u-l,0)),f=0;l<u;l++,f++)o(d,f,e[l]);return d.length=f,d}},19136:(e,t,r)=>{"use strict";var n=r(1008);e.exports=n([].slice)},24568:(e,t,r)=>{"use strict";var n=r(80231),i=Math.floor,o=function(e,t){var r=e.length,c=i(r/2);return r<8?a(e,t):s(e,o(n(e,0,c),t),o(n(e,c),t),t)},a=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},s=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e};e.exports=o},69929:(e,t,r)=>{"use strict";var n=r(36872),i=r(56653),o=r(41634),a=r(73683)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(i(t)&&(t===s||n(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},40797:(e,t,r)=>{"use strict";var n=r(69929);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},33084:(e,t,r)=>{"use strict";var n=r(65526);e.exports=function(e,t){for(var r=n(e),i=new t(r),o=0;o<r;o++)i[o]=e[r-o-1];return i}},90008:(e,t,r)=>{"use strict";var n=r(65526),i=r(44827),o=RangeError;e.exports=function(e,t,r,a){var s=n(e),c=i(r),l=c<0?s+c:c;if(l>=s||l<0)throw new o("Incorrect index");for(var u=new t(s),d=0;d<s;d++)u[d]=d===l?a:e[d];return u}},42884:e=>{"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/=",r={},n=0;n<66;n++)r[t.charAt(n)]=n;e.exports={itoc:t,ctoi:r}},43167:(e,t,r)=>{"use strict";var n=r(50151),i=r(32675);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},10668:(e,t,r)=>{"use strict";var n=r(73683)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r}},96032:(e,t,r)=>{"use strict";var n=r(1008),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},47611:(e,t,r)=>{"use strict";var n=r(13644),i=r(46357),o=r(96032),a=r(73683)("toStringTag"),s=Object,c="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:c?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},82394:(e,t,r)=>{"use strict";var n=r(42104),i=r(63642),o=r(86519),a=r(81232),s=r(42135),c=r(3445),l=r(83308),u=r(23952),d=r(45025),f=r(39089),p=r(95180),h=r(98907).fastKey,m=r(14317),y=m.set,v=m.getterFor;e.exports={getConstructor:function(e,t,r,u){var d=e((function(e,i){s(e,f),y(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),p||(e.size=0),c(i)||l(i,e[u],{that:e,AS_ENTRIES:r})})),f=d.prototype,m=v(t),g=function(e,t,r){var n,i,o=m(e),a=b(e,t);return a?a.value=r:(o.last=a={index:i=h(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),p?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},b=function(e,t){var r,n=m(e),i=h(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key===t)return r};return o(f,{clear:function(){for(var e=m(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=this,r=m(t),n=b(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first===n&&(r.first=i),r.last===n&&(r.last=o),p?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=m(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),o(f,r?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),p&&i(f,"size",{configurable:!0,get:function(){return m(this).size}}),d},setStrong:function(e,t,r){var n=t+" Iterator",i=v(t),o=v(n);u(e,t,(function(e,t){y(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?d("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,d(void 0,!0))}),r?"entries":"values",!r,!0),f(t)}}},48137:(e,t,r)=>{"use strict";var n=r(1008),i=r(86519),o=r(98907).getWeakData,a=r(42135),s=r(50151),c=r(3445),l=r(41634),u=r(83308),d=r(32077),f=r(85889),p=r(14317),h=p.set,m=p.getterFor,y=d.find,v=d.findIndex,g=n([].splice),b=0,E=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},S=function(e,t){return y(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=S(this,e);if(t)return t[1]},has:function(e){return!!S(this,e)},set:function(e,t){var r=S(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&g(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,r,n){var d=e((function(e,i){a(e,p),h(e,{type:t,id:b++,frozen:void 0}),c(i)||u(i,e[n],{that:e,AS_ENTRIES:r})})),p=d.prototype,y=m(t),v=function(e,t,r){var n=y(e),i=o(s(t),!0);return!0===i?E(n).set(t,r):i[n.id]=r,e};return i(p,{delete:function(e){var t=y(this);if(!l(e))return!1;var r=o(e);return!0===r?E(t).delete(e):r&&f(r,t.id)&&delete r[t.id]},has:function(e){var t=y(this);if(!l(e))return!1;var r=o(e);return!0===r?E(t).has(e):r&&f(r,t.id)}}),i(p,r?{get:function(e){var t=y(this);if(l(e)){var r=o(e);return!0===r?E(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),d}}},50196:(e,t,r)=>{"use strict";
vendor: 4,446 bytes, line 2
2var n=r(76566),i=r(54523),o=r(1008),a=r(14396),s=r(9704),c=r(98907),l=r(83308),u=r(42135),d=r(46357),f=r(3445),p=r(41634),h=r(84543),m=r(10668),y=r(6143),v=r(3103);e.exports=function(e,t,r){var g=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),E=g?"set":"add",w=i[e],S=w&&w.prototype,A=w,_={},x=function(e){var t=o(S[e]);s(S,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!d(w)||!(b||S.forEach&&!h((function(){(new w).entries().next()})))))A=r.getConstructor(t,e,g,E),c.enable();else if(a(e,!0)){var P=new A,I=P[E](b?{}:-0,1)!==P,k=h((function(){P.has(1)})),O=m((function(e){new w(e)})),T=!b&&h((function(){for(var e=new w,t=5;t--;)e[E](t,t);return!e.has(-0)}));O||((A=t((function(e,t){u(e,S);var r=v(new w,e,A);return f(t)||l(t,r[E],{that:r,AS_ENTRIES:g}),r}))).prototype=S,S.constructor=A),(k||T)&&(x("delete"),x("has"),g&&x("get")),(T||I)&&x(E),b&&S.clear&&delete S.clear}return _[e]=A,n({global:!0,constructor:!0,forced:A!==w},_),y(A,e),b||r.setStrong(A,e,g),A}},20812:(e,t,r)=>{"use strict";var n=r(85889),i=r(37527),o=r(89763),a=r(78449);e.exports=function(e,t,r){for(var s=i(t),c=a.f,l=o.f,u=0;u<s.length;u++){var d=s[u];n(e,d)||r&&n(r,d)||c(e,d,l(t,d))}}},16412:(e,t,r)=>{"use strict";var n=r(73683)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},30099:(e,t,r)=>{"use strict";var n=r(84543);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},28696:(e,t,r)=>{"use strict";var n=r(1008),i=r(69286),o=r(22255),a=/"/g,s=n("".replace);e.exports=function(e,t,r,n){var c=o(i(e)),l="<"+t;return""!==r&&(l+=" "+r+'="'+s(o(n),a,""")+'"'),l+">"+c+"</"+t+">"}},45025:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},76587:(e,t,r)=>{"use strict";var n=r(95180),i=r(78449),o=r(6372);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},6372:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},69904:(e,t,r)=>{"use strict";var n=r(29833),i=r(78449),o=r(6372);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},49096:(e,t,r)=>{"use strict";var n=r(50151),i=r(5774),o=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new o("Incorrect hint");return i(this,e)}},63642:(e,t,r)=>{"use strict";var n=r(90027),i=r(78449);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},9704:(e,t,r)=>{"use strict";var n=r(46357),i=r(78449),o=r(90027),a=r(92969);e.exports=function(e,t,r,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:t;if(n(r)&&o(r,l,s),s.global)c?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},86519:(e,t,r)=>{"use strict";var n=r(9704);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},92969:(e,t,r)=>{"use strict";var n=r(54523),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},86142:(e,t,r)=>{"use strict";var n=r(40215),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+n(t)+" of "+n(e))}},95180:(e,t,r)=>{"use strict";var n=r(84543);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},82155:e=>{"use strict";var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},62679:(e,t,r)=>{"use strict";var n=r(54523),i=r(41634),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},97029:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},29978:e=>{"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1}
vendor: 2,299 bytes, line 2
2,NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},90792:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},80832:(e,t,r)=>{"use strict";var n=r(62679)("span").classList,i=n&&n.constructor&&n.constructor.prototype;e.exports=i===Object.prototype?void 0:i},24290:(e,t,r)=>{"use strict";var n=r(74848).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},82746:(e,t,r)=>{"use strict";var n=r(73652),i=r(42224);e.exports=!n&&!i&&"object"==typeof window&&"object"==typeof document},46507:e=>{"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},73652:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},2530:(e,t,r)=>{"use strict";var n=r(74848);e.exports=/MSIE|Trident/.test(n)},59356:(e,t,r)=>{"use strict";var n=r(74848);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},87863:(e,t,r)=>{"use strict";var n=r(74848);
vendor: 5,528 bytes, line 2
2e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},42224:(e,t,r)=>{"use strict";var n=r(54523),i=r(96032);e.exports="process"===i(n.process)},6653:(e,t,r)=>{"use strict";var n=r(74848);e.exports=/web0s(?!.*chrome)/i.test(n)},74848:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},72844:(e,t,r)=>{"use strict";var n,i,o=r(54523),a=r(74848),s=o.process,c=o.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},10664:(e,t,r)=>{"use strict";var n=r(74848).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},28471:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},11649:(e,t,r)=>{"use strict";var n=r(1008),i=Error,o=n("".replace),a=String(new i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=o(e,s,"");return e}},60683:(e,t,r)=>{"use strict";var n=r(76587),i=r(11649),o=r(99635),a=Error.captureStackTrace;e.exports=function(e,t,r,s){o&&(a?a(e,t):n(e,"stack",i(r,s)))}},99635:(e,t,r)=>{"use strict";var n=r(84543),i=r(6372);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},50400:(e,t,r)=>{"use strict";var n=r(95180),i=r(84543),o=r(50151),a=r(42104),s=r(98747),c=Error.prototype.toString,l=i((function(){if(n){var e=a(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==c.call(e))return!0}return"2: 1"!==c.call({message:1,name:2})||"Error"!==c.call({})}));e.exports=l?function(){var e=o(this),t=s(e.name,"Error"),r=s(e.message);return t?r?t+": "+r:t:r}:c},76566:(e,t,r)=>{"use strict";var n=r(54523),i=r(89763).f,o=r(76587),a=r(9704),s=r(92969),c=r(20812),l=r(14396);e.exports=function(e,t){var r,u,d,f,p,h=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[h]||s(h,{}):(n[h]||{}).prototype)for(u in t){if(f=t[u],d=e.dontCallGetSet?(p=i(r,u))&&p.value:r[u],!l(m?u:h+(y?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(r,u,f,e)}}},84543:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1644:(e,t,r)=>{"use strict";r(93831);var n=r(11316),i=r(9704),o=r(8779),a=r(84543),s=r(73683),c=r(76587),l=s("species"),u=RegExp.prototype;e.exports=function(e,t,r,d){var f=s(e),p=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),h=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[l]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return t=!0,null},r[f](""),!t}));if(!p||!h||r){var m=n(/./[f]),y=t(f,""[e],(function(e,t,r,i,a){var s=n(e),c=t.exec;return c===o||c===u.exec?p&&!a?{done:!0,value:m(t,r,i)}:{done:!0,value:s(r,t,i)}:{done:!1}}));i(String.prototype,e,y[0]),i(u,f,y[1])}d&&c(u[f],"sham",!0)}},95240:(e,t,r)=>{"use strict";var n=r(84543);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},41881:(e,t,r)=>{"use strict";var n=r(79944),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},81232:(e,t,r)=>{"use strict";var n=r(11316),i=r(29386),o=r(79944),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},79944:(e,t,r)=>{"use strict";var n=r(84543);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},53958:(e,t,r)=>{"use strict";var n=r(1008),i=r(29386),o=r(41634),a=r(85889),s=r(19136),c=r(79944),l=Function,u=n([].concat),d=n([].join),f={};e.exports=c?l.bind:function(e){var t=i(this),r=t.prototype,n=s(arguments,1),c=function(){var r=u(n,s(arguments));return this instanceof c?function(e,t,r){if(!a(f,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";f[t]=l("C,a","return new C("+d(n,",")+")")}return f[t](e,r)}(t,r.length,r):t.apply(e,r)};return o(r)&&(c.prototype=r),c}},92957:(e,t,r)=>{"use strict";var n=r(79944),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},50094:(e,t,r)=>{"use strict";var n=r(95180),i=r(85889),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,l=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},72946:(e,t,r)=>{"use strict";var n=r(1008),i=r(29386);e.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},11316:(e,t,r)=>{"use strict";var n=r(96032),i=r(1008);e.exports=function(e){if("Function"===n(e))return i(e)}},1008:(e,t,r)=>{"use strict";var n=r(79944),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},47735:(e,t,r)=>{"use strict";var n=r(54523),i=r(46357);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},30787:(e,t,r)=>{"use strict";var n=r(47611),i=r(6046),o=r(3445),a=r(47869),s=r(73683)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[n(e)]}},36417:(e,t,r)=>{"use strict";var n=r(92957),i=r(29386),o=r(50151),a=r(40215),s=r(30787),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(i(r))return o(n(r,e));throw new c(a(e)+" is not iterable")}},49973:(e,t,r)=>{"use strict";
vendor: 4,135 bytes, line 2
2var n=r(1008),i=r(36872),o=r(46357),a=r(96032),s=r(22255),c=n([].push);e.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,r=[],n=0;n<t;n++){var l=e[n];"string"==typeof l?c(r,l):"number"!=typeof l&&"Number"!==a(l)&&"String"!==a(l)||c(r,s(l))}var u=r.length,d=!0;return function(e,t){if(d)return d=!1,t;if(i(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},6046:(e,t,r)=>{"use strict";var n=r(29386),i=r(3445);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},49070:(e,t,r)=>{"use strict";var n=r(1008),i=r(70581),o=Math.floor,a=n("".charAt),s=n("".replace),c=n("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,d,f){var p=r+e.length,h=n.length,m=u;return void 0!==d&&(d=i(d),m=l),s(f,m,(function(i,s){var l;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,r);case"'":return c(t,p);case"<":l=d[c(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>h){var f=o(u/10);return 0===f?i:f<=h?void 0===n[f-1]?a(s,1):n[f-1]+a(s,1):i}l=n[u-1]}return void 0===l?"":l}))}},54523:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},85889:(e,t,r)=>{"use strict";var n=r(1008),i=r(70581),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},65525:e=>{"use strict";e.exports={}},43781:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},22093:(e,t,r)=>{"use strict";var n=r(47735);e.exports=n("document","documentElement")},59053:(e,t,r)=>{"use strict";var n=r(95180),i=r(84543),o=r(62679);e.exports=!n&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},15498:e=>{"use strict";var t=Array,r=Math.abs,n=Math.pow,i=Math.floor,o=Math.log,a=Math.LN2;e.exports={pack:function(e,s,c){var l,u,d,f=t(c),p=8*c-s-1,h=(1<<p)-1,m=h>>1,y=23===s?n(2,-24)-n(2,-77):0,v=e<0||0===e&&1/e<0?1:0,g=0;for((e=r(e))!=e||e===1/0?(u=e!=e?1:0,l=h):(l=i(o(e)/a),e*(d=n(2,-l))<1&&(l--,d*=2),(e+=l+m>=1?y/d:y*n(2,1-m))*d>=2&&(l++,d/=2),l+m>=h?(u=0,l=h):l+m>=1?(u=(e*d-1)*n(2,s),l+=m):(u=e*n(2,m-1)*n(2,s),l=0));s>=8;)f[g++]=255&u,u/=256,s-=8;for(l=l<<s|u,p+=s;p>0;)f[g++]=255&l,l/=256,p-=8;return f[--g]|=128*v,f},unpack:function(e,t){var r,i=e.length,o=8*i-t-1,a=(1<<o)-1,s=a>>1,c=o-7,l=i-1,u=e[l--],d=127&u;for(u>>=7;c>0;)d=256*d+e[l--],c-=8;for(r=d&(1<<-c)-1,d>>=-c,c+=t;c>0;)r=256*r+e[l--],c-=8;if(0===d)d=1-s;else{if(d===a)return r?NaN:u?-1/0:1/0;r+=n(2,t),d-=s}return(u?-1:1)*r*n(2,d-t)}}},70191:(e,t,r)=>{"use strict";var n=r(1008),i=r(84543),o=r(96032),a=Object,s=n("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},3103:(e,t,r)=>{"use strict";var n=r(46357),i=r(41634),o=r(27943);e.exports=function(e,t,r){var a,s;return o&&n(a=t.constructor)&&a!==r&&i(s=a.prototype)&&s!==r.prototype&&o(e,s),e}},56842:(e,t,r)=>{"use strict";var n=r(1008),i=r(46357),o=r(43965),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},57520:(e,t,r)=>{"use strict";var n=r(41634),i=r(76587);e.exports=function(e,t){n(t)&&"cause"in t&&i(e,"cause",t.cause)}},98907:(e,t,r)=>{"use strict";var n=r(76566),i=r(1008),o=r(65525),a=r(41634),s=r(85889),c=r(78449).f,l=r(29712),u=r(23834),d=r(73452),f=r(76048),p=r(95240),h=!1,m=f("meta"),y=0,v=function(e){c(e,m,{value:{objectID:"O"+y++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},h=!0;var e=l.f,t=i([].splice),r={};r[m]=1,e(r).length&&(l.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===m){t(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";v(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!d(e))return!0;
vendor: 5,247 bytes, line 2
2if(!t)return!1;v(e)}return e[m].weakData},onFreeze:function(e){return p&&h&&d(e)&&!s(e,m)&&v(e),e}};o[m]=!0},14317:(e,t,r)=>{"use strict";var n,i,o,a=r(60158),s=r(54523),c=r(41634),l=r(76587),u=r(85889),d=r(43965),f=r(99847),p=r(65525),h="Object already initialized",m=s.TypeError,y=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new m(h);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var g=f("state");p[g]=!0,n=function(e,t){if(u(e,g))throw new m(h);return t.facade=e,l(e,g,t),t},i=function(e){return u(e,g)?e[g]:{}},o=function(e){return u(e,g)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},45745:(e,t,r)=>{"use strict";var n=r(73683),i=r(47869),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},36872:(e,t,r)=>{"use strict";var n=r(96032);e.exports=Array.isArray||function(e){return"Array"===n(e)}},65319:(e,t,r)=>{"use strict";var n=r(47611);e.exports=function(e){var t=n(e);return"BigInt64Array"===t||"BigUint64Array"===t}},46357:(e,t,r)=>{"use strict";var n=r(82155),i=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},56653:(e,t,r)=>{"use strict";var n=r(1008),i=r(84543),o=r(46357),a=r(47611),s=r(47735),c=r(56842),l=function(){},u=[],d=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=n(f.exec),h=!f.test(l),m=function(e){if(!o(e))return!1;try{return d(l,u,e),!0}catch(e){return!1}},y=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(f,c(e))}catch(e){return!0}};y.sham=!0,e.exports=!d||i((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?y:m},14396:(e,t,r)=>{"use strict";var n=r(84543),i=r(46357),o=/#|\.prototype\./,a=function(e,t){var r=c[s(e)];return r===u||r!==l&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},71463:(e,t,r)=>{"use strict";var n=r(41634),i=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&i(e)===e}},3445:e=>{"use strict";e.exports=function(e){return null==e}},41634:(e,t,r)=>{"use strict";var n=r(46357),i=r(82155),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===o}:function(e){return"object"==typeof e?null!==e:n(e)}},7051:e=>{"use strict";e.exports=!1},82388:(e,t,r)=>{"use strict";var n=r(41634),i=r(96032),o=r(73683)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},32357:(e,t,r)=>{"use strict";var n=r(47735),i=r(46357),o=r(55161),a=r(2496),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,s(e))}},83308:(e,t,r)=>{"use strict";var n=r(81232),i=r(92957),o=r(50151),a=r(40215),s=r(45745),c=r(65526),l=r(55161),u=r(36417),d=r(30787),f=r(32675),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,r){var y,v,g,b,E,w,S,A=r&&r.that,_=!(!r||!r.AS_ENTRIES),x=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),I=!(!r||!r.INTERRUPTED),k=n(t,A),O=function(e){return y&&f(y,"normal",e),new h(!0,e)},T=function(e){return _?(o(e),I?k(e[0],e[1],O):k(e[0],e[1])):I?k(e,O):k(e)};if(x)y=e.iterator;else if(P)y=e;else{if(!(v=d(e)))throw new p(a(e)+" is not iterable");if(s(v)){for(g=0,b=c(e);b>g;g++)if((E=T(e[g]))&&l(m,E))return E;return new h(!1)}y=u(e,v)}for(w=x?e.next:y.next;!(S=i(w,y)).done;){try{E=T(S.value)}catch(e){f(y,"throw",e)}if("object"==typeof E&&E&&l(m,E))return E}return new h(!1)}},32675:(e,t,r)=>{"use strict";var n=r(92957),i=r(50151),o=r(6046);e.exports=function(e,t,r){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return i(a),r}},60714:(e,t,r)=>{"use strict";var n=r(80793).IteratorPrototype,i=r(42104),o=r(6372),a=r(6143),s=r(47869),c=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=i(n,{next:o(+!l,r)}),a(e,u,!1,!0),s[u]=c,e}},23952:(e,t,r)=>{"use strict";var n=r(76566),i=r(92957),o=r(7051),a=r(50094),s=r(46357),c=r(60714),l=r(17763),u=r(27943),d=r(6143),f=r(76587),p=r(9704),h=r(73683),m=r(47869),y=r(80793),v=a.PROPER,g=a.CONFIGURABLE,b=y.IteratorPrototype,E=y.BUGGY_SAFARI_ITERATORS,w=h("iterator"),S="keys",A="values",_="entries",x=function(){return this};e.exports=function(e,t,r,a,h,y,P){c(r,t,a);var I,k,O,T=function(e){if(e===h&&D)return D;if(!E&&e&&e in N)return N[e];switch(e){case S:case A:case _:return function(){return new r(this,e)}}return function(){return new r(this)}},C=t+" Iterator",R=!1,N=e.prototype,L=N[w]||N["@@iterator"]||h&&N[h],D=!E&&L||T(h),M="Array"===t&&N.entries||L;if(M&&(I=l(M.call(new e)))!==Object.prototype&&I.next&&(o||l(I)===b||(u?u(I,b):s(I[w])||p(I,w,x)),d(I,C,!0,!0),o&&(m[C]=x)),v&&h===A&&L&&L.name!==A&&(!o&&g?f(N,"name",A):(R=!0,D=function(){return i(L,this)}
vendor: 4,165 bytes, line 2
2)),h)if(k={values:T(A),keys:y?D:T(S),entries:T(_)},P)for(O in k)(E||R||!(O in N))&&p(N,O,k[O]);else n({target:t,proto:!0,forced:E||R},k);return o&&!P||N[w]===D||p(N,w,D,{name:h}),m[t]=D,k}},80793:(e,t,r)=>{"use strict";var n,i,o,a=r(84543),s=r(46357),c=r(41634),l=r(42104),u=r(17763),d=r(9704),f=r(73683),p=r(7051),h=f("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(n=i):m=!0),!c(n)||a((function(){var e={};return n[h].call(e)!==e}))?n={}:p&&(n=l(n)),s(n[h])||d(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},47869:e=>{"use strict";e.exports={}},65526:(e,t,r)=>{"use strict";var n=r(55966);e.exports=function(e){return n(e.length)}},90027:(e,t,r)=>{"use strict";var n=r(1008),i=r(84543),o=r(46357),a=r(85889),s=r(95180),c=r(50094).CONFIGURABLE,l=r(56842),u=r(14317),d=u.enforce,f=u.get,p=String,h=Object.defineProperty,m=n("".slice),y=n("".replace),v=n([].join),g=s&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),E=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+y(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),g&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return a(n,"source")||(n.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=E((function(){return o(this)&&f(this).source||l(this)}),"toString")},79756:(e,t,r)=>{"use strict";var n=r(99382),i=Math.abs,o=2220446049250313e-31,a=1/o;e.exports=function(e,t,r,s){var c=+e,l=i(c),u=n(c);if(l<s)return u*function(e){return e+a-a}(l/s/t)*s*t;var d=(1+t/o)*l,f=d-(d-l);return f>r||f!=f?u*(1/0):u*f}},50721:(e,t,r)=>{"use strict";var n=r(79756);e.exports=Math.fround||function(e){return n(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},99382:e=>{"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},14469:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},13555:(e,t,r)=>{"use strict";var n,i,o,a,s,c=r(54523),l=r(81232),u=r(89763).f,d=r(60921).set,f=r(23769),p=r(87863),h=r(59356),m=r(6653),y=r(42224),v=c.MutationObserver||c.WebKitMutationObserver,g=c.document,b=c.process,E=c.Promise,w=u(c,"queueMicrotask"),S=w&&w.value;if(!S){var A=new f,_=function(){var e,t;for(y&&(e=b.domain)&&e.exit();t=A.get();)try{t()}catch(e){throw A.head&&n(),e}e&&e.enter()};p||y||m||!v||!g?!h&&E&&E.resolve?((a=E.resolve(void 0)).constructor=E,s=l(a.then,a),n=function(){s(_)}):y?n=function(){b.nextTick(_)}:(d=l(d,c),n=function(){d(_)}):(i=!0,o=g.createTextNode(""),new v(_).observe(o,{characterData:!0}),n=function(){o.data=i=!i}),S=function(e){A.head||n(),A.add(e)}}e.exports=S},89579:(e,t,r)=>{"use strict";var n=r(29386),i=TypeError,o=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new i("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new o(e)}},98747:(e,t,r)=>{"use strict";var n=r(22255);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},10495:(e,t,r)=>{"use strict";var n=r(82388),i=TypeError;e.exports=function(e){if(n(e))throw new i("The method doesn't accept regular expressions");return e}},96952:(e,t,r)=>{"use strict";var n=r(54523).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},3280:(e,t,r)=>{"use strict";var n=r(54523),i=r(84543),o=r(1008),a=r(22255),s=r(78906).trim,c=r(98908),l=o("".charAt),u=n.parseFloat,d=n.Symbol,f=d&&d.iterator,p=1/u(c+"-0")!=-1/0||f&&!i((function(){u(Object(f))}));e.exports=p?function(e){var t=s(a(e)),r=u(t);return 0===r&&"-"===l(t,0)?-0:r}:u},82943:(e,t,r)=>{"use strict";var n=r(54523),i=r(84543),o=r(1008),a=r(22255),s=r(78906).trim,c=r(98908),l=n.parseInt,u=n.Symbol,d=u&&u.iterator,f=/^[+-]?0x/i,p=o(f.exec),h=8!==l(c+"08")||22!==l(c+"0x16")||d&&!i((function(){l(Object(d))}
vendor: 10,093 bytes, line 2
2));e.exports=h?function(e,t){var r=s(a(e));return l(r,t>>>0||(p(f,r)?16:10))}:l},83957:(e,t,r)=>{"use strict";var n=r(95180),i=r(1008),o=r(92957),a=r(84543),s=r(22528),c=r(32981),l=r(40005),u=r(70581),d=r(70191),f=Object.assign,p=Object.defineProperty,h=i([].concat);e.exports=!f||a((function(){if(n&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach((function(e){t[e]=e})),7!==f({},e)[r]||s(f({},t)).join("")!==i}))?function(e,t){for(var r=u(e),i=arguments.length,a=1,f=c.f,p=l.f;i>a;)for(var m,y=d(arguments[a++]),v=f?h(s(y),f(y)):s(y),g=v.length,b=0;g>b;)m=v[b++],n&&!o(p,y,m)||(r[m]=y[m]);return r}:f},42104:(e,t,r)=>{"use strict";var n,i=r(50151),o=r(98337),a=r(28471),s=r(65525),c=r(22093),l=r(62679),u=r(99847),d="prototype",f="script",p=u("IE_PROTO"),h=function(){},m=function(e){return"<"+f+">"+e+"</"+f+">"},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;v="undefined"!=typeof document?document.domain&&n?y(n):(t=l("iframe"),r="java"+f+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):y(n);for(var i=a.length;i--;)delete v[d][a[i]];return v()};s[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h[d]=i(e),r=new h,h[d]=null,r[p]=e):r=v(),void 0===t?r:o.f(r,t)}},98337:(e,t,r)=>{"use strict";var n=r(95180),i=r(7310),o=r(78449),a=r(50151),s=r(20853),c=r(22528);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=c(t),l=i.length,u=0;l>u;)o.f(e,r=i[u++],n[r]);return e}},78449:(e,t,r)=>{"use strict";var n=r(95180),i=r(59053),o=r(7310),a=r(50151),s=r(29833),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=u(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:d in r?r[d]:n[d],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},89763:(e,t,r)=>{"use strict";var n=r(95180),i=r(92957),o=r(40005),a=r(6372),s=r(20853),c=r(29833),l=r(85889),u=r(59053),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch(e){}if(l(e,t))return a(!i(o.f,e,t),e[t])}},23834:(e,t,r)=>{"use strict";var n=r(96032),i=r(20853),o=r(29712).f,a=r(80231),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(i(e))}},29712:(e,t,r)=>{"use strict";var n=r(1156),i=r(28471).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},32981:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},17763:(e,t,r)=>{"use strict";var n=r(85889),i=r(46357),o=r(70581),a=r(99847),s=r(30099),c=a("IE_PROTO"),l=Object,u=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=o(e);if(n(t,c))return t[c];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},73452:(e,t,r)=>{"use strict";var n=r(84543),i=r(41634),o=r(96032),a=r(42372),s=Object.isExtensible,c=n((function(){s(1)}));e.exports=c||a?function(e){return!!i(e)&&((!a||"ArrayBuffer"!==o(e))&&(!s||s(e)))}:s},55161:(e,t,r)=>{"use strict";var n=r(1008);e.exports=n({}.isPrototypeOf)},1156:(e,t,r)=>{"use strict";var n=r(1008),i=r(85889),o=r(20853),a=r(42753).indexOf,s=r(65525),c=n([].push);e.exports=function(e,t){var r,n=o(e),l=0,u=[];for(r in n)!i(s,r)&&i(n,r)&&c(u,r);for(;t.length>l;)i(n,r=t[l++])&&(~a(u,r)||c(u,r));return u}},22528:(e,t,r)=>{"use strict";var n=r(1156),i=r(28471);e.exports=Object.keys||function(e){return n(e,i)}},40005:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},27943:(e,t,r)=>{"use strict";var n=r(72946),i=r(50151),o=r(12834);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),t?e(r,n):r.__proto__=n,r}}():void 0)},5221:(e,t,r)=>{"use strict";var n=r(95180),i=r(84543),o=r(1008),a=r(17763),s=r(22528),c=r(20853),l=o(r(40005).f),u=o([].push),d=n&&i((function(){var e=Object.create(null);return e[2]=2,!l(e,2)})),f=function(e){return function(t){for(var r,i=c(t),o=s(i),f=d&&null===a(i),p=o.length,h=0,m=[];p>h;)r=o[h++],n&&!(f?r in i:l(i,r))||u(m,e?[r,i[r]]:i[r]);return m}};e.exports={entries:f(!0),values:f(!1)}},83419:(e,t,r)=>{"use strict";var n=r(13644),i=r(47611);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},5774:(e,t,r)=>{"use strict";var n=r(92957),i=r(46357),o=r(41634),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!o(s=n(r,e)))return s;if(i(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&i(r=e.toString)&&!o(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},37527:(e,t,r)=>{"use strict";var n=r(47735),i=r(1008),o=r(29712),a=r(32981),s=r(50151),c=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?c(t,r(e)):t}},20863:(e,t,r)=>{"use strict";var n=r(54523);e.exports=n},28111:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},2148:(e,t,r)=>{"use strict";var n=r(54523),i=r(79942),o=r(46357),a=r(14396),s=r(56842),c=r(73683),l=r(82746),u=r(73652),d=r(7051),f=r(72844),p=i&&i.prototype,h=c("species"),m=!1,y=o(n.PromiseRejectionEvent),v=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===f)return!0;if(d&&(!p.catch||!p.finally))return!0;if(!f||f<51||!/native code/.test(e)){var r=new i((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(m=r.then((function(){}))instanceof n))return!0}return!t&&(l||u)&&!y}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:y,SUBCLASSING:m}},79942:(e,t,r)=>{"use strict";var n=r(54523);e.exports=n.Promise},66302:(e,t,r)=>{"use strict";var n=r(50151),i=r(41634),o=r(89579);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},64617:(e,t,r)=>{"use strict";var n=r(79942),i=r(10668),o=r(2148).CONSTRUCTOR;e.exports=o||!i((function(e){n.all(e).then(void 0,(function(){}))}))},34192:(e,t,r)=>{"use strict";var n=r(78449).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},23769:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},96010:(e,t,r)=>{"use strict";var n=r(92957),i=r(50151),o=r(46357),a=r(96032),s=r(8779),c=TypeError;e.exports=function(e,t){var r=e.exec;if(o(r)){var l=n(r,e,t);return null!==l&&i(l),l}if("RegExp"===a(e))return n(s,e,t);throw new c("RegExp#exec called on incompatible receiver")}},8779:(e,t,r)=>{"use strict";var n,i,o=r(92957),a=r(1008),s=r(22255),c=r(34315),l=r(79933),u=r(39441),d=r(42104),f=r(14317).get,p=r(83027),h=r(88702),m=u("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,v=y,g=a("".charAt),b=a("".indexOf),E=a("".replace),w=a("".slice),S=(i=/b*/g,o(y,n=/a/,"a"),o(y,i,"a"),0!==n.lastIndex||0!==i.lastIndex),A=l.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(S||_||A||p||h)&&(v=function(e){var t,r,n,i,a,l,u,p=this,h=f(p),x=s(e),P=h.raw;if(P)return P.lastIndex=p.lastIndex,t=o(v,P,x),p.lastIndex=P.lastIndex,t;var I=h.groups,k=A&&p.sticky,O=o(c,p),T=p.source,C=0,R=x;if(k&&(O=E(O,"y",""),-1===b(O,"g")&&(O+="g"),R=w(x,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==g(x,p.lastIndex-1))&&(T="(?: "+T+")",R=" "+R,C++),r=new RegExp("^(?:"+T+")",O)),_&&(r=new RegExp("^"+T+"$(?!\\s)",O)),S&&(n=p.lastIndex),i=o(y,k?r:p,R),k?i?(i.input=w(i.input,C),i[0]=w(i[0],C),i.index=p.lastIndex,p.lastIndex+=i[0].length):p.lastIndex=0:S&&i&&(p.lastIndex=p.global?i.index+i[0].length:n),_&&i&&i.length>1&&o(m,i[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&I)for(i.groups=l=d(null),a=0;a<I.length;a++)l[(u=I[a])[0]]=i[u[1]];return i}),e.exports=v},34315:(e,t,r)=>{"use strict";var n=r(50151);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},91274:(e,t,r)=>{"use strict";var n=r(92957),i=r(85889),o=r(55161),a=r(34315),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:n(a,e)}},79933:(e,t,r)=>{"use strict";var n=r(84543),i=r(54523).RegExp,o=n((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||n((function(){return!i("a","y").sticky})),s=o||n((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},83027:(e,t,r)=>{"use strict";var n=r(84543),i=r(54523).RegExp;e.exports=n((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},88702:(e,t,r)=>{"use strict";var n=r(84543),i=r(54523).RegExp;e.exports=n((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},69286:(e,t,r)=>{"use strict";var n=r(3445),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},53550:e=>{"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},2608:(e,t,r)=>{"use strict";
vendor: 39,134 bytes, line 2
2var n,i=r(54523),o=r(41881),a=r(46357),s=r(46507),c=r(74848),l=r(19136),u=r(88956),d=i.Function,f=/MSIE .\./.test(c)||s&&((n=i.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return f?function(n,i){var s=u(arguments.length,1)>r,c=a(n)?n:d(n),f=s?l(arguments,r):[],p=s?function(){o(c,this,f)}:c;return t?e(p,i):e(p)}:e}},39089:(e,t,r)=>{"use strict";var n=r(47735),i=r(63642),o=r(73683),a=r(95180),s=o("species");e.exports=function(e){var t=n(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},6143:(e,t,r)=>{"use strict";var n=r(78449).f,i=r(85889),o=r(73683)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,o)&&n(e,o,{configurable:!0,value:t})}},99847:(e,t,r)=>{"use strict";var n=r(39441),i=r(76048),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},43965:(e,t,r)=>{"use strict";var n=r(54523),i=r(92969),o="__core-js_shared__",a=n[o]||i(o,{});e.exports=a},39441:(e,t,r)=>{"use strict";var n=r(7051),i=r(43965);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},98581:(e,t,r)=>{"use strict";var n=r(50151),i=r(75292),o=r(3445),a=r(73683)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||o(r=n(s)[a])?t:i(r)}},76085:(e,t,r)=>{"use strict";var n=r(84543);e.exports=function(e){return n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},14775:(e,t,r)=>{"use strict";var n=r(1008),i=r(44827),o=r(22255),a=r(69286),s=n("".charAt),c=n("".charCodeAt),l=n("".slice),u=function(e){return function(t,r){var n,u,d=o(a(t)),f=i(r),p=d.length;return f<0||f>=p?e?"":void 0:(n=c(d,f))<55296||n>56319||f+1===p||(u=c(d,f+1))<56320||u>57343?e?s(d,f):n:e?l(d,f,f+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},21605:(e,t,r)=>{"use strict";var n=r(1008),i=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",c=RangeError,l=n(a.exec),u=Math.floor,d=String.fromCharCode,f=n("".charCodeAt),p=n([].join),h=n([].push),m=n("".replace),y=n("".split),v=n("".toLowerCase),g=function(e){return e+22+75*(e<26)},b=function(e,t,r){var n=0;for(e=r?u(e/700):e>>1,e+=u(e/t);e>455;)e=u(e/35),n+=36;return u(n+36*e/(e+38))},E=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=f(e,r++);if(i>=55296&&i<=56319&&r<n){var o=f(e,r++);56320==(64512&o)?h(t,((1023&i)<<10)+(1023&o)+65536):(h(t,i),r--)}else h(t,i)}return t}(e);var r,n,o=e.length,a=128,l=0,m=72;for(r=0;r<e.length;r++)(n=e[r])<128&&h(t,d(n));var y=t.length,v=y;for(y&&h(t,"-");v<o;){var E=i;for(r=0;r<e.length;r++)(n=e[r])>=a&&n<E&&(E=n);var w=v+1;if(E-a>u((i-l)/w))throw new c(s);for(l+=(E-a)*w,a=E,r=0;r<e.length;r++){if((n=e[r])<a&&++l>i)throw new c(s);if(n===a){for(var S=l,A=36;;){var _=A<=m?1:A>=m+26?26:A-m;if(S<_)break;var x=S-_,P=36-_;h(t,d(g(_+x%P))),S=u(x/P),A+=36}h(t,d(g(S))),m=b(l,w,v===y),l=0,v++}}l++,a++}return p(t,"")};e.exports=function(e){var t,r,n=[],i=y(m(v(e),a,"."),".");for(t=0;t<i.length;t++)r=i[t],h(n,l(o,r)?"xn--"+E(r):r);return p(n,".")}},12077:(e,t,r)=>{"use strict";var n=r(44827),i=r(22255),o=r(69286),a=RangeError;e.exports=function(e){var t=i(o(this)),r="",s=n(e);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(r+=t);return r}},30082:(e,t,r)=>{"use strict";var n=r(50094).PROPER,i=r(84543),o=r(98908);e.exports=function(e){return i((function(){return!!o[e]()||"âÂ
á "!=="âÂ
á "[e]()||n&&o[e].name!==e}))}},78906:(e,t,r)=>{"use strict";var n=r(1008),i=r(69286),o=r(22255),a=r(98908),s=n("".replace),c=RegExp("^["+a+"]+"),l=RegExp("(^|[^"+a+"])["+a+"]+$"),u=function(e){return function(t){var r=o(i(t));return 1&e&&(r=s(r,c,"")),2&e&&(r=s(r,l,"$1")),r}};e.exports={start:u(1),end:u(2),trim:u(3)}},4687:(e,t,r)=>{"use strict";var n=r(72844),i=r(84543),o=r(54523).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},41282:(e,t,r)=>{"use strict";var n=r(92957),i=r(47735),o=r(73683),a=r(9704);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return n(r,this)}),{arity:1})}},57440:(e,t,r)=>{"use strict";var n=r(4687);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},60921:(e,t,r)=>{"use strict";var n,i,o,a,s=r(54523),c=r(41881),l=r(81232),u=r(46357),d=r(85889),f=r(84543),p=r(22093),h=r(19136),m=r(62679),y=r(88956),v=r(87863),g=r(42224),b=s.setImmediate,E=s.clearImmediate,w=s.process,S=s.Dispatch,A=s.Function,_=s.MessageChannel,x=s.String,P=0,I={},k="onreadystatechange";f((function(){n=s.location}));var O=function(e){if(d(I,e)){var t=I[e];delete I[e],t()}},T=function(e){return function(){O(e)}},C=function(e){O(e.data)},R=function(e){s.postMessage(x(e),n.protocol+"//"+n.host)};b&&E||(b=function(e){y(arguments.length,1);var t=u(e)?e:A(e),r=h(arguments,1);return I[++P]=function(){c(t,void 0,r)},i(P),P},E=function(e){delete I[e]},g?i=function(e){w.nextTick(T(e))}:S&&S.now?i=function(e){S.now(T(e))}:_&&!v?(a=(o=new _).port2,o.port1.onmessage=C,i=l(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(R)?(i=R,s.addEventListener("message",C,!1)):i=k in m("script")?function(e){p.appendChild(m("script"))[k]=function(){p.removeChild(this),O(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:b,clear:E}},43048:(e,t,r)=>{"use strict";var n=r(1008);e.exports=n(1..valueOf)},47418:(e,t,r)=>{"use strict";var n=r(44827),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},25934:(e,t,r)=>{"use strict";var n=r(39113),i=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},60192:(e,t,r)=>{"use strict";var n=r(44827),i=r(55966),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw new o("Wrong length or index");return r}},20853:(e,t,r)=>{"use strict";var n=r(70191),i=r(69286);e.exports=function(e){return n(i(e))}},44827:(e,t,r)=>{"use strict";var n=r(14469);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},55966:(e,t,r)=>{"use strict";var n=r(44827),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},70581:(e,t,r)=>{"use strict";var n=r(69286),i=Object;e.exports=function(e){return i(n(e))}},79829:(e,t,r)=>{"use strict";var n=r(79526),i=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw new i("Wrong offset");return r}},79526:(e,t,r)=>{"use strict";var n=r(44827),i=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw new i("The argument can't be less than 0");return t}},39113:(e,t,r)=>{"use strict";var n=r(92957),i=r(41634),o=r(32357),a=r(6046),s=r(5774),c=r(73683),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,c=a(e,u);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!i(r)||o(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},29833:(e,t,r)=>{"use strict";var n=r(39113),i=r(32357);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},13644:(e,t,r)=>{"use strict";var n={};n[r(73683)("toStringTag")]="z",e.exports="[object z]"===String(n)},22255:(e,t,r)=>{"use strict";var n=r(47611),i=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},4911:e=>{"use strict";var t=Math.round;e.exports=function(e){var r=t(e);return r<0?0:r>255?255:255&r}},16306:(e,t,r)=>{"use strict";var n=r(42224);e.exports=function(e){try{if(n)return Function('return require("'+e+'")')()}catch(e){}}},40215:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},90799:(e,t,r)=>{"use strict";var n=r(76566),i=r(54523),o=r(92957),a=r(95180),s=r(16261),c=r(48180),l=r(16330),u=r(42135),d=r(6372),f=r(76587),p=r(71463),h=r(55966),m=r(60192),y=r(79829),v=r(4911),g=r(29833),b=r(85889),E=r(47611),w=r(41634),S=r(32357),A=r(42104),_=r(55161),x=r(27943),P=r(29712).f,I=r(89843),k=r(32077).forEach,O=r(39089),T=r(63642),C=r(78449),R=r(89763),N=r(14317),L=r(3103),D=N.get,M=N.set,F=N.enforce,j=C.f,B=R.f,V=i.RangeError,U=l.ArrayBuffer,z=U.prototype,G=l.DataView,W=c.NATIVE_ARRAY_BUFFER_VIEWS,H=c.TYPED_ARRAY_TAG,$=c.TypedArray,Y=c.TypedArrayPrototype,q=c.aTypedArrayConstructor,K=c.isTypedArray,Q="BYTES_PER_ELEMENT",X="Wrong length",Z=function(e,t){q(e);for(var r=0,n=t.length,i=new e(n);n>r;)i[r]=t[r++];return i},J=function(e,t){T(e,t,{configurable:!0,get:function(){return D(this)[t]}})},ee=function(e){var t;return _(z,e)||"ArrayBuffer"===(t=E(e))||"SharedArrayBuffer"===t},te=function(e,t){return K(e)&&!S(t)&&t in e&&p(+t)&&t>=0},re=function(e,t){return t=g(t),te(e,t)?d(2,e[t]):B(e,t)},ne=function(e,t,r){return t=g(t),!(te(e,t)&&w(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?j(e,t,r):(e[t]=r.value,e)};a?(W||(R.f=re,C.f=ne,J(Y,"buffer"),J(Y,"byteOffset"),J(Y,"byteLength"),J(Y,"length")),n({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:re,defineProperty:ne}),e.exports=function(e,t,r){var a=e.match(/\d+/)[0]/8,c=e+(r?"Clamped":"")+"Array",l="get"+e,d="set"+e,p=i[c],g=p,b=g&&g.prototype,E={},S=function(e,t){j(e,t,{get:function(){return function(e,t){var r=D(e);return r.view[l](t*a+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var i=D(e);i.view[d](t*a+i.byteOffset,r?v(n):n,!0)}(this,t,e)},enumerable:!0})};W?s&&(g=t((function(e,t,r,n){return u(e,b),L(w(t)?ee(t)?void 0!==n?new p(t,y(r,a),n):void 0!==r?new p(t,y(r,a)):new p(t):K(t)?Z(g,t):o(I,g,t):new p(m(t)),e,g)})),x&&x(g,$),k(P(p),(function(e){e in g||f(g,e,p[e])})),g.prototype=b):(g=t((function(e,t,r,n){u(e,b);var i,s,c,l=0,d=0;if(w(t)){if(!ee(t))return K(t)?Z(g,t):o(I,g,t);i=t,d=y(r,a);var f=t.byteLength;if(void 0===n){if(f%a)throw new V(X);if((s=f-d)<0)throw new V(X)}else if((s=h(n)*a)+d>f)throw new V(X);c=s/a}else c=m(t),i=new U(s=c*a);for(M(e,{buffer:i,byteOffset:d,byteLength:s,length:c,view:new G(i)});l<c;)S(e,l++)})),x&&x(g,$),b=g.prototype=A(Y)),b.constructor!==g&&f(b,"constructor",g),F(b).TypedArrayConstructor=g,H&&f(b,H,c);var _=g!==p;E[c]=g,n({global:!0,constructor:!0,forced:_,sham:!W},E),Q in g||f(g,Q,a),Q in b||f(b,Q,a),O(c)}):e.exports=function(){}},16261:(e,t,r)=>{"use strict";var n=r(54523),i=r(84543),o=r(10668),a=r(48180).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,c=n.Int8Array;e.exports=!a||!i((function(){c(1)}))||!i((function(){new c(-1)}))||!o((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||i((function(){return 1!==new c(new s(2),1,void 0).length}))},469:(e,t,r)=>{"use strict";var n=r(18282),i=r(44324);e.exports=function(e,t){return n(i(e),t)}},89843:(e,t,r)=>{"use strict";var n=r(81232),i=r(92957),o=r(75292),a=r(70581),s=r(65526),c=r(36417),l=r(30787),u=r(45745),d=r(65319),f=r(48180).aTypedArrayConstructor,p=r(25934);e.exports=function(e){var t,r,h,m,y,v,g,b,E=o(this),w=a(e),S=arguments.length,A=S>1?arguments[1]:void 0,_=void 0!==A,x=l(w);if(x&&!u(x))for(b=(g=c(w,x)).next,w=[];!(v=i(b,g)).done;)w.push(v.value);for(_&&S>2&&(A=n(A,arguments[2])),r=s(w),h=new(f(E))(r),m=d(h),t=0;r>t;t++)y=_?A(w[t],t):w[t],h[t]=m?p(y):+y;return h}},44324:(e,t,r)=>{"use strict";var n=r(48180),i=r(98581),o=n.aTypedArrayConstructor,a=n.getTypedArrayConstructor;e.exports=function(e){return o(i(e,a(e)))}},76048:(e,t,r)=>{"use strict";var n=r(1008),i=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},49912:(e,t,r)=>{"use strict";var n=r(84543),i=r(73683),o=r(95180),a=r(7051),s=i("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),a&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(a||!o)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://ÑеÑÑ").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},2496:(e,t,r)=>{"use strict";var n=r(4687);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7310:(e,t,r)=>{"use strict";var n=r(95180),i=r(84543);e.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},88956:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},60158:(e,t,r)=>{"use strict";var n=r(54523),i=r(46357),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},88399:(e,t,r)=>{"use strict";var n=r(20863),i=r(85889),o=r(84447),a=r(78449).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},84447:(e,t,r)=>{"use strict";var n=r(73683);t.f=n},73683:(e,t,r)=>{"use strict";var n=r(54523),i=r(39441),o=r(85889),a=r(76048),s=r(4687),c=r(2496),l=n.Symbol,u=i("wks"),d=c?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=s&&o(l,e)?l[e]:d("Symbol."+e)),u[e]}},98908:e=>{"use strict";e.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},88713:(e,t,r)=>{"use strict";var n=r(47735),i=r(85889),o=r(76587),a=r(55161),s=r(27943),c=r(20812),l=r(34192),u=r(3103),d=r(98747),f=r(57520),p=r(60683),h=r(95180),m=r(7051);e.exports=function(e,t,r,y){var v="stackTraceLimit",g=y?2:1,b=e.split("."),E=b[b.length-1],w=n.apply(null,b);if(w){var S=w.prototype;if(!m&&i(S,"cause")&&delete S.cause,!r)return w;var A=n("Error"),_=t((function(e,t){var r=d(y?t:e,void 0),n=y?new w(e):new w;return void 0!==r&&o(n,"message",r),p(n,_,n.stack,2),this&&a(S,this)&&u(n,this,_),arguments.length>g&&f(n,arguments[g]),n}));if(_.prototype=S,"Error"!==E?s?s(_,A):c(_,A,{name:!0}):h&&v in w&&(l(_,w,v),l(_,w,"prepareStackTrace")),c(_,w),!m)try{S.name!==E&&o(S,"name",E),S.constructor=_}catch(e){}return _}}},8033:(e,t,r)=>{"use strict";var n=r(76566),i=r(11316),o=r(84543),a=r(16330),s=r(50151),c=r(47418),l=r(55966),u=r(98581),d=a.ArrayBuffer,f=a.DataView,p=f.prototype,h=i(d.prototype.slice),m=i(p.getUint8),y=i(p.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new d(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(h&&void 0===t)return h(s(this),e);for(var r=s(this).byteLength,n=c(e,r),i=c(void 0===t?r:t,r),o=new(u(this,d))(l(i-n)),a=new f(this),p=new f(o),v=0;n<i;)y(p,v++,m(a,n++));return o}})},68450:(e,t,r)=>{"use strict";var n=r(76566),i=r(84543),o=r(36872),a=r(41634),s=r(70581),c=r(65526),l=r(97029),u=r(69904),d=r(40797),f=r(17445),p=r(73683),h=r(72844),m=p("isConcatSpreadable"),y=h>=51||!i((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:o(e)};n({target:"Array",proto:!0,arity:1,forced:!y||!f("concat")},{concat:function(e){var t,r,n,i,o,a=s(this),f=d(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(v(o=-1===t?a:arguments[t]))for(i=c(o),l(p+i),r=0;r<i;r++,p++)r in o&&u(f,p,o[r]);else l(p+1),u(f,p++,o);return f.length=p,f}})},38415:(e,t,r)=>{"use strict";var n=r(76566),i=r(32077).every;n({target:"Array",proto:!0,forced:!r(4486)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},25400:(e,t,r)=>{"use strict";var n=r(76566),i=r(32077).filter;n({target:"Array",proto:!0,forced:!r(17445)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},44436:(e,t,r)=>{"use strict";var n=r(76566),i=r(32077).findIndex,o=r(75845),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},1569:(e,t,r)=>{"use strict";var n=r(76566),i=r(32077).find,o=r(75845),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},24493:(e,t,r)=>{"use strict";var n=r(76566),i=r(13371);n({target:"Array",proto:!0,forced:[].forEach!==i},{forEach:i})},74874:(e,t,r)=>{"use strict";var n=r(76566),i=r(47996);n({target:"Array",stat:!0,forced:!r(10668)((function(e){Array.from(e)}))},{from:i})},30935:(e,t,r)=>{"use strict";var n=r(76566),i=r(42753).includes,o=r(84543),a=r(75845);n({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},98140:(e,t,r)=>{"use strict";var n=r(76566),i=r(11316),o=r(42753).indexOf,a=r(4486),s=i([].indexOf),c=!!s&&1/s([1],1,-0)<0;n({target:"Array",proto:!0,forced:c||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?s(this,e,t)||0:o(this,e,t)}})},37210:(e,t,r)=>{"use strict";r(76566)({target:"Array",stat:!0},{isArray:r(36872)})},96656:(e,t,r)=>{"use strict";var n=r(20853),i=r(75845),o=r(47869),a=r(14317),s=r(78449).f,c=r(23952),l=r(45025),u=r(7051),d=r(95180),f="Array Iterator",p=a.set,h=a.getterFor(f);e.exports=c(Array,"Array",(function(e,t){p(this,{type:f,target:n(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.kind,n=e.index++;if(!t||n>=t.length)return e.target=void 0,l(void 0,!0);switch(r){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)}),"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!u&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(e){}},54:(e,t,r)=>{"use strict";var n=r(76566),i=r(1008),o=r(70191),a=r(20853),s=r(4486),c=i([].join);n({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(e){return c(a(this),void 0===e?",":e)}})},95790:(e,t,r)=>{"use strict";var n=r(76566),i=r(32077).map;n({target:"Array",proto:!0,forced:!r(17445)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},95570:(e,t,r)=>{"use strict";var n=r(76566),i=r(70581),o=r(65526),a=r(81119),s=r(97029);n({target:"Array",proto:!0,arity:1,forced:r(84543)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),r=o(t),n=arguments.length;s(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return a(t,r),r}})},96104:(e,t,r)=>{"use strict";var n=r(76566),i=r(47262).left,o=r(4486),a=r(72844);n({target:"Array",proto:!0,forced:!r(42224)&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},17626:(e,t,r)=>{"use strict";var n=r(76566),i=r(1008),o=r(36872),a=i([].reverse),s=[1,2];n({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},84766:(e,t,r)=>{"use strict";var n=r(76566),i=r(36872),o=r(56653),a=r(41634),s=r(47418),c=r(65526),l=r(20853),u=r(69904),d=r(73683),f=r(17445),p=r(19136),h=f("slice"),m=d("species"),y=Array,v=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,d,f=l(this),h=c(f),g=s(e,h),b=s(void 0===t?h:t,h);if(i(f)&&(r=f.constructor,(o(r)&&(r===y||i(r.prototype))||a(r)&&null===(r=r[m]))&&(r=void 0),r===y||void 0===r))return p(f,g,b);for(n=new(void 0===r?y:r)(v(b-g,0)),d=0;g<b;g++,d++)g in f&&u(n,d,f[g]);return n.length=d,n}})},66542:(e,t,r)=>{"use strict";var n=r(76566),i=r(32077).some;n({target:"Array",proto:!0,forced:!r(4486)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},78366:(e,t,r)=>{"use strict";var n=r(76566),i=r(1008),o=r(29386),a=r(70581),s=r(65526),c=r(86142),l=r(22255),u=r(84543),d=r(24568),f=r(4486),p=r(24290),h=r(2530),m=r(72844),y=r(10664),v=[],g=i(v.sort),b=i(v.push),E=u((function(){v.sort(void 0)})),w=u((function(){v.sort(null)})),S=f("sort"),A=!u((function(){if(m)return m<70;if(!(p&&p>3)){if(h)return!0;if(y)return y<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)v.push({k:t+n,v:r})}for(v.sort((function(e,t){return t.v-e.v})),n=0;n<v.length;n++)t=v[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));n({target:"Array",proto:!0,forced:E||!w||!S||!A},{sort:function(e){void 0!==e&&o(e);var t=a(this);if(A)return void 0===e?g(t):g(t,e);var r,n,i=[],u=s(t);for(n=0;n<u;n++)n in t&&b(i,t[n]);for(d(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:l(t)>l(r)?1:-1}}(e)),r=s(i),n=0;n<r;)t[n]=i[n++];for(;n<u;)c(t,n++);return t}})},94298:(e,t,r)=>{"use strict";var n=r(76566),i=r(70581),o=r(47418),a=r(44827),s=r(65526),c=r(81119),l=r(97029),u=r(40797),d=r(69904),f=r(86142),p=r(17445)("splice"),h=Math.max,m=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var r,n,p,y,v,g,b=i(this),E=s(b),w=o(e,E),S=arguments.length;for(0===S?r=n=0:1===S?(r=0,n=E-w):(r=S-2,n=m(h(a(t),0),E-w)),l(E+r-n),p=u(b,n),y=0;y<n;y++)(v=w+y)in b&&d(p,y,b[v]);if(p.length=n,r<n){for(y=w;y<E-n;y++)g=y+r,(v=y+n)in b?b[g]=b[v]:f(b,g);for(y=E;y>E-n+r;y--)f(b,y-1)}else if(r>n)for(y=E-n;y>w;y--)g=y+r-1,(v=y+n-1)in b?b[g]=b[v]:f(b,g);for(y=0;y<r;y++)b[y+w]=arguments[y+2];return c(b,E-n+r),p}})},36745:(e,t,r)=>{"use strict";var n=r(76566),i=r(70581),o=r(65526),a=r(81119),s=r(86142),c=r(97029);n({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=i(this),r=o(t),n=arguments.length;if(n){c(r+n);for(var l=r;l--;){var u=l+n;l in t?t[u]=t[l]:s(t,u)}for(var d=0;d<n;d++)t[d]=arguments[d]}return a(t,r+n)}})},97041:(e,t,r)=>{"use strict";var n=r(76566),i=r(1008),o=Date,a=i(o.prototype.getTime);n({target:"Date",stat:!0},{now:function(){return a(new o)}})},58948:(e,t,r)=>{"use strict";var n=r(85889),i=r(9704),o=r(49096),a=r(73683)("toPrimitive"),s=Date.prototype;n(s,a)||i(s,a,o)},96152:(e,t,r)=>{"use strict";var n=r(1008),i=r(9704),o=Date.prototype,a="Invalid Date",s="toString",c=n(o[s]),l=n(o.getTime);String(new Date(NaN))!==a&&i(o,s,(function(){var e=l(this);return e==e?c(this):a}))},66264:(e,t,r)=>{"use strict";var n=r(76566),i=r(54523),o=r(41881),a=r(88713),s="WebAssembly",c=i[s],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=a(e,t,l),n({global:!0,constructor:!0,arity:1,forced:l},r)},d=function(e,t){if(c&&c[e]){var r={};r[e]=a(s+"."+e,t,l),n({target:s,stat:!0,constructor:!0,arity:1,forced:l},r)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},23510:(e,t,r)=>{"use strict";var n=r(9704),i=r(50400),o=Error.prototype;o.toString!==i&&n(o,"toString",i)},17306:(e,t,r)=>{"use strict";var n=r(76566),i=r(53958);n({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},85146:(e,t,r)=>{"use strict";var n=r(95180),i=r(50094).EXISTS,o=r(1008),a=r(63642),s=Function.prototype,c=o(s.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=o(l.exec);n&&!i&&a(s,"name",{configurable:!0,get:function(){try{return u(l,c(this))[1]}catch(e){return""}}})},5974:(e,t,r)=>{"use strict";var n=r(76566),i=r(47735),o=r(41881),a=r(92957),s=r(1008),c=r(84543),l=r(46357),u=r(32357),d=r(19136),f=r(49973),p=r(4687),h=String,m=i("JSON","stringify"),y=s(/./.exec),v=s("".charAt),g=s("".charCodeAt),b=s("".replace),E=s(1..toString),w=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,A=/^[\uDC00-\uDFFF]$/,_=!p||c((function(){var e=i("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),x=c((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),P=function(e,t){var r=d(arguments),n=f(t);if(l(n)||void 0!==e&&!u(e))return r[1]=function(e,t){if(l(n)&&(t=a(n,this,h(e),t)),!u(t))return t},o(m,null,r)},I=function(e,t,r){var n=v(r,t-1),i=v(r,t+1);return y(S,e)&&!y(A,i)||y(A,e)&&!y(S,n)?"\\u"+E(g(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:_||x},{stringify:function(e,t,r){var n=d(arguments),i=o(_?P:m,null,n);return x&&"string"==typeof i?b(i,w,I):i}})},84667:(e,t,r)=>{"use strict";var n=r(54523);r(6143)(n.JSON,"JSON",!0)},95115:(e,t,r)=>{"use strict";r(50196)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(82394))},37729:(e,t,r)=>{"use strict";r(95115)},56767:(e,t,r)=>{"use strict";r(6143)(Math,"Math",!0)},99180:(e,t,r)=>{"use strict";var n=r(76566),i=r(7051),o=r(95180),a=r(54523),s=r(20863),c=r(1008),l=r(14396),u=r(85889),d=r(3103),f=r(55161),p=r(32357),h=r(39113),m=r(84543),y=r(29712).f,v=r(89763).f,g=r(78449).f,b=r(43048),E=r(78906).trim,w="Number",S=a[w],A=s[w],_=S.prototype,x=a.TypeError,P=c("".slice),I=c("".charCodeAt),k=function(e){var t,r,n,i,o,a,s,c,l=h(e,"number");if(p(l))throw new x("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=E(l),43===(t=I(l,0))||45===t){if(88===(r=I(l,2))||120===r)return NaN}else if(48===t){switch(I(l,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(a=(o=P(l,2)).length,s=0;s<a;s++)if((c=I(o,s))<48||c>i)return NaN;return parseInt(o,n)}return+l},O=l(w,!S(" 0o1")||!S("0b1")||S("+0x1")),T=function(e){var t,r=arguments.length<1?0:S(function(e){var t=h(e,"number");return"bigint"==typeof t?t:k(t)}(e));return f(_,t=this)&&m((function(){b(t)}))?d(Object(r),this,T):r};T.prototype=_,O&&!i&&(_.constructor=T),n({global:!0,constructor:!0,wrap:!0,forced:O},{Number:T});var C=function(e,t){for(var r,n=o?y(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;n.length>i;i++)u(t,r=n[i])&&!u(e,r)&&g(e,r,v(t,r))};i&&A&&C(s[w],A),(O||i)&&C(s[w],S)},20884:(e,t,r)=>{"use strict";r(76566)({target:"Number",stat:!0},{isFinite:r(96952)})},85661:(e,t,r)=>{"use strict";r(76566)({target:"Number",stat:!0},{isInteger:r(71463)})},82489:(e,t,r)=>{"use strict";r(76566)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},67156:(e,t,r)=>{"use strict";var n=r(76566),i=r(3280);n({target:"Number",stat:!0,forced:Number.parseFloat!==i},{parseFloat:i})},21299:(e,t,r)=>{"use strict";var n=r(76566),i=r(82943);n({target:"Number",stat:!0,forced:Number.parseInt!==i},{parseInt:i})},56460:(e,t,r)=>{"use strict";var n=r(76566),i=r(1008),o=r(44827),a=r(43048),s=r(12077),c=r(84543),l=RangeError,u=String,d=Math.floor,f=i(s),p=i("".slice),h=i(1..toFixed),m=function(e,t,r){return 0===t?r:t%2==1?m(e,t-1,r*e):m(e*e,t/2,r)},y=function(e,t,r){for(var n=-1,i=r;++n<6;)i+=t*e[n],e[n]=i%1e7,i=d(i/1e7)},v=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=d(n/t),n=n%t*1e7},g=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=u(e[t]);r=""===r?n:r+f("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:c((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!c((function(){h({})}))},{toFixed:function(e){var t,r,n,i,s=a(this),c=o(e),d=[0,0,0,0,0,0],h="",b="0";if(c<0||c>20)throw new l("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return u(s);if(s<0&&(h="-",s=-s),s>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(s*m(2,69,1))-69)<0?s*m(2,-t,1):s/m(2,t,1),r*=4503599627370496,(t=52-t)>0){for(y(d,0,r),n=c;n>=7;)y(d,1e7,0),n-=7;for(y(d,m(10,n,1),0),n=t-1;n>=23;)v(d,1<<23),n-=23;v(d,1<<n),y(d,1,1),v(d,2),b=g(d)}else y(d,0,r),y(d,1<<-t,0),b=g(d)+f("0",c);return b=c>0?h+((i=b.length)<=c?"0."+f("0",c-i)+b:p(b,0,i-c)+"."+p(b,i-c)):h+b}})},92221:(e,t,r)=>{"use strict";var n=r(76566),i=r(83957);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},83040:(e,t,r)=>{"use strict";r(76566)({target:"Object",stat:!0,sham:!r(95180)},{create:r(42104)})},34089:(e,t,r)=>{"use strict";var n=r(76566),i=r(95180),o=r(98337).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!i},{defineProperties:o})},59161:(e,t,r)=>{"use strict";var n=r(76566),i=r(95180),o=r(78449).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},78370:(e,t,r)=>{"use strict";var n=r(76566),i=r(5221).entries;n({target:"Object",stat:!0},{entries:function(e){return i(e)}})},75947:(e,t,r)=>{"use strict";var n=r(76566),i=r(95240),o=r(84543),a=r(41634),s=r(98907).onFreeze,c=Object.freeze;n({target:"Object",stat:!0,forced:o((function(){c(1)})),sham:!i},{freeze:function(e){return c&&a(e)?c(s(e)):e}})},93249:(e,t,r)=>{"use strict";var n=r(76566),i=r(83308),o=r(69904);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,r){o(t,e,r)}),{AS_ENTRIES:!0}),t}})},57931:(e,t,r)=>{"use strict";var n=r(76566),i=r(84543),o=r(20853),a=r(89763).f,s=r(95180);n({target:"Object",stat:!0,forced:!s||i((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},44318:(e,t,r)=>{"use strict";var n=r(76566),i=r(95180),o=r(37527),a=r(20853),s=r(89763),c=r(69904);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,r,n=a(e),i=s.f,l=o(n),u={},d=0;l.length>d;)void 0!==(r=i(n,t=l[d++]))&&c(u,t,r);return u}})},80269:(e,t,r)=>{"use strict";var n=r(76566),i=r(4687),o=r(84543),a=r(32981),s=r(70581);n({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},42411:(e,t,r)=>{"use strict";var n=r(76566),i=r(84543),o=r(70581),a=r(17763),s=r(30099);n({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},29416:(e,t,r)=>{"use strict";var n=r(76566),i=r(70581),o=r(22528);n({target:"Object",stat:!0,forced:r(84543)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},86940:(e,t,r)=>{"use strict";var n=r(95180),i=r(63642),o=r(41634),a=r(70581),s=r(69286),c=Object.getPrototypeOf,l=Object.setPrototypeOf,u=Object.prototype,d="__proto__";if(n&&c&&l&&!(d in u))try{i(u,d,{configurable:!0,get:function(){return c(a(this))},set:function(e){var t=s(this);(o(e)||null===e)&&o(t)&&l(t,e)}})}catch(e){}},11823:(e,t,r)=>{"use strict";r(76566)({target:"Object",stat:!0},{setPrototypeOf:r(27943)})},21555:(e,t,r)=>{"use strict";var n=r(13644),i=r(9704),o=r(83419);n||i(Object.prototype,"toString",o,{unsafe:!0})},39170:(e,t,r)=>{"use strict";var n=r(76566),i=r(5221).values;n({target:"Object",stat:!0},{values:function(e){return i(e)}})},28443:(e,t,r)=>{"use strict";var n=r(76566),i=r(3280);n({global:!0,forced:parseFloat!==i},{parseFloat:i})},9020:(e,t,r)=>{"use strict";var n=r(76566),i=r(82943);n({global:!0,forced:parseInt!==i},{parseInt:i})},35495:(e,t,r)=>{"use strict";var n=r(76566),i=r(92957),o=r(29386),a=r(89579),s=r(28111),c=r(83308);n({target:"Promise",stat:!0,forced:r(64617)},{allSettled:function(e){var t=this,r=a.f(t),n=r.resolve,l=r.reject,u=s((function(){var r=o(t.resolve),a=[],s=0,l=1;c(e,(function(e){var o=s++,c=!1;l++,i(r,t,e).then((function(e){c||(c=!0,a[o]={status:"fulfilled",value:e},--l||n(a))}),(function(e){c||(c=!0,a[o]={status:"rejected",reason:e},--l||n(a))}))})),--l||n(a)}));return u.error&&l(u.value),r.promise}})},66483:(e,t,r)=>{"use strict";var n=r(76566),i=r(92957),o=r(29386),a=r(89579),s=r(28111),c=r(83308);n({target:"Promise",stat:!0,forced:r(64617)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,l=r.reject,u=s((function(){var r=o(t.resolve),a=[],s=0,u=1;c(e,(function(e){var o=s++,c=!1;u++,i(r,t,e).then((function(e){c||(c=!0,a[o]=e,--u||n(a))}),l)})),--u||n(a)}));return u.error&&l(u.value),r.promise}})},5139:(e,t,r)=>{"use strict";var n=r(76566),i=r(7051),o=r(2148).CONSTRUCTOR,a=r(79942),s=r(47735),c=r(46357),l=r(9704),u=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(a)){var d=s("Promise").prototype.catch;u.catch!==d&&l(u,"catch",d,{unsafe:!0})}},49764:(e,t,r)=>{"use strict";var n,i,o,a=r(76566),s=r(7051),c=r(42224),l=r(54523),u=r(92957),d=r(9704),f=r(27943),p=r(6143),h=r(39089),m=r(29386),y=r(46357),v=r(41634),g=r(42135),b=r(98581),E=r(60921).set,w=r(13555),S=r(43781),A=r(28111),_=r(23769),x=r(14317),P=r(79942),I=r(2148),k=r(89579),O="Promise",T=I.CONSTRUCTOR,C=I.REJECTION_EVENT,R=I.SUBCLASSING,N=x.getterFor(O),L=x.set,D=P&&P.prototype,M=P,F=D,j=l.TypeError,B=l.document,V=l.process,U=k.f,z=U,G=!!(B&&B.createEvent&&l.dispatchEvent),W="unhandledrejection",H=function(e){var t;return!(!v(e)||!y(t=e.then))&&t},$=function(e,t){var r,n,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,c=e.resolve,l=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&X(t),t.rejection=1),!0===s?r=o:(d&&d.enter(),r=s(o),d&&(d.exit(),i=!0)),r===e.promise?l(new j("Promise-chain cycle")):(n=H(r))?u(n,r,c,l):c(r)):l(o)}catch(e){d&&!i&&d.exit(),l(e)}},Y=function(e,t){e.notified||(e.notified=!0,w((function(){for(var r,n=e.reactions;r=n.get();)$(r,e);e.notified=!1,t&&!e.rejection&&K(e)})))},q=function(e,t,r){var n,i;G?((n=B.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),l.dispatchEvent(n)):n={promise:t,reason:r},!C&&(i=l["on"+e])?i(n):e===W&&S("Unhandled promise rejection",r)},K=function(e){u(E,l,(function(){var t,r=e.facade,n=e.value;if(Q(e)&&(t=A((function(){c?V.emit("unhandledRejection",n,r):q(W,r,n)})),e.rejection=c||Q(e)?2:1,t.error))throw t.value}))},Q=function(e){return 1!==e.rejection&&!e.parent},X=function(e){u(E,l,(function(){var t=e.facade;c?V.emit("rejectionHandled",t):q("rejectionhandled",t,e.value)}))},Z=function(e,t,r){return function(n){e(t,n,r)}},J=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Y(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new j("Promise can't be resolved itself");var n=H(t);n?w((function(){var r={done:!1};try{u(n,t,Z(ee,r,e),Z(J,r,e))}catch(t){J(r,t,e)}})):(e.value=t,e.state=1,Y(e,!1))}catch(t){J({done:!1},t,e)}}};if(T&&(F=(M=function(e){g(this,F),m(e),u(n,this);var t=N(this);try{e(Z(ee,t),Z(J,t))}catch(e){J(t,e)}}).prototype,(n=function(e){L(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:void 0})}).prototype=d(F,"then",(function(e,t){var r=N(this),n=U(b(this,M));return r.parent=!0,n.ok=!y(e)||e,n.fail=y(t)&&t,n.domain=c?V.domain:void 0,0===r.state?r.reactions.add(n):w((function(){$(n,r)})),n.promise})),i=function(){var e=new n,t=N(e);this.promise=e,this.resolve=Z(ee,t),this.reject=Z(J,t)},k.f=U=function(e){return e===M||undefined===e?new i(e):z(e)},!s&&y(P)&&D!==Object.prototype)){o=D.then,R||d(D,"then",(function(e,t){var r=this;return new M((function(e,t){u(o,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete D.constructor}catch(e){}f&&f(D,F)}a({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:M}),p(M,O,!1,!0),h(O)},55983:(e,t,r)=>{"use strict";var n=r(76566),i=r(7051),o=r(79942),a=r(84543),s=r(47735),c=r(46357),l=r(98581),u=r(66302),d=r(9704),f=o&&o.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=l(this,s("Promise")),r=c(e);return this.then(r?function(r){return u(t,e()).then((function(){return r}))}:e,r?function(r){return u(t,e()).then((function(){throw r}))}:e)}}),!i&&c(o)){var p=s("Promise").prototype.finally;f.finally!==p&&d(f,"finally",p,{unsafe:!0})}},5858:(e,t,r)=>{"use strict";r(49764),r(66483),r(5139),r(47487),r(24345),r(86872)},47487:(e,t,r)=>{"use strict";var n=r(76566),i=r(92957),o=r(29386),a=r(89579),s=r(28111),c=r(83308);n({target:"Promise",stat:!0,forced:r(64617)},{race:function(e){var t=this,r=a.f(t),n=r.reject,l=s((function(){var a=o(t.resolve);c(e,(function(e){i(a,t,e).then(r.resolve,n)}))}));return l.error&&n(l.value),r.promise}})},24345:(e,t,r)=>{"use strict";var n=r(76566),i=r(92957),o=r(89579);n({target:"Promise",stat:!0,forced:r(2148).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},86872:(e,t,r)=>{"use strict";var n=r(76566),i=r(47735),o=r(7051),a=r(79942),s=r(2148).CONSTRUCTOR,c=r(66302),l=i("Promise"),u=o&&!s;n({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return c(u&&this===l?a:this,e)}})},13849:(e,t,r)=>{"use strict";var n=r(76566),i=r(47735),o=r(41881),a=r(53958),s=r(75292),c=r(50151),l=r(41634),u=r(42104),d=r(84543),f=i("Reflect","construct"),p=Object.prototype,h=[].push,m=d((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),y=!d((function(){f((function(){}))})),v=m||y;n({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){s(e),c(t);var r=arguments.length<3?e:s(arguments[2]);if(y&&!m)return f(e,t,r);if(e===r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return o(h,n,t),new(o(a,e,n))}var i=r.prototype,d=u(l(i)?i:p),v=o(e,d,t);return l(v)?v:d}})},69008:(e,t,r)=>{"use strict";var n=r(76566),i=r(54523),o=r(6143);n({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},81152:(e,t,r)=>{"use strict";var n=r(95180),i=r(54523),o=r(1008),a=r(14396),s=r(3103),c=r(76587),l=r(29712).f,u=r(55161),d=r(82388),f=r(22255),p=r(91274),h=r(79933),m=r(34192),y=r(9704),v=r(84543),g=r(85889),b=r(14317).enforce,E=r(39089),w=r(73683),S=r(83027),A=r(88702),_=w("match"),x=i.RegExp,P=x.prototype,I=i.SyntaxError,k=o(P.exec),O=o("".charAt),T=o("".replace),C=o("".indexOf),R=o("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,D=/a/g,M=new x(L)!==L,F=h.MISSED_STICKY,j=h.UNSUPPORTED_Y,B=n&&(!M||F||S||A||v((function(){return D[_]=!1,x(L)!==L||x(D)===D||"/a/i"!==String(x(L,"i"))})));if(a("RegExp",B)){for(var V=function(e,t){var r,n,i,o,a,l,h=u(P,this),m=d(e),y=void 0===t,v=[],E=e;if(!h&&m&&y&&e.constructor===V)return e;if((m||u(P,e))&&(e=e.source,y&&(t=p(E))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),E=e,S&&"dotAll"in L&&(n=!!t&&C(t,"s")>
vendor: 8,201 bytes, line 2
2-1)&&(t=T(t,/s/g,"")),r=t,F&&"sticky"in L&&(i=!!t&&C(t,"y")>-1)&&j&&(t=T(t,/y/g,"")),A&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],a={},s=!1,c=!1,l=0,u="";n<=r;n++){if("\\"===(t=O(e,n)))t+=O(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:k(N,R(e,n+1))&&(n+=2,c=!0),i+=t,l++;continue;case">"===t&&c:if(""===u||g(a,u))throw new I("Invalid capture group name");a[u]=!0,o[o.length]=[u,l],c=!1,u="";continue}c?u+=t:i+=t}return[i,o]}(e),e=o[0],v=o[1]),a=s(x(e,t),h?this:P,V),(n||i||v.length)&&(l=b(a),n&&(l.dotAll=!0,l.raw=V(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=O(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+O(e,++n);return i}(e),r)),i&&(l.sticky=!0),v.length&&(l.groups=v)),e!==E)try{c(a,"source",""===E?"(?:)":E)}catch(e){}return a},U=l(x),z=0;U.length>z;)m(V,x,U[z++]);P.constructor=V,V.prototype=P,y(i,"RegExp",V,{constructor:!0})}E("RegExp")},30329:(e,t,r)=>{"use strict";var n=r(95180),i=r(83027),o=r(96032),a=r(63642),s=r(14317).get,c=RegExp.prototype,l=TypeError;n&&i&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!s(this).dotAll;throw new l("Incompatible receiver, RegExp required")}}})},93831:(e,t,r)=>{"use strict";var n=r(76566),i=r(8779);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},10881:(e,t,r)=>{"use strict";var n=r(95180),i=r(79933).MISSED_STICKY,o=r(96032),a=r(63642),s=r(14317).get,c=RegExp.prototype,l=TypeError;n&&i&&a(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!s(this).sticky;throw new l("Incompatible receiver, RegExp required")}}})},40890:(e,t,r)=>{"use strict";r(93831);var n,i,o=r(76566),a=r(92957),s=r(46357),c=r(50151),l=r(22255),u=(n=!1,(i=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&n),d=/./.test;o({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=c(this),r=l(e),n=t.exec;if(!s(n))return a(d,t,r);var i=a(n,t,r);return null!==i&&(c(i),!0)}})},34237:(e,t,r)=>{"use strict";var n=r(50094).PROPER,i=r(9704),o=r(50151),a=r(22255),s=r(84543),c=r(91274),l="toString",u=RegExp.prototype[l],d=s((function(){return"/a/b"!==u.call({source:"a",flags:"b"})})),f=n&&u.name!==l;(d||f)&&i(RegExp.prototype,l,(function(){var e=o(this);return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},22645:(e,t,r)=>{"use strict";r(50196)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(82394))},33111:(e,t,r)=>{"use strict";r(22645)},34042:(e,t,r)=>{"use strict";var n=r(76566),i=r(28696);n({target:"String",proto:!0,forced:r(76085)("fixed")},{fixed:function(){return i(this,"tt","","")}})},68291:(e,t,r)=>{"use strict";var n=r(76566),i=r(1008),o=r(10495),a=r(69286),s=r(22255),c=r(16412),l=i("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~l(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},94356:(e,t,r)=>{"use strict";var n=r(14775).charAt,i=r(22255),o=r(14317),a=r(23952),s=r(45025),c="String Iterator",l=o.set,u=o.getterFor(c);a(String,"String",(function(e){l(this,{type:c,string:i(e),index:0})}),(function(){var e,t=u(this),r=t.string,i=t.index;return i>=r.length?s(void 0,!0):(e=n(r,i),t.index+=e.length,s(e,!1))}))},17114:(e,t,r)=>{"use strict";var n=r(76566),i=r(28696);n({target:"String",proto:!0,forced:r(76085)("link")},{link:function(e){return i(this,"a","href",e)}})},11505:(e,t,r)=>{"use strict";var n=r(92957),i=r(1644),o=r(50151),a=r(3445),s=r(55966),c=r(22255),l=r(69286),u=r(6046),d=r(97157),f=r(96010);i("match",(function(e,t,r){return[function(t){var r=l(this),i=a(t)?void 0:u(t,e);return i?n(i,t,r):new RegExp(t)[e](c(r))},function(e){var n=o(this),i=c(e),a=r(t,n,i);if(a.done)return a.value;if(!n.global)return f(n,i);var l=n.unicode;n.lastIndex=0;for(var u,p=[],h=0;null!==(u=f(n,i));){var m=c(u[0]);p[h]=m,""===m&&(n.lastIndex=d(i,s(n.lastIndex),l)),h++}return 0===h?null:p}]}))},98304:(e,t,r)=>{"use strict";var n=r(41881),i=r(92957),o=r(1008),a=r(1644),s=r(84543),c=r(50151),l=r(46357),u=r(3445),d=r(44827),f=r(55966),p=r(22255),h=r(69286),m=r(97157),y=r(6046),v=r(49070),g=r(96010),b=r(73683)("replace"),E=Math.max,w=Math.min,S=o([].concat),A=o([].push),_=o("".indexOf),x=o("".slice),P="$0"==="a".replace(/./,"$0"),I=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var o=I?"$":"$0";return[function(e,r){var n=h(this),o=u(e)?void 0:y(e,b);return o?i(o,e,n,r):i(t,p(n),e,r)},function(e,i){var a=c(this),s=p(e);if("string"==typeof i&&-1===_(i,o)&&-1===_(i,"$<")){var u=r(t,a,s,i);if(u.done)return u.value}var h=l(i);h||(i=p(i));var y,b=a.global;b&&(y=a.unicode,a.lastIndex=0);for(var P,I=[];null!==(P=g(a,s))&&(A(I,P),b);){""===p(P[0])&&(a.lastIndex=m(s,f(a.lastIndex),y))}for(var k,O="",T=0,C=0;C<I.length;C++){for(var R,N=p((P=I[C])[0]),L=E(w(d(P.index),s.length),0),D=[],M=1;M<P.length;M++)A(D,void 0===(k=P[M])?k:String(k));var F=P.groups;if(h){var j=S([N],D,L,s);void 0!==F&&A(j,F),R=p(n(i,void 0,j))}else R=v(N,s,L,D,F,i);L>=T&&(O+=x(s,T,L)+R,T=L+N.length)}return O+x(s,T)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!P||I)},28882:(e,t,r)=>{"use strict";var n=r(92957),i=r(1644),o=r(50151),a=r(3445),s=r(69286),c=r(53550),l=r(22255),u=r(6046),d=r(96010);i("search",(function(e,t,r){return[function(t){var r=s(this),i=a(t)?void 0:u(t,e);return i?n(i,t,r):new RegExp(t)[e](l(r))},function(e){var n=o(this),i=l(e),a=r(t,n,i);if(a.done)return a.value;var s=n.lastIndex;c(s,0)||(n.lastIndex=0);var u=d(n,i);return c(n.lastIndex,s)||(n.lastIndex=s),null===u?-1:u.index}]}))},30488:(e,t,r)=>{"use strict";var n=r(41881),i=r(92957),o=r(1008),a=r(1644),s=r(50151),c=r(3445),l=r(82388),u=r(69286),d=r(98581),f=r(97157),p=r(55966),h=r(22255),m=r(6046),y=r(80231),v=r(96010),g=r(8779),b=r(79933),E=r(84543),w=b.UNSUPPORTED_Y,S=4294967295,A=Math.min,_=[].push,x=o(/./.exec),P=o(_),I=o("".slice);a("split",(function(e,t,r){var o;return o="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var o=h(u(this)),a=void 0===r?S:r>>>0;if(0===a)return[];if(void 0===e)return[o];if(!l(e))return i(t,o,e,a);for(var s,c,d,f=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,v=new RegExp(e.source,p+"g");(s=i(g,v,o))&&!((c=v.lastIndex)>m&&(P(f,I(o,m,s.index)),s.length>1&&s.index<o.length&&n(_,f,y(s,1)),d=s[0].length,m=c,f.length>=a));)v.lastIndex===s.index&&v.lastIndex++;return m===o.length?!d&&x(v,"")||P(f,""):P(f,I(o,m)),f.length>a?y(f,0,a):f}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:i(t,this,e,r)}:t,[function(t,r){var n=u(this),a=c(t)?void 0:m(t,e);return a?i(a,t,n,r):i(o,h(n),t,r)},function(e,n){var i=s(this),a=h(e),c=r(o,i,a,n,o!==t);if(c.done)return c.value;var l=d(i,RegExp),u=i.unicode,m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(w?"g":"y"),y=new l(w?"^(?:"+i.source+")":i,m),g=void 0===n?S:n>>>0;if(0===g)return[];if(0===a.length)return null===v(y,a)?[a]:[];for(var b=0,E=0,_=[];E<a.length;){y.lastIndex=w?0:E;var x,k=v(y,w?I(a,E):a);if(null===k||(x=A(p(y.lastIndex+(w?E:0)),a.length))===b)E=f(a,E,u);else{if(P(_,I(a,b,E)),_.length===g)return _;for(var O=1;O<=k.length-1;O++)if(P(_,k[O]),_.length===g)return _;E=b=x}}return P(_,I(a,b)),_}]}),!!E((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),w)},73511:(e,t,r)=>{"use strict";var n=r(76566),i=r(1008),o=r(69286),a=r(44827),s=r(22255),c=i("".slice),l=Math.max,u=Math.min;n({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var r,n,i=s(o(this)),d=i.length,f=a(e);return f===1/0&&(f=0),f<0&&(f=l(d+f,0)),(r=void 0===t?d:a(t))<=0||r===1/0||f>=(n=u(f+r,d))?"":c(i,f,n)}})},9098:(e,t,r)=>{"use strict";var n=r(76566),i=r(78906).trim;n({target:"String",proto:!0,forced:r(30082)("trim")},{trim:function(){return i(this)}})},19948:(e,t,r)=>{"use strict";r(88399)("asyncIterator")},86697:(e,t,r)=>{"use strict";
vendor: 4,241 bytes, line 2
2var n=r(76566),i=r(54523),o=r(92957),a=r(1008),s=r(7051),c=r(95180),l=r(4687),u=r(84543),d=r(85889),f=r(55161),p=r(50151),h=r(20853),m=r(29833),y=r(22255),v=r(6372),g=r(42104),b=r(22528),E=r(29712),w=r(23834),S=r(32981),A=r(89763),_=r(78449),x=r(98337),P=r(40005),I=r(9704),k=r(63642),O=r(39441),T=r(99847),C=r(65525),R=r(76048),N=r(73683),L=r(84447),D=r(88399),M=r(41282),F=r(6143),j=r(14317),B=r(32077).forEach,V=T("hidden"),U="Symbol",z="prototype",G=j.set,W=j.getterFor(U),H=Object[z],$=i.Symbol,Y=$&&$[z],q=i.RangeError,K=i.TypeError,Q=i.QObject,X=A.f,Z=_.f,J=w.f,ee=P.f,te=a([].push),re=O("symbols"),ne=O("op-symbols"),ie=O("wks"),oe=!Q||!Q[z]||!Q[z].findChild,ae=function(e,t,r){var n=X(H,t);n&&delete H[t],Z(e,t,r),n&&e!==H&&Z(H,t,n)},se=c&&u((function(){return 7!==g(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?ae:Z,ce=function(e,t){var r=re[e]=g(Y);return G(r,{type:U,tag:e,description:t}),c||(r.description=t),r},le=function(e,t,r){e===H&&le(ne,t,r),p(e);var n=m(t);return p(r),d(re,n)?(r.enumerable?(d(e,V)&&e[V][n]&&(e[V][n]=!1),r=g(r,{enumerable:v(0,!1)})):(d(e,V)||Z(e,V,v(1,{})),e[V][n]=!0),se(e,n,r)):Z(e,n,r)},ue=function(e,t){p(e);var r=h(t),n=b(r).concat(he(r));return B(n,(function(t){c&&!o(de,r,t)||le(e,t,r[t])})),e},de=function(e){var t=m(e),r=o(ee,this,t);return!(this===H&&d(re,t)&&!d(ne,t))&&(!(r||!d(this,t)||!d(re,t)||d(this,V)&&this[V][t])||r)},fe=function(e,t){var r=h(e),n=m(t);if(r!==H||!d(re,n)||d(ne,n)){var i=X(r,n);return!i||!d(re,n)||d(r,V)&&r[V][n]||(i.enumerable=!0),i}},pe=function(e){var t=J(h(e)),r=[];return B(t,(function(e){d(re,e)||d(C,e)||te(r,e)})),r},he=function(e){var t=e===H,r=J(t?ne:h(e)),n=[];return B(r,(function(e){!d(re,e)||t&&!d(H,e)||te(n,re[e])})),n};l||(I(Y=($=function(){if(f(Y,this))throw new K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=R(e),r=function(e){this===H&&o(r,ne,e),d(this,V)&&d(this[V],t)&&(this[V][t]=!1);var n=v(1,e);try{se(this,t,n)}catch(e){if(!(e instanceof q))throw e;ae(this,t,n)}};return c&&oe&&se(H,t,{configurable:!0,set:r}),ce(t,e)})[z],"toString",(function(){return W(this).tag})),I($,"withoutSetter",(function(e){return ce(R(e),e)})),P.f=de,_.f=le,x.f=ue,A.f=fe,E.f=w.f=pe,S.f=he,L.f=function(e){return ce(N(e),e)},c&&(k(Y,"description",{configurable:!0,get:function(){return W(this).description}}),s||I(H,"propertyIsEnumerable",de,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:$}),B(b(ie),(function(e){D(e)})),n({target:U,stat:!0,forced:!l},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(e,t){return void 0===t?g(e):ue(g(e),t)},defineProperty:le,defineProperties:ue,getOwnPropertyDescriptor:fe}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe}),M(),F($,U),C[V]=!0},69399:(e,t,r)=>{"use strict";var n=r(76566),i=r(95180),o=r(54523),a=r(1008),s=r(85889),c=r(46357),l=r(55161),u=r(22255),d=r(63642),f=r(20812),p=o.Symbol,h=p&&p.prototype;if(i&&c(p)&&(!("description"in h)||void 0!==p().description)){var m={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=l(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};f(y,p),y.prototype=h,h.constructor=y;var v="Symbol(description detection)"===String(p("description detection")),g=a(h.valueOf),b=a(h.toString),E=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),S=a("".slice);d(h,"description",{configurable:!0,get:function(){var e=g(this);if(s(m,e))return"";var t=b(e),r=v?S(t,7,-1):w(t,E,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}},32966:(e,t,r)=>{"use strict";var n=r(76566),i=r(47735),o=r(85889),a=r(22255),s=r(39441),c=r(57440),l=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=a(e);if(o(l,t))return l[t];var r=i("Symbol")(t);return l[t]=r,u[r]=t,r}})},48851:(e,t,r)=>{"use strict";r(88399)("iterator")},79683:(e,t,r)=>{"use strict";r(86697),r(32966),r(70676),r(5974),r(80269)},70676:(e,t,r)=>{"use strict";var n=r(76566),i=r(85889),o=r(32357),a=r(40215),s=r(39441),c=r(57440),l=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c}
vendor: 8,300 bytes, line 2
2,{keyFor:function(e){if(!o(e))throw new TypeError(a(e)+" is not a symbol");if(i(l,e))return l[e]}})},85028:(e,t,r)=>{"use strict";var n=r(88399),i=r(41282);n("toPrimitive"),i()},99629:(e,t,r)=>{"use strict";var n=r(47735),i=r(88399),o=r(6143);i("toStringTag"),o(n("Symbol"),"Symbol")},21004:(e,t,r)=>{"use strict";var n=r(48180),i=r(65526),o=r(44827),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",(function(e){var t=a(this),r=i(t),n=o(e),s=n>=0?n:r+n;return s<0||s>=r?void 0:t[s]}))},83166:(e,t,r)=>{"use strict";var n=r(1008),i=r(48180),o=n(r(52485)),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},41546:(e,t,r)=>{"use strict";var n=r(48180),i=r(32077).every,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},86852:(e,t,r)=>{"use strict";var n=r(48180),i=r(34453),o=r(25934),a=r(47611),s=r(92957),c=r(1008),l=r(84543),u=n.aTypedArray,d=n.exportTypedArrayMethod,f=c("".slice);d("fill",(function(e){var t=arguments.length;u(this);var r="Big"===f(a(this),0,3)?o(e):+e;return s(i,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),l((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},65827:(e,t,r)=>{"use strict";var n=r(48180),i=r(32077).filter,o=r(469),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},64931:(e,t,r)=>{"use strict";var n=r(48180),i=r(32077).findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},91326:(e,t,r)=>{"use strict";var n=r(48180),i=r(9983).findLastIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},75439:(e,t,r)=>{"use strict";var n=r(48180),i=r(9983).findLast,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},27150:(e,t,r)=>{"use strict";var n=r(48180),i=r(32077).find,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},54710:(e,t,r)=>{"use strict";var n=r(48180),i=r(32077).forEach,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},43801:(e,t,r)=>{"use strict";var n=r(16261);(0,r(48180).exportTypedArrayStaticMethod)("from",r(89843),n)},66e3:(e,t,r)=>{"use strict";var n=r(48180),i=r(42753).includes,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},88155:(e,t,r)=>{"use strict";var n=r(48180),i=r(42753).indexOf,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},34391:(e,t,r)=>{"use strict";var n=r(54523),i=r(84543),o=r(1008),a=r(48180),s=r(96656),c=r(73683)("iterator"),l=n.Uint8Array,u=o(s.values),d=o(s.keys),f=o(s.entries),p=a.aTypedArray,h=a.exportTypedArrayMethod,m=l&&l.prototype,y=!i((function(){m[c].call([1])})),v=!!m&&m.values&&m[c]===m.values&&"values"===m.values.name,g=function(){return u(p(this))};h("entries",(function(){return f(p(this))}),y),h("keys",(function(){return d(p(this))}),y),h("values",g,y||!v,{name:"values"}),h(c,g,y||!v,{name:"values"})},14825:(e,t,r)=>{"use strict";var n=r(48180),i=r(1008),o=n.aTypedArray,a=n.exportTypedArrayMethod,s=i([].join);a("join",(function(e){return s(o(this),e)}))},49852:(e,t,r)=>{"use strict";var n=r(48180),i=r(41881),o=r(4667),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return i(o,a(this),t>1?[e,arguments[1]]:[e])}))},55587:(e,t,r)=>{"use strict";var n=r(48180),i=r(32077).map,o=r(44324),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},18568:(e,t,r)=>{"use strict";var n=r(48180),i=r(47262).right,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},11511:(e,t,r)=>{"use strict";var n=r(48180),i=r(47262).left,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},28075:(e,t,r)=>{"use strict";var n=r(48180),i=n.aTypedArray,o=n.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var e,t=this,r=i(t).length,n=a(r/2),o=0;o<n;)e=t[o],t[o++]=t[--r],t[r]=e;return t}))},75437:(e,t,r)=>{"use strict";var n=r(54523),i=r(92957),o=r(48180),a=r(65526),s=r(79829),c=r(70581),l=r(84543),u=n.RangeError,d=n.Int8Array,f=d&&d.prototype,p=f&&f.set,h=o.aTypedArray,m=o.exportTypedArrayMethod,y=!l((function(){var e=new Uint8ClampedArray(2);return i(p,e,{length:1,0:3},1),3!==e[1]})),v=y&&o.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){h(this);var t=s(arguments.length>1?arguments[1]:void 0,1),r=c(e);if(y)return i(p,this,r,t);var n=this.length,o=a(r),l=0;if(o+t>n)throw new u("Wrong length");for(;l<o;)this[t+l]=r[l++]}),!y||v)},98799:(e,t,r)=>{"use strict";var n=r(48180),i=r(44324),o=r(84543),a=r(19136),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(e,t){for(var r=a(s(this),e,t),n=i(this),o=0,c=r.length,l=new n(c);c>o;)l[o]=r[o++];return l}),o((function(){new Int8Array(1).slice()})))},52757:(e,t,r)=>{"use strict";var n=r(48180),i=r(32077).some,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},12181:(e,t,r)=>{"use strict";var n=r(54523),i=r(11316),o=r(84543),a=r(29386),s=r(24568),c=r(48180),l=r(24290),u=r(2530),d=r(72844),f=r(10664),p=c.aTypedArray,h=c.exportTypedArrayMethod,m=n.Uint16Array,y=m&&i(m.prototype.sort),v=!(!y||o((function(){y(new m(2),null)}))&&o((function(){y(new m(2),{})}))),g=!!y&&!o((function(){if(d)return d<74;if(l)return l<67;if(u)return!0;if(f)return f<602;var e,t,r=new m(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(y(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));h("sort",(function(e){return void 0!==e&&a(e),g?y(this,e):s(p(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!g||v)},8118:(e,t,r)=>{"use strict";var n=r(48180),i=r(55966),o=r(47418),a=r(44324),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=s(this),n=r.length,c=o(e,n);return new(a(r))(r.buffer,r.byteOffset+c*r.BYTES_PER_ELEMENT,i((void 0===t?n:o(t,n))-c))}))},32637:(e,t,r)=>{"use strict";var n=r(54523),i=r(41881),o=r(48180),a=r(84543),s=r(19136),c=n.Int8Array,l=o.aTypedArray,u=o.exportTypedArrayMethod,d=[].toLocaleString,f=!!c&&a((function(){d.call(new c(1))}));u("toLocaleString",(function(){return i(d,f?s(l(this)):l(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!==new c([1,2]).toLocaleString()}))||!a((function(){c.prototype.toLocaleString.call([1,2])})))},39003:(e,t,r)=>{"use strict";var n=r(33084),i=r(48180),o=i.aTypedArray,a=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;a("toReversed",(function(){return n(o(this),s(this))}))},98268:(e,t,r)=>{"use strict";var n=r(48180),i=r(1008),o=r(29386),a=r(18282),s=n.aTypedArray,c=n.getTypedArrayConstructor,l=n.exportTypedArrayMethod,u=i(n.TypedArrayPrototype.sort);l("toSorted",(function(e){void 0!==e&&o(e);var t=s(this),r=a(c(t),t);return u(r,e)}))},87220:(e,t,r)=>{"use strict";var n=r(48180).exportTypedArrayMethod,i=r(84543),o=r(54523),a=r(1008),s=o.Uint8Array,c=s&&s.prototype||{},l=[].toString,u=a([].join);i((function(){l.call({})}))&&(l=function(){return u(this)});var d=c.toString!==l;n("toString",l,d)},23025:(e,t,r)=>{"use strict";r(90799)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},91385:(e,t,r)=>{"use strict";var n=r(90008),i=r(48180),o=r(65319),a=r(44827),s=r(25934),c=i.aTypedArray,l=i.getTypedArrayConstructor,u=i.exportTypedArrayMethod,d=!!function(){try{new Int8Array(1).with(2,{valueOf
vendor: 4,182 bytes, line 2
2:function(){throw 8}})}catch(e){return 8===e}}();u("with",{with:function(e,t){var r=c(this),i=a(e),u=o(r)?s(t):+t;return n(r,l(r),i,u)}}.with,!d)},87250:(e,t,r)=>{"use strict";var n,i=r(95240),o=r(54523),a=r(1008),s=r(86519),c=r(98907),l=r(50196),u=r(48137),d=r(41634),f=r(14317).enforce,p=r(84543),h=r(60158),m=Object,y=Array.isArray,v=m.isExtensible,g=m.isFrozen,b=m.isSealed,E=m.freeze,w=m.seal,S={},A={},_=!o.ActiveXObject&&"ActiveXObject"in o,x=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},P=l("WeakMap",x,u),I=P.prototype,k=a(I.set);if(h)if(_){n=u.getConstructor(x,"WeakMap",!0),c.enable();var O=a(I.delete),T=a(I.has),C=a(I.get);s(I,{delete:function(e){if(d(e)&&!v(e)){var t=f(this);return t.frozen||(t.frozen=new n),O(this,e)||t.frozen.delete(e)}return O(this,e)},has:function(e){if(d(e)&&!v(e)){var t=f(this);return t.frozen||(t.frozen=new n),T(this,e)||t.frozen.has(e)}return T(this,e)},get:function(e){if(d(e)&&!v(e)){var t=f(this);return t.frozen||(t.frozen=new n),T(this,e)?C(this,e):t.frozen.get(e)}return C(this,e)},set:function(e,t){if(d(e)&&!v(e)){var r=f(this);r.frozen||(r.frozen=new n),T(this,e)?k(this,e,t):r.frozen.set(e,t)}else k(this,e,t);return this}})}else i&&p((function(){var e=E([]);return k(new P,e,1),!g(e)}))&&s(I,{set:function(e,t){var r;return y(e)&&(g(e)?r=S:b(e)&&(r=A)),k(this,e,t),r===S&&E(e),r===A&&w(e),this}})},95372:(e,t,r)=>{"use strict";r(87250)},16641:(e,t,r)=>{"use strict";var n=r(76566),i=r(54523),o=r(47735),a=r(1008),s=r(92957),c=r(84543),l=r(22255),u=r(85889),d=r(88956),f=r(42884).ctoi,p=/[^\d+/a-z]/i,h=/[\t\n\f\r ]+/g,m=/[=]{1,2}$/,y=o("atob"),v=String.fromCharCode,g=a("".charAt),b=a("".replace),E=a(p.exec),w=c((function(){return""!==y(" ")})),S=!c((function(){y("a")})),A=!w&&!S&&!c((function(){y()})),_=!w&&!S&&1!==y.length;n({global:!0,bind:!0,enumerable:!0,forced:w||S||A||_},{atob:function(e){if(d(arguments.length,1),A||_)return s(y,i,e);var t,r,n=b(l(e),h,""),a="",c=0,w=0;if(n.length%4==0&&(n=b(n,m,"")),n.length%4==1||E(p,n))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;t=g(n,c++);)u(f,t)&&(r=w%4?64*r+f[t]:f[t],w++%4&&(a+=v(255&r>>(-2*w&6))));return a}})},55903:(e,t,r)=>{"use strict";var n=r(76566),i=r(54523),o=r(47735),a=r(1008),s=r(92957),c=r(84543),l=r(22255),u=r(88956),d=r(42884).itoc,f=o("btoa"),p=a("".charAt),h=a("".charCodeAt),m=!!f&&!c((function(){f()})),y=!!f&&c((function(){return"bnVsbA=="!==f(null)})),v=!!f&&1!==f.length;n({global:!0,bind:!0,enumerable:!0,forced:m||y||v},{btoa:function(e){if(u(arguments.length,1),m||y||v)return s(f,i,l(e));for(var t,r,n=l(e),a="",c=0,g=d;p(n,c)||(g="=",c%1);){if((r=h(n,c+=3/4))>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");a+=p(g,63&(t=t<<8|r)>>8-c%1*8)}return a}})},22892:(e,t,r)=>{"use strict";var n=r(54523),i=r(90792),o=r(80832),a=r(13371),s=r(76587),c=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var l in i)i[l]&&c(n[l]&&n[l].prototype);c(o)},45993:(e,t,r)=>{"use strict";var n=r(54523),i=r(90792),o=r(80832),a=r(96656),s=r(76587),c=r(73683),l=c("iterator"),u=c("toStringTag"),d=a.values,f=function(e,t){if(e){if(e[l]!==d)try{s(e,l,d)}catch(t){e[l]=d}if(e[u]||s(e,u,t),i[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var p in i)f(n[p]&&n[p].prototype,p);f(o,"DOMTokenList")},82535:(e,t,r)=>{"use strict";var n=r(76566),i=r(16306),o=r(47735),a=r(84543),s=r(42104),c=r(6372),l=r(78449).f,u=r(9704),d=r(63642),f=r(85889),p=r(42135),h=r(50151),m=r(50400),y=r(98747),v=r(29978),g=r(11649),b=r(14317),E=r(95180),w=r(7051),S="DOMException",A="DATA_CLONE_ERR",_=o("Error"),x=o(S)||function(){try{(new(o("MessageChannel")||i("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===A&&25===e.code)return e.constructor}}(),P=x&&x.prototype,I=_.prototype,k=b.set,O=b.getterFor(S),T="stack"in new _(S),C=function(e){return f(v,e)&&v[e].m?v[e].c:0},R=function(){p(this,N);var e=arguments.length,t=y(e<1?void 0:arguments[0]),r=y(e<2?void 0:arguments[1],"Error"),n=C(r);if(k(this,{type:S,name:r,message:t,code:n}
2),E||(this.name=r,this.message=t,this.code=n),T){var i=new _(t);i.name=S,l(this,"stack",c(1,g(i.stack,1)))}},N=R.prototype=s(I),L=function(e){return{enumerable:!0,configurable:!0,get:e}},D=function(e){return L((function(){return O(this)[e]}))};E&&(d(N,"code",D("code")),d(N,"message",D("message")),d(N,"name",D("name"))),l(N,"constructor",c(1,R));var M=a((function(){return!(new x instanceof _)})),F=M||a((function(){return I.toString!==m||"2: 1"!==String(new x(1,2))})),j=M||a((function(){return 25!==new x(1,"DataCloneError").code})),B=M||25!==x[A]||25!==P[A],V=w?F||j||B:M;n({global:!0,constructor:!0,forced:V},{DOMException:V?R:x});var U=o(S),z=U.prototype;for(var G in F&&(w||x===U)&&u(z,"toString",m),j&&E&&x===U&&d(z,"code",L((function(){return C(h(this).name)}))),v)if(f(v,G)){var W=v[G],H=W.s,$=c(6,W.c);f(U,H)||l(U,H,$),f(z,H)||l(z,H,$)}},86483:(e,t,r)=>{"use strict";var n=r(76566),i=r(54523),o=r(47735),a=r(6372),s=r(78449).f,c=r(85889),l=r(42135),u=r(3103),d=r(98747),f=r(29978),p=r(11649),h=r(95180),m=r(7051),y="DOMException",v=o("Error"),g=o(y),b=function(){l(this,E);var e=arguments.length,t=d(e<1?void 0:arguments[0]),r=d(e<2?void 0:arguments[1],"Error"),n=new g(t,r),i=new v(t);return i.name=y,s(n,"stack",a(1,p(i.stack,1))),u(n,this,b),n},E=b.prototype=g.prototype,w="stack"in new v(y),S="stack"in new g(1,2),A=g&&h&&Object.getOwnPropertyDescriptor(i,y),_=!(!A||A.writable&&A.configurable),x=w&&!_&&!S;n({global:!0,constructor:!0,forced:m||x},{DOMException:x?b:g});var P=o(y),I=P.prototype;if(I.constructor!==P)for(var k in m||s(I,"constructor",a(1,P)),f)if(c(f,k)){var O=f[k],T=O.s;c(P,T)||s(P,T,a(6,O.c))}},70971:(e,t,r)=>{"use strict";var n=r(47735),i="DOMException";r(6143)(n(i),i)},43659:(e,t,r)=>{"use strict";var n=r(76566),i=r(54523),o=r(63642),a=r(95180),s=TypeError,c=Object.defineProperty,l=i.self!==i;try{if(a){var u=Object.getOwnPropertyDescriptor(i,"self");!l&&u&&u.get&&u.enumerable||o(i,"self",{get:function(){return i},set:function(e){if(this!==i)throw new s("Illegal invocation");c(i,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else n({global:!0,simple:!0,forced:l},{self:i})}catch(e){}},38711:(e,t,r)=>{"use strict";var n=r(76566),i=r(54523),o=r(2608)(i.setInterval,!0);n({global:!0,bind:!0,forced:i.setInterval!==o},{setInterval:o})},64343:(e,t,r)=>{"use strict";var n=r(76566),i=r(54523),o=r(2608)(i.setTimeout,!0);n({global:!0,bind:!0,forced:i.setTimeout!==o},{setTimeout:o})},78527:(e,t,r)=>{"use strict";r(38711),r(64343)},81318:(e,t,r)=>{"use strict";r(96656);var n=r(76566),i=r(54523),o=r(92957),a=r(1008),s=r(95180),c=r(49912),l=r(9704),u=r(63642),d=r(86519),f=r(6143),p=r(60714),h=r(14317),m=r(42135),y=r(46357),v=r(85889),g=r(81232),b=r(47611),E=r(50151),w=r(41634),S=r(22255),A=r(42104),_=r(6372),x=r(36417),P=r(30787),I=r(88956),k=r(73683),O=r(24568),T=k("iterator"),C="URLSearchParams",R=C+"Iterator",N=h.set,L=h.getterFor(C),D=h.getterFor(R),M=Object.getOwnPropertyDescriptor,F=function(e){if(!s)return i[e];var t=M(i,e);return t&&t.value},j=F("fetch"),B=F("Request"),V=F("Headers"),U=B&&B.prototype,z=V&&V.prototype,G=i.RegExp,W=i.TypeError,H=i.decodeURIComponent,$=i.encodeURIComponent,Y=a("".charAt),q=a([].join),K=a([].push),Q=a("".replace),X=a([].shift),Z=a([].splice),J=a("".split),ee=a("".slice),te=/\+/g,re=Array(4),ne=function(e){return re[e-1]||(re[e-1]=G("((?:%[\\da-f]{2}){"+e+"})","gi"))},ie=function(e){try{return H(e)}catch(t){return e}},oe=function(e){var t=Q(e,te," "),r=4;try{return H(t)}catch(e){for(;r;)t=Q(t,ne(r--),ie);return t}},ae=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ce=function(e){return se[e]},le=function(e){return Q($(e),ae,ce)},ue=p((function(e,t){N(this,{type:R,iterator:x(L(e).entries),kind:t})}),"Iterator",(function(){var e=D(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),de=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?ee(e,1):e:S(e)))};de.prototype={type:C,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,a,s,c,l=P(e);
vendor: 4,409 bytes, line 2
2if(l)for(r=(t=x(e,l)).next;!(n=o(r,t)).done;){if(a=(i=x(E(n.value))).next,(s=o(a,i)).done||(c=o(a,i)).done||!o(a,i).done)throw new W("Expected sequence with length 2");K(this.entries,{key:S(s.value),value:S(c.value)})}else for(var u in e)v(e,u)&&K(this.entries,{key:u,value:S(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=J(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=J(t,"="),K(this.entries,{key:oe(X(r)),value:oe(q(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],K(r,le(e.key)+"="+le(e.value));return q(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){m(this,pe);var e=N(this,new de(arguments.length>0?arguments[0]:void 0));s||(this.size=e.entries.length)},pe=fe.prototype;if(d(pe,{append:function(e,t){var r=L(this);I(arguments.length,2),K(r.entries,{key:S(e),value:S(t)}),s||this.length++,r.updateURL()},delete:function(e){for(var t=L(this),r=I(arguments.length,1),n=t.entries,i=S(e),o=r<2?void 0:arguments[1],a=void 0===o?o:S(o),c=0;c<n.length;){var l=n[c];if(l.key!==i||void 0!==a&&l.value!==a)c++;else if(Z(n,c,1),void 0!==a)break}s||(this.size=n.length),t.updateURL()},get:function(e){var t=L(this).entries;I(arguments.length,1);for(var r=S(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=L(this).entries;I(arguments.length,1);for(var r=S(e),n=[],i=0;i<t.length;i++)t[i].key===r&&K(n,t[i].value);return n},has:function(e){for(var t=L(this).entries,r=I(arguments.length,1),n=S(e),i=r<2?void 0:arguments[1],o=void 0===i?i:S(i),a=0;a<t.length;){var s=t[a++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=L(this);I(arguments.length,1);for(var n,i=r.entries,o=!1,a=S(e),c=S(t),l=0;l<i.length;l++)(n=i[l]).key===a&&(o?Z(i,l--,1):(o=!0,n.value=c));o||K(i,{key:a,value:c}),s||(this.size=i.length),r.updateURL()},sort:function(){var e=L(this);O(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=L(this).entries,n=g(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new ue(this,"keys")},values:function(){return new ue(this,"values")},entries:function(){return new ue(this,"entries")}},{enumerable:!0}),l(pe,T,pe.entries,{name:"entries"}),l(pe,"toString",(function(){return L(this).serialize()}),{enumerable:!0}),s&&u(pe,"size",{get:function(){return L(this).entries.length},configurable:!0,enumerable:!0}),f(fe,C),n({global:!0,constructor:!0,forced:!c},{URLSearchParams:fe}),!c&&y(V)){var he=a(z.has),me=a(z.set),ye=function(e){if(w(e)){var t,r=e.body;if(b(r)===C)return t=e.headers?new V(e.headers):new V,he(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),A(e,{body:_(0,S(r)),headers:_(0,t)})}return e};if(y(j)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return j(e,arguments.length>1?ye(arguments[1]):{})}}),y(B)){var ve=function(e){return m(this,U),new B(e,arguments.length>1?ye(arguments[1]):{})};U.constructor=ve,ve.prototype=U,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:fe,getState:L}},97643:(e,t,r)=>{"use strict";var n=r(9704),i=r(1008),o=r(22255),a=r(88956),s=URLSearchParams,c=s.prototype,l=i(c.append),u=i(c.delete),d=i(c.forEach),f=i([].push),p=new s("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&n(c,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return u(this,e);var n=[];d(this,(function(e,t){f(n,{key:t,value:e})})),a(t,1);for(var i,s=o(e),c=o(r),p=0,h=0,m=!1,y=n.length;p<y;)i=n[p++],m||i.key===s?(m=!0,u(this,i.key)):h++;for(;h<y;)(i=n[h++]).key===s&&i.value===c||l(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},6190:(e,t,r)=>{"use strict";var n=r(9704),i=r(1008),o=r(22255),a=r(88956),s=URLSearchParams,c=s.prototype,l=i(c.getAll),u=i(c.has),d=new s("a=1");!d.has("a",2)&&d.has("a",void 0)||n(c,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return u(this,e);var n=l(this,e);a(t,1);for(var i=o(r),s=0;s<n.length;)if(n[s++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},28344:(e,t,r)=>{"use strict";r(81318)},257:(e,t,r)=>{"use strict";var n=r(95180),i=r(1008),o=r(63642),a=URLSearchParams.prototype,s=i(a.forEac
vendor: 10,261 bytes, line 2
2h);n&&!("size"in a)&&o(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},41262:(e,t,r)=>{"use strict";r(94356);var n,i=r(76566),o=r(95180),a=r(49912),s=r(54523),c=r(81232),l=r(1008),u=r(9704),d=r(63642),f=r(42135),p=r(85889),h=r(83957),m=r(47996),y=r(80231),v=r(14775).codeAt,g=r(21605),b=r(22255),E=r(6143),w=r(88956),S=r(81318),A=r(14317),_=A.set,x=A.getterFor("URL"),P=S.URLSearchParams,I=S.getState,k=s.URL,O=s.TypeError,T=s.parseInt,C=Math.floor,R=Math.pow,N=l("".charAt),L=l(/./.exec),D=l([].join),M=l(1..toString),F=l([].pop),j=l([].push),B=l("".replace),V=l([].shift),U=l("".split),z=l("".slice),G=l("".toLowerCase),W=l([].unshift),H="Invalid scheme",$="Invalid host",Y="Invalid port",q=/[a-z]/i,K=/[\d+-.a-z]/i,Q=/\d/,X=/^0x/i,Z=/^[0-7]+$/,J=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,oe=/[\t\n\r]/g,ae=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)W(t,e%256),e=C(e/256);return D(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=M(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},se={},ce=h({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),le=h({},ce,{"#":1,"?":1,"{":1,"}":1}),ue=h({},le,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),de=function(e,t){var r=v(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var r;return 2===e.length&&L(q,N(e,0))&&(":"===(r=N(e,1))||!t&&"|"===r)},he=function(e){var t;return e.length>1&&pe(z(e,0,2))&&(2===e.length||"/"===(t=N(e,2))||"\\"===t||"?"===t||"#"===t)},me=function(e){return"."===e||"%2e"===G(e)},ye={},ve={},ge={},be={},Ee={},we={},Se={},Ae={},_e={},xe={},Pe={},Ie={},ke={},Oe={},Te={},Ce={},Re={},Ne={},Le={},De={},Me={},Fe=function(e,t,r){var n,i,o,a=b(e);if(t){if(i=this.parse(a))throw new O(i);this.searchParams=null}else{if(void 0!==r&&(n=new Fe(r,!0)),i=this.parse(a,null,n))throw new O(i);(o=I(new P)).bindURL(this),this.searchParams=o}};Fe.prototype={type:"URL",parse:function(e,t,r){var i,o,a,s,c,l=this,u=t||ye,d=0,f="",h=!1,v=!1,g=!1;for(e=b(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=B(e,ne,""),e=B(e,ie,"$1")),e=B(e,oe,""),i=m(e);d<=i.length;){switch(o=i[d],u){case ye:if(!o||!L(q,o)){if(t)return H;u=ge;continue}f+=G(o),u=ve;break;case ve:if(o&&(L(K,o)||"+"===o||"-"===o||"."===o))f+=G(o);else{if(":"!==o){if(t)return H;f="",u=ge,d=0;continue}if(t&&(l.isSpecial()!==p(fe,f)||"file"===f&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&fe[l.scheme]===l.port&&(l.port=null));f="","file"===l.scheme?u=Oe:l.isSpecial()&&r&&r.scheme===l.scheme?u=be:l.isSpecial()?u=Ae:"/"===i[d+1]?(u=Ee,d++):(l.cannotBeABaseURL=!0,j(l.path,""),u=Le)}break;case ge:if(!r||r.cannotBeABaseURL&&"#"!==o)return H;if(r.cannotBeABaseURL&&"#"===o){l.scheme=r.scheme,l.path=y(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,u=Me;break}u="file"===r.scheme?Oe:we;continue;case be:if("/"!==o||"/"!==i[d+1]){u=we;continue}u=_e,d++;break;case Ee:if("/"===o){u=xe;break}u=Ne;continue;case we:if(l.scheme=r.scheme,o===n)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=y(r.path),l.query=r.query;else if("/"===o||"\\"===o&&l.isSpecial())u=Se;else if("?"===o)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=y(r.path),l.query="",u=De;else{if("#"!==o){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=y(r.path),l.path.length--,u=Ne;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=y(r.path),l.query=r.query,l.fragment="",u=Me}break;case Se:if(!l.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,u=Ne;continue}u=xe}else u=_e;break;case Ae:if(u=_e,"/"!==o||"/"!==N(f,d+1))continue;d++;break;case _e:if("/"!==o&&"\\"!==o){u=xe;continue}break;case xe:if("@"===o){h&&(f="%40"+f),h=!0,a=m(f);for(var E=0;E<a.length;E++){var w=a[E];if(":"!==w||g){var S=de(w,ue);g?l.password+=S:l.username+=S}else g=!0}f=""}else if(o===n||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()){if(h&&""===f)return"Invalid authority";d-=m(f).length+1,f="",u=Pe}else f+=o;break;case Pe:case Ie:if(t&&"file"===l.scheme){u=Ce;continue}if(":"!==o||v){if(o===n||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()){if(l.isSpecial()&&""===f)return $;if(t&&""===f&&(l.includesCredentials()||null!==l.port))return;if(s=l.parseHost(f))return s;if(f="",u=Re,t)return;continue}"["===o?v=!0:"]"===o&&(v=!1),f+=o}else{if(""===f)return $;if(s=l.parseHost(f))return s;if(f="",u=ke,t===Ie)return}break;case ke:if(!L(Q,o)){if(o===n||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()||t){if(""!==f){var A=T(f,10);if(A>65535)return Y;l.port=l.isSpecial()&&A===fe[l.scheme]?null:A,f=""}if(t)return;u=Re;continue}return Y}f+=o;break;case Oe:if(l.scheme="file","/"===o||"\\"===o)u=Te;else{if(!r||"file"!==r.scheme){u=Ne;continue}switch(o){case n:l.host=r.host,l.path=y(r.path),l.query=r.query;break;case"?":l.host=r.host,l.path=y(r.path),l.query="",u=De;break;case"#":l.host=r.host,l.path=y(r.path),l.query=r.query,l.fragment="",u=Me;break;default:he(D(y(i,d),""))||(l.host=r.host,l.path=y(r.path),l.shortenPath()),u=Ne;continue}}break;case Te:if("/"===o||"\\"===o){u=Ce;break}r&&"file"===r.scheme&&!he(D(y(i,d),""))&&(pe(r.path[0],!0)?j(l.path,r.path[0]):l.host=r.host),u=Ne;continue;case Ce:if(o===n||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&pe(f))u=Ne;else if(""===f){if(l.host="",t)return;u=Re}else{if(s=l.parseHost(f))return s;if("localhost"===l.host&&(l.host=""),t)return;f="",u=Re}continue}f+=o;break;case Re:if(l.isSpecial()){if(u=Ne,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==n&&(u=Ne,"/"!==o))continue}else l.fragment="",u=Me;else l.query="",u=De;break;case Ne:if(o===n||"/"===o||"\\"===o&&l.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(c=G(c=f))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(l.shortenPath(),"/"===o||"\\"===o&&l.isSpecial()||j(l.path,"")):me(f)?"/"===o||"\\"===o&&l.isSpecial()||j(l.path,""):("file"===l.scheme&&!l.path.length&&pe(f)&&(l.host&&(l.host=""),f=N(f,0)+":"),j(l.path,f)),f="","file"===l.scheme&&(o===n||"?"===o||"#"===o))for(;l.path.length>1&&""===l.path[0];)V(l.path);"?"===o?(l.query="",u=De):"#"===o&&(l.fragment="",u=Me)}else f+=de(o,le);break;case Le:"?"===o?(l.query="",u=De):"#"===o?(l.fragment="",u=Me):o!==n&&(l.path[0]+=de(o,se));break;case De:t||"#"!==o?o!==n&&("'"===o&&l.isSpecial()?l.query+="%27":l.query+="#"===o?"%23":de(o,se)):(l.fragment="",u=Me);break;case Me:o!==n&&(l.fragment+=de(o,ce))}d++}},parseHost:function(e){var t,r,n;if("["===N(e,0)){if("]"!==N(e,e.length-1))return $;if(t=function(e){var t,r,n,i,o,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,d=0,f=function(){return N(e,d)};if(":"===f()){if(":"!==N(e,1))return;d+=2,u=++l}for(;f();){if(8===l)return;if(":"!==f()){for(t=r=0;r<4&&L(ee,f());)t=16*t+T(f(),16),d++,r++;if("."===f()){if(0===r)return;if(d-=r,l>6)return;for(n=0;f();){if(i=null,n>0){if(!("."===f()&&n<4))return;d++}if(!L(Q,f()))return;for(;L(Q,f());){if(o=T(f(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}c[l]=256*c[l]+i,2!=++n&&4!==n||l++}if(4!==n)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;c[l++]=t}else{if(null!==u)return;d++,u=++l}}if(null!==u)for(a=l-u,l=7;0!==l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!==l)return;return c}(z(e,1,-1)),!t)return $;this.host=t}else if(this.isSpecial()){if(e=g(e),L(te,e))return $;if(t=function(e){var t,r,n,i,o,a,s,c=U(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=c[n]))return e;if(o=10,i.length>1&&"0"===N(i,0)&&(o=L(X,i)?16:8,i=z(i,8===o?1:2)),""===i)a=0;else{if(!L(10===o?J:8===o?Z:ee,i))return e;a=T(i,o)}j(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=R(256,5-t))return null}else if(a>255)return null;for(s=F(r),n=0;n<r.length;n++)s+=r[n]*R(256,3-n);return s}(e),null===t)return $;this.host=t}else{if(L(re,e))return $;for(t="",r=m(e),n=0;n<r.length;n++)t+=de(r[n],se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(fe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=r+(n?":"+n:"")+"@"),l+=ae(i),null!==o&&(l+=":"+o)):"file"===t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+D(a,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw new O(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new je(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",ye)},getUsername:function(){return this.username},setUsername:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=de(t[r],ue)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=de(t[r],ue)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Pe)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ie)},getPort:function(){var e=this.port;
2return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=b(e))?this.port=null:this.parse(e,ke))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+D(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Re))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=b(e))?this.query=null:("?"===N(e,0)&&(e=z(e,1)),this.query="",this.parse(e,De)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=b(e))?("#"===N(e,0)&&(e=z(e,1)),this.fragment="",this.parse(e,Me)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var je=function(e){var t=f(this,Be),r=w(arguments.length,1)>1?arguments[1]:void 0,n=_(t,new Fe(e,!1,r));o||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Be=je.prototype,Ve=function(e,t){return{get:function(){return x(this)[e]()},set:t&&function(e){return x(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(d(Be,"href",Ve("serialize","setHref")),d(Be,"origin",Ve("getOrigin")),d(Be,"protocol",Ve("getProtocol","setProtocol")),d(Be,"username",Ve("getUsername","setUsername")),d(Be,"password",Ve("getPassword","setPassword")),d(Be,"host",Ve("getHost","setHost")),d(Be,"hostname",Ve("getHostname","setHostname")),d(Be,"port",Ve("getPort","setPort")),d(Be,"pathname",Ve("getPathname","setPathname")),d(Be,"search",Ve("getSearch","setSearch")),d(Be,"searchParams",Ve("getSearchParams")),d(Be,"hash",Ve("getHash","setHash"))),u(Be,"toJSON",(function(){return x(this).serialize()}),{enumerable:!0}),u(Be,"toString",(function(){return x(this).serialize()}),{enumerable:!0}),k){var Ue=k.createObjectURL,ze=k.revokeObjectURL;Ue&&u(je,"createObjectURL",c(Ue,k)),ze&&u(je,"revokeObjectURL",c(ze,k))}E(je,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:je})},25152:(e,t,r)=>{"use strict";r(41262)},93718:function(e,t,r){var n;!function(i){"use strict";var o,a,s,c=(o=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,a=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,s=/[^-+\dA-Z]/g,function(e,t,r,n){if(1!==arguments.length||"string"!==(null===(i=e)?"null":void 0===i?"undefined":"object"!=typeof i?typeof i:Array.isArray(i)?"array":{}.toString.call(i).slice(8,-1).toLowerCase())||/\d/.test(e)||(t=e,e=void 0),(e=e||new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var i,u=(t=String(c.masks[t]||t||c.masks.default)).slice(0,4);"UTC:"!==u&&"GMT:"!==u||(t=t.slice(4),r=!0,"GMT:"===u&&(n=!0));var d=r?"getUTC":"get",f=e[d+"Date"](),p=e[d+"Day"](),h=e[d+"Month"](),m=e[d+"FullYear"](),y=e[d+"Hours"](),v=e[d+"Minutes"](),g=e[d+"Seconds"](),b=e[d+"Milliseconds"](),E=r?0:e.getTimezoneOffset(),w=function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var r=new Date(t.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var n=t.getTimezoneOffset()-r.getTimezoneOffset();t.setHours(t.getHours()-n);var i=(t-r)/6048e5;return 1+Math.floor(i)}(e),S=function(e){var t=e.getDay();return 0===t&&(t=7),t}(e),A={d:f,dd:l(f),ddd:c.i18n.dayNames[p],dddd:c.i18n.dayNames[p+7],m:h+1,mm:l(h+1),mmm:c.i18n.monthNames[h],mmmm:c.i18n.monthNames[h+12],yy:String(m).slice(2),yyyy:m,h:y%12||12,hh:l(y%12||12),H:y,HH:l(y),M:v,MM:l(v),s:g,ss:l(g),l:l(b,3),L:l(Math.round(b/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:n?"GMT":r?"UTC":(String(e).match(a)||[""]).pop().replace(s,""),o:(E>0?"-":"+")+l(100*Math.floor(Math.abs(E)/60)+Math.abs(E)%60,4),S:["th","st","nd","rd"][f%10>3?0:(f%100-f%10!=10)*f%10],W:w,N:S};return t.replace(o,(function(e){return e in A?A[e]:e.slice(1,e.length-1)}))});function l(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}c.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},c.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},void 0===(n=function(){return c}.call(t,r,t,e))||(e.exports=n)}()},28605:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],i(r),i(n))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=i(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=o(r[0]);i!==r[0]&&(t[r[0]]=i)}r=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},6416:(e,t,r)=>{"use strict";var n=r(60462);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=n(r(37349));e.exports=t.default},37349:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},9673:e=>{"use strict";
2function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,r){e.classList?e.classList.remove(r):"string"==typeof e.className?e.className=t(e.className,r):e.setAttribute("class",t(e.className&&e.className.baseVal||"",r))}},60462:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},46008:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>B});var n=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,i={revert:function(){}},o=new Map,a=new Set;function s(e){var t=o.get(e);return t||(t={element:e,attributes:{}},o.set(e,t)),t}function c(e,t,r,n,i){var o=r(e),a={isDirty:!1,originalValue:o,virtualValue:o,mutations:[],el:e,_positionTimeout:null,observer:new MutationObserver((function(){if("position"!==t||!a._positionTimeout){"position"===t&&(a._positionTimeout=setTimeout((function(){a._positionTimeout=null}),1e3));var n=r(e);"position"===t&&n.parentNode===a.virtualValue.parentNode&&n.insertBeforeNode===a.virtualValue.insertBeforeNode||n!==a.virtualValue&&(a.originalValue=n,i(a))}})),mutationRunner:i,setValue:n,getCurrentValue:r};return"position"===t&&e.parentNode?a.observer.observe(e.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):a.observer.observe(e,function(e){return"html"===e?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[e]}}(t)),a}function l(e,t){var r=t.getCurrentValue(t.el);t.virtualValue=e,e&&"string"!=typeof e?r&&e.parentNode===r.parentNode&&e.insertBeforeNode===r.insertBeforeNode||(t.isDirty=!0,T()):e!==r&&(t.isDirty=!0,T())}function u(e){var t=e.originalValue;e.mutations.forEach((function(e){return t=e.mutate(t)})),l(function(e){A||(A=document.createElement("div"));return A.innerHTML=e,A.innerHTML}(t),e)}function d(e){var t=new Set(e.originalValue.split(/\s+/).filter(Boolean));e.mutations.forEach((function(e){return e.mutate(t)})),l(Array.from(t).filter(Boolean).join(" "),e)}function f(e){var t=e.originalValue;e.mutations.forEach((function(e){return t=e.mutate(t)})),l(t,e)}function p(e){var t=e.originalValue;e.mutations.forEach((function(e){var r=function(e){var t=e.parentSelector,r=e.insertBeforeSelector,n=document.querySelector(t);if(!n)return null;var i=r?document.querySelector(r):null;return r&&!i?null:{parentNode:n,insertBeforeNode:i}}(e.mutate());t=r||t})),l(t,e)}var h=function(e){return e.innerHTML},m=function(e,t){return e.innerHTML=t};function y(e){var t=s(e);return t.html||(t.html=c(e,"html",h,m,u)),t.html}var v=function(e){return{parentNode:e.parentElement,insertBeforeNode:e.nextElementSibling}},g=function(e,t){t.insertBeforeNode&&!t.parentNode.contains(t.insertBeforeNode)||t.parentNode.insertBefore(e,t.insertBeforeNode)};function b(e){var t=s(e);return t.position||(t.position=c(e,"position",v,g,p)),t.position}var E=function(e,t){return t?e.className=t:e.removeAttribute("class")},w=function(e){return e.className};function S(e){var t=s(e);return t.classes||(t.classes=c(e,"class",w,E,d)),t.classes}var A,_,x=function(e){return function(t){var r;return null!=(r=t.getAttribute(e))?r:null}},P=function(e){return function(t,r){return null!==r?t.setAttribute(e,r):t.removeAttribute(e)}};function I(e,t){var r=s(e);return r.attributes[t]||(r.attributes[t]=c(e,t,x(t),P(t),f)),r.attributes[t]}function k(e,t,r){if(r.isDirty){r.isDirty=!1;var n=r.virtualValue;r.mutations.length||function(e,t){var r,n,i=o.get(e);if(i)if("html"===t)null==(r=i.html)||null==(n=r.observer)||n.disconnect(),delete i.html;else if("class"===t){var a,s;null==(a=i.classes)||null==(s=a.observer)||s.disconnect(),delete i.classes}else if("position"===t){var c,l;null==(c=i.position)||null==(l=c.observer)||l.disconnect(),delete i.position}else{var u,d,f;null==(u=i.attributes)||null==(d=u[t])||null==(f=d.observer)||f.disconnect(),delete i.attributes[t]}}(e,t),r.setValue(e,n)}}function O(e,t){e.html&&k(t,"html",e.html),e.classes&&k(t,"class",e.classes),e.position&&k(t,"position",e.position),Object.keys(e.attributes).forEach((function(r){k(t,r,e.attributes[r])}))}function T(){o.forEach(O)}function C(e){if("position"!==e.kind||1!==e.elements.size){var t=new Set(e.elements);document.querySelectorAll(e.selector).forEach((function(r){t.has(r)||(e.elements.add(r),function(e,t){var r=null;"html"===e.kind?r=y(t):"class"===e.kind?r=S(t):"attribute"===e.kind?r=I(t,e.attribute):"position"===e.kind&&(r=b(t)),r&&(r.mutations.push(e),r.mutationRunner(r))}(e,r))}))}}
2function R(e){e.elements.forEach((function(t){return function(e,t){var r=null;if("html"===e.kind?r=y(t):"class"===e.kind?r=S(t):"attribute"===e.kind?r=I(t,e.attribute):"position"===e.kind&&(r=b(t)),r){var n=r.mutations.indexOf(e);-1!==n&&r.mutations.splice(n,1),r.mutationRunner(r)}}(e,t)})),e.elements.clear(),a.delete(e)}function N(){a.forEach(C)}function L(e){return"undefined"==typeof document?i:(a.add(e),C(e),{revert:function(){R(e)}})}function D(e,t){return L({kind:"html",elements:new Set,mutate:t,selector:e})}function M(e,t){return L({kind:"position",elements:new Set,mutate:t,selector:e})}function F(e,t){return L({kind:"class",elements:new Set,mutate:t,selector:e})}function j(e,t,r){return n.test(t)?"class"===t||"className"===t?F(e,(function(e){var t=r(Array.from(e).join(" "));e.clear(),t&&t.split(/\s+/g).filter(Boolean).forEach((function(t){return e.add(t)}))})):L({kind:"attribute",attribute:t,elements:new Set,mutate:r,selector:e}):i}"undefined"!=typeof document&&(_||(_=new MutationObserver((function(){N()}))),N(),_.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}));const B={html:D,classes:F,attribute:j,position:M,declarative:function(e){var t=e.selector,r=e.action,n=e.value,o=e.attribute,a=e.parentSelector,s=e.insertBeforeSelector;if("html"===o){if("append"===r)return D(t,(function(e){return e+(null!=n?n:"")}));if("set"===r)return D(t,(function(){return null!=n?n:""}))}else if("class"===o){if("append"===r)return F(t,(function(e){n&&e.add(n)}));if("remove"===r)return F(t,(function(e){n&&e.delete(n)}));if("set"===r)return F(t,(function(e){e.clear(),n&&e.add(n)}))}else if("position"===o){if("set"===r&&a)return M(t,(function(){return{insertBeforeSelector:s,parentSelector:a}}))}else{if("append"===r)return j(t,o,(function(e){return null!==e?e+(null!=n?n:""):null!=n?n:""}));if("set"===r)return j(t,o,(function(){return null!=n?n:""}));if("remove"===r)return j(t,o,(function(){return null}))}return i}}},30350:e=>{function t(e){var r;e&&"object"==typeof e?r=e:((r={}).message=arguments[0],r.code=arguments[1]),r.message?r.message=String(r.message):r.message="";var n=Error.call(this,r.message);for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i]);return Object.setPrototypeOf?Object.setPrototypeOf(n,t.prototype):n.__proto__=t.prototype,n}t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e.exports=t},9870:(e,t,r)=>{"use strict";!function(t){var r=/^(b|B)$/,n={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},i={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function o(e){var t,o,a,s,c,l,u,d,f,p,h,m,y,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=[],b=0,E=void 0,w=void 0;if(isNaN(e))throw new Error("Invalid arguments");return o=!0===v.bits,f=!0===v.unix,t=v.base||2,d=void 0!==v.round?v.round:f?1:2,p=void 0!==v.separator&&v.separator||"",h=void 0!==v.spacer?v.spacer:f?"":" ",y=v.symbols||v.suffixes||{},m=2===t&&v.standard||"jedec",u=v.output||"string",s=!0===v.fullform,c=v.fullforms instanceof Array?v.fullforms:[],E=void 0!==v.exponent?v.exponent:-1,a=t>2?1e3:1024,(l=(w=Number(e))<0)&&(w=-w),(-1===E||isNaN(E))&&(E=Math.floor(Math.log(w)/Math.log(a)))<0&&(E=0),E>8&&(E=8),0===w?(g[0]=0,g[1]=f?"":n[m][o?"bits":"bytes"][E]):(b=w/(2===t?Math.pow(2,10*E):Math.pow(1e3,E)),o&&(b*=8)>=a&&E<8&&(b/=a,E++),g[0]=Number(b.toFixed(E>0?d:0)),g[1]=10===t&&1===E?o?"kb":"kB":n[m][o?"bits":"bytes"][E],f&&(g[1]="jedec"===m?g[1].charAt(0):E>0?g[1].replace(/B$/,""):g[1],r.test(g[1])&&(g[0]=Math.floor(g[0]),g[1]=""))),l&&(g[0]=-g[0]),g[1]=y[g[1]]||g[1],"array"===u?g:"exponent"===u?E:"object"===u?{value:g[0],suffix:g[1],symbol:g[1]}:(s&&(g[1]=c[E]?c[E]:i[m][E]+(o?"bit":"byte")+(1===g[0]?"":"s")),p.length>0&&(g[0]=g[0].toString().replace(".",p)),g.join(h))}o.partial=function(e){return function(t){return o(t,e)}},e.exports=o}("undefined"!=typeof window?window:r.g)},90028:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var a=n[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(r[a]=s)}return r}},88427:function(e,t,r){var n,i;!function(o,a,s){"use strict";"undefined"!=typeof window&&r.amdO?void 0===(i="function"==typeof(n=s)?n.call(t,r,t,e):n)||(e.exports=i):e.exports?e.exports=s():a.exports?a.exports=s():a.Fingerprint2=s()}(0,this,(function(){"use strict";void 0===Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},t=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},r=function(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}
vendor: 4,411 bytes, line 2
2,n=function(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]},i=function(e,t){return[e[0]^t[0],e[1]^t[1]]},o=function(e){return e=i(e,[0,e[0]>>>1]),e=t(e,[4283543511,3981806797]),e=i(e,[0,e[0]>>>1]),e=t(e,[3301882366,444984403]),e=i(e,[0,e[0]>>>1])},a=function(a,s){s=s||0;for(var c=(a=a||"").length%16,l=a.length-c,u=[0,s],d=[0,s],f=[0,0],p=[0,0],h=[2277735313,289559509],m=[1291169091,658871167],y=0;y<l;y+=16)f=[255&a.charCodeAt(y+4)|(255&a.charCodeAt(y+5))<<8|(255&a.charCodeAt(y+6))<<16|(255&a.charCodeAt(y+7))<<24,255&a.charCodeAt(y)|(255&a.charCodeAt(y+1))<<8|(255&a.charCodeAt(y+2))<<16|(255&a.charCodeAt(y+3))<<24],p=[255&a.charCodeAt(y+12)|(255&a.charCodeAt(y+13))<<8|(255&a.charCodeAt(y+14))<<16|(255&a.charCodeAt(y+15))<<24,255&a.charCodeAt(y+8)|(255&a.charCodeAt(y+9))<<8|(255&a.charCodeAt(y+10))<<16|(255&a.charCodeAt(y+11))<<24],f=t(f,h),f=r(f,31),f=t(f,m),u=i(u,f),u=r(u,27),u=e(u,d),u=e(t(u,[0,5]),[0,1390208809]),p=t(p,m),p=r(p,33),p=t(p,h),d=i(d,p),d=r(d,31),d=e(d,u),d=e(t(d,[0,5]),[0,944331445]);switch(f=[0,0],p=[0,0],c){case 15:p=i(p,n([0,a.charCodeAt(y+14)],48));case 14:p=i(p,n([0,a.charCodeAt(y+13)],40));case 13:p=i(p,n([0,a.charCodeAt(y+12)],32));case 12:p=i(p,n([0,a.charCodeAt(y+11)],24));case 11:p=i(p,n([0,a.charCodeAt(y+10)],16));case 10:p=i(p,n([0,a.charCodeAt(y+9)],8));case 9:p=i(p,[0,a.charCodeAt(y+8)]),p=t(p,m),p=r(p,33),p=t(p,h),d=i(d,p);case 8:f=i(f,n([0,a.charCodeAt(y+7)],56));case 7:f=i(f,n([0,a.charCodeAt(y+6)],48));case 6:f=i(f,n([0,a.charCodeAt(y+5)],40));case 5:f=i(f,n([0,a.charCodeAt(y+4)],32));case 4:f=i(f,n([0,a.charCodeAt(y+3)],24));case 3:f=i(f,n([0,a.charCodeAt(y+2)],16));case 2:f=i(f,n([0,a.charCodeAt(y+1)],8));case 1:f=i(f,[0,a.charCodeAt(y)]),f=t(f,h),f=r(f,31),f=t(f,m),u=i(u,f)}return u=i(u,[0,a.length]),d=i(d,[0,a.length]),u=e(u,d),d=e(d,u),u=o(u),d=o(d),u=e(u,d),d=e(d,u),("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)},s={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0,adBlock:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},c=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var r=0,n=e.length;r<n;r++)t(e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t(e[i],i,e)},l=function(e,t){var r=[];return null==e?r:Array.prototype.map&&e.map===Array.prototype.map?e.map(t):(c(e,(function(e,n,i){r.push(t(e,n,i))})),r)},u=function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices},d=function(e){var t=[window.screen.width,window.screen.height];return e.screen.detectScreenOrientation&&t.sort().reverse(),t},f=function(e){if(window.screen.availWidth&&window.screen.availHeight){var t=[window.screen.availHeight,window.screen.availWidth];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}return e.NOT_AVAILABLE},p=function(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(var t=[],r=0,n=navigator.plugins.length;r<n;r++)navigator.plugins[r]&&t.push(navigator.plugins[r]);return m(e)&&(t=t.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),l(t,(function(e){var t=l(e,(function(e){return[e.type,e.suffixes]}));return[e.name,e.description,t]}))},h=function(e){var t=[];if(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window){t=l(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}}
vendor: 6,702 bytes, line 2
2))}else t.push(e.NOT_AVAILABLE);return navigator.plugins&&(t=t.concat(p(e))),t},m=function(e){for(var t=!1,r=0,n=e.plugins.sortPluginsFor.length;r<n;r++){var i=e.plugins.sortPluginsFor[r];if(navigator.userAgent.match(i)){t=!0;break}}return t},y=function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}},v=function(e){try{return!!window.localStorage}catch(t){return e.ERROR}},g=function(e){if(D())return e.EXCLUDED;try{return!!window.indexedDB}catch(t){return e.ERROR}},b=function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE},E=function(e){return navigator.cpuClass||e.NOT_AVAILABLE},w=function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE},S=function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE},A=function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return[t,e,"ontouchstart"in window]},_=function(e){var t=[],r=document.createElement("canvas");r.width=2e3,r.height=200,r.style.display="inline";var n=r.getContext("2d");return n.rect(0,0,10,10),n.rect(2,2,6,6),t.push("canvas winding:"+(!1===n.isPointInPath(5,5,"evenodd")?"yes":"no")),n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",e.dontUseFakeFontInCanvas?n.font="11pt Arial":n.font="11pt no-real-font-123",n.fillText("Cwm fjordbank glyphs vext quiz, ð",2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText("Cwm fjordbank glyphs vext quiz, ð",4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),r.toDataURL&&t.push("canvas fp:"+r.toDataURL()),t},x=function(){var e,t=function(t){return e.clearColor(0,0,0,1),e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),"["+t[0]+", "+t[1]+"]"};if(!(e=B()))return null;var r=[],n=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,n);var i=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,i,e.STATIC_DRAW),n.itemSize=3,n.numItems=3;var o=e.createProgram(),a=e.createShader(e.VERTEX_SHADER);e.shaderSource(a,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),e.compileShader(a);var s=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(s,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),e.compileShader(s),e.attachShader(o,a),e.attachShader(o,s),e.linkProgram(o),e.useProgram(o),o.vertexPosAttrib=e.getAttribLocation(o,"attrVertex"),o.offsetUniform=e.getUniformLocation(o,"uniformOffset"),e.enableVertexAttribArray(o.vertexPosArray),e.vertexAttribPointer(o.vertexPosAttrib,n.itemSize,e.FLOAT,!1,0,0),e.uniform2f(o.offsetUniform,1,1),e.drawArrays(e.TRIANGLE_STRIP,0,n.numItems);try{r.push(e.canvas.toDataURL())}catch(e){}r.push("extensions:"+(e.getSupportedExtensions()||[]).join(";")),r.push("webgl aliased line width range:"+t(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))),r.push("webgl aliased point size range:"+t(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))),r.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS)),r.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no")),r.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS)),r.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS)),r.push("webgl green bits:"+e.getParameter(e.GREEN_BITS)),r.push("webgl max anisotropy:"+function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var r=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===r&&(r=2),r}return null}(e)),r.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),r.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)),r.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)),r.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE)),r.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),r.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE)),r.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS)),r.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS)),r.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),r.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)),r.push("webgl max viewport dims:"+t(e.getParameter(e.MAX_VIEWPORT_DIMS))),r.push("webgl red bits:"+e.getParameter(e.RED_BITS)),r.push("webgl renderer:"+e.getParameter(e.RENDERER)),r.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION)),r.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS)),r.push("webgl vendor:"+e.getParameter(e.VENDOR)),r.push("webgl version:"+e.getParameter(e.VERSION));try{var l=e.getExtension("WEBGL_debug_renderer_info");l&&(r.push("webgl unmasked vendor:"+e.getParameter(l.UNMASKED_VENDOR_WEBGL)),r.push("webgl unmasked renderer:"+e.getParameter(l.UNMASKED_RENDERER_WEBGL)))}catch(e){}return e.getShaderPrecisionFormat?(c(["FLOAT","INT"],(function(t){c(["VERTEX","FRAGMENT"],(function(n){c(["HIGH","MEDIUM","LOW"],(function(i){c(["precision","rangeMin","rangeMax"],(function(o){var a=e.getShaderPrecisionFormat(e[n+"_SHADER"],e[i+"_"+t])[o];"precision"!==o&&(o="precision "+o);var s=["webgl ",n.toLowerCase()," shader ",i.toLowerCase()," ",t.toLowerCase()," ",o,":",a].join("");r.push(s)}))}))}))})),V(e),r):(V(e),r)},P=function(){try{var e=B(),t=e.getExtension("WEBGL_debug_renderer_info"),r=e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL);return V(e),r}catch(e){return null}},I=function(){var e=document.createElement("div");e.innerHTML=" ",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}
2,k=function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1},O=function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight},T=function(){var e,t=navigator.userAgent.toLowerCase(),r=navigator.oscpu,n=navigator.platform.toLowerCase();if(e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("windows")>=0||t.indexOf("win16")>=0||t.indexOf("win32")>=0||t.indexOf("win64")>=0||t.indexOf("win95")>=0||t.indexOf("win98")>=0||t.indexOf("winnt")>=0||t.indexOf("wow64")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0||t.indexOf("x11")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0||t.indexOf("ipod")>=0||t.indexOf("crios")>=0||t.indexOf("fxios")>=0?"iOS":t.indexOf("macintosh")>=0||t.indexOf("mac_powerpc)")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows"!==e&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e&&-1===t.indexOf("cros"))return!0;if(void 0!==r){if((r=r.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(r.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(r.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===r.indexOf("win")&&-1===r.indexOf("linux")&&-1===r.indexOf("mac"))!=("Other"===e))return!0}return n.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||((n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||((n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||!(n.indexOf("arm")>=0&&"Windows Phone"===e)&&(!(n.indexOf("pike")>=0&&t.indexOf("opera mini")>=0)&&((n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0&&n.indexOf("ipod")<0)!==("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e))))},C=function(){var e,t=navigator.userAgent.toLowerCase(),r=navigator.productSub;if(t.indexOf("edge/")>=0||t.indexOf("iemobile/")>=0)return!1;if(t.indexOf("opera mini")>=0)return!1;if(("Chrome"===(e=t.indexOf("firefox/")>=0?"Firefox":t.indexOf("opera/")>=0||t.indexOf(" opr/")>=0?"Opera":t.indexOf("chrome/")>=0?"Chrome":t.indexOf("safari/")>=0?t.indexOf("android 1.")>=0||t.indexOf("android 2.")>=0||t.indexOf("android 3.")>=0||t.indexOf("android 4.")>=0?"AOSP":"Safari":t.indexOf("trident/")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==r)return!0;var n,i=eval.toString().length;if(37===i&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===i&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===i&&"Chrome"!==e&&"AOSP"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(e){try{e.toSource(),n=!0}catch(e){n=!1}}return n&&"Firefox"!==e&&"Other"!==e},R=function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},N=function(){if(!R())return!1;var e=B(),t=!!window.WebGLRenderingContext&&!!e;return V(e),t},L=function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},D=function(){return("msWriteProfilerMark"in window)+("msLaunchUri"in navigator)+("msSaveBlob"in navigator)>=2},M=function(){return void 0!==window.swfobject},F=function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},j=function(e,t){var r="___fp_swf_loaded";window[r]=function(t){e(t)};var n=t.fonts.swfContainerId;!function(e){var t=document.createElement("div");t.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(t)}();var i={onReady:r};window.swfobject.embedSWF(t.fonts.swfPath,n,"1","1","9.0.0",!1,i,{allowScriptAccess:"always",menu:"false"},{})},B=function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t},V=function(e){var t=e.getExtension("WEBGL_lose_context");null!=t&&t.loseContext()},U=[{key:"userAgent",getData:function(e){e(navigator.userAgent)}},{key:"webdriver",getData:function(e,t){e(null==navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(e,t){e(window.screen.colorDepth||t.
vendor: 2,756 bytes, line 2
2NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(e,t){e(b(t))}},{key:"screenResolution",getData:function(e,t){e(d(t))}},{key:"availableScreenResolution",getData:function(e,t){e(f(t))}},{key:"timezoneOffset",getData:function(e){e((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone||t.NOT_AVAILABLE):e(t.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(e,t){e(y(t))}},{key:"localStorage",getData:function(e,t){e(v(t))}},{key:"indexedDb",getData:function(e,t){e(g(t))}},{key:"addBehavior",getData:function(e){e(!!window.HTMLElement.prototype.addBehavior)}},{key:"openDatabase",getData:function(e){e(!!window.openDatabase)}},{key:"cpuClass",getData:function(e,t){e(E(t))}},{key:"platform",getData:function(e,t){e(w(t))}},{key:"doNotTrack",getData:function(e,t){e(S(t))}},{key:"plugins",getData:function(e,t){L()?t.plugins.excludeIE?e(t.EXCLUDED):e(h(t)):e(p(t))}},{key:"canvas",getData:function(e,t){R()?e(_(t)):e(t.NOT_AVAILABLE)}},{key:"webgl",getData:function(e,t){N()?e(x()):e(t.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(e){N()?e(P()):e()}},{key:"adBlock",getData:function(e){e(I())}},{key:"hasLiedLanguages",getData:function(e){e(k())}},{key:"hasLiedResolution",getData:function(e){e(O())}},{key:"hasLiedOs",getData:function(e){e(T())}},{key:"hasLiedBrowser",getData:function(e){e(C())}},{key:"touchSupport",getData:function(e){e(A())}},{key:"fonts",getData:function(e,t){var r=["monospace","sans-serif","serif"],n=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];if(t.fonts.extendedJsFonts){n=n.concat(
vendor: 6,127 bytes, line 2
2["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"]
2)}n=(n=n.concat(t.fonts.userDefinedFonts)).filter((function(e,t){return n.indexOf(e)===t}));var i=document.getElementsByTagName("body")[0],o=document.createElement("div"),a=document.createElement("div"),s={},c={},l=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e},u=function(e,t){var r=l();return r.style.fontFamily="'"+e+"',"+t,r},d=function(e){for(var t=!1,n=0;n<r.length;n++)if(t=e[n].offsetWidth!==s[r[n]]||e[n].offsetHeight!==c[r[n]])return t;return t},f=function(){for(var e=[],t=0,n=r.length;t<n;t++){var i=l();i.style.fontFamily=r[t],o.appendChild(i),e.push(i)}return e}();i.appendChild(o);for(var p=0,h=r.length;p<h;p++)s[r[p]]=f[p].offsetWidth,c[r[p]]=f[p].offsetHeight;var m=function(){for(var e={},t=0,i=n.length;t<i;t++){for(var o=[],s=0,c=r.length;s<c;s++){var l=u(n[t],r[s]);a.appendChild(l),o.push(l)}e[n[t]]=o}return e}();i.appendChild(a);for(var y=[],v=0,g=n.length;v<g;v++)d(m[n[v]])&&y.push(n[v]);i.removeChild(a),i.removeChild(o),e(y)},pauseBefore:!0},{key:"fontsFlash",getData:function(e,t){return M()?F()?t.fonts.swfPath?void j((function(t){e(t)}),t):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(e,t){var r=t.audio;if(r.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(t.EXCLUDED);var n=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==n)return e(t.NOT_AVAILABLE);var i=new n(1,44100,44100),o=i.createOscillator();o.type="triangle",o.frequency.setValueAtTime(1e4,i.currentTime);var a=i.createDynamicsCompressor();c([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==a[e[0]]&&"function"==typeof a[e[0]].setValueAtTime&&a[e[0]].setValueAtTime(e[1],i.currentTime)})),o.connect(a),a.connect(i.destination),o.start(0),i.startRendering();var s=setTimeout((function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/fingerprintjs/fingerprintjs with your user agent: "'+navigator.userAgent+'".'),i.oncomplete=function(){},i=null,e("audioTimeout")}),r.timeout);i.oncomplete=function(t){var r;try{clearTimeout(s),r=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),o.disconnect(),a.disconnect()}catch(t){return void e(t)}e(r)}}},{key:"enumerateDevices",getData:function(e,t){if(!u())return e(t.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label})))})).catch((function(t){e(t)}))}}],z=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/fingerprintjs/fingerprintjs#upgrade-guide-from-182-to-200")};return z.get=function(e,t){t?e||(e={}):(t=e,e={}),function(e,t){if(null==t)return e;var r,n;for(n in t)null==(r=t[n])||Object.prototype.hasOwnProperty.call(e,n)||(e[n]=r)}(e,s),e.components=e.extraComponents.concat(U);var r={data:[],addPreprocessedComponent:function(t,n){"function"==typeof e.preprocessor&&(n=e.preprocessor(t,n)),r.data.push({key:t,value:n})}},n=-1,i=function(o){if((n+=1)>=e.components.length)t(r.data);else{var a=e.components[n];if(e.excludes[a.key])i(!1);else{if(!o&&a.pauseBefore)return n-=1,void setTimeout((function(){i(!0)}),1);try{a.getData((function(e){r.addPreprocessedComponent(a.key,e),i(!1)}),e)}catch(e){r.addPreprocessedComponent(a.key,String(e)),i(!1)}}}};i(!1)},z.getPromise=function(e){return new Promise((function(t,r){z.get(e,t)}))},z.getV18=function(e,t){return null==t&&(t=e,e={}),z.get(e,(function(r){for(var n=[],i=0;i<r.length;i++){var o=r[i];if(o.value===(e.NOT_AVAILABLE||"not available"))n.push({key:o.key,value:"unknown"});else if("plugins"===o.key)n.push({key:"plugins",value:l(o.value,(function(e){var t=l(e[2],(function(e){return e.join?e.
2join("~"):e})).join(",");return[e[0],e[1],t].join("::")}))});else if(-1!==["canvas","webgl"].indexOf(o.key)&&Array.isArray(o.value))n.push({key:o.key,value:o.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(o.key)){if(!o.value)continue;n.push({key:o.key,value:1})}else o.value?n.push(o.value.join?{key:o.key,value:o.value.join(";")}:o):n.push({key:o.key,value:o.value})}var s=a(l(n,(function(e){return e.value})).join("~~~"),31);t(s,n)}))},z.x64hash128=a,z.VERSION="2.1.4",z}))},80705:(e,t,r)=>{"use strict";var n=r(89617),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===i.call(e)?function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a):"string"==typeof e?function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,a):function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a)}},8318:(e,t,r)=>{"use strict";r.d(t,{P:()=>o});var n=r(96647),i=r(31297);class o{constructor(e){this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e){const t=this.animations.map((t=>{if(!(0,i.J)()||!t.attachTimeline)return t.pause(),(0,n.y)((e=>{t.time=t.duration*e}),e);t.attachTimeline(e)}));return()=>{t.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}stop(){this.runAll("stop")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}},18427:(e,t,r)=>{"use strict";r.d(t,{i:()=>h});var n=r(57822),i=r(62625),o=r(53260),a=r(8318),s=r(36119),c=r(37844),l=r(86890),u=r(78161),d=r(3224),f=r(54706);function p(e,t,r,s){const u=(0,n.K)(e,s),d=u.length;(0,o.V)(Boolean(d),"No valid element provided.");const f=[];for(let e=0;e<d;e++){const n=u[e];i.C.has(n)||(0,l.B)(n);const o=i.C.get(n),a={...r};"function"==typeof a.delay&&(a.delay=a.delay(e,d)),f.push(...(0,c.$)(o,{...t,transition:a},{}))}return new a.P(f)}const h=function(e,t,r){let n;var i;return i=e,n=Array.isArray(i)&&Array.isArray(i[0])?function(e,t,r){const n=[];return(0,d.l)(e,t,r).forEach((({keyframes:e,transition:t},r)=>{let i;i=(0,f.S)(r)?(0,u.z)(r,e.default,t.default):p(r,e,t),n.push(i)})),new a.P(n)}(e,t,m):(0,s.m)(t)?p(e,t,r,m):(0,u.z)(e,t,r),m&&m.animations.push(n),n};var m},46138:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o});var n=r(7155),i=r(19961);function o({keyframes:e,delay:t,onUpdate:r,onComplete:o}){const a=()=>(r&&r(e[e.length-1]),o&&o(),{time:0,speed:1,duration:0,play:i.l,pause:i.l,stop:i.l,then:e=>(e(),Promise.resolve()),cancel:i.l,complete:i.l});return t?(0,n.L)({keyframes:[0,1],duration:0,delay:t,onComplete:a}):a()}},67165:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(2778);const i=e=>{const t=({timestamp:t})=>e(t);return{start:()=>n.Gt.update(t,!0),stop:()=>(0,n.WG)(t),now:()=>n.uv.isProcessing?n.uv.timestamp:performance.now()}}},7155:(e,t,r)=>{"use strict";r.d(t,{L:()=>f});var n=r(7994),i=r(48909),o=r(56387),a=r(67165),s=r(46126),c=r(12306),l=r(80831),u=r(83267);const d={decay:o.B,inertia:o.B,tween:n.i,keyframes:n.i,spring:i.o};function f({autoplay:e=!0,delay:t=0,driver:r=a.E,keyframes:i,type:o="keyframes",repeat:f=0,repeatDelay:p=0,repeatType:h="loop",onPlay:m,onStop:y,onComplete:v,onUpdate:g,...b}){let E,w,S=1,A=!1;const _=()=>{w=new Promise((e=>{E=e}))};let x;_();const P=d[o]||n.i;let I;P!==n.i&&"number"!=typeof i[0]&&(I=(0,s.G)([0,100],i,{clamp:!1}),i=[0,100]);const k=P({...b,keyframes:i});let O;"mirror"===h&&(O=P({...b,keyframes:[...i].reverse(),velocity:-(b.velocity||0)}
2));let T="idle",C=null,R=null,N=null;null===k.calculatedDuration&&f&&(k.calculatedDuration=(0,u.t)(k));const{calculatedDuration:L}=k;let D=1/0,M=1/0;null!==L&&(D=L+p,M=D*(f+1)-p);let F=0;const j=e=>{if(null===R)return;S>0&&(R=Math.min(R,e)),S<0&&(R=Math.min(e-M/S,R)),F=null!==C?C:Math.round(e-R)*S;const r=F-t*(S>=0?1:-1),n=S>=0?r<0:r>M;F=Math.max(r,0),"finished"===T&&null===C&&(F=M);let o=F,a=k;if(f){const e=Math.min(F,M)/D;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,f+1);Boolean(t%2)&&("reverse"===h?(r=1-r,p&&(r-=p/D)):"mirror"===h&&(a=O)),o=(0,c.q)(0,1,r)*D}const s=n?{done:!1,value:i[0]}:a.next(o);I&&(s.value=I(s.value));let{done:l}=s;n||null===L||(l=S>=0?F>=M:F<=0);const u=null===C&&("finished"===T||"running"===T&&l);return g&&g(s.value),u&&U(),s},B=()=>{x&&x.stop(),x=void 0},V=()=>{T="idle",B(),E(),_(),R=N=null},U=()=>{T="finished",v&&v(),B(),E()},z=()=>{if(A)return;x||(x=r(j));const e=x.now();m&&m(),null!==C?R=e-C:R&&"finished"!==T||(R=e),"finished"===T&&_(),N=R,C=null,T="running",x.start()};e&&z();const G={then:(e,t)=>w.then(e,t),get time(){return(0,l.X)(F)},set time(e){e=(0,l.f)(e),F=e,null===C&&x&&0!==S?R=x.now()-e/S:C=e},get duration(){const e=null===k.calculatedDuration?(0,u.t)(k):k.calculatedDuration;return(0,l.X)(e)},get speed(){return S},set speed(e){e!==S&&x&&(S=e,G.time=(0,l.X)(F))},get state(){return T},play:z,pause:()=>{T="paused",C=F},stop:()=>{A=!0,"idle"!==T&&(T="idle",y&&y(),V())},cancel:()=>{null!==N&&j(N),V()},complete:()=>{T="finished"},sample:e=>(R=0,j(e))};return G}},9579:(e,t,r)=>{"use strict";r.d(t,{s:()=>y});var n=r(37052),i=r(28071),o=r(56542),a=r(7155),s=r(80831),c=r(37591),l=r(19961),u=r(2778);const d=(0,c.p)((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),f=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),p=10,h=2e4,m=(e,t)=>"spring"===t.type||"backgroundColor"===e||!(0,i.yL)(t.ease);function y(e,t,{onUpdate:r,onComplete:i,...c}){if(!(d()&&f.has(t)&&!c.repeatDelay&&"mirror"!==c.repeatType&&0!==c.damping&&"inertia"!==c.type))return!1;let y,v,g=!1,b=!1;const E=()=>{v=new Promise((e=>{y=e}))};E();let{keyframes:w,duration:S=300,ease:A,times:_}=c;if(m(t,c)){const e=(0,a.L)({...c,repeat:0,delay:0});let t={done:!1,value:w[0]};const r=[];let n=0;for(;!t.done&&n<h;)t=e.sample(n),r.push(t.value),n+=p;_=void 0,w=r,S=n-p,A="linear"}const x=(0,n.X)(e.owner.current,t,w,{...c,duration:S,ease:A,times:_}),P=()=>{b=!1,x.cancel()},I=()=>{b=!0,u.Gt.update(P),y(),E()};x.onfinish=()=>{b||(e.set((0,o.X)(w,c)),i&&i(),I())};return{then:(e,t)=>v.then(e,t),attachTimeline:e=>(x.timeline=e,x.onfinish=null,l.l),get time(){return(0,s.X)(x.currentTime||0)},set time(e){x.currentTime=(0,s.f)(e)},get speed(){return x.playbackRate},set speed(e){x.playbackRate=e},get duration(){return(0,s.X)(S)},play:()=>{g||(x.play(),(0,u.WG)(P))},pause:()=>x.pause(),stop:()=>{if(g=!0,"idle"===x.playState)return;const{currentTime:t}=x;if(t){const r=(0,a.L)({...c,autoplay:!1});e.setWithVelocity(r.sample(t-p).value,r.sample(t).value,p)}I()},complete:()=>{b||x.finish()},cancel:I}}},28071:(e,t,r)=>{"use strict";r.d(t,{TU:()=>s,yL:()=>i});var n=r(46567);function i(e){return Boolean(!e||"string"==typeof e&&a[e]||(0,n.D)(e)||Array.isArray(e)&&e.every(i))}const o=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,a={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:o([0,.65,.55,1]),circOut:o([.55,0,1,.45]),backIn:o([.31,.01,.66,-.59]),backOut:o([.33,1.53,.69,.99])};function s(e){if(e)return(0,n.D)(e)?o(e):Array.isArray(e)?e.map(s):a[e]}},37052:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});var n=r(28071);function i(e,t,r,{delay:i=0,duration:o,repeat:a=0,repeatType:s="loop",ease:c,times:l}={}){const u={[t]:r};l&&(u.offset=l);const d=(0,n.TU)(c);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:i,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"})}},56542:(e,t,r)=>{"use strict";function n(e,{repeat:t,repeatType:r="loop"}){return e[t&&"loop"!==r&&t%2==1?0:e.length-1]}r.d(t,{X:()=>n})},56387:(e,t,r)=>{"use strict";r.d(t,{B:()=>o});var n=r(48909),i=r(9992);function o({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:c,min:l,max:u,restDelta:d=.5,restSpeed:f}){const p=e[0],h={done:!1,value:p},m=e=>void 0===l?u:void 0===u||Math.abs(l-e)<Math.abs(u-e)?l:u;let y=r*t;const v=p+y,g=void 0===c?v:c(v);g!==v&&(y=g-p);const b=e=>-y*Math.exp(-e/o),E=e=>g+b(e),w=e=>{const t=b(e),r=E(e);h.done=Math.abs(t)<=d,h.value=h.done?g:r};let S,A;const _=e=>{var t;(t=h.value,void 0!==l&&t<l||void 0!==u&&t>u)&&(S=e,A=(0,n.o)({keyframes:[h.value,m(h.value)],velocity:(0,i.Y)(E,e,h.value),damping:a,stiffness:s,restDelta:d,restSpeed:f}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return A||void 0!==S||(t=!0,w(e),_(e)),void 0!==S&&e>S?A.next(e-S):(!t&&w(e),h)}}}},7994:(e,t,r)=>{"use strict";r.d(t,{i:()=>u});var n=r(14877),i=r(23909),o=r(45641),a=r(46126),s=r(87573),c=r(30729);function l(e,t){return e.map((()=>t||n.am)).splice(0,e.length-1)}function u({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const u=(0,i.h)(n)?n.map(o.K):(0,o.K)(n),d={done:!1,value:t[0]},f=(0,c.A)(r&&r.length===t.length?r:(0,s.Z)(t),e),p=(0,a.G)(f,t,{ease:Array.isArray(u)?u:l(t,u)});return{calculatedDuration:e,next:t=>(d.value=p(t),d.done=t>=e,d)}}},94638:(e,t,r)=>{"use strict";r.d(t,{aU:()=>p,pX:()=>d});var n=r(53260),i=r(12306),o=r(80831);const a=.001,s=.01,c=10,l=.05,u=1;function d({duration:e=800,bounce:t=.25,velocity:r=0,mass:d=1}){let h,m;(0,n.$)(e<=(0,o.f)(c),"Spring duration must be 10 seconds or less");let y=1-t;y=(0,i.q)(l,u,y),e=(0,i.q)(s,c,(0,o.X)(e)),y<1?(h=t=>{const n=t*y,i=n*e,o=n-r,s=p(t,y),c=Math.exp(-i);return a-o/s*c},m=t=>{const n=t*y*e,i=n*r+r,o=Math.pow(y,2)*Math.pow(t,2)*e,s=Math.exp(-n),c=p(Math.pow(t,2),y);return(-h(t)+a>0?-1:1)*((i-o)*s)/c}):(h=t=>Math.exp(-t*e)*((t-r)*e+1)-a,m=t=>
2Math.exp(-t*e)*(e*e*(r-t)));const v=function(e,t,r){let n=r;for(let r=1;r<f;r++)n-=e(n)/t(n);return n}(h,m,5/e);if(e=(0,o.f)(e),isNaN(v))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(v,2)*d;return{stiffness:t,damping:2*y*Math.sqrt(d*t),duration:e}}}const f=12;function p(e,t){return e*Math.sqrt(1-t*t)}},48909:(e,t,r)=>{"use strict";r.d(t,{o:()=>l});var n=r(80831),i=r(9992),o=r(94638);const a=["duration","bounce"],s=["stiffness","damping","mass"];function c(e,t){return t.some((t=>void 0!==e[t]))}function l({keyframes:e,restDelta:t,restSpeed:r,...l}){const u=e[0],d=e[e.length-1],f={done:!1,value:u},{stiffness:p,damping:h,mass:m,duration:y,velocity:v,isResolvedFromDuration:g}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!c(e,s)&&c(e,a)){const r=(0,o.pX)(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}({...l,velocity:-(0,n.X)(l.velocity||0)}),b=v||0,E=h/(2*Math.sqrt(p*m)),w=d-u,S=(0,n.X)(Math.sqrt(p/m)),A=Math.abs(w)<5;let _;if(r||(r=A?.01:2),t||(t=A?.005:.5),E<1){const e=(0,o.aU)(S,E);_=t=>{const r=Math.exp(-E*S*t);return d-r*((b+E*S*w)/e*Math.sin(e*t)+w*Math.cos(e*t))}}else if(1===E)_=e=>d-Math.exp(-S*e)*(w+(b+S*w)*e);else{const e=S*Math.sqrt(E*E-1);_=t=>{const r=Math.exp(-E*S*t),n=Math.min(e*t,300);return d-r*((b+E*S*w)*Math.sinh(n)+e*w*Math.cosh(n))/e}}return{calculatedDuration:g&&y||null,next:e=>{const n=_(e);if(g)f.done=e>=y;else{let o=b;0!==e&&(o=E<1?(0,i.Y)(_,e,n):0);const a=Math.abs(o)<=r,s=Math.abs(d-n)<=t;f.done=a&&s}return f.value=f.done?d:n,f}}}},83267:(e,t,r)=>{"use strict";r.d(t,{Y:()=>n,t:()=>i});const n=2e4;function i(e){let t=0;let r=e.next(t);for(;!r.done&&t<n;)t+=50,r=e.next(t);return t>=n?1/0:t}},9992:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(57119);const i=5;function o(e,t,r){const o=Math.max(t-i,0);return(0,n.f)(r-e(o),t-o)}},67211:(e,t,r)=>{"use strict";r.d(t,{f:()=>h});
2var n=r(53260),i=r(80831),o=r(16294),a=r(9579),s=r(46138),c=r(34228),l=r(16153),u=r(4315),d=r(52192),f=r(7155),p=r(25609);const h=(e,t,r,h={})=>m=>{const y=(0,d.r)(h,e)||{},v=y.delay||h.delay||0;let{elapsed:g=0}=h;g-=(0,i.f)(v);const b=(0,u.I)(t,e,r,y),E=b[0],w=b[b.length-1],S=(0,l.P)(e,E),A=(0,l.P)(e,w);(0,n.$)(S===A,`You are trying to animate ${e} from "${E}" to "${w}". ${E} is not an animatable value - to enable this animation set ${E} to a value animatable to ${w} via the \`style\` property.`);let _={keyframes:b,velocity:t.getVelocity(),ease:"easeOut",...y,delay:-g,onUpdate:e=>{t.set(e),y.onUpdate&&y.onUpdate(e)},onComplete:()=>{m(),y.onComplete&&y.onComplete()}};if((0,d.D)(y)||(_={..._,...(0,c.x)(e,_)}),_.duration&&(_.duration=(0,i.f)(_.duration)),_.repeatDelay&&(_.repeatDelay=(0,i.f)(_.repeatDelay)),!S||!A||o.d.current||!1===y.type||p.W.skipAnimations)return(0,s.Q)(o.d.current?{..._,delay:0}:_);if(!h.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const r=(0,a.s)(t,e,_);if(r)return r}return(0,f.L)(_)}},78161:(e,t,r)=>{"use strict";r.d(t,{z:()=>a});var n=r(67211),i=r(75187),o=r(54706);function a(e,t,r){const a=(0,o.S)(e)?e:(0,i.OQ)(e);return a.start((0,n.f)("",a,t,r)),a.animation}},37844:(e,t,r)=>{"use strict";r.d(t,{$:()=>f});var n=r(51082),i=r(65530),o=r(67211),a=r(30995),s=r(74904),c=r(52192),l=r(2778);function u({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function d(e,t){const r=e.get();if(!Array.isArray(t))return r!==t;for(let e=0;e<t.length;e++)if(t[e]!==r)return!0}function f(e,t,{delay:r=0,transitionOverride:f,type:p}={}){let{transition:h=e.getDefaultTransition(),transitionEnd:m,...y}=e.makeTargetAnimatable(t);const v=e.getValue("willChange");f&&(h=f);const g=[],b=p&&e.animationState&&e.animationState.getState()[p];for(const t in y){const s=e.getValue(t),f=y[t];if(!s||void 0===f||b&&u(b,t))continue;const p={delay:r,elapsed:0,...(0,c.r)(h||{},t)};if(window.HandoffAppearAnimations){const r=e.getProps()[i.n];if(r){const e=window.HandoffAppearAnimations(r,t,s,l.Gt);null!==e&&(p.elapsed=e,p.isHandoff=!0)}}let m=!p.isHandoff&&!d(s,f);if("spring"===p.type&&(s.getVelocity()||p.velocity)&&(m=!1),s.animation&&(m=!1),m)continue;s.start((0,o.f)(t,s,f,e.shouldReduceMotion&&n.f.has(t)?{type:!1}:p));const E=s.animation;(0,a.k)(v)&&(v.add(t),E.then((()=>v.remove(t)))),g.push(E)}return m&&Promise.all(g).then((()=>{m&&(0,s.Uo)(e,m)})),g}},51074:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var n=r(26127),i=r(37844);function o(e,t,r={}){const s=(0,n.K)(e,t,r.custom);let{transition:c=e.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(c=r.transitionOverride);const l=s?()=>Promise.all((0,i.$)(e,s,r)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:l}=c;return function(e,t,r=0,n=0,i=1,s){const c=[],l=(e.variantChildren.size-1)*n,u=1===i?(e=0)=>e*n:(e=0)=>l-e*n;return Array.from(e.variantChildren).sort(a).forEach(((e,n)=>{e.notify("AnimationStart",t),c.push(o(e,t,{...s,delay:r+u(n)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(c)}(e,t,i+n,s,l,r)}:()=>Promise.resolve(),{when:d}=c;if(d){const[e,t]="beforeChildren"===d?[l,u]:[u,l];return e().then((()=>t()))}return Promise.all([l(),u(r.delay)])}function a(e,t){return e.sortNodePosition(t)}},77050:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(26127),i=r(37844),o=r(51074);function a(e,t,r={}){let a;if(e.notify("AnimationStart",t),Array.isArray(t)){const n=t.map((t=>(0,o.l)(e,t,r)));a=Promise.all(n)}else if("string"==typeof t)a=(0,o.l)(e,t,r);else{const o="function"==typeof t?(0,n.K)(e,t,r.custom):t;a=Promise.all((0,i.$)(e,o,r))}return a.then((()=>e.notify("AnimationComplete",t)))}},65530:(e,t,r)=>{"use strict";r.d(t,{n:()=>n});const n="data-"+(0,r(30284).I)("framerAppearId")},3224:(e,t,r)=>{"use strict";r.d(t,{l:()=>h});var n=r(49141),i=r(57822),o=r(87573),a=r(87313),s=r(58476),c=r(80831),l=r(54706),u=r(86449),d=r(79430),f=r(25510);const p="easeInOut";function h(e,{defaultTransition:t={},...r}={},h){const b=t.duration||.3,w=new Map,S=new Map,A={},_=new Map;let x=0,P=0,I=0;for(let r=0;r<e.length;r++){const s=e[r];if("string"==typeof s){_.set(s,P);continue}if(!Array.isArray(s)){_.set(s.name,(0,u.u)(P,s.at,x,_));continue}let[f,p,w={}]=s;void 0!==w.at&&(P=(0,u.u)(P,w.at,x,_));let k=0;const O=(e,r,i,s=0,l=0)=>{const u=v(e),{delay:f=0,times:p=(0,o.Z)(u),type:h="keyframes",...m}=r;let{ease:y=t.ease||"easeOut",duration:g}=r;
2const w="function"==typeof f?f(s,l):f,S=u.length;if(S<=2&&"spring"===h){let e=100;if(2===S&&E(u)){const t=u[1]-u[0];e=Math.abs(t)}const t={...m};void 0!==g&&(t.duration=(0,c.f)(g));const r=(0,n.X)(t,e);y=r.ease,g=r.duration}null!=g||(g=b);const A=P+w,_=A+g;1===p.length&&0===p[0]&&(p[1]=1);const x=p.length-u.length;x>0&&(0,a.f)(p,x),1===u.length&&u.unshift(null),(0,d.H)(i,u,y,p,A,_),k=Math.max(w+g,k),I=Math.max(_,I)};if((0,l.S)(f)){O(p,w,y("default",m(f,S)))}else{const e=(0,i.K)(f,h,A),t=e.length;for(let r=0;r<t;r++){const n=m(e[r],S);for(const e in p)O(p[e],g(w,e),y(e,n),r,t)}}x=P,P+=k}return S.forEach(((e,n)=>{for(const i in e){const o=e[i];o.sort(f.Y);const a=[],c=[],l=[];for(let e=0;e<o.length;e++){const{at:t,value:r,easing:n}=o[e];a.push(r),c.push((0,s.q)(0,I,t)),l.push(n||"easeOut")}0!==c[0]&&(c.unshift(0),a.unshift(a[0]),l.unshift(p)),1!==c[c.length-1]&&(c.push(1),a.push(null)),w.has(n)||w.set(n,{keyframes:{},transition:{}});const u=w.get(n);u.keyframes[i]=a,u.transition[i]={...t,duration:I,ease:l,times:c,...r}}})),w}function m(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function y(e,t){return t[e]||(t[e]=[]),t[e]}function v(e){return Array.isArray(e)?e:[e]}function g(e,t){return e[t]?{...e,...e[t]}:{...e}}const b=e=>"number"==typeof e,E=e=>e.every(b)},86449:(e,t,r)=>{"use strict";function n(e,t,r,n){var i;return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?r:null!==(i=n.get(t))&&void 0!==i?i:e}r.d(t,{u:()=>n})},79430:(e,t,r)=>{"use strict";r.d(t,{H:()=>a});var n=r(52233),i=r(26124),o=r(1957);function a(e,t,r,a,s,c){!function(e,t,r){for(let n=0;n<e.length;n++){const o=e[n];o.at>t&&o.at<r&&((0,i.Ai)(e,o),n--)}}(e,s,c);for(let i=0;i<t.length;i++)e.push({value:t[i],at:(0,o.j)(s,c,a[i]),easing:(0,n.S)(r,i)})}},25510:(e,t,r)=>{"use strict";function n(e,t){return e.at===t.at?null===e.value?1:null===t.value?-1:0:e.at-t.at}r.d(t,{Y:()=>n})},86890:(e,t,r)=>{"use strict";r.d(t,{B:()=>s});var n=r(26969),i=r(38197),o=r(81929),a=r(62625);function s(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=(0,n.x)(e)?new i.l(t,{enableHardwareAcceleration:!1}):new o.M(t,{enableHardwareAcceleration:!0});r.mount(e),a.C.set(e,r)}},34228:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});var n=r(51082);const i={type:"spring",stiffness:500,damping:25,restSpeed:10},o={type:"keyframes",duration:.8},a={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},s=(e,{keyframes:t})=>t.length>2?o:n.f.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:i:a},16153:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});var n=r(90612);const i=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!n.f.test(t)&&"0"!==t||t.startsWith("url(")))},35336:(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}r.d(t,{N:()=>n})},36119:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&!Array.isArray(e)}r.d(t,{m:()=>n})},99818:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});const n=e=>Array.isArray(e)},455:(e,t,r)=>{"use strict";r.d(t,{$:()=>i});var n=r(94230);function i(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||(0,n.$)(e):void 0}},4315:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(77626),i=r(16153),o=r(455);function a(e,t,r,a){const s=(0,i.P)(t,r);let c;c=Array.isArray(r)?[...r]:[null,r];const l=void 0!==a.from?a.from:e.get();let u;const d=[];for(let e=0;e<c.length;e++)null===c[e]&&(c[e]=0===e?l:c[e-1]),(0,o.$)(c[e])&&d.push(e),"string"==typeof c[e]&&"none"!==c[e]&&"0"!==c[e]&&(u=c[e]);if(s&&d.length&&u)for(let e=0;e<d.length;e++){c[d[e]]=(0,n.J)(t,u)}return c}},52192:(e,t,r)=>{"use strict";function n({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}function i(e,t){return e[t]||e.default||e}r.d(t,{D:()=>n,r:()=>i})},98310:(e,t,r)=>{"use strict";r.d(t,{C:()=>o});var n=r(14041);class i extends n.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function o({children:e,isPresent:t}){const r=(0,n.useId)(),o=(0,n.useRef)(null),a=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)((()=>{const{width:e,height:n,top:i,left:s}=a.current;if(t||!o.current||!e||!n)return;o.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${n}px !important;\n top: ${i}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),n.createElement(i,{isPresent:t,childRef:o,sizeRef:a},n.cloneElement(e,{ref:o}))}},21714:(e,t,r)=>{"use strict";r.d(t,{O:()=>s});var n=r(14041),i=r(6753),o=r(28827),a=r(98310);const s=({children:e,initial:t,isPresent:r,onExitComplete:s,custom:l,presenceAffectsLayout:u,mode:d})=>{const f=(0,o.M)(c),p=(0,n.useId)(),h=(0,n.useMemo)((()=>({id:p,initial:t,isPresent:r,custom:l,onExitComplete:e=>{f.set(e,!0);for(const e of f.values())if(!e)return;s&&s()},register:e=>(f.set(e,!1),()=>f.delete(e))})),u?void 0:[r]);return(0,n.useMemo)((()=>{f.forEach(((e,t)=>f.set(t,!1)))}),[r]),n.useEffect((()=>{!r&&!f.size&&s&&s()}),[r]),"popLayout"===d&&(e=n.createElement(a.C,{isPresent:r},e)),n.createElement(i.t.Provider,{value:h},e)};function c(){return new Map}},79425:(e,t,r)=>{"use strict";r.d(t,{N:()=>f});var n=r(14041),i=r(19758),o=r(39036),a=r(21714),s=r(4143),c=r(98682),l=r(42817),u=r(53260);const d=e=>e.key||"";const f=({children:e,custom:t,initial:r=!0,onExitComplete:f,exitBeforeEnter:p,presenceAffectsLayout:h=!0,mode:m="sync"})=>{(0,u.V)(!p,"Replace exitBeforeEnter with mode='wait'");const y=(0,n.useContext)(s.L).forceRender||(0,i.C)()[0],v=(0,o.a)(),g=function(e){const t=[];
2return n.Children.forEach(e,(e=>{(0,n.isValidElement)(e)&&t.push(e)})),t}(e);let b=g;const E=(0,n.useRef)(new Map).current,w=(0,n.useRef)(b),S=(0,n.useRef)(new Map).current,A=(0,n.useRef)(!0);if((0,c.E)((()=>{A.current=!1,function(e,t){e.forEach((e=>{const r=d(e);t.set(r,e)}))}(g,S),w.current=b})),(0,l.l)((()=>{A.current=!0,S.clear(),E.clear()})),A.current)return n.createElement(n.Fragment,null,b.map((e=>n.createElement(a.O,{key:d(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:h,mode:m},e))));b=[...b];const _=w.current.map(d),x=g.map(d),P=_.length;for(let e=0;e<P;e++){const t=_[e];-1!==x.indexOf(t)||E.has(t)||E.set(t,void 0)}return"wait"===m&&E.size&&(b=[]),E.forEach(((e,r)=>{if(-1!==x.indexOf(r))return;const i=S.get(r);if(!i)return;const o=_.indexOf(r);let s=e;if(!s){const e=()=>{E.delete(r);const e=Array.from(S.keys()).filter((e=>!x.includes(e)));if(e.forEach((e=>S.delete(e))),w.current=g.filter((t=>{const n=d(t);return n===r||e.includes(n)})),!E.size){if(!1===v.current)return;y(),f&&f()}};s=n.createElement(a.O,{key:d(i),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:h,mode:m},i),E.set(r,s)}b.splice(o,0,s)})),b=b.map((e=>{const t=e.key;return E.has(t)?e:n.createElement(a.O,{key:d(e),isPresent:!0,presenceAffectsLayout:h,mode:m},e)})),n.createElement(n.Fragment,null,E.size?b:b.map((e=>(0,n.cloneElement)(e))))}},41838:(e,t,r)=>{"use strict";r.d(t,{xQ:()=>o});var n=r(14041),i=r(6753);function o(){const e=(0,n.useContext)(i.t);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:r,register:o}=e,a=(0,n.useId)();(0,n.useEffect)((()=>o(a)),[]);return!t&&r?[!1,()=>r&&r(a)]:[!0]}},4143:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});const n=(0,r(14041).createContext)({})},39926:(e,t,r)=>{"use strict";r.d(t,{Y:()=>n});const n=(0,r(14041).createContext)({strict:!1})},79920:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});const n=(0,r(14041).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},1345:(e,t,r)=>{"use strict";r.d(t,{z:()=>a});var n=r(14041),i=r(1367),o=r(55452);function a(e){const{initial:t,animate:r}=(0,o._)(e,(0,n.useContext)(i.A));return(0,n.useMemo)((()=>({initial:t,animate:r})),[s(t),s(r)])}function s(e){return Array.isArray(e)?e.join(" "):e}},1367:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(14041).createContext)({})},55452:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(84969),i=r(11239);function o(e,t){if((0,i.e)(e)){const{initial:t,animate:r}=e;return{initial:!1===t||(0,n.w)(t)?t:void 0,animate:(0,n.w)(r)?r:void 0}}return!1!==e.inherit?t:{}}},6753:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});const n=(0,r(14041).createContext)(null)},90175:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});const n=(0,r(14041).createContext)({})},92256:(e,t,r)=>{"use strict";function n(e){window.MotionDebug&&window.MotionDebug.record(e)}r.d(t,{g:()=>n})},91571:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(28090);const i=e=>(e*=2)<1?.5*(0,n.dg)(e):.5*(2-Math.pow(2,-10*(e-1)))},28090:(e,t,r)=>{"use strict";r.d(t,{Sz:()=>a,ZZ:()=>c,dg:()=>s});var n=r(87561),i=r(85003),o=r(65208);const a=(0,n.A)(.33,1.53,.69,.99),s=(0,o.G)(a),c=(0,i.V)(s)},27326:(e,t,r)=>{"use strict";r.d(t,{po:()=>o,tn:()=>s,yT:()=>a});var n=r(85003),i=r(65208);const o=e=>1-Math.sin(Math.acos(e)),a=(0,i.G)(o),s=(0,n.V)(o)},87561:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(19961);const i=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,o=1e-7,a=12;function s(e,t,r,s){if(e===t&&r===s)return n.l;const c=t=>function(e,t,r,n,s){let c,l,u=0;do{l=t+(r-t)/2,c=i(l,n,s)-e,c>0?r=l:t=l}while(Math.abs(c)>o&&++u<a);return l}(t,0,1,e,r);return e=>0===e||1===e?e:i(c(e),t,s)}},14877:(e,t,r)=>{"use strict";r.d(t,{a6:()=>i,am:()=>a,vT:()=>o});var n=r(87561);const i=(0,n.A)(.42,0,1,1),o=(0,n.A)(0,0,.58,1),a=(0,n.A)(.42,0,.58,1)},85003:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});const n=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},65208:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});const n=e=>t=>1-e(1-t)},49141:(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var n=r(48909),i=r(83267),o=r(80831);function a(e,t=100){const r=(0,n.o)({keyframes:[0,t],...e}),a=Math.min((0,i.t)(r),i.Y);return{type:"keyframes",ease:e=>r.next(a*e).value/t,duration:(0,o.X)(a)}}},52233:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});var n=r(63985),i=r(23909);function o(e,t){return(0,i.h)(e)?e[(0,n.L)(0,e.length,t)]:e}},46567:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});const n=e=>Array.isArray(e)&&"number"==typeof e[0]},23909:(e,t,r)=>{"use strict";r.d(t,{h:()=>n});const n=e=>Array.isArray(e)&&"number"!=typeof e[0]},45641:(e,t,r)=>{"use strict";r.d(t,{K:()=>d});var n=r(53260),i=r(87561),o=r(19961),a=r(14877),s=r(27326),c=r(28090),l=r(91571);const u={linear:o.l,easeIn:a.a6,easeInOut:a.am,easeOut:a.vT,circIn:s.po,circInOut:s.tn,circOut:s.yT,backIn:c.dg,backInOut:c.ZZ,backOut:c.Sz,anticipate:l.b},d=e=>{if(Array.isArray(e)){(0,n.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,o,a]=e;return(0,i.A)(t,r,o,a)}return"string"==typeof e?((0,n.V)(void 0!==u[e],`Invalid easing type '${e}'`),u[e]):e}},19780:(e,t,r)=>{"use strict";function n(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}r.d(t,{k:()=>n})},88651:(e,t,r)=>{"use strict";r.d(t,{h:()=>o});var n=r(19780),i=r(2706);function o(e,t,r,o){return(0,n.k)(e,t,(0,i.F)(r),o)}},2706:(e,t,r)=>{"use strict";r.d(t,{F:()=>o,e:()=>i});var n=r(27156);function i(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const o=e=>t=>(0,n.M)(t)&&e(t,i(t))},27156:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});const n=e=>
2"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary},4424:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(66678);const i=["prepare","read","update","preRender","render","postRender"],o=40;function a(e,t){let r=!1,a=!0;const s={delta:0,timestamp:0,isProcessing:!1},c=i.reduce(((e,t)=>(e[t]=(0,n.n)((()=>r=!0)),e)),{}),l=e=>c[e].process(s),u=()=>{const n=performance.now();r=!1,s.delta=a?1e3/60:Math.max(Math.min(n-s.timestamp,o),1),s.timestamp=n,s.isProcessing=!0,i.forEach(l),s.isProcessing=!1,r&&t&&(a=!1,e(u))};return{schedule:i.reduce(((t,n)=>{const i=c[n];return t[n]=(t,n=!1,o=!1)=>(r||(r=!0,a=!0,s.isProcessing||e(u)),i.schedule(t,n,o)),t}),{}),cancel:e=>i.forEach((t=>c[t].cancel(e))),state:s,steps:c}}},2778:(e,t,r)=>{"use strict";r.d(t,{Ci:()=>c,Gt:()=>o,WG:()=>a,uv:()=>s});var n=r(19961),i=r(4424);const{schedule:o,cancel:a,state:s,steps:c}=(0,i.I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},66678:(e,t,r)=>{"use strict";r.d(t,{n:()=>i});class n{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function i(e){let t=new n,r=new n,i=0,o=!1,a=!1;const s=new WeakSet,c={schedule:(e,n=!1,a=!1)=>{const c=a&&o,l=c?t:r;return n&&s.add(e),l.add(e)&&c&&o&&(i=t.order.length),e},cancel:e=>{r.remove(e),s.delete(e)},process:n=>{if(o)a=!0;else{if(o=!0,[t,r]=[r,t],r.clear(),i=t.order.length,i)for(let r=0;r<i;r++){const i=t.order[r];i(n),s.has(i)&&(c.schedule(i),e())}o=!1,a&&(a=!1,c.process(n))}}};return c}},16337:(e,t,r)=>{"use strict";r.d(t,{n:()=>S});var n=r(53260),i=r(21573),o=r(54672),a=r(56491),s=r(88651),c=r(29647),l=r(22176),u=r(10696),d=r(78443),f=r(2706),p=r(49054),h=r(19780),m=r(12782),y=r(1957),v=r(51087),g=r(67211),b=r(92830),E=r(2778);const w=new WeakMap;class S{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,l.ge)(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:n}=this.getProps();this.panSession=new i.Q(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor((0,f.e)(e,"page").point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,o.nQ)(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),(0,u.X)((e=>{let t=this.getAxisMotionValue(e).get()||0;if(v.KN.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];if(n){t=(0,m.CQ)(n)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),i&&E.Gt.update((()=>i(e,t)),!1,!0);const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x");return r}(a),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>(0,u.X)((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:(0,b.s)(this.visualElement)})}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:i}=this.getProps();i&&E.Gt.update((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!A(e,n,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=(0,c.Zq)(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&(0,a.X)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&(0,c._c)(n.layoutBox,t),this.elastic=(0,c.my)(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&(0,u.X)((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=(0,c.QX)(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!(0,a.X)(e))return!1;const r=e.current;(0,n.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=(0,d.L)(r,i.root,this.visualElement.getTransformPagePoint());let s=(0,c.iT)(i.layout.layoutBox,o);if(t){const e=t((0,p.pA)(s));this.hasMutatedConstraints=!!e,e&&(s=(0,p.FY)(e))}return s}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},c=(0,u.X)((a=>
2{if(!A(a,t,this.currentDirection))return;let c=s&&s[a]||{};o&&(c={min:0,max:0});const l=n?200:1e6,u=n?40:1e7,d={type:"inertia",velocity:r?e[a]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(a,d)}));return Promise.all(c).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start((0,g.f)(e,r,0,t))}stopAnimation(){(0,u.X)((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){(0,u.X)((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){(0,u.X)((t=>{const{drag:r}=this.getProps();if(!A(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-(0,y.j)(r,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!(0,a.X)(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};(0,u.X)((e=>{const t=this.getAxisMotionValue(e);if(t){const r=t.get();n[e]=(0,c.Yu)({min:r,max:r},this.constraints[e])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),(0,u.X)((t=>{if(!A(t,e,null))return;const r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set((0,y.j)(i,o,n[t]))}))}addListeners(){if(!this.visualElement.current)return;w.set(this.visualElement,this);const e=this.visualElement.current,t=(0,s.h)(e,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),r=()=>{const{dragConstraints:e}=this.getProps();(0,a.X)(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),r();const o=(0,h.k)(window,"resize",(()=>this.scalePositionWithinConstraints())),c=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&((0,u.X)((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),t(),i(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=c.Ne,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function A(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}},29489:(e,t,r)=>{"use strict";r.d(t,{w:()=>a});var n=r(93098),i=r(19961),o=r(16337);class a extends n.X{constructor(e){super(e),this.removeGroupControls=i.l,this.removeListeners=i.l,this.controls=new o.n(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||i.l}unmount(){this.removeGroupControls(),this.removeListeners()}}},29647:(e,t,r)=>{"use strict";r.d(t,{Ne:()=>h,QX:()=>p,Yu:()=>f,Zq:()=>s,_c:()=>l,iT:()=>d,my:()=>m});var n=r(58476),i=r(12782),o=r(12306),a=r(1957);function s(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?(0,a.j)(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?(0,a.j)(r,e,n.max):Math.min(e,r)),e}function c(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function l(e,{top:t,left:r,bottom:n,right:i}){return{x:c(e.x,r,i),y:c(e.y,t,n)}}function u(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function d(e,t){return{x:u(e.x,t.x),y:u(e.y,t.y)}}function f(e,t){let r=.5;const a=(0,i.CQ)(e),s=(0,i.CQ)(t);return s>a?r=(0,n.q)(t.min,t.max-a,e.min):a>s&&(r=(0,n.q)(e.min,e.max-s,t.min)),(0,o.q)(0,1,r)}function p(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}const h=.35;function m(e=h){return!1===e?e=0:!0===e&&(e=h),{x:y(e,"left","right"),y:y(e,"to
2p","bottom")}}function y(e,t,r){return{min:v(e,t),max:v(e,r)}}function v(e,t){return"number"==typeof e?e:e[t]||0}},54672:(e,t,r)=>{"use strict";function n(e){let t=null;return()=>{const r=()=>{t=null};return null===t&&(t=e,r)}}r.d(t,{D3:()=>s,nQ:()=>a});const i=n("dragHorizontal"),o=n("dragVertical");function a(e){let t=!1;if("y"===e)t=o();else if("x"===e)t=i();else{const e=i(),r=o();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function s(){const e=a(!0);return!e||(e(),!1)}},96398:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(19780),i=r(93098),o=r(45437);class a extends i.X{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,o.F)((0,n.k)(this.node.current,"focus",(()=>this.onFocus())),(0,n.k)(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},53784:(e,t,r)=>{"use strict";r.d(t,{e:()=>l});var n=r(88651),i=r(45437),o=r(54672),a=r(93098),s=r(2778);function c(e,t){const r="pointer"+(t?"enter":"leave"),i="onHover"+(t?"Start":"End");return(0,n.h)(e.current,r,((r,n)=>{if("touch"===r.pointerType||(0,o.D3)())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[i]&&s.Gt.update((()=>a[i](r,n)))}),{passive:!e.getProps()[i]})}class l extends a.X{mount(){this.unmount=(0,i.F)(c(this.node,!0),c(this.node,!1))}unmount(){}}},21573:(e,t,r)=>{"use strict";r.d(t,{Q:()=>u});var n=r(2706),i=r(80831),o=r(88651),a=r(45437),s=r(26688),c=r(27156),l=r(2778);class u{constructor(e,t,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:u=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=p(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=(0,s.w)(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:i}=l.uv;this.history.push({...n,timestamp:i});const{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=d(t,this.transformPagePoint),l.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=p("pointercancel"===e.type?this.lastMoveEventInfo:d(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!(0,c.M)(e))return;this.dragSnapToOrigin=u,this.handlers=t,this.transformPagePoint=r,this.contextWindow=i||window;const f=d((0,n.e)(e),this.transformPagePoint),{point:h}=f,{timestamp:m}=l.uv;this.history=[{...h,timestamp:m}];const{onSessionStart:y}=t;y&&y(e,p(f,this.history)),this.removeListeners=(0,a.F)((0,o.h)(this.contextWindow,"pointermove",this.handlePointerMove),(0,o.h)(this.contextWindow,"pointerup",this.handlePointerUp),(0,o.h)(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,l.WG)(this.updatePoint)}}function d(e,t){return t?{point:t(e.point)}:e}function f(e,t){return{x:e.x-t.x,y:e.y-t.y}}function p({point:e},t){return{point:e,delta:f(e,m(t)),offset:f(e,h(t)),velocity:y(t,.1)}}function h(e){return e[0]}function m(e){return e[e.length-1]}function y(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=m(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>(0,i.f)(t)));)r--;if(!n)return{x:0,y:0};const a=(0,i.X)(o.timestamp-n.timestamp);if(0===a)return{x:0,y:0};const s={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}},2930:(e,t,r)=>{"use strict";r.d(t,{f:()=>u});var n=r(21573),i=r(88651),o=r(93098),a=r(19961),s=r(92830),c=r(2778);const l=e=>(t,r)=>{e&&c.Gt.update((()=>e(t,r)))};class u extends o.X{constructor(){super(...arguments),this.removePointerDownListener=a.l}onPointerDown(e){this.session=new n.Q(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:(0,s.s)(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:l(e),onStart:l(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&c.Gt.update((()=>n(e,t)))}}}mount(){this.removePointerDownListener=(0,i.h)(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},8235:(e,t,r)=>{"use strict";r.d(t,{H:()=>p});var n=r(2706),i=r(19780),o=r(88651),a=r(93098),s=r(45437),c=r(54672),l=r(22980),u=r(19961),d=r(2778);function f(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,(0,n.e)(r))}
2class p extends a.X{constructor(){super(...arguments),this.removeStartListeners=u.l,this.removeEndListeners=u.l,this.removeAccessibleListeners=u.l,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),n=(0,o.h)(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps();d.Gt.update((()=>{i||(0,l.w)(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)}))}),{passive:!(r.onTap||r.onPointerUp)}),i=(0,o.h)(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=(0,s.F)(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=(0,i.k)(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=(0,i.k)(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&f("up",((e,t)=>{const{onTap:r}=this.node.getProps();r&&d.Gt.update((()=>r(e,t)))}))})),f("down",((e,t)=>
2{this.startPress(e,t)}))})),t=(0,i.k)(this.node.current,"blur",(()=>{this.isPressing&&f("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=(0,s.F)(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&d.Gt.update((()=>r(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!(0,c.D3)()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&d.Gt.update((()=>r(e,t)))}mount(){const e=this.node.getProps(),t=(0,o.h)(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=(0,i.k)(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,s.F)(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},22980:(e,t,r)=>{"use strict";r.d(t,{w:()=>n});const n=(e,t)=>!!t&&(e===t||n(e,t.parentElement))},93098:(e,t,r)=>{"use strict";r.d(t,{X:()=>n});class n{constructor(e){this.isMounted=!1,this.node=e}update(){}}},59865:(e,t,r)=>{"use strict";r.d(t,{H:()=>o});var n=r(93098);let i=0;class o extends n.X{constructor(){super(...arguments),this.id=i++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const i=this.node.animationState.setActive("exit",!e,{custom:null!=r?r:this.node.getProps().custom});t&&!e&&i.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},52839:(e,t,r)=>{"use strict";r.d(t,{j:()=>a});var n=r(35336),i=r(92110),o=r(93098);class a extends o.X{constructor(e){super(e),e.animationState||(e.animationState=(0,i.L)(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),(0,n.N)(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},11709:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(52839),i=r(59865);const o={animation:{Feature:n.j},exit:{Feature:i.H}}},15166:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});const n={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},i={};for(const e in n)i[e]={isEnabled:t=>n[e].some((e=>!!t[e]))}},56690:(e,t,r)=>{"use strict";r.d(t,{$:()=>s});var n=r(29489),i=r(2930),o=r(54869),a=r(73346);const s={pan:{Feature:i.f},drag:{Feature:n.w,ProjectionNode:a.P,MeasureLayout:o.$}}},70256:(e,t,r)=>{"use strict";r.d(t,{n:()=>a});var n=r(53784),i=r(96398),o=r(8235);const a={inView:{Feature:r(56739).x},tap:{Feature:o.H},focus:{Feature:i.c},hover:{Feature:n.e}}},70642:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(73346),i=r(54869);const o={layout:{ProjectionNode:n.P,MeasureLayout:i.$}}},54869:(e,t,r)=>{"use strict";r.d(t,{$:()=>p});var n=r(14041),i=r(41838),o=r(4143),a=r(90175),s=r(85985),c=r(37040),l=r(44027),u=r(17627),d=r(2778);class f extends n.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;(0,u.$)(h),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),s.w.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o?(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||d.Gt.postRender((()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function p(e){const[t,r]=(0,i.xQ)(),s=(0,n.useContext)(o.L);return n.createElement(f,{...e,layoutGroup:s,switchLayoutGroup:(0,n.useContext)(a.N),isPresent:t,safeToRemove:r})}const h={borderRadius:{...c.P,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:c.P,borderTopRightRadius:c.P,borderBottomLeftRadius:c.P,borderBottomRightRadius:c.P,boxShadow:l._}},8171:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i});var n=r(15166);function i(e){for(const t in e)n.B[t]={...n.B[t],...e[t]}}},56739:(e,t,r)=>{"use strict";r.d(t,{x:()=>a});var n=r(93098),i=r(44654);const o={some:0,all:1};class a extends n.X{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:a}=e,s={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:o[n]};return(0,i.m)(this.node.current,s,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,a&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},44654:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});const n=new WeakMap,i=new WeakMap,o=e=>{const t=n.get(e.target);t&&t(e)},a=e=>{e.forEach(o)};function s(e,t,r){const o=function({root:e,...t}){const r=e||document;i.has(r)||i.set(r,{});const n=i.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(a,{root:e,...t})),n[o]}(t);return n.set(e,r),o.observe(e),()=>{n.delete(e),o.unobserve(e)}}},97520:(e,t,r)=>{"use strict";r.d(t,{G:()=>m});var n=r(14041),i=r(79920),o=r(1367),a=r(73755),s=r(96962),c=r(1345),l=r(8171),u=r(37774),d=r(4143),f=r(39926),p=r(90175),h=r(58950);function m({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:d,Component:m}){e&&(0,l.Y)(e);const v=(0,n.forwardRef)((function(l,h){let v;const g={...(0,n.useContext)(i.Q),...l,layoutId:y(l)},{isStatic:b}=g,E=(0,c.z)(l),w=d(l,b);if(!b&&u.B){E.visualElement=(0,a.Y)(m,w,g,t);const r=(0,n.useContext)(p.N),i=(0,n.useContext)(f.Y).strict;E.visualElement&&(v=E.visualElement.loadFeatures(g,i,e,r))}return n.createElement(o.A.Provider,{value:E},v&&E.visualElement?n.createElement(v,{visualElement:E.visualElement,...g}):null,r(m,l,(0,s.J)(w,E.visualElement,h),w,b,E.visualElement))}));return v[h.o]=m,v}function y({layoutId:e}){const t=(0,n.useContext)(d.L).id;return t&&void 0!==e?t+"-"+e:e}},78175:(e,t,r)=>{"use strict";r.d(t,{z:()=>o});var n=r(17627),i=r(51082);function o(e,{layout:t,layoutId:r}){return i.f.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!n.H[e]||"opacity"===e)}},58950:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});const n=Symbol.for("motionComponentSymbol")},96962:(e,t,r)=>{"use strict";r.d(t,{J:()=>
2o});var n=r(14041),i=r(56491);function o(e,t,r){return(0,n.useCallback)((n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):(0,i.X)(r)&&(r.current=n))}),[t])}},73755:(e,t,r)=>{"use strict";r.d(t,{Y:()=>u});var n=r(14041),i=r(6753),o=r(1367),a=r(98682),s=r(39926),c=r(79920),l=r(65530);function u(e,t,r,u){const{visualElement:d}=(0,n.useContext)(o.A),f=(0,n.useContext)(s.Y),p=(0,n.useContext)(i.t),h=(0,n.useContext)(c.Q).reducedMotion,m=(0,n.useRef)();u=u||f.renderer,!m.current&&u&&(m.current=u(e,{visualState:t,parent:d,props:r,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:h}));const y=m.current;(0,n.useInsertionEffect)((()=>{y&&y.update(r,p)}));const v=(0,n.useRef)(Boolean(r[l.n]&&!window.HandoffComplete));return(0,a.E)((()=>{y&&(y.render(),v.current&&y.animationState&&y.animationState.animateChanges())})),(0,n.useEffect)((()=>{y&&(y.updateFeatures(),!v.current&&y.animationState&&y.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))})),y}},87748:(e,t,r)=>{"use strict";r.d(t,{T:()=>d});var n=r(14041),i=r(35336),o=r(6753),a=r(81003),s=r(28827),c=r(8548),l=r(1367),u=r(11239);const d=e=>(t,r)=>{const i=(0,n.useContext)(l.A),a=(0,n.useContext)(o.t),c=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:f(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a}(e,t,i,a);return r?c():(0,s.M)(c)};function f(e,t,r,n){const o={},s=n(e,{});for(const e in s)o[e]=(0,c.u)(s[e]);let{initial:l,animate:d}=e;const f=(0,u.e)(e),p=(0,u.O)(e);t&&p&&!f&&!1!==e.inherit&&(void 0===l&&(l=t.initial),void 0===d&&(d=t.animate));let h=!!r&&!1===r.initial;h=h||!1===l;const m=h?d:l;if(m&&"boolean"!=typeof m&&!(0,i.N)(m)){(Array.isArray(m)?m:[m]).forEach((t=>{const r=(0,a.a)(e,t);if(!r)return;const{transitionEnd:n,transition:i,...s}=r;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[h?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in n)o[e]=n[e]}))}return o}},1754:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});const n=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function i(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||n.has(e)}},98155:(e,t,r)=>{"use strict";r.d(t,{v:()=>f});var n=r(27326),i=r(58476),o=r(1957),a=r(19961),s=r(51087);const c=["TopLeft","TopRight","BottomLeft","BottomRight"],l=c.length,u=e=>"string"==typeof e?parseFloat(e):e,d=e=>"number"==typeof e||s.px.test(e);function f(e,t,r,n,i,a){i?(e.opacity=(0,o.j)(0,void 0!==r.opacity?r.opacity:1,h(n)),e.opacityExit=(0,o.j)(void 0!==t.opacity?t.opacity:1,0,m(n))):a&&(e.opacity=(0,o.j)(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<l;i++){const a=`border${c[i]}Radius`;let l=p(t,a),f=p(r,a);if(void 0===l&&void 0===f)continue;l||(l=0),f||(f=0);0===l||0===f||d(l)===d(f)?(e[a]=Math.max((0,o.j)(u(l),u(f),n),0),(s.KN.test(f)||s.KN.test(l))&&(e[a]+="%")):e[a]=f}(t.rotate||r.rotate)&&(e.rotate=(0,o.j)(t.rotate||0,r.rotate||0,n))}function p(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const h=y(0,.5,n.yT),m=y(.5,.95,a.l);function y(e,t,r){return n=>n<e?0:n>t?1:r((0,i.q)(e,t,n))}},49054:(e,t,r)=>{"use strict";function n({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function i({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function o(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}r.d(t,{FY:()=>n,bS:()=>o,pA:()=>i})},80481:(e,t,r)=>{"use strict";function n(e,t){e.min=t.min,e.max=t.max}function i(e,t){n(e.x,t.x),n(e.y,t.y)}r.d(t,{H:()=>i})},53035:(e,t,r)=>{"use strict";r.d(t,{OU:()=>l,Ql:()=>d,Ww:()=>m,hq:()=>o,o4:()=>c});var n=r(1957),i=r(87984);function o(e,t,r){return r+t*(e-r)}function a(e,t,r,n,i){return void 0!==i&&(e=o(e,i,n)),o(e,r,n)+t}function s(e,t=0,r=1,n,i){e.min=a(e.min,t,r,n,i),e.max=a(e.max,t,r,n,i)}function c(e,{x:t,y:r}
2){s(e.x,t.translate,t.scale,t.originPoint),s(e.y,r.translate,r.scale,r.originPoint)}function l(e,t,r,n=!1){const o=r.length;if(!o)return;let a,s;t.x=t.y=1;for(let l=0;l<o;l++){a=r[l],s=a.projectionDelta;const o=a.instance;o&&o.style&&"contents"===o.style.display||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&m(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,c(e,s)),n&&(0,i.HD)(a.latestValues)&&m(e,a.latestValues))}t.x=u(t.x),t.y=u(t.y)}function u(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function d(e,t){e.min=e.min+t,e.max=e.max+t}function f(e,t,[r,i,o]){const a=void 0!==t[o]?t[o]:.5,c=(0,n.j)(e.min,e.max,a);s(e,t[r],t[i],c,t.scale)}const p=["x","scaleX","originX"],h=["y","scaleY","originY"];function m(e,t){f(e.x,t,p),f(e.y,t,h)}},12782:(e,t,r)=>{"use strict";r.d(t,{CQ:()=>i,HQ:()=>o,N:()=>l,jA:()=>d,vb:()=>s});var n=r(1957);function i(e){return e.max-e.min}function o(e,t=0,r=.01){return Math.abs(e-t)<=r}function a(e,t,r,a=.5){e.origin=a,e.originPoint=(0,n.j)(t.min,t.max,e.origin),e.scale=i(r)/i(t),(o(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=(0,n.j)(r.min,r.max,e.origin)-e.originPoint,(o(e.translate)||isNaN(e.translate))&&(e.translate=0)}function s(e,t,r,n){a(e.x,t.x,r.x,n?n.originX:void 0),a(e.y,t.y,r.y,n?n.originY:void 0)}function c(e,t,r){e.min=r.min+t.min,e.max=e.min+i(t)}function l(e,t,r){c(e.x,t.x,r.x),c(e.y,t.y,r.y)}function u(e,t,r){e.min=t.min-r.min,e.max=e.min+i(t)}function d(e,t,r){u(e.x,t.x,r.x),u(e.y,t.y,r.y)}},42781:(e,t,r)=>{"use strict";r.d(t,{px:()=>u});var n=r(1957),i=r(51087),o=r(53035);function a(e,t,r,n,i){return e-=t,e=(0,o.hq)(e,1/r,n),void 0!==i&&(e=(0,o.hq)(e,1/i,n)),e}function s(e,t,[r,o,s],c,l){!function(e,t=0,r=1,o=.5,s,c=e,l=e){i.KN.test(t)&&(t=parseFloat(t),t=(0,n.j)(l.min,l.max,t/100)-l.min);if("number"!=typeof t)return;let u=(0,n.j)(c.min,c.max,o);e===c&&(u-=t),e.min=a(e.min,t,r,u,s),e.max=a(e.max,t,r,u,s)}(e,t[r],t[o],t[s],t.scale,c,l)}const c=["x","scaleX","originX"],l=["y","scaleY","originY"];function u(e,t,r,n){s(e.x,t,c,r?r.x:void 0,n?n.x:void 0),s(e.y,t,l,r?r.y:void 0,n?n.y:void 0)}},22176:(e,t,r)=>{"use strict";r.d(t,{ge:()=>i,xU:()=>n});const n=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),i=()=>({x:{min:0,max:0},y:{min:0,max:0}})},70353:(e,t,r)=>{"use strict";r.d(t,{XY:()=>o,cH:()=>c,mG:()=>s,zo:()=>a});var n=r(12782);function i(e){return 0===e.translate&&1===e.scale}function o(e){return i(e.x)&&i(e.y)}function a(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function s(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function c(e){return(0,n.CQ)(e.x)/(0,n.CQ)(e.y)}},7350:(e,t,r)=>{"use strict";r.d(t,{B:()=>o});var n=r(88725),i=r(19780);const o=(0,n.u0)({attachResizeListener:(e,t)=>(0,i.k)(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0})},73346:(e,t,r)=>{"use strict";r.d(t,{P:()=>a});var n=r(88725),i=r(7350);const o={current:void 0},a=(0,n.u0)({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!o.current){const e=new i.B({});e.mount(window),e.setOptions({layoutScroll:!0}),o.current=e}return o.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)})},88725:(e,t,r)=>{"use strict";r.d(t,{u0:()=>N});var n=r(26072),i=r(98155),o=r(80481),a=r(53035),s=r(12782),c=r(42781),l=r(22176),u=r(52192),d=r(70353),f=r(585),p=r(17627),h=r(68200),m=r(10696),y=r(87984),v=r(98582),g=r(8548),b=r(85985),E=r(35414),w=r(1957),S=r(92256),A=r(26969),_=r(78161),x=r(12306),P=r(2778),I=r(19961);const k=["","X","Y","Z"],O={visibility:"hidden"},T=1e3;let C=0;const R={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function N({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:m,resetTransform:w}){return class{constructor(e={},r=(null==t?void 0:t())){this.id=C++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,R.totalNodes=R.resolvedTargetDeltas=R.recalculatedProjection=0,this.nodes.forEac
2h(M),this.nodes.forEach(G),this.nodes.forEach(W),this.nodes.forEach(F),(0,S.g)(R)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new v.Y)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new n.v),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=(0,A.x)(t),this.instance=t;const{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r;const n=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=(0,E.c)(n,250),b.w.hasAnimatedSinceResize&&(b.w.hasAnimatedSinceResize=!1,this.nodes.forEach(z))}))}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||o.getDefaultTransition()||Q,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),c=!this.targetLayout||!(0,d.mG)(this.targetLayout,n)||r,l=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);const t={...(0,u.r)(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||z(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,P.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(H),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;const n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(B);this.isUpdating||this.nodes.forEach(V),this.isUpdating=!1,this.nodes.forEach(U),this.nodes.forEach(L),this.nodes.forEach(D),this.clearAllSnapshots();const e=performance.now();P.uv.delta=(0,x.q)(0,1e3/60,e-P.uv.timestamp),P.uv.timestamp=e,P.uv.isProcessing=!0,P.Ci.update.process(P.uv),P.Ci.preRender.process(P.uv),P.Ci.render.process(P.uv),P.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(j),this.sharedNodes.forEac
2h($)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,P.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){P.Gt.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,l.ge)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:m(this.instance),offset:r(this.instance)})}resetTransform(){if(!w)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!(0,d.XY)(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;e&&(t||(0,y.HD)(this.latestValues)||i)&&(w(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let r=this.removeElementScroll(t);var n;return e&&(r=this.removeTransform(r)),J((n=r).x),J(n.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return(0,l.ge)();const t=e.measureViewportBox(),{scroll:r}=this.root;return r&&((0,a.Ql)(t.x,r.offset.x),(0,a.Ql)(t.y,r.offset.y)),t}removeElementScroll(e){const t=(0,l.ge)();(0,o.H)(t,e);for(let r=0;r<this.path.length;r++){const n=this.path[r],{scroll:i,options:s}=n;if(n!==this.root&&i&&s.layoutScroll){if(i.isRoot){(0,o.H)(t,e);const{scroll:r}=this.root;r&&((0,a.Ql)(t.x,-r.offset.x),(0,a.Ql)(t.y,-r.offset.y))}(0,a.Ql)(t.x,i.offset.x),(0,a.Ql)(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){const r=(0,l.ge)();(0,o.H)(r,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,a.Ww)(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,y.HD)(n.latestValues)&&(0,a.Ww)(r,n.latestValues)}return(0,y.HD)(this.latestValues)&&(0,a.Ww)(r,this.latestValues),r}removeTransform(e){const t=(0,l.ge)();(0,o.H)(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!(0,y.HD)(r.latestValues))continue;(0,y.vk)(r.latestValues)&&r.updateSnapshot();const n=(0,l.ge)(),i=r.measurePageBox();(0,o.H)(n,i),(0,c.px)(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return(0,y.HD)(this.latestValues)&&(0,c.px)(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==P.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==r;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:i,layoutId:c}=this.options;if(this.layout&&(i||c)){if(this.resolvedRelativeTargetAt=P.uv.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,l.ge)(),this.relativeTargetOrigin=(0,l.ge)(),(0,s.jA)(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),(0,o.H)(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,l.ge)(),this.targetWithTransforms=(0,l.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,s.N)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):(0,o.H)(this.target,this.layout.layoutBox),(0,a.o4)(this.target,this.targetDelta)):(0,o.H)(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,l.ge)(),this.relativeTargetOrigin=(0,l.ge)(),(0,s.jA)(this.relativeTargetOrigin,this.target,e.target),(0,o.H)(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}R.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!(0,y.vk)(this.parent.latestValues)&&!(0,y.vF)(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),r=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===P.uv.timestamp&&(n=!1),n)return;const{layout:i,layoutId:c}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!c)return;(0,o.H)(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,d=this.treeScale.y;(0,a.OU)(this.layoutCorrected,this.treeScale,this.path,r),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:f}=t;if(!f)return void(this.projectionTransform&&(this.projectionDelta=(0,l.xU)(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=(0,l.xU)(),this.projectionDeltaWithTransform=(0,l.xU)());const p=this.projectionTransform;(0,s.vb)(this.projectionDelta,this.layoutCorrected,f,this.latestValues),this.projectionTransform=(0,h.I)(this.projectionDelta,this.treeScale),this.projectionTransform===p&&this.treeScale.x===u&&this.treeScale.y===d||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f)),R.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const r=this.snapshot,n=r?r.latestValues:{},a={...this.latestValues},c=(0,l.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;
2const u=(0,l.ge)(),f=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),p=this.getStack(),h=!p||p.members.length<=1,m=Boolean(f&&!h&&!0===this.options.crossfade&&!this.path.some(K));let y;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;var p,v,g,b;Y(c.x,e.x,r),Y(c.y,e.y,r),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&((0,s.jA)(u,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,v=this.relativeTargetOrigin,g=u,b=r,q(p.x,v.x,g.x,b),q(p.y,v.y,g.y,b),y&&(0,d.zo)(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=(0,l.ge)()),(0,o.H)(y,this.relativeTarget)),f&&(this.animationValues=a,(0,i.v)(a,n,this.latestValues,r,m,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,P.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=P.Gt.update((()=>{b.w.hasAnimatedSinceResize=!0,this.currentAnimation=(0,_.z)(0,T,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(T),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&ee(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||(0,l.ge)();const t=(0,s.CQ)(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=(0,s.CQ)(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}(0,o.H)(t,r),(0,a.Ww)(t,i),(0,s.vb)(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new f.P);this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;const n={};for(let t=0;t<k.length;t++){const i="rotate"+k[t];r[i]&&(n[i]=r[i],e.setStaticValue(i,0))}e.render();for(const t in n)e.setStaticValue(t,n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return O;const n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=(0,g.u)(null==e?void 0:e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,g.u)(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!(0,y.HD)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=(0,h.I)(this.projectionDeltaWithTransform,this.treeScale,a),i&&(n.transform=i(a,n.transform));const{x:s,y:c}=this.projectionDelta;n.transformOrigin=`${100*s.origin}% ${100*c.origin}% 0`,o.animationValues?n.opacity=o===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in p.H){if(void 0===a[e])continue;const{correct:t,applyTo:r}
2=p.H[e],i="none"===n.transform?a[e]:t(a[e],o);if(r){const e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=o===this?(0,g.u)(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(B),this.root.sharedNodes.clear()}}}function L(e){e.updateLayout()}function D(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?(0,m.X)((e=>{const n=o?r.measuredBox[e]:r.layoutBox[e],i=(0,s.CQ)(n);n.min=t[e].min,n.max=n.min+i})):ee(i,r.layoutBox,t)&&(0,m.X)((n=>{const i=o?r.measuredBox[n]:r.layoutBox[n],a=(0,s.CQ)(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)}));const a=(0,l.xU)();(0,s.vb)(a,t,r.layoutBox);const c=(0,l.xU)();o?(0,s.vb)(c,e.applyTransform(n,!0),r.measuredBox):(0,s.vb)(c,t,r.layoutBox);const u=!(0,d.XY)(a);let f=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:i,layout:o}=n;if(i&&o){const a=(0,l.ge)();(0,s.jA)(a,r.layoutBox,i.layoutBox);const c=(0,l.ge)();(0,s.jA)(c,t,o.layoutBox),(0,d.mG)(a,c)||(f=!0),n.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:c,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function M(e){R.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function F(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function j(e){e.clearSnapshot()}function B(e){e.clearMeasurements()}function V(e){e.isLayoutDirty=!1}function U(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function z(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function G(e){e.resolveTargetDelta()}function W(e){e.calcProjection()}function H(e){e.resetRotation()}function $(e){e.removeLeadSnapshot()}function Y(e,t,r){e.translate=(0,w.j)(t.translate,0,r),e.scale=(0,w.j)(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function q(e,t,r,n){e.min=(0,w.j)(t.min,r.min,n),e.max=(0,w.j)(t.max,r.max,n)}function K(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Q={duration:.45,ease:[.4,0,.1,1]},X=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),Z=X("applewebkit/")&&!X("chrome/")?Math.round:I.l;function J(e){e.min=Z(e.min),e.max=Z(e.max)}function ee(e,t,r){return"position"===e||"preserve-aspect"===e&&!(0,s.HQ)((0,d.cH)(t),(0,d.cH)(r),.2)}},85985:(e,t,r)=>{"use strict";r.d(t,{w:()=>n});const n={hasAnimatedSinceResize:!0,hasEverUpdated:!1}},585:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});var n=r(26124);class i{constructor(){this.members=[]}add(e){(0,n.Kq)(this.members,e),e.scheduleRender()}remove(e){if((0,n.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){r=t;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}
2exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}},37040:(e,t,r)=>{"use strict";r.d(t,{P:()=>o});var n=r(51087);function i(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const o={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!n.px.test(e))return e;e=parseFloat(e)}return`${i(e,t.target.x)}% ${i(e,t.target.y)}%`}}},44027:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(1957),i=r(90612);const o={correct:(e,{treeScale:t,projectionDelta:r})=>{const o=e,a=i.f.parse(e);if(a.length>5)return o;const s=i.f.createTransformer(e),c="number"!=typeof a[0]?1:0,l=r.x.scale*t.x,u=r.y.scale*t.y;a[0+c]/=l,a[1+c]/=u;const d=(0,n.j)(l,u,.5);return"number"==typeof a[2+c]&&(a[2+c]/=d),"number"==typeof a[3+c]&&(a[3+c]/=d),s(a)}}},17627:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,H:()=>n});const n={};function i(e){Object.assign(n,e)}},68200:(e,t,r)=>{"use strict";function n(e,t,r){let n="";
2const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:e,rotateX:t,rotateY:i}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),i&&(n+=`rotateY(${i}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(n+=`scale(${a}, ${s})`),n||"none"}r.d(t,{I:()=>n})},10696:(e,t,r)=>{"use strict";function n(e){return[e("x"),e("y")]}r.d(t,{X:()=>n})},87984:(e,t,r)=>{"use strict";function n(e){return void 0===e||1===e}function i({scale:e,scaleX:t,scaleY:r}){return!n(e)||!n(t)||!n(r)}function o(e){return i(e)||a(e)||e.z||e.rotate||e.rotateX||e.rotateY}function a(e){return s(e.x)||s(e.y)}function s(e){return e&&"0%"!==e}r.d(t,{HD:()=>o,vF:()=>a,vk:()=>i})},78443:(e,t,r)=>{"use strict";r.d(t,{L:()=>a,m:()=>o});var n=r(49054),i=r(53035);function o(e,t){return(0,n.FY)((0,n.bS)(e.getBoundingClientRect(),t))}function a(e,t,r){const n=o(e,r),{scroll:a}=t;return a&&((0,i.Ql)(n.x,a.offset.x),(0,i.Ql)(n.y,a.offset.y)),n}},66222:(e,t,r)=>{"use strict";r.d(t,{B:()=>_});var n=r(22176),i=r(56491),o=r(12693),a=r(50482),s=r(26072),c=r(75187),l=r(30995),u=r(54706),d=r(51082),f=r(11239),p=r(84969),h=r(54777),m=r(81003),y=r(15166),v=r(46150),g=r(62625),b=r(2778);const E=Object.keys(y.B),w=E.length,S=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],A=v._.length;class _{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>b.Gt.render(this.render,!1,!0);const{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=(0,f.e)(t),this.isVariantNode=(0,f.O)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{});for(const e in d){const t=d[e];void 0!==a[e]&&(0,u.S)(t)&&(t.set(a[e],!1),(0,l.k)(c)&&c.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,g.C.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),a.r.current||(0,o.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||a.O.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){g.C.delete(this.current),this.projection&&this.projection.unmount(),(0,b.WG)(this.notifyUpdate),(0,b.WG)(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const r=d.f.has(e),n=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&b.Gt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)})),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{n(),i()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,o){let a,s;for(let e=0;e<w;e++){const r=E[e],{isEnabled:n,Feature:i,ProjectionNode:o,MeasureLayout:c}=y.B[r];o&&(a=o),n(t)&&(!this.features[r]&&i&&(this.features[r]=new i(this)),c&&(s=c))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:r,drag:n,dragConstraints:s,layoutScroll:c,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:Boolean(n)||s&&(0,i.X)(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:o,layoutScroll:c,layoutRoot:l})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];
2t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,n.ge)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<S.length;t++){const r=S[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=(0,h.U)(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<A;e++){const r=v._[e],n=this.props[r];((0,p.w)(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,c.OQ)(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=(0,m.a)(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||(0,u.S)(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new s.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}},91989:(e,t,r)=>{"use strict";r.d(t,{b:()=>a});var n=r(74904),i=r(98403),o=r(66222);class a extends o.B{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:o},a){let s=(0,n.$z)(r,e||{},this);if(o&&(t&&(t=o(t)),r&&(r=o(r)),s&&(s=o(s))),a){(0,n.TM)(this,r,s);const e=(0,i.P)(this,r,s,t);t=e.transitionEnd,r=e.target}return{transition:e,transitionEnd:t,...r}}}},12953:(e,t,r)=>{"use strict";r.d(t,{J:()=>a});var n=r(81929),i=r(38197),o=r(35612);const a=(e,t)=>(0,o.Q)(e)?new i.l(t,{enableHardwareAcceleration:!1}):new n.M(t,{enableHardwareAcceleration:!0})},58864:(e,t,r)=>{"use strict";r.d(t,{H:()=>i});var n=r(97520);function i(e){function t(t,r={}){return(0,n.G)(e(t,r))}if("undefined"==typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}},81387:(e,t,r)=>{"use strict";r.d(t,{P:()=>d});
2var n=r(58864),i=r(99554),o=r(70256),a=r(11709),s=r(56690),c=r(12953),l=r(70642);const u={...a.W,...o.n,...s.$,...l.Z},d=(0,n.H)(((e,t)=>(0,i.P)(e,t,u,c.J)))},96647:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});var n=r(2778);function i(e,t){let r;const i=()=>{const{currentTime:n}=t,i=(null===n?0:n.value)/100;r!==i&&e(i),r=i};return n.Gt.update(i,!0),()=>(0,n.WG)(i)}},31297:(e,t,r)=>{"use strict";r.d(t,{J:()=>n});const n=(0,r(37591).p)((()=>void 0!==window.ScrollTimeline))},7299:(e,t,r)=>{"use strict";r.d(t,{o:()=>l});var n=r(14041),i=r(40716),o=r(27460),a=r(35612),s=r(22937),c=r(54706);function l(e=!1){return(t,r,l,{latestValues:u},d)=>{const f=((0,a.Q)(t)?s.u:i.b)(r,u,d,t),p={...(0,o.J)(r,"string"==typeof t,e),...f,ref:l},{children:h}=r,m=(0,n.useMemo)((()=>(0,c.S)(h)?h.get():h),[h]);return(0,n.createElement)(t,{...p,children:m})}}},30284:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});const n=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},99554:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var n=r(35612),i=r(7299),o=r(3952),a=r(72893);function s(e,{forwardMotionProps:t=!1},r,s){return{...(0,n.Q)(e)?o.X:a.S,preloadedFeatures:r,useRender:(0,i.o)(t),createVisualElement:s,Component:e}}},31101:(e,t,r)=>{"use strict";r.d(t,{d:()=>l});var n=r(53260),i=r(24794),o=r(67078);const a=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const s=4;function c(e,t,r=1){(0,n.V)(r<=s,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[l,u]=function(e){const t=a.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}(e);if(!l)return;const d=window.getComputedStyle(t).getPropertyValue(l);if(d){const e=d.trim();return(0,i.i)(e)?parseFloat(e):e}return(0,o.pG)(u)?c(u,t,r+1):u}function l(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach((e=>{const t=e.get();if(!(0,o.pG)(t))return;const r=c(t,n);r&&e.set(r)}));for(const e in t){const i=t[e];if(!(0,o.pG)(i))continue;const a=c(i,n);a&&(t[e]=a,r||(r={}),void 0===r[e]&&(r[e]=i))}return{target:t,transitionEnd:r}}},27460:(e,t,r)=>{"use strict";r.d(t,{J:()=>a});var n=r(1754);let i=e=>!(0,n.S)(e);try{(o=r(86e3).A)&&(i=e=>e.startsWith("on")?!(0,n.S)(e):o(e))}catch(e){}var o;function a(e,t,r){const o={};for(const a in e)"values"===a&&"object"==typeof e.values||(i(a)||!0===r&&(0,n.S)(a)||!t&&!(0,n.S)(a)||e.draggable&&a.startsWith("onDrag"))&&(o[a]=e[a]);return o}},67078:(e,t,r)=>{"use strict";r.d(t,{j4:()=>i,pG:()=>o,z2:()=>a});const n=e=>t=>"string"==typeof t&&t.startsWith(e),i=n("--"),o=n("var(--"),a=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?
2:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},35612:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(26988);function i(e){return"string"==typeof e&&!e.includes("-")&&!!(n.J.indexOf(e)>-1||/[A-Z]/.test(e))}},26969:(e,t,r)=>{"use strict";function n(e){return e instanceof SVGElement&&"svg"!==e.tagName}r.d(t,{x:()=>n})},98403:(e,t,r)=>{"use strict";r.d(t,{P:()=>o});var n=r(31101),i=r(26450);const o=(e,t,r,o)=>{const a=(0,n.d)(e,t,o);return t=a.target,o=a.transitionEnd,(0,i.t)(e,t,r,o)}},57822:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});var n=r(53260);function i(e,t,r){var i;if("string"==typeof e){let o=document;t&&((0,n.V)(Boolean(t.current),"Scope provided, but no element detected."),o=t.current),r?(null!==(i=r[e])&&void 0!==i||(r[e]=o.querySelectorAll(e)),e=r[e]):e=o.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}},26450:(e,t,r)=>{"use strict";r.d(t,{t:()=>E});var n=r(99818),i=r(53260),o=r(51082),a=r(46492),s=r(37774),c=r(17342),l=r(51087);const u=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),d=e=>u.has(e),f=e=>Object.keys(e).some(d),p=e=>e===c.ai||e===l.px,h=(e,t)=>parseFloat(e.split(", ")[t]),m=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return h(i[1],t);{const t=n.match(/^matrix\((.+)\)$/);return t?h(t[1],e):0}},y=new Set(["x","y","z"]),v=o.U.filter((e=>!y.has(e)));const g={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:m(4,13),y:m(5,14)};g.translateX=g.x,g.translateY=g.y;const b=(e,t,r={},o={})=>{t={...t},o={...o};const c=Object.keys(t).filter(d);let u=[],f=!1;const h=[];if(c.forEach((s=>{const c=e.getValue(s);if(!e.hasValue(s))return;let d=r[s],m=(0,a.n)(d);const y=t[s];let g;if((0,n.p)(y)){const e=y.length,t=null===y[0]?1:0;d=y[t],m=(0,a.n)(d);for(let r=t;r<e&&null!==y[r];r++)g?(0,i.V)((0,a.n)(y[r])===g,"All keyframes must be of the same type"):(g=(0,a.n)(y[r]),(0,i.V)(g===m||p(m)&&p(g),"Keyframes must be of the same dimension as the current value"))}else g=(0,a.n)(y);if(m!==g)if(p(m)&&p(g)){const e=c.get();"string"==typeof e&&c.set(parseFloat(e)),"string"==typeof y?t[s]=parseFloat(y):Array.isArray(y)&&g===l.px&&(t[s]=y.map(parseFloat))}else(null==m?void 0:m.transform)&&(null==g?void 0:g.transform)&&(0===d||0===y)?0===d?c.set(g.transform(d)):t[s]=m.transform(y):(f||(u=function(e){const t=[];return v.forEach((r=>{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),f=!0),h.push(s),o[s]=void 0!==o[s]?o[s]:t[s],c.jump(y))})),h.length){const r=h.indexOf("height")>=0?window.pageYOffset:null,n=((e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach((e=>{s[e]=g[e](n,o)})),t.render();const c=t.measureViewportBox();return r.forEach((r=>{const n=t.getValue(r);n&&n.jump(s[r]),e[r]=g[r](c,o)})),e})(t,e,h);return u.length&&u.forEach((([t,r])=>{e.getValue(t).set(r)})),e.render(),s.B&&null!==r&&window.scrollTo({top:r}),{target:n,transitionEnd:o}}return{target:t,transitionEnd:o}};function E(e,t,r,n){return f(t)?b(e,t,r,n):{target:t,transitionEnd:n}}},77626:(e,t,r)=>{"use strict";r.d(t,{J:()=>a});var n=r(90612),i=r(82218),o=r(5037);function a(e,t){let r=(0,o.D)(e);return r!==i.p&&(r=n.f),r.getAnimatableNone?r.getAnimatableNone(t):void 0}},5037:(e,t,r)=>{"use strict";r.d(t,{D:()=>a});var n=r(34505),i=r(82218);const o={...r(45148).W,color:n.y,backgroundColor:n.y,outlineColor:n.y,fill:n.y,stroke:n.y,borderColor:n.y,borderTopColor:n.y,borderRightColor:n.y,borderBottomColor:n.y,borderLeftColor:n.y,filter:i.p,WebkitFilter:i.p},a=e=>o[e]},46492:(e,t,r)=>{"use strict";r.d(t,{T:()=>s,n:()=>c});var n=r(17342),i=r(51087),o=r(64727),a=r(64189);const s=[n.ai,i.px,i.KN,i.uj,i.vw,i.vh,a.q],c=e=>s.find((0,o.w)(e))},27058:(e,t,r)=>{"use strict";r.d(t,{t:()=>c});
2var n=r(34505),i=r(90612),o=r(46492),a=r(64727);const s=[...o.T,n.y,i.f],c=e=>s.find((0,a.w)(e))},19783:(e,t,r)=>{"use strict";r.d(t,{e:()=>n});const n=(e,t)=>t&&"number"==typeof e?t.transform(e):e},45148:(e,t,r)=>{"use strict";r.d(t,{W:()=>a});var n=r(17342),i=r(51087),o=r(38067);const a={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,size:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,rotate:i.uj,rotateX:i.uj,rotateY:i.uj,rotateZ:i.uj,scale:n.hs,scaleX:n.hs,scaleY:n.hs,scaleZ:n.hs,skew:i.uj,skewX:i.uj,skewY:i.uj,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:n.X4,originX:i.gQ,originY:i.gQ,originZ:i.px,zIndex:o.W,fillOpacity:n.X4,strokeOpacity:n.X4,numOctaves:o.W}},64727:(e,t,r)=>{"use strict";r.d(t,{w:()=>n});const n=e=>t=>t.test(e)},64189:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});const n={test:e=>"auto"===e,parse:e=>e}},38067:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});const n={...r(17342).ai,transform:Math.round}},81929:(e,t,r)=>{"use strict";r.d(t,{M:()=>f});var n=r(87357),i=r(67078),o=r(51082),a=r(47772),s=r(56934),c=r(5037),l=r(78443),u=r(91989),d=r(54706);class f extends u.b{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(o.f.has(t)){const e=(0,c.D)(t);return e&&e.default||0}{const n=(r=e,window.getComputedStyle(r)),o=((0,i.j4)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof o?o.trim():o}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return(0,l.m)(e,t)}build(e,t,r,i){(0,n.O)(e,t,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,t){return(0,a.x)(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;(0,d.S)(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,r,n){(0,s.e)(e,t,r,n)}}},72893:(e,t,r)=>{"use strict";r.d(t,{S:()=>a});var n=r(87748),i=r(47772),o=r(27431);const a={useVisualState:(0,n.T)({scrapeMotionValuesFromProps:i.x,createRenderState:o.d})}},40716:(e,t,r)=>{"use strict";r.d(t,{b:()=>u,o:()=>c});var n=r(14041),i=r(78175),o=r(54706),a=r(87357),s=r(27431);function c(e,t,r){for(const n in t)(0,o.S)(t[n])||(0,i.z)(n,r)||(e[n]=t[n])}function l(e,t,r){const i={};return c(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},t,r){return(0,n.useMemo)((()=>{const n=(0,s.d)();return(0,a.O)(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)}),[t])}(e,t,r)),e.transformValues?e.transformValues(i):i}function u(e,t,r){const n={},i=l(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}},87357:(e,t,r)=>{"use strict";r.d(t,{O:()=>c});var n=r(73333),i=r(67078),o=r(51082),a=r(19783),s=r(45148);function c(e,t,r,c){const{style:l,vars:u,transform:d,transformOrigin:f}=e;let p=!1,h=!1,m=!0;for(const e in t){const r=t[e];if((0,i.j4)(e)){u[e]=r;continue}const n=s.W[e],c=(0,a.e)(r,n);if(o.f.has(e)){if(p=!0,d[e]=c,!m)continue;r!==(n.default||0)&&(m=!1)}else e.startsWith("origin")?(h=!0,f[e]=c):l[e]=c}if(t.transform||(p||c?l.transform=(0,n.d)(e.transform,r,m,c):l.transform&&(l.transform="none")),h){const{originX:e="50%",originY:t="50%",originZ:r=0}=f;l.transformOrigin=`${e} ${t} ${r}`}}},73333:(e,t,r)=>{"use strict";r.d(t,{d:()=>a});var n=r(51082);const i={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=n.U.length;function a(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},a,s){let c="";for(let t=0;t<o;t++){const r=n.U[t];if(void 0!==e[r]){c+=`${i[r]||r}(${e[r]}) `}}return t&&!e.z&&(c+="translateZ(0)"),c=c.trim(),s?c=s(e,a?"":c):r&&a&&(c="none"),c}},27431:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});const n=()=>({style:{},transform:{},transformOrigin:{},vars:{}})},56934:(e,t,r)=>{"use strict";function n(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const t in r)e.style.setProperty(t,r[t])}r.d(t,{e:()=>n})},47772:(e,t,r)=>{"use strict";r.d(t,{x:()=>o});var n=r(78175),i=r(54706);function o(e,t){const{style:r}=e,o={};for(const a in r)((0,i.S)(r[a])||t.style&&(0,i.S)(t.style[a])||(0,n.z)(a,e))&&(o[a]=r[a]);return o}},51082:(e,t,r)=>{"use strict";r.d(t,{U:()=>n,f:()=>i});const n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(n)},62625:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});const n=new WeakMap},38197:(e,t,r)=>{"use strict";r.d(t,{l:()=>p});
2var n=r(49087),i=r(91989),o=r(30564),a=r(30284),s=r(18273),c=r(51082),l=r(70105),u=r(5037),d=r(22176),f=r(11075);class p extends i.b{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(c.f.has(t)){const e=(0,u.D)(t);return e&&e.default||0}return t=s.e.has(t)?t:(0,a.I)(t),e.getAttribute(t)}measureInstanceViewportBox(){return(0,d.ge)()}scrapeMotionValuesFromProps(e,t){return(0,n.x)(e,t)}build(e,t,r,n){(0,o.B)(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){(0,l.d)(e,t,r,n)}mount(e){this.isSVGTag=(0,f.n)(e.tagName),super.mount(e)}}},3952:(e,t,r)=>{"use strict";r.d(t,{X:()=>u});var n=r(70105),i=r(49087),o=r(87748),a=r(72342),s=r(30564),c=r(11075),l=r(2778);const u={useVisualState:(0,o.T)({scrapeMotionValuesFromProps:i.x,createRenderState:a.s,onMount:(e,t,{renderState:r,latestValues:i})=>{l.Gt.read((()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}})),l.Gt.render((()=>{(0,s.B)(r,i,{enableHardwareAcceleration:!1},(0,c.n)(t.tagName),e.transformTemplate),(0,n.d)(t,r)}))}})}},26988:(e,t,r)=>{"use strict";r.d(t,{J:()=>n});const n=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"]},22937:(e,t,r)=>{"use strict";r.d(t,{u:()=>c});var n=r(14041),i=r(40716),o=r(30564),a=r(72342),s=r(11075);function c(e,t,r,c){const l=(0,n.useMemo)((()=>{const r=(0,a.s)();return(0,o.B)(r,t,{enableHardwareAcceleration:!1},(0,s.n)(c),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};(0,i.o)(t,e.style,e),l.style={...t,...l.style}}return l}},30564:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});var n=r(87357),i=r(92538),o=r(92220);function a(e,{attrX:t,attrY:r,attrScale:a,originX:s,originY:c,pathLength:l,pathSpacing:u=1,pathOffset:d=0,...f},p,h,m){if((0,n.O)(e,f,p,m),h)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:y,style:v,dimensions:g}=e;y.transform&&(g&&(v.transform=y.transform),delete y.transform),g&&(void 0!==s||void 0!==c||v.transform)&&(v.transformOrigin=(0,i.w)(g,void 0!==s?s:.5,void 0!==c?c:.5)),void 0!==t&&(y.x=t),void 0!==r&&(y.y=r),void 0!==a&&(y.scale=a),void 0!==l&&(0,o.C)(y,l,u,d,!1)}},18273:(e,t,r)=>{"use strict";r.d(t,{e:()=>n});const n=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"])},72342:(e,t,r)=>{"use strict";r.d(t,{s:()=>i});var n=r(27431);const i=()=>({...(0,n.d)(),attrs:{}})},11075:(e,t,r)=>{"use strict";r.d(t,{n:()=>n});const n=e=>"string"==typeof e&&"svg"===e.toLowerCase()},92220:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(51087);const i={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"};function a(e,t,r=1,a=0,s=!0){e.pathLength=1;const c=s?i:o;e[c.offset]=n.px.transform(-a);const l=n.px.transform(t),u=n.px.transform(r);e[c.array]=`${l} ${u}`}},70105:(e,t,r)=>{"use strict";r.d(t,{d:()=>a});var n=r(30284),i=r(56934),o=r(18273);function a(e,t,r,a){(0,i.e)(e,t,void 0,a);for(const r in t.attrs)e.setAttribute(o.e.has(r)?r:(0,n.I)(r),t.attrs[r])}},49087:(e,t,r)=>{"use strict";r.d(t,{x:()=>a});var n=r(54706),i=r(47772),o=r(51082);function a(e,t){const r=(0,i.x)(e,t);for(const i in e)if((0,n.S)(e[i])||(0,n.S)(t[i])){r[-1!==o.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]}return r}},92538:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var n=r(51087);function i(e,t,r){return"string"==typeof e?e:n.px.transform(t+r*e)}function o(e,t,r){return`${i(t,e.x,e.width)} ${i(r,e.y,e.height)}`}},92110:(e,t,r)=>{"use strict";r.d(t,{L:()=>f});var n=r(35336),i=r(99818),o=r(44309),a=r(84969),s=r(26127),c=r(46150),l=r(77050);const u=[...c.U].reverse(),d=c.U.length;function f(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:r})=>(0,l._)(e,t,r))))}(e);const r={animate:h(!0),whileInView:h(),whileHover:h(),whileTap:h(),whileDrag:h(),whileFocus:h(),exit:h()};let c=!0;const f=(t,r)=>{const n=(0,s.K)(e,r);if(n){const{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function m(s,l){const h=e.getProps(),m=e.getVariantContext(!0)||{},y=[],v=new Set;let g={},b=1/0;for(let t=0;t<d;t++){const d=u[t],E=r[d],w=void 0!==h[d]?h[d]:m[d],S=(0,a.w)(w),A=d===l?E.isActive:null;!1===A&&(b=t);let _=w===m[d]&&w!==h[d]&&S;if(_&&c&&e.manuallyAnimateOnMount&&(_=!1),E.protectedKeys={...g},!E.isActive&&null===A||!w&&!E.prevProp||(0,n.N)(w)||"boolean"==typeof w)continue;let x=p(E.prevProp,w)||d===l&&E.isActive&&!_&&S||t>b&&S,P=!1;const I=Array.isArray(w)?w:[w];let k=I.reduce(f,{});!1===A&&(k={});const{prevResolvedValues:O={}}=E,T={...O,...k},C=e=>{x=!0,v.has(e)&&(P=!0,v.delete(e)),E.needsAnimating[e]=!0};for(const e in T){const t=k[e],r=O[e];if(g.hasOwnProperty(e))continue;let n=!1;n=(0,i.p)(t)&&(0,i.p)(r)?!(0,o.a)(t,r):t!==r,n?void 0!==t?C(e):v.add(e):void 0!==t&&v.has(e)?C(e):E.protectedKeys[e]=!0}E.prevProp=w,E.prevResolvedValues=k,E.isActive&&(g={...g,...k}),c&&e.blockInitialAnimation&&(x=!1),!x||_&&!P||y.push(...I.map((e=>({animation:e,options:{type:d,...s}}))))}if(v.size){const t={};v.forEach((r=>{const n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)})),y.push({animation:t})}let E=Boolean(y.length);return!c||!1!==h.initial&&h.initial!==h.animate||e.manuallyAnimateOnMount||(E=!1),c=!1,E?t(y):Promise.resolve()}return{animateChanges:m,setActive:function(t,n,i){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;const a=m(i,t);for(const e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}function p(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!(0,o.a)(t,e)}function h(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}},32541:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});const n=(e,t)=>e.depth-t.depth},98582:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(26124),i=r(32541);class o{constructor(){this.children=[],this.isDirty=!1}add(e){(0,n.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,n.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(i.u),this.isDirty=!1,this.children.forEac
2h(e)}}},11239:(e,t,r)=>{"use strict";r.d(t,{O:()=>s,e:()=>a});var n=r(35336),i=r(84969),o=r(46150);function a(e){return(0,n.N)(e.animate)||o._.some((t=>(0,i.w)(e[t])))}function s(e){return Boolean(a(e)||e.variants)}},84969:(e,t,r)=>{"use strict";function n(e){return"string"==typeof e||Array.isArray(e)}r.d(t,{w:()=>n})},54777:(e,t,r)=>{"use strict";r.d(t,{U:()=>a});var n=r(30995),i=r(75187),o=r(54706);function a(e,t,r){const{willChange:a}=t;for(const s in t){const c=t[s],l=r[s];if((0,o.S)(c))e.addValue(s,c),(0,n.k)(a)&&a.add(s);else if((0,o.S)(l))e.addValue(s,(0,i.OQ)(c,{owner:e})),(0,n.k)(a)&&a.remove(s);else if(l!==c)if(e.hasValue(s)){const t=e.getValue(s);!t.hasAnimated&&t.set(c)}else{const t=e.getStaticValue(s);e.addValue(s,(0,i.OQ)(void 0!==t?t:c,{owner:e}))}}for(const n in r)void 0===t[n]&&e.removeValue(n);return t}},26127:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});var n=r(81003);function i(e,t,r){const i=e.getProps();return(0,n.a)(i,t,void 0!==r?r:i.custom,function(e){const t={};return e.values.forEach(((e,r)=>t[r]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,r)=>t[r]=e.getVelocity())),t}(e))}},81003:(e,t,r)=>{"use strict";function n(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}r.d(t,{a:()=>n})},74904:(e,t,r)=>{"use strict";r.d(t,{$z:()=>m,TM:()=>p,Uo:()=>f});var n=r(24794),i=r(94230),o=r(95815),a=r(75187),s=r(90612),c=r(77626),l=r(27058),u=r(26127);function d(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,a.OQ)(r))}function f(e,t){const r=(0,u.K)(e,t);let{transitionEnd:n={},transition:i={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...n};for(const t in a){d(e,t,(0,o.K)(a[t]))}}function p(e,t,r){var o,u;const d=Object.keys(t).filter((t=>!e.hasValue(t))),f=d.length;if(f)for(let p=0;p<f;p++){const f=d[p],h=t[f];let m=null;Array.isArray(h)&&(m=h[0]),null===m&&(m=null!==(u=null!==(o=r[f])&&void 0!==o?o:e.readValue(f))&&void 0!==u?u:t[f]),null!=m&&("string"==typeof m&&((0,n.i)(m)||(0,i.$)(m))?m=parseFloat(m):!(0,l.t)(m)&&s.f.test(h)&&(m=(0,c.J)(f,h)),e.addValue(f,(0,a.OQ)(m,{owner:e})),void 0===r[f]&&(r[f]=m),null!==m&&e.setBaseTarget(f,m))}}function h(e,t){if(!t)return;return(t[e]||t.default||t).from}function m(e,t,r){const n={};for(const i in e){const e=h(i,t);if(void 0!==e)n[i]=e;else{const e=r.getValue(i);e&&(n[i]=e.get())}}return n}},46150:(e,t,r)=>{"use strict";r.d(t,{U:()=>n,_:()=>i});const n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial",...n]},25609:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});const n={skipAnimations:!1}},26124:(e,t,r)=>{"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{Ai:()=>i,Kq:()=>n})},12306:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});const n=(e,t,r)=>Math.min(Math.max(r,e),t)},35414:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(2778);function i(e,t){const r=performance.now(),i=({timestamp:o})=>{const a=o-r;a>=t&&((0,n.WG)(i),e(a-t))};return n.Gt.read(i,!0),()=>(0,n.WG)(i)}},26688:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});const n=(e,t)=>Math.abs(e-t);function i(e,t){const r=n(e.x,t.x),i=n(e.y,t.y);return Math.sqrt(r**2+i**2)}},53260:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,V:()=>o});var n=r(19961);let i=n.l,o=n.l},92830:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});const n=({current:e})=>e?e.ownerDocument.defaultView:null},13302:(e,t,r)=>{"use strict";function n(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function i({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,r/=100;let o=0,a=0,s=0;if(t/=100){const i=r<.5?r*(1+t):r+t-r*t,c=2*r-i;o=n(c,i,e+1/3),a=n(c,i,e),s=n(c,i,e-1/3)}else o=a=s=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}r.d(t,{a:()=>i})},46126:(e,t,r)=>{"use strict";r.d(t,{G:()=>h});var n=r(53260),i=r(34505),o=r(12306),a=r(1957),s=r(94847),c=r(20534),l=r(45437),u=r(58476),d=r(19961);const f=(e,t)=>r=>(0,a.j)(e,t,r);function p(e,t,r){const n=[],o=r||("number"==typeof(a=e[0])?f:"string"==typeof a?i.y.test(a)?s.i:c.JL:Array.isArray(a)?c.MC:"object"==typeof a?c.YK:f);var a;const u=e.length-1;for(let r=0;r<u;r++){let i=o(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]||d.l:t;i=(0,l.F)(e,i)}n.push(i)}return n}function h(e,t,{clamp:r=!0,ease:i,mixer:a}={}){const s=e.length;if((0,n.V)(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=p(t,i,a),l=c.length,d=t=>{let r=0;if(l>1)for(;r<e.length-2&&!(t<e[r+1]);r++);const n=(0,u.q)(e[r],e[r+1],t);return c[r](n)};return r?t=>d((0,o.q)(e[0],e[s-1],t)):d}},37774:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});const n="undefined"!=typeof document},24794:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});const n=e=>/^\-?\d*\.?\d+$/.test(e)},56491:(e,t,r)=>{"use strict";function n(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}r.d(t,{X:()=>n})},94230:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});const n=e=>/^0[^.\s]+$/.test(e)},37591:(e,t,r)=>{"use strict";function n(e){let t;return()=>(void 0===t&&(t=e()),t)}r.d(t,{p:()=>n})},94847:(e,t,r)=>{"use strict";r.d(t,{i:()=>f});
2var n=r(1957),i=r(53260),o=r(13302),a=r(70302),s=r(31705),c=r(7293);const l=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},u=[a.u,s.B,c.V];function d(e){const t=(r=e,u.find((e=>e.test(r))));var r;(0,i.V)(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===c.V&&(n=(0,o.a)(n)),n}const f=(e,t)=>{const r=d(e),i=d(t),o={...r};return e=>(o.red=l(r.red,i.red,e),o.green=l(r.green,i.green,e),o.blue=l(r.blue,i.blue,e),o.alpha=(0,n.j)(r.alpha,i.alpha,e),s.B.transform(o))}},20534:(e,t,r)=>{"use strict";r.d(t,{JL:()=>p,MC:()=>d,YK:()=>f});var n=r(1957),i=r(94847),o=r(45437),a=r(53260),s=r(34505),c=r(90612);const l=(e,t)=>r=>`${r>0?t:e}`;function u(e,t){return"number"==typeof e?r=>(0,n.j)(e,t,r):s.y.test(e)?(0,i.i)(e,t):e.startsWith("var(")?l(e,t):p(e,t)}const d=(e,t)=>{const r=[...e],n=r.length,i=e.map(((e,r)=>u(e,t[r])));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}},f=(e,t)=>{const r={...e,...t},n={};for(const i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=u(e[i],t[i]));return e=>{for(const t in n)r[t]=n[t](e);return r}},p=(e,t)=>{const r=c.f.createTransformer(t),n=(0,c.V)(e),i=(0,c.V)(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?(0,o.F)(d(n.values,i.values),r):((0,a.$)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),l(e,t))}},1957:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});const n=(e,t,r)=>-r*e+r*t+e},19961:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});const n=e=>e},87573:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(87313);function i(e){const t=[0];return(0,n.f)(t,e.length-1),t}},87313:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var n=r(1957),i=r(58476);function o(e,t){const r=e[e.length-1];for(let o=1;o<=t;o++){const a=(0,i.q)(0,t,o);e.push((0,n.j)(r,1,a))}}},30729:(e,t,r)=>{"use strict";function n(e,t){return e.map((e=>e*t))}r.d(t,{A:()=>n})},45437:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});const n=(e,t)=>r=>t(e(r)),i=(...e)=>e.reduce(n)},58476:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});const n=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n}},12693:(e,t,r)=>{"use strict";r.d(t,{U:()=>o});var n=r(37774),i=r(50482);function o(){if(i.r.current=!0,n.B)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i.O.current=e.matches;e.addListener(t),t()}else i.O.current=!1}},50482:(e,t,r)=>{"use strict";r.d(t,{O:()=>n,r:()=>i});const n={current:null},i={current:!1}},78284:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(14041),i=r(12693),o=r(50482);function a(){!o.r.current&&(0,i.U)();const[e]=(0,n.useState)(o.O.current);return e}},95815:(e,t,r)=>{"use strict";r.d(t,{B:()=>i,K:()=>o});var n=r(99818);const i=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),o=e=>(0,n.p)(e)?e[e.length-1]||0:e},44309:(e,t,r)=>{"use strict";function n(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}r.d(t,{a:()=>n})},26072:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=r(26124);class i{constructor(){this.subscriptions=[]}add(e){return(0,n.Kq)(this.subscriptions,e),()=>(0,n.Ai)(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){const n=this.subscriptions[i];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},80831:(e,t,r)=>{"use strict";r.d(t,{X:()=>i,f:()=>n});const n=e=>1e3*e,i=e=>e/1e3},38671:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(46126);const i=e=>(e=>e&&"object"==typeof e&&e.mix)(e)?e.mix:void 0;function o(...e){const t=!Array.isArray(e[0]),r=t?0:-1,o=e[0+r],a=e[1+r],s=e[2+r],c=e[3+r],l=(0,n.G)(a,s,{mixer:i(s[0]),...c});return t?l(o):l}},28827:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(14041);function i(e){const t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},19758:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(14041),i=r(39036),o=r(2778);
2function a(){const e=(0,i.a)(),[t,r]=(0,n.useState)(0),a=(0,n.useCallback)((()=>{e.current&&r(t+1)}),[t]);return[(0,n.useCallback)((()=>o.Gt.postRender(a)),[a]),t]}},16294:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});const n={current:!1}},39036:(e,t,r)=>{"use strict";r.d(t,{a:()=>o});var n=r(14041),i=r(98682);function o(){const e=(0,n.useRef)(!1);return(0,i.E)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}},98682:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(14041);const i=r(37774).B?n.useLayoutEffect:n.useEffect},42817:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(14041);function i(e){return(0,n.useEffect)((()=>()=>e()),[])}},57119:(e,t,r)=>{"use strict";function n(e,t){return t?e*(1e3/t):0}r.d(t,{f:()=>n})},63985:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});const n=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e}},75187:(e,t,r)=>{"use strict";r.d(t,{OQ:()=>c,bt:()=>a});var n=r(26072),i=r(57119),o=r(2778);const a={current:void 0};class s{constructor(e,t={}){var r;this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:r,timestamp:n}=o.uv;this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,o.Gt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>o.Gt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(r=this.current,!isNaN(parseFloat(r))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new n.v);const r=this.events[e].add(t);return"change"===e?()=>{r(),o.Gt.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,i.f)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(e,t){return new s(e,t)}},70302:(e,t,r)=>{"use strict";r.d(t,{u:()=>i});var n=r(31705);const i={test:(0,r(31102).$)("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:n.B.transform}},7293:(e,t,r)=>{"use strict";r.d(t,{V:()=>s});var n=r(17342),i=r(51087),o=r(36370),a=r(31102);const s={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+i.KN.transform((0,o.aj)(t))+", "+i.KN.transform((0,o.aj)(r))+", "+(0,o.aj)(n.X4.transform(a))+")"}},34505:(e,t,r)=>{"use strict";r.d(t,{y:()=>s});var n=r(36370),i=r(70302),o=r(7293),a=r(31705);const s={test:e=>
2a.B.test(e)||i.u.test(e)||o.V.test(e),parse:e=>a.B.test(e)?a.B.parse(e):o.V.test(e)?o.V.parse(e):i.u.parse(e),transform:e=>(0,n.Kg)(e)?e:e.hasOwnProperty("red")?a.B.transform(e):o.V.transform(e)}},31705:(e,t,r)=>{"use strict";r.d(t,{B:()=>c});var n=r(12306),i=r(17342),o=r(36370),a=r(31102);const s={...i.ai,transform:e=>Math.round((e=>(0,n.q)(0,255,e))(e))},c={test:(0,a.$)("rgb","red"),parse:(0,a.q)("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+s.transform(e)+", "+s.transform(t)+", "+s.transform(r)+", "+(0,o.aj)(i.X4.transform(n))+")"}},31102:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,q:()=>o});var n=r(36370);const i=(e,t)=>r=>Boolean((0,n.Kg)(r)&&n.Fl.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),o=(e,t,r)=>i=>{if(!(0,n.Kg)(i))return i;const[o,a,s,c]=i.match(n.SY);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(s),alpha:void 0!==c?parseFloat(c):1}}},82218:(e,t,r)=>{"use strict";r.d(t,{p:()=>c});var n=r(90612),i=r(36370);const o=new Set(["brightness","contrast","saturate","opacity"]);function a(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(i.SY)||[];if(!n)return e;const a=r.replace(n,"");let s=o.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+a+")"}const s=/([a-z-]*)\(.*?\)/g,c={...n.f,getAnimatableNone:e=>{const t=e.match(s);return t?t.map(a).join(" "):e}}},90612:(e,t,r)=>{"use strict";r.d(t,{V:()=>f,f:()=>y});var n=r(67078),i=r(19961),o=r(34505),a=r(17342),s=r(36370);const c={regex:n.z2,countKey:"Vars",token:"${v}",parse:i.l},l={regex:s.ne,countKey:"Colors",token:"${c}",parse:o.y.parse},u={regex:s.SY,countKey:"Numbers",token:"${n}",parse:a.ai.parse};function d(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function f(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&d(r,c),d(r,l),d(r,u),r}function p(e){return f(e).values}function h(e){const{values:t,numColors:r,numVars:n,tokenised:i}=f(e),a=t.length;return e=>{let t=i;for(let i=0;i<a;i++)t=i<n?t.replace(c.token,e[i]):i<n+r?t.replace(l.token,o.y.transform(e[i])):t.replace(u.token,(0,s.aj)(e[i]));return t}}const m=e=>"number"==typeof e?0:e;const y={test:function(e){var t,r;return isNaN(e)&&(0,s.Kg)(e)&&((null===(t=e.match(s.SY))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(s.ne))||void 0===r?void 0:r.length)||0)>0},parse:p,createTransformer:h,getAnimatableNone:function(e){const t=p(e);return h(e)(t.map(m))}}},17342:(e,t,r)=>{"use strict";r.d(t,{X4:()=>o,ai:()=>i,hs:()=>a});var n=r(12306);const i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...i,transform:e=>(0,n.q)(0,1,e)},a={...i,default:1}},51087:(e,t,r)=>{"use strict";r.d(t,{KN:()=>a,gQ:()=>u,px:()=>s,uj:()=>o,vh:()=>c,vw:()=>l});var n=r(36370);const i=e=>({test:t=>(0,n.Kg)(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),o=i("deg"),a=i("%"),s=i("px"),c=i("vh"),l=i("vw"),u={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)}},36370:(e,t,r)=>{"use strict";r.d(t,{Fl:()=>a,Kg:()=>s,SY:()=>i,aj:()=>n,ne:()=>o});const n=e=>Math.round(1e5*e)/1e5,i=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,a=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function s(e){return"string"==typeof e}},67649:(e,t,r)=>{"use strict";r.d(t,{j:()=>a});var n=r(83005),i=r(98682),o=r(2778);function a(e,t){const r=(0,n.d)(t()),a=()=>r.set(t());return a(),(0,i.E)((()=>{const t=()=>o.Gt.update(a,!1,!0),r=e.map((e=>e.on("change",t)));return()=>{r.forEach((e=>e())),(0,o.WG)(a)}})),r}},25690:(e,t,r)=>{"use strict";r.d(t,{H:()=>o});var n=r(75187),i=r(67649);function o(e){n.bt.current=[],e();const t=(0,i.j)(n.bt.current,e);return n.bt.current=void 0,t}},83005:(e,t,r)=>{"use strict";r.d(t,{d:()=>s});var n=r(14041),i=r(75187),o=r(79920),a=r(28827);function s(e){const t=(0,a.M)((()=>(0,i.OQ)(e))),{isStatic:r}=(0,n.useContext)(o.Q);
2if(r){const[,r]=(0,n.useState)(e);(0,n.useEffect)((()=>t.on("change",r)),[])}return t}},30645:(e,t,r)=>{"use strict";r.d(t,{G:()=>s});var n=r(38671),i=r(67649),o=r(28827),a=r(25690);function s(e,t,r,i){if("function"==typeof e)return(0,a.H)(e);const o="function"==typeof t?t:(0,n.p)(t,r,i);return Array.isArray(e)?c(e,o):c([e],(([e])=>o(e)))}function c(e,t){const r=(0,o.M)((()=>[]));return(0,i.j)(e,(()=>{r.length=0;const n=e.length;for(let t=0;t<n;t++)r[t]=e[t].get();return t(r)}))}},30995:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});var n=r(54706);function i(e){return Boolean((0,n.S)(e)&&e.add)}},54706:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});const n=e=>Boolean(e&&e.getVelocity)},8548:(e,t,r)=>{"use strict";r.d(t,{u:()=>o});var n=r(95815),i=r(54706);function o(e){const t=(0,i.S)(e)?e.get():e;return(0,n.B)(t)?t.toValue():t}},528:(e,t,r)=>{"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var l=function(){throw new a},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(e){return l}}}():l,d=r(53558)(),f=r(66869)(),p=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),h={},m="undefined"!=typeof Uint8Array&&p?p(Uint8Array):n,y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&p?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":d&&p?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d&&p?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d&&p?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&p?p(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(p)try{null.error}catch(e){var v=p(p(e));y["%Error.prototype%"]=v}var g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&p&&(r=p(i.prototype))}return y[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=r(65268),w=r(92571),S=E.call(Function.call,Array.prototype.concat),A=E.call(Function.apply,Array.prototype.splice),_=E.call(Function.call,String.prototype.replace),x=E.call(Function.call,String.prototype.slice),P=E.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,O=function(e,t){var r,n=e;
vendor: 5,273 bytes, line 2
2if(w(b,n)&&(n="%"+(r=b[n])[0]+"%"),w(y,n)){var o=y[n];if(o===h&&(o=g(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=x(e,0,1),r=x(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return _(e,I,(function(e,t,r,i){n[n.length]=r?_(i,k,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=O("%"+n+"%",t),s=o.name,l=o.value,u=!1,d=o.alias;d&&(n=d[0],A(r,S([0,1],d)));for(var f=1,p=!0;f<r.length;f+=1){var h=r[f],m=x(h,0,1),v=x(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(u=!0),w(y,s="%"+(n+="."+h)+"%"))l=y[s];else if(null!=l){if(!(h in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&f+1>=r.length){var g=c(l,h);l=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else p=w(l,h),l=l[h];p&&!u&&(y[s]=l)}}return l}},66296:e=>{"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,o=t.call(arguments,1),a=Math.max(0,n.length-o.length),s=[],c=0;c<a;c++)s.push("$"+c);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var r=n.apply(this,o.concat(t.call(arguments)));return Object(r)===r?r:this}return n.apply(e,o.concat(t.call(arguments)))})),n.prototype){var l=function(){};l.prototype=n.prototype,i.prototype=new l,l.prototype=null}return i}},65268:(e,t,r)=>{"use strict";var n=r(66296);e.exports=Function.prototype.bind||n},83662:(e,t,r)=>{"use strict";var n;r.d(t,{m:()=>i});var i=function(){return n||r.nc}},69336:(e,t,r)=>{"use strict";var n=r(528)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},66869:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},53558:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(62908);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},62908:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},51913:(e,t,r)=>{"use strict";var n=r(62908);e.exports=function(){return n()&&!!Symbol.toStringTag}},92571:e=>{"use strict";var t={}.hasOwnProperty,r=Function.prototype.call;e.exports=r.bind?r.bind(t):function(e,n){return r.call(t,e,n)}},98130:(e,t,r)=>{"use strict";r.d(t,{AO:()=>f,Fu:()=>h,Rr:()=>d,TM:()=>I,sC:()=>O,yJ:()=>p,zR:()=>w});var n=r(93734),i=r(49930),o=r(74142),a=r(80655);function s(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function l(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function u(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e||"/",r="",n="",i=t.indexOf("#");-1!==i&&(n=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(r=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}function f(e){var t=e.pathname,r=e.search,n=e.hash,i=t||"/";return r&&"?"!==r&&(i+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(i+="#"===n.charAt(0)?n:"#"+n),i}function p(e,t,r,o){var a;"string"==typeof e?(a=d(e)).state=t:(void 0===(a=(0,n.A)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invali
2d percent-encoding.'):e}return r&&(a.key=r),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=(0,i.A)(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function h(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,o.A)(e.state,t.state)}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,i){if(null!=e){var o="function"==typeof e?e(t,r):e;"string"==typeof o?"function"==typeof n?n(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var r=!0;function n(){r&&e.apply(void 0,arguments)}return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.forEach((function(e){return e.apply(void 0,r)}))}}}var y=!("undefined"==typeof window||!window.document||!window.document.createElement);function v(e,t){t(window.confirm(e))}var g="popstate",b="hashchange";function E(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),y||(0,a.A)(!1);var t,r=window.history,i=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),c=e,d=c.forceRefresh,h=void 0!==d&&d,w=c.getUserConfirmation,S=void 0===w?v:w,A=c.keyLength,_=void 0===A?6:A,x=e.basename?u(s(e.basename)):"";function P(e){var t=e||{},r=t.key,n=t.state,i=window.location,o=i.pathname+i.search+i.hash;return x&&(o=l(o,x)),p(o,n,r)}function I(){return Math.random().toString(36).substr(2,_)}var k=m();function O(e){(0,n.A)(U,e),U.length=r.length,k.notifyListeners(U.location,U.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||N(P(e.state))}function C(){N(P(E()))}var R=!1;function N(e){if(R)R=!1,O();else{k.confirmTransitionTo(e,"POP",S,(function(t){t?O({action:"POP",location:e}):function(e){var t=U.location,r=D.indexOf(t.key);-1===r&&(r=0);var n=D.indexOf(e.key);-1===n&&(n=0);var i=r-n;i&&(R=!0,F(i))}(e)}))}}var L=P(E()),D=[L.key];function M(e){return x+f(e)}function F(e){r.go(e)}var j=0;function B(e){1===(j+=e)&&1===e?(window.addEventListener(g,T),o&&window.addEventListener(b,C)):0===j&&(window.removeEventListener(g,T),o&&window.removeEventListener(b,C))}var V=!1;var U={length:r.length,action:"POP",location:L,createHref:M,push:function(e,t){var n="PUSH",o=p(e,t,I(),U.location);k.confirmTransitionTo(o,n,S,(function(e){if(e){var t=M(o),a=o.key,s=o.state;if(i)if(r.pushState({key:a,state:s},null,t),h)window.location.href=t;else{var c=D.indexOf(U.location.key),l=D.slice(0,c+1);l.push(o.key),D=l,O({action:n,location:o})}else window.location.href=t}}))},replace:function(e,t){var n="REPLACE",o=p(e,t,I(),U.location);k.confirmTransitionTo(o,n,S,(function(e){if(e){var t=M(o),a=o.key,s=o.state;if(i)if(r.replaceState({key:a,state:s},null,t),h)window.location.replace(t);else{var c=D.indexOf(U.location.key);-1!==c&&(D[c]=o.key),O({action:n,location:o})}else window.location.replace(t)}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return V||(B(1),V=!0),function(){return V&&(V=!1,B(-1)),t()}},listen:function(e){var t=k.appendListener(e);return B(1),function(){B(-1),t()}}};return U}var S="hashchange",A={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+c(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c,decodePath:s},slash:{encodePath:s,decodePath:s}};function _(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function x(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function P(e){window.location.replace(_(window.location.href)+"#"+e)}function I(e){void 0===e&&(e={}),y||(0,a.A)(!1);var t=window.history,r=(window.navigator.userAgent.indexOf("Firefox"),e),i=r.getUserConfirmation,o=void 0===i?v:i,c=r.hashType,d=void 0===c?"slash":c,h=e.basename?u(s(e.basename)):"",g=A[d],b=g.encodePath,E=g.decodePath;function w(){var e=E(x());return h&&(e=l(e,h)),p(e)}var I=m();function k(e){(0,n.A)(V,e),V.length=t.length,I.notifyListeners(V.location,V.action)}var O=!1,T=null;function C(){var e,t,r=x(),n=b(r);if(r!==n)P(n);else{var i=w(),a=V.location;if(!O&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(T===f(i))return;T=null,function(e){if(O)O=!1,k();else{var t="POP";I.confirmTransitionTo(e,t,o,(function(r){r?k({action:t,location:e}):function(e){var t=V.location,r=D.lastIndexOf(f(t));-1===r&&(r=0);var n=D.lastIndexOf(f(e));-1===n&&(n=0);var i=r-n;i&&(O=!0,M(i))}(e)}))}}(i)}}var R=x(),N=b(R);R!==N&&P(N);var L=w(),D=[f(L)];function M(e){t.go(e)}var F=0;function j(e){1===(F+=e)&&1===e?window.addEventListener(S,C):0===F&&window.removeEventListener(S,C)}var B=!1;var V={length:t.length,action:"POP",location:L,createHref:function(e){var t=document.querySelector("base"),r="";return t&&t.getAttribute("href")&&(r=_(window.location.href)),r+"#"+b(h+f(e))},push:function(e,t){var r="PUSH",n=p(e,void 0,void 0,V.location);I.confirmTransitionTo(n,r,o,(function(e){if(e){var t=f(n),i=b(h+t);if(x()!==i){T=t,function(e){window.location.hash=e}(i);var o=D.lastIndexOf(f(V.location)),a=D.slice(0,o+1);a.push(t),D=a,k({action:r,location:n})}else k()}}))},replace:function(e,t){var r="REPLACE",n=p(e,void 0,void 0,V.location);I.confirmTransitionTo(n,r,o,(function(e){if(e){var t=f(n),i=b(h+t);x()!==i&&(T=t,P(i));var o=D.indexOf(f(V.location));-1!==o&&(D[o]=t),k({action:r,location:n})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=I.setPrompt(e);return B||(j(1),B=!0),function(){return B&&(B=!1,j(-1)),t()}},listen:function(e){var t=I.appendListener(e);return j(1),function(){j(-1),t()}}};return V}function k(e,t,r){return Math.min(Math.max(e,t),r)}function O(e){void 0===e&&(e={});var t=e,r=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,c=t.keyLength,l=void 0===c?6:c,u=m();function d(e){(0,n.A)(E,e),E.length=E.entries.length,u.notifyListeners(E.location,E.action)}function h(){return Math.random().toString(36).substr(2,l)}var y=k(s,0,o.length-1),v=o.map((function(e){return p(e,void 0,"string"==typeof e?h():e.key||h())})),g=f;function b(e){var t=k(E.index+e,0,E.entries.length-1),n=E.entries[t];u.confirmTransitionTo(n,"POP",r,(function(e){e?d({action:"POP",location:n,index:t}):d()}))}var E={length:v.length,action:"POP",location:v[y],index:y,entries:v,createHref:g,push:function(e,t){var n="PUSH",i=p(e,t,h(),E.location);u.confirmTransitionTo(i,n,r,(function(e){if(e){var t=E.index+1,r=E.entries.slice(0);r.length>t?r.splice(t,r.length-t,i):r.push(i),d({action:n,location:i,index:t,entries:r})}}))},replace:function(e,t){var n="REPLACE",i=p(e,t,h(),E.location);u.confirmTransitionTo(i,n,r,(function(e){e&&(E.entries[E.index]=i,d({action:n,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=E.index+e;return t>=0&&t<E.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return E}},93734:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 4,199 bytes, line 2
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{A:()=>n})},75985:(e,t,r)=>{"use strict";var n=r(65521),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=c(t),m=c(r),y=0;y<a.length;++y){var v=a[y];if(!(o[v]||n&&n[v]||m&&m[v]||s&&s[v])){var g=f(r,v);try{l(t,v,g)}catch(e){}}}}return t}},26685:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case y:case m:case c:return e;default:return t}}case i:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=y,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===g||e.$$typeof===b||e.$$typeof===E||e.$$typeof===v)},t.typeOf=w},65521:(e,t,r)=>{"use strict";e.exports=r(26685)},39318:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,l=c>>1,u=-7,d=r?i-1:0,f=r?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=l}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,l=8*o-i-1,u=(1<<l)-1,d=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+p]=255&a,p+=h,a/=256,l-=8);e[r+p-h]|=128*m}},12276:(e,t,r)=>{try{var n=r(49208);
2if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r(35615)}},35615:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},4518:e=>{"use strict";e.exports=function(e,t,r,n,i,o,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,i,o,a,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},55387:(e,t,r)=>{"use strict";var n=r(51913)(),i=r(79818)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},89617:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var f=document.all;c.call(f)===c.call(document.all)&&(d=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(l)return s(e);if(a(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},2625:(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(51913)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!c)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&c(t)}return c(e)===n}},95943:(e,t,r)=>{"use strict";var n=r(52730);e.exports=function(e){return!!n(e)}},77356:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,n,i=e.length;for(r=0;r<i;r+=1)for(var o in n=e[r].prototype)Object.prototype.hasOwnProperty.call(n,o)&&(t.prototype[o]=n[o])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,n=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<t;n+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),n=e.length;for(t=0;t<n;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,n){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,n){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=n<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var n,i,o,a,s,c,l,u;switch(c=r*(1-t),l=r*(1-(s=6*e-(a=Math.floor(6*e)))*t),u=r*(1-(1-s)*t),a%6){case 0:n=r,i=u,o=c;break;case 1:n=l,i=r,o=c;break;case 2:n=c,i=r,o=u;break;case 3:n=c,i=l,o=r;break;case 4:n=u,i=c,o=r;break;case 5:n=r,i=c,o=l}return[n,i,o]}function RGBtoHSV(e,t,r){var n,i=Math.max(e,t,r),o=Math.min(e,t,r),a=i-o,s=0===i?0:a/i,c=i/255;switch(i){case o:n=0;break;case e:n=t-r+a*(t<r?6:0),n/=6*a;break;case t:n=r-e+2*a,n/=6*a;break;case r:n=e-t+4*a,n/=6*a}return[n,s,c]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,n){return e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),"#"+r[e]+r[t]+r[n]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,r=1,n=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},o={postMessage:function(e){i.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self;
2 self.onmessage = ",t.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return e=t,i}((function(e){if(o.dataManager||(o.dataManager=function(){function e(i,o){var a,s,c,l,u,f,p=i.length;for(s=0;s<p;s+=1)if("ks"in(a=i[s])&&!a.completed){if(a.completed=!0,a.hasMask){var h=a.masksProperties;for(l=h.length,c=0;c<l;c+=1)if(h[c].pt.k.i)n(h[c].pt.k);else for(f=h[c].pt.k.length,u=0;u<f;u+=1)h[c].pt.k[u].s&&n(h[c].pt.k[u].s[0]),h[c].pt.k[u].e&&n(h[c].pt.k[u].e[0])}0===a.ty?(a.layers=t(a.refId,o),e(a.layers,o)):4===a.ty?r(a.shapes):5===a.ty&&d(a)}}function t(e,t){var r=function(e,t){for(var r=0,n=t.length;r<n;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,i,o;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)n(e[t].ks.k);else for(o=e[t].ks.k.length,i=0;i<o;i+=1)e[t].ks.k[i].s&&n(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&n(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function n(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var o,a=function(){var e=[4,4,14];function t(e){var t,r,n,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(n=void 0,n=(r=e[t]).t.d,r.t.d={k:[{s:n,t:0}]})}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),s=(o=[4,7,99],function(e){if(e.chars&&!i(o,e.v)){var t,n=e.chars.length;for(t=0;t<n;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),c=function(){var e=[5,7,15];function t(e){var t,r,n=e.length;for(t=0;t<n;t+=1)5===e[t].ty&&(r=void 0,"number"==typeof(r=e[t].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),l=function(){var e=[4,1,9];function t(e){var r,n,i,o=e.length;for(r=0;r<o;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(i=e[r].c.k.length,n=0;n<i;n+=1)e[r].c.k[n].s&&(e[r].c.k[n].s[0]/=255,e[r].c.k[n].s[1]/=255,e[r].c.k[n].s[2]/=255,e[r].c.k[n].s[3]/=255),e[r].c.k[n].e&&(e[r].c.k[n].e[0]/=255,e[r].c.k[n].e[1]/=255,e[r].c.k[n].e[2]/=255,e[r].c.k[n].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),u=function(){var e=[4,4,18];function t(e){var r,n,i;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(i=e[r].ks.k.length,n=0;n<i;n+=1)e[r].ks.k[n].s&&(e[r].ks.k[n].s[0].c=e[r].closed),e[r].ks.k[n].e&&(e[r].ks.k[n].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,n,i,o,a,s,c=e.length;for(n=0;n<c;n+=1){if((r=e[n]).hasMask){var l=r.masksProperties;for(o=l.length,i=0;i<o;i+=1)if(l[i].pt.k.i)l[i].pt.k.c=l[i].cl;else for(s=l[i].pt.k.length,a=0;a<s;a+=1)l[i].pt.k[a].s&&(l[i].pt.k[a].s[0].c=l[i].cl),l[i].pt.k[a].e&&(l[i].pt.k[a].e[0].c=l[i].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}();function d(e){0===e.t.a.length&&e.t.p}var f={completeData:function(r){r.__complete||(l(r),a(r),s(r),c(r),u(r),e(r.layers,r.assets),function(r,n){if(r){var i=0,o=r.length;for(i=0;i<o;i+=1)1===r[i].t&&(r[i].data.layers=t(r[i].data.refId,n),e(r[i].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return f.checkColors=l,f.checkChars=s,f.checkPathProperties=c,f.checkShapes=u,f.completeLayers=e,f}()),o.assetLoader||(o.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,n,i){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=e(a),n(o);else try{o=e(a),n(o)}catch(e){i&&i(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),r+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)o.assetLoader.load(e.data.path,e.data.fullPath,(function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){o.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,(function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){o.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,r=t.id,i=n[r];n[r]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function s(e,t){var i="processId_"+(r+=1);return n[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})}
vendor: 22,576 bytes, line 2
2,loadData:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(e,t,r){var n="";if(e.e)n=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),n=t+i}else n=r,n+=e.u?e.u:"",n+=e.p;return n}function i(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function o(e){var t={assetData:e},r=n(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var n=e.length;for(r=0;r<n;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=n(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.src=r;var o={img:i,assetData:t};return o},createImageData:function(t){var r=n(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:t};return o},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],n=0;n<r.length;n+=1)r[n](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,n=this._cbs[e].length;r<n;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,n-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),n={},i=0,o=0;o<r.length;o+=1)2===(t=r[o].split(":")).length&&(n[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return n}return function(t){for(var r=[],n=0;n<t.length;n+=1){var i=t[n],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(t[n].cm)}catch(r){try{o.payload=e(t[n].cm)}catch(e){o.payload={name:t[n].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},n=e.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var o=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==o,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,n=this.animationData.layers,i=n.length,o=e.layers,a=o.length;for(r=0;r<a;r+=1)for(t=0;t<i;){if(n[t].id===o[r].id){n[t]=o[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r="number"==typeof e?e:void 0,n="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(n,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,n=e.length;for(r=0;r<n;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,n=0,i=0,o=!0,a=!1;function s(e){for(var r=0,i=e.target;r<n;)t[r].animation===i&&(t.splice(r,1),r-=1,n-=1,i.isPaused||u()),r+=1}function c(e,r){if(!e)return null;for(var i=0;i<n;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var o=new AnimationItem;return d(o,e),o.setData(e,r),o}function l(){i+=1,h()}function u(){i-=1}function d(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",l),e.addEventListener("_idle",u),t.push({elem:r,animation:e}),n+=1}function f(e){var s,c=e-r;for(s=0;s<n;s+=1)t[s].animation.advanceTime(c);r=e,i&&!a?window.requestAnimationFrame(f):o=!0}function p(e){r=e,window.requestAnimationFrame(f)}function h(){!a&&i&&o&&(window.requestAnimationFrame(p),o=!1)}return e.registerAnimation=c,e.loadAnimation=function(e){var t=new AnimationItem;return d(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setSpeed(e,r)},e.setDirection=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(n=0;n<o;n+=1)r&&i[n].setAttribute("data-bm-type",r),c(i[n],e);if(t&&0===o){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),a.appendChild(s),c(s,e)}},e.resize=function(){var e;
vendor: 1,928 bytes, line 2
2for(e=0;e<n;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,i){var o;for(o=0;o<n;o+=1)t[o].animation.goToAndStop(e,r,i)},e.destroy=function(e){var r;for(r=n-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,h()},e.setVolume=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n.push(t[e].animation);return n},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,n,i,o){var a=o||("bez_"+e+"_"+r+"_"+n+"_"+i).replace(/\./g,"p");if(t[a])return t[a];var s=new u([e,r,n,i]);return t[a]=s,s}},t={},r=11,n=1/(r-1),i="function"==typeof Float32Array;function o(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function c(e,t,r){return((o(t,r)*e+a(t,r))*e+s(t))*e}function l(e,t,r){return 3*o(t,r)*e*e+2*a(t,r)*e+s(t)}function u(e){this._p=e,this._mSampleValues=i?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(e){var t=this._p[0],r=this._p[1],n=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===r&&n===i?e:0===e?0:1===e?1:c(this._getTForX(e),r,i)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,e===t&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],i=0;i<r;++i)this._mSampleValues[i]=c(i*n,e,t)},_getTForX:function(e){for(var t=this._p[0],i=this._p[2],o=this._mSampleValues,a=0,s=1,u=r-1;s!==u&&o[s]<=e;++s)a+=n;var d=a+(e-o[--s])/(o[s+1]-o[s])*n,f=l(d,t,i);return f>=.001?function(e,t,r,n){for(var i=0;i<4;++i){var o=l(t,r,n);if(0===o)return t;t-=(c(t,r,n)-e)/o}return t}(e,d,t,i):0===f?d:function(e,t,r,n,i){var o,a,s=0;
vendor: 2,942 bytes, line 2
2do{(o=c(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,a,a+n,t,i)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var n=0,i=e,o=createSizedArray(i);return{newElement:function(){return n?o[n-=1]:t()},release:function(e){n===i&&(o=pooling.double(o),i*=2),r&&r(e),o[n]=e,n+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,r,n,i,o){var a=e*n+t*i+r*o-i*n-o*e-r*t;return a>-.001&&a<.001}var r=function(e,t,r,n){var i,o,a,s,c,l,u=getDefaultCurveSegments(),d=0,f=[],p=[],h=bezierLengthPool.newElement();for(a=r.length,i=0;i<u;i+=1){for(c=i/(u-1),l=0,o=0;o<a;o+=1)s=bmPow(1-c,3)*e[o]+3*bmPow(1-c,2)*c*r[o]+3*(1-c)*bmPow(c,2)*n[o]+bmPow(c,3)*t[o],f[o]=s,null!==p[o]&&(l+=bmPow(f[o]-p[o],2)),p[o]=f[o];l&&(d+=l=bmSqrt(l)),h.percents[i]=c,h.lengths[i]=d}return h.addedLength=d,h};function n(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var o,a=(o={},function(e,r,a,s){var c=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!o[c]){var l,u,d,f,p,h,m,y=getDefaultCurveSegments(),v=0,g=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(y=2);var b=new n(y);for(d=a.length,l=0;l<y;l+=1){for(m=createSizedArray(d),p=l/(y-1),h=0,u=0;u<d;u+=1)f=bmPow(1-p,3)*e[u]+3*bmPow(1-p,2)*p*(e[u]+a[u])+3*(1-p)*bmPow(p,2)*(r[u]+s[u])+bmPow(p,3)*r[u],m[u]=f,null!==g&&(h+=bmPow(m[u]-g[u],2));v+=h=bmSqrt(h),b.points[l]=new i(h,m),g=m}b.segmentLength=v,o[c]=b}return o[c]});function s(e,t){var r=t.percents,n=t.lengths,i=r.length,o=bmFloor((i-1)*e),a=e*t.addedLength,s=0;if(o===i-1||0===o||a===n[o])return r[o];for(var c=n[o]>a?-1:1,l=!0;l;)if(n[o]<=a&&n[o+1]>a?(s=(a-n[o])/(n[o+1]-n[o]),l=!1):o+=c,o<0||o>=i-1){if(o===i-1)return r[o];l=!1}return r[o]+(r[o+1]-r[o])*s}var c=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,n=segmentsLengthPool.newElement(),i=e.c,o=e.v,a=e.o,s=e.i,c=e._length,l=n.lengths,u=0;for(t=0;t<c-1;t+=1)l[t]=r(o[t],o[t+1],a[t],s[t+1]),u+=l[t].addedLength;return i&&c&&(l[t]=r(o[t],o[0],a[t],s[0]),u+=l[t].addedLength),n.totalLength=u,n},getNewSegment:function(t,r,n,i,o,a,l){o<0?o=0:o>1&&(o=1);var u,d=s(o,l),f=s(a=a>1?1:a,l),p=t.length,h=1-d,m=1-f,y=h*h*h,v=d*h*h*3,g=d*d*h*3,b=d*d*d,E=h*h*m,w=d*h*m+h*d*m+h*h*f,S=d*d*m+h*d*f+d*h*f,A=d*d*f,_=h*m*m,x=d*m*m+h*f*m+h*m*f,P=d*f*m+h*f*f+d*m*f,I=d*f*f,k=m*m*m,O=f*m*m+m*f*m+m*m*f,T=f*f*m+m*f*f+f*m*f,C=f*f*f;for(u=0;
vendor: 3,313 bytes, line 2
2u<p;u+=1)c[4*u]=e.round(1e3*(y*t[u]+v*n[u]+g*i[u]+b*r[u]))/1e3,c[4*u+1]=e.round(1e3*(E*t[u]+w*n[u]+S*i[u]+A*r[u]))/1e3,c[4*u+2]=e.round(1e3*(_*t[u]+x*n[u]+P*i[u]+I*r[u]))/1e3,c[4*u+3]=e.round(1e3*(k*t[u]+O*n[u]+T*i[u]+C*r[u]))/1e3;return c},getPointInSegment:function(t,r,n,i,o,a){var c=s(o,a),l=1-c;return[e.round(1e3*(l*l*l*t[0]+(c*l*l+l*c*l+l*l*c)*n[0]+(c*c*l+l*c*c+c*l*c)*i[0]+c*c*c*r[0]))/1e3,e.round(1e3*(l*l*l*t[1]+(c*l*l+l*c*l+l*l*c)*n[1]+(c*c*l+l*c*c+c*l*c)*i[1]+c*c*c*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(r,n,i,o,a,s,c,l,u){if(0===i&&0===s&&0===u)return t(r,n,o,a,c,l);var d,f=e.sqrt(e.pow(o-r,2)+e.pow(a-n,2)+e.pow(s-i,2)),p=e.sqrt(e.pow(c-r,2)+e.pow(l-n,2)+e.pow(u-i,2)),h=e.sqrt(e.pow(c-o,2)+e.pow(l-a,2)+e.pow(u-s,2));return(d=f>p?f>h?f-p-h:h-p-f:h>p?h-p-f:p-f-h)>-1e-4&&d<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,n=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var i,o,a,s,c,l,u,d,f,p=t.lastIndex,h=p,m=this.keyframes.length-1,y=!0;y;){if(i=this.keyframes[h],o=this.keyframes[h+1],h===m-1&&e>=o.t-n){i.h&&(i=o),p=0;break}if(o.t-n>e){p=h;break}h<m-1?h+=1:(p=0,y=!1)}a=this.keyframesMetadata[h]||{};var v,g=o.t-n,b=i.t-n;if(i.to){a.bezierData||(a.bezierData=bez.buildBezierData(i.s,o.s||i.e,i.to,i.ti));var E=a.bezierData;if(e>=g||e<b){var w=e>=g?E.points.length-1:0;for(c=E.points[w].point.length,s=0;s<c;s+=1)r[s]=E.points[w].point[s]}else{a.__fnct?f=a.__fnct:(f=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,a.__fnct=f),l=f((e-b)/(g-b));var S,A=E.segmentLength*l,_=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastAddedLength:0;for(d=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastPoint:0,y=!0,u=E.points.length;y;){if(_+=E.points[d].partialLength,0===A||0===l||d===E.points.length-1){for(c=E.points[d].point.length,s=0;s<c;s+=1)r[s]=E.points[d].point[s];break}if(A>=_&&A<_+E.points[d+1].partialLength){for(S=(A-_)/E.points[d+1].partialLength,c=E.points[d].point.length,s=0;s<c;s+=1)r[s]=E.points[d].point[s]+(E.points[d+1].point[s]-E.points[d].point[s])*S;break}d<u-1?d+=1:y=!1}t._lastPoint=d,t._lastAddedLength=_-E.points[d].partialLength,t._lastKeyframeIndex=h}}else{var x,P,I,k,O;if(m=i.s.length,v=o.s||i.e,this.sh&&1!==i.h)e>=g?(r[0]=v[0],r[1]=v[1],r[2]=v[2]):e<=b?(r[0]=i.s[0],r[1]=i.s[1],r[2]=i.s[2]):quaternionToEuler(r,slerp(createQuaternion(i.s),createQuaternion(v),(e-b)/(g-b)));else for(h=0;h<m;h+=1)1!==i.h&&(e>=g?l=1:e<b?l=0:(i.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[h]?f=a.__fnct[h]:(x=void 0===i.o.x[h]?i.o.x[0]:i.o.x[h],P=void 0===i.o.y[h]?i.o.y[0]:i.o.y[h],I=void 0===i.i.x[h]?i.i.x[0]:i.i.x[h],k=void 0===i.i.y[h]?i.i.y[0]:i.i.y[h],f=BezierFactory.getBezierEasing(x,P,I,k).get,a.__fnct[h]=f)):a.__fnct?f=a.__fnct:(x=i.o.x,P=i.o.y,I=i.i.x,k=i.i.y,f=BezierFactory.getBezierEasing(x,P,I,k).get,i.keyframeMetadata=f),l=f((e-b)/(g-b)))),v=o.s||i.e,O=1===i.h?i.s[h]:i.s[h]+(v[h]-i.s[h])*l,"multidimensional"===this.propType?r[h]=O:r=O}return t.lastIndex=p,r}function slerp(e,t,r){var n,i,o,a,s,c=[],l=e[0],u=e[1],d=e[2],f=e[3],p=t[0],h=t[1],m=t[2],y=t[3];return(i=l*p+u*h+d*m+f*y)<0&&(i=-i,p=-p,h=-h,m=-m,y=-y),1-i>1e-6?(n=Math.acos(i),o=Math.sin(n),a=Math.sin((1-r)*n)/o,s=Math.sin(r*n)/
vendor: 13,729 bytes, line 2
2o):(a=1-r,s=r),c[0]=a*l+s*p,c[1]=a*u+s*h,c[2]=a*d+s*m,c[3]=a*f+s*y,c}function quaternionToEuler(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i),s=Math.asin(2*r*n+2*i*o),c=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=c/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,i=Math.cos(t/2),o=Math.cos(r/2),a=Math.cos(n/2),s=Math.sin(t/2),c=Math.sin(r/2),l=Math.sin(n/2);return[s*c*a+i*o*l,s*o*a+i*c*l,i*c*a-s*o*l,i*o*a-s*c*l]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,n){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,n){var i;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=t.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),i=0;i<o;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,n){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,n){var i;this.propType="multidimensional";var o,a,s,c,l=t.k.length;for(i=0;i<l-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(o=t.k[i].s,a=t.k[i+1].s,s=t.k[i].to,c=t.k[i].ti,(2===o.length&&(o[0]!==a[0]||o[1]!==a[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+s[0],o[1]+s[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+c[0],a[1]+c[1])||3===o.length&&(o[0]!==a[0]||o[1]!==a[1]||o[2]!==a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+s[0],o[1]+s[1],o[2]+s[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+c[0],a[1]+c[1],a[2]+c[2]))&&(t.k[i].to=null,t.k[i].ti=null),o[0]===a[0]&&o[1]===a[1]&&0===s[0]&&0===s[1]&&0===c[0]&&0===c[1]&&(2===o.length||o[2]===a[2]&&0===s[2]&&0===c[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),i=0;i<u;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,r,n,i){var o;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])o=new MultiDimensionalProperty(e,t,n,i);else switch(r){case 0:o=new KeyframedValueProperty(e,t,n,i);break;case 1:o=new KeyframedMultidimensionalProperty(e,t,n,i)}else o=new ValueProperty(e,t,n,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,n,i){var o;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[n]||o[n]&&!i)&&(o[n]=pointPool.newElement()),o[n][0]=e,o[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,i,o,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(r,n,"o",a,s),this.setXYAt(i,o,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,n=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var o,a=this._length-1,s=this._length;for(o=i;o<s;o+=1)e.setTripleAt(t[a][0],t[a][1],n[a][0],n[a][1],r[a][0],r[a][1],o,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,r=factory.newElement(),n=void 0===e._length?e.v.length:e._length;for(r.setLength(n),r.c=e.c,t=0;t<n;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,r=e._length;for(t=0;t<r;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var n,i,o,a,s,c,l,u,d,f=r.lastIndex,p=this.keyframes;if(e<p[0].t-this.offsetTime)n=p[0].s[0],o=!0,f=0;else if(e>=p[p.length-1].t-this.offsetTime)n=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],o=!0;else{for(var h,m,y,v=f,g=p.length-1,b=!0;b&&(h=p[v],!((m=p[v+1]).t-this.offsetTime>e));)v<g-1?v+=1:b=!1;if(y=this.keyframesMetadata[v]||{},f=v,!(o=1===h.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<h.t-this.offsetTime)u=0;else{var E;y.__fnct?E=y.__fnct:(E=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,y.__fnct=E),u=E((e-(h.t-this.offsetTime))/(m.t-this.offsetTime-(h.t-this.offsetTime)))}i=m.s?m.s[0]:h.e[0]}n=h.s[0]}for(c=t._length,l=n.i[0].length,r.lastIndex=f,a=0;a<c;a+=1)for(s=0;s<l;s+=1)d=o?n.i[a][s]:n.i[a][s]+(i.i[a][s]-n.i[a][s])*u,t.i[a][s]=d,d=o?n.o[a][s]:n.o[a][s]+(i.o[a][s]-n.o[a][s])*u,t.o[a][s]=d,d=o?n.v[a][s]:n.v[a][s]+(i.v[a][s]-n.v[a][s])*u,t.v[a][s]=d}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<r&&t<r||i>n&&t>n)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function n(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,n=e._length;for(r=0;r<n;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function c(t,i,o){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=o,a.prototype.setVValue=i,a.prototype.addEffect=s,c.prototype.getValue=o,c.prototype.interpolateShape=t,c.prototype.setVValue=i,c.prototype.addEffect=s;var l=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=r-i,a.v[1][0]=o?t+n:t-n,a.v[1][1]=r,a.v[2][0]=t,a.v[2][1]=r+i,a.v[3][0]=o?t-n:t+n,a.v[3][1]=r,a.i[0][0]=o?t-n*e:t+n*e,a.i[0][1]=r-i,a.i[1][0]=o?t+n:t-n,a.i[1][1]=r-i*e,a.i[2][0]=o?t+n*e:t-n*e,a.i[2][1]=r+i,a.i[3][0]=o?t-n:t+n,a.i[3][1]=r+i*e,a.o[0][0]=o?t+n*e:t-n*e,a.o[0][1]=r-i,a.o[1][0]=o?t+n:t-n,a.o[1][1]=r+i*e,a.o[2][0]=o?t-n*e:t+n*e,a.o[2][1]=r+i,a.o[3][0]=o?t-n:t+n,a.o[3][1]=r-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Pro
vendor: 6,043 bytes, line 2
2pertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,n,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,a=!0,s=this.or.v,c=this.ir.v,l=this.os.v,u=this.is.v,d=2*Math.PI*s/(2*i),f=2*Math.PI*c/(2*i),p=-Math.PI/2;p+=this.r.v;var h=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=a?l:u,n=a?d:f;var m=(t=a?s:c)*Math.cos(p),y=t*Math.sin(p),v=0===m&&0===y?0:y/Math.sqrt(m*m+y*y),g=0===m&&0===y?0:-m/Math.sqrt(m*m+y*y);m+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(m,y,m-v*n*r*h,y-g*n*r*h,m+v*n*r*h,y+g*n*r*h,e,!0),a=!a,p+=o*h}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,n=this.or.v,i=this.os.v,o=2*Math.PI*n/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var c=n*Math.cos(a),l=n*Math.sin(a),u=0===c&&0===l?0:l/Math.sqrt(c*c+l*l),d=0===c&&0===l?0:-c/Math.sqrt(c*c+l*l);c+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(c,l,c-u*o*i*s,l-d*o*i*s,c+u*o*i*s,l+d*o*i*s,e,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,i=bmMin(r,n,this.r.v),o=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+i,e+r,t-n+o,0,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-o,e+r,t+n-i,1,!0),0!==i?(this.v.setTripleAt(e+r-i,t+n,e+r-i,t+n,e+r-o,t+n,2,!0),this.v.setTripleAt(e-r+i,t+n,e-r+o,t+n,e-r+i,t+n,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-i,e-r,t+n-o,4,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+o,e-r,t-n+i,5,!0),this.v.setTripleAt(e-r+i,t-n,e-r+i,t-n,e-r+o,t-n,6,!0),this.v.setTripleAt(e+r-i,t-n,e+r-o,t-n,e+r-i,t-n,7,!0)):(this.v.setTripleAt(e-r,t+n,e-r+o,t+n,e-r,t+n,2),this.v.setTripleAt(e-r,t-n,e-r,t-n+o,e-r,t-n,3))):(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+o,e+r,t-n+i,0,!0),0!==i?(this.v.setTripleAt(e+r-i,t-n,e+r-i,t-n,e+r-o,t-n,1,!0),this.v.setTripleAt(e-r+i,t-n,e-r+o,t-n,e-r+i,t-n,2,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+i,e-r,t-n+o,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-o,e-r,t+n-i,4,!0),this.v.setTripleAt(e-r+i,t+n,e-r+i,t+n,e-r+o,t+n,5,!0),this.v.setTripleAt(e+r-i,t+n,e+r-o,t+n,e+r-i,t+n,6,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-i,e+r,t+n-o,7,!0)):(this.v.setTripleAt(e-r,t-n,e-r+o,t-n,e-r,t-n,1,!0),this.v.setTripleAt(e-r,t+n,e-r,t+n-o,e-r,t+n,2,!0),this.v.setTripleAt(e+r,t+n,e+r-o,t+n,e+r,t+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],e),e}(),f={getShapeProp:function(e,t,r){var n;return 3===r||4===r?n=(3===r?t.pt:t.ks).k.length?new c(e,t,r):new a(e,t,r):5===r?n=new d(e,t):6===r?n=new l(e,t):7===r&&(n=new u(e,t)),n.k&&e.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return c}};return f}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,n=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function s(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function c(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function l(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(r(e),r(t))}function d(n,i){var o=e(i),a=t(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function f(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function p(e,t,r,n,i,o,a,s,c,l,u,d,f,p,h,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=c,this.props[9]=l,this.props[10]=u,this.props[11]=d,this.props[12]=f,this.props[13]=p,this.props[14]=h,this.props[15]=m,this}function h(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function m(e,t,r,n,i,o,a,s,c,l,u,d,f,p,h,m){var y=this.props;if(1===e&&0===t&&0===r&&0===n&&0===i&&1===o&&0===a&&0===s&&0===c&&0===l&&1===u&&0===d)return y[12]=y[12]*e+y[15]*f,y[13]=y[13]*o+y[15]*p,y[14]=y[14]*u+y[15]*h,y[15]*=m,this._identityCalculated=!1,this;var v=y[0],g=y[1],b=y[2],E=y[3],w=y[4],S=y[5],A=y[6],_=y[7],x=y[8],P=y[9],I=y[10],k=y[11],O=y[12],T=y[13],C=y[14],R=y[15];
vendor: 8,295 bytes, line 2
2return y[0]=v*e+g*i+b*c+E*f,y[1]=v*t+g*o+b*l+E*p,y[2]=v*r+g*a+b*u+E*h,y[3]=v*n+g*s+b*d+E*m,y[4]=w*e+S*i+A*c+_*f,y[5]=w*t+S*o+A*l+_*p,y[6]=w*r+S*a+A*u+_*h,y[7]=w*n+S*s+A*d+_*m,y[8]=x*e+P*i+I*c+k*f,y[9]=x*t+P*o+I*l+k*p,y[10]=x*r+P*a+I*u+k*h,y[11]=x*n+P*s+I*d+k*m,y[12]=O*e+T*i+C*c+R*f,y[13]=O*t+T*o+C*l+R*p,y[14]=O*r+T*a+C*u+R*h,y[15]=O*n+T*s+C*d+R*m,this._identityCalculated=!1,this}function y(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function g(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function E(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function w(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function S(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function A(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function _(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function x(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,n=-this.props[4]/e,i=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=n,s.props[5]=i,s.props[12]=o,s.props[13]=a,s}function P(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function I(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=P(e[t]);return n}function k(e,t,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=e[0],n[1]=e[1],n[2]=t[0],n[3]=t[1],n[4]=r[0],n[5]=r[1];else{var i=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],c=this.props[12],l=this.props[13];n[0]=e[0]*i+e[1]*a+c,n[1]=e[0]*o+e[1]*s+l,n[2]=t[0]*i+t[1]*a+c,n[3]=t[0]*o+t[1]*s+l,n[4]=r[0]*i+r[1]*a+c,n[5]=r[0]*o+r[1]*s+l}return n}function O(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function T(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function C(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=n(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function R(e){return e<1e-6&&e>0||e>-1e-6&&e<0?n(1e4*e)/1e4:e}function N(){var e=this.props;return"matrix("+R(e[0])+","+R(e[1])+","+R(e[4])+","+R(e[5])+","+R(e[12])+","+R(e[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=c,this.skew=u,this.skewFromAxis=d,this.shear=l,this.scale=f,this.setTransform=p,this.translate=h,this.transform=m,this.multiply=y,this.applyToPoint=w,this.applyToX=S,this.applyToY=A,this.applyToZ=_,this.applyToPointArray=O,this.applyToTriplePoints=k,this.applyToPointStringified=T,this.toCSS=C,this.to2dCSS=N,this.clone=b,this.cloneFromProps=E,this.equals=g,this.inversePoints=I,this.inversePoint=P,this.getInverseMatrix=x,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var n=t[r].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,n){return new t[e](r,n)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=Pro
vendor: 4,861 bytes, line 2
2pertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,n,i){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var a,s,c=[],l=o.length;for(a=0;a<l;a+=1){var u,d;(s=o[a]).e*i<n||s.s*i>n+r||(u=s.s*i<=n?0:(s.s*i-n)/r,d=s.e*i>=n+r?1:(s.e*i-n)/r,c.push([u,d]))}return c.length||c.push([0,0]),c},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,n,i;if(this._mdf||e){var o=this.o.v%360/360;if(o<0&&(o+=1),(t=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(r=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=t;t=r,r=a}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,c,l,u,d,f=this.shapes.length,p=0;if(r===t)for(i=0;i<f;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(i=0;i<f;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var h,m,y=[];for(i=0;i<f;i+=1)if((h=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(c=(n=h.shape.paths)._length,d=0,!h.shape._mdf&&h.pathsData.length)d=h.totalShapeLength;else{for(l=this.releasePathsData(h.pathsData),s=0;s<c;s+=1)u=bez.getSegmentsLength(n.shapes[s]),l.push(u),d+=u.totalLength;h.totalShapeLength=d,h.pathsData=l}p+=d,h.shape._mdf=!0}else h.shape.paths=h.localShapeCollection;var v,g=t,b=r,E=0;for(i=f-1;i>=0;i-=1)if((h=this.shapes[i]).shape._mdf){for((m=h.localShapeCollection).releaseShapes(),2===this.m&&f>1?(v=this.calculateShapeEdges(t,r,h.totalShapeLength,E,p),E+=h.totalShapeLength):v=[[g,b]],c=v.length,s=0;s<c;s+=1){g=v[s][0],b=v[s][1],y.length=0,b<=1?y.push({s:h.totalShapeLength*g,e:h.totalShapeLength*b}):g>=1?y.push({s:h.totalShapeLength*(g-1),e:h.totalShapeLength*(b-1)}):(y.push({s:h.totalShapeLength*g,e:h.totalShapeLength}),y.push({s:0,e:h.totalShapeLength*(b-1)}));var w=this.addShapes(h,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(h.shape.paths.shapes[h.shape.paths._length-1].c){var S=w.pop();this.addPaths(w,m),w=this.addShapes(h,y[1],S)}else this.addPaths(w,m),w=this.addShapes(h,y[1]);this.addPaths(w,m)}}h.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,n,i,o,a){i.setXYAt(t[0],t[1],"o",o),i.setXYAt(r[0],r[1],"i",o+1),a&&i.setXYAt(e[0],e[1],"v",o),i.setXYAt(n[0],n[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,n){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),n&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var n,i,o,a,s,c,l,u,d=e.pathsData,f=e.shape.paths.shapes,p=e.shape.paths._length,h=0,m=[],y=!0;for(r?(s=r._length,u=r._length):(r=shapePool.newElement(),s=0,u=0),m.push(r),n=0;n<p;n+=1){for(c=d[n].lengths,r.c=f[n].c,o=f[n].c?c.length:c.length+1,i=1;i<o;i+=1)if(h+(a=c[i-1]).addedLength<t.s)h+=a.addedLength,r.c=!1;else{if(h>t.e){r.c=!1;break}t.s<=h&&t.e>=h+a.addedLength?(this.addSegment(f[n].v[i-1],f[n].o[i-1],f[n].i[i],f[n].v[i],r,s,y),y=!1):(l=bez.getNewSegment(f[n].v[i-1],f[n].v[i],f[n].o[i-1],f[n].i[i],(t.s-h)/a.addedLength,(t.e-h)/a.addedLength,c[i-1]),this.addSegmentFromArray(l,r,s,y),y=!1,r.c=!1),h+=a.addedLength,s+=1}if(f[n].c&&c.length){if(a=c[i-1],h<=t.e){var v=c[i-1].addedLength;t.s<=h&&t.e>=h+v?(this.addSegment(f[n].v[i-1],f[n].o[i-1],f[n].i[0],f[n].v[0],r,s,y),y=!1):(l=bez.getNewSegment(f[n].v[i-1],f[n].v[0],f[n].o[i-1],f[n].i[0],(t.s-h)/v,(t.e-h)/v,c[i-1]),this.addSegmentFromArray(l,r,s,y),y=!1,r.c=!1)}else r.c=!1;h+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[u][0],r.v[u][1],"i",u),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),h>t.e)break;n<p-1&&(r=shapePool.newElement(),y=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,n=[0,0],i=e._length,o=0;for(o=0;o<i;o+=1)n[0]+=e.v[o][0],n[1]+=e.v[o][1];n[0]/=i,n[1]/=i;var a,s,c,l,u,d,f=shapePool.newElement();for(f.c=e.c,o=0;o<i;
vendor: 23,443 bytes, line 2
2o+=1)a=e.v[o][0]+(n[0]-e.v[o][0])*r,s=e.v[o][1]+(n[1]-e.v[o][1])*r,c=e.o[o][0]+(n[0]-e.o[o][0])*-r,l=e.o[o][1]+(n[1]-e.o[o][1])*-r,u=e.i[o][0]+(n[0]-e.i[o][0])*-r,d=e.i[o][1]+(n[1]-e.i[o][1])*-r,f.setTripleAt(a,s,c,l,u,d,o);return f},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.amount.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var n,i=t.or.k.length;for(n=0;n<i;n+=1)t.or.k[n].to=null,t.or.k[n].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],i=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),i[0]=o.getValueAtTime(o.keyframes[0].t/r,0),i[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(n=[o.pv,a.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else n=i=e;this.v.rotate(-Math.atan2(n[1]-i[1],n[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,n){return new t(e,r,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var n=t*t-4*e*r;if(n<0)return[];var i=-t/(2*e);if(0===n)return[i];var o=Math.sqrt(n)/(2*e);return[i-o,i+o]}function polynomialCoefficients(e,t,r,n){return[3*t-e-3*r+n,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,n,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var o=polynomialCoefficients(e[0],t[0],r[0],n[0]),a=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[e,t,r,n]}function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];if(r>n){var i=n;n=r,r=i}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=e.point(o[a])[t];s<r?r=s:s>n&&(n=s)}return{min:r,max:n}}function intersectData(e,t,r){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,n,i,o){if(boxIntersect(e,t))if(r>=o||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n)i.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],r+1,n,i,o),intersectsImpl(a[0],s[1],r+1,n,i,o),intersectsImpl(a[1],s[0],r+1,n,i,o),intersectsImpl(a[1],s[1],r+1,n,i,o)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,n){var i=[e[0],e[1],1],o=[t[0],t[1],1],a=[r[0],r[1],1],s=[n[0],n[1],1],c=crossProduct(crossProduct(i,o),crossProduct(a,s));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,n,i,o,a){var s=r-Math.PI/2,c=r+Math.PI/2,l=t[0]+Math.cos(r)*n*i,u=t[1]-Math.sin(r)*n*i;e.setTripleAt(l,u,l+Math.cos(s)*o,u-Math.sin(s)*o,l+Math.cos(c)*a,u-Math.sin(c)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,n=(t+1)%e.length(),i=getPerpendicularVector(e.v[r],e.v[n]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,r,n,i,o,a){var s=getProjectingAngle(t,r),c=t.v[r%t._length],l=t.v[0===r?t._length-1:r-1],u=t.v[(r+1)%t._length],d=2===o?Math.sqrt(Math.pow(c[0]-l[0],2)+Math.pow(c[1]-l[1],2)):0,f=2===o?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0;setPoint(e,t.v[r%t._length],s,a,n,f/(2*(i+1)),d/(2*(i+1)),o)}function zigZagSegment(e,t,r,n,i,o){for(var a=0;a<n;a+=1){var s=(a+1)/(n+1),c=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,l=t.normalAngle(s);setPoint(e,t.point(s),l,o,r,c/(2*(n+1)),c/(2*(n+1)),i),o=-o}return o}function linearOffset(e,t,r){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,r),polarOffset(t,n,r)]}function offsetSegment(e,t){var r,n,i,o,a,s,c;r=(c=linearOffset(e.points[0],e.points[1],t))[0],n=c[1],i=(c=linearOffset(e.points[1],e.points[2],t))[0],o=c[1],a=(c=linearOffset(e.points[2],e.points[3],t))[0],s=c[1];var l=lineIntersection(r,n,i,o);null===l&&(l=n);var u=lineIntersection(a,s,i,o);return null===u&&(u=a),new PolynomialBezier(r,l,u,s)}function joinLines(e,t,r,n,i){var o=t.points[3],a=r.points[0];if(3===n)return o;if(pointEqual(o,a))return o;if(2===n){var s=-t.tangentAngle(1),c=-r.tangentAngle(0)+Math.PI,l=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),u=l?pointDistance(l,o):pointDistance(o,a)/2,d=polarOffset(o,s,2*u*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(a,c,2*u*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],e.length()),a}var f=lineIntersection(pointEqual(o,t.points[2])?t.points[0]:t.points[2],o,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return f&&pointDistance(f,o)<i?(e.setTripleAt(f[0],f[1],f[0],f[1],f[0],f[1],e.length()),f):o}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),n=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(r[e.length-1]=e[e.length-1].split(i[0])[0],n[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,n,i,o,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return r=(i=e.split(a[0]))[0],n=i[1],[offsetSegment(r,t),offsetSegment(n,t)];r=(i=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(i=i[1].split(s))[0],n=i[1],[offsetSegment(r,t),offsetSegment(o,t),offsetSegment(n,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",i=t.length,o=0;o<i;o+=1)switch(t[o].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,n,i,o){var a=o?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-i),c=n.s.v[1]+(1-n.s.v[1])*(1-i);e.translate(n.p.v[0]*a*i,n.p.v[1]*a*i,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*a*i),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(o?1/s:s,o?1/c:c),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,n){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,n,i,o,a=!1;if(this._mdf||e){var s,c=Math.ceil(this.c.v);if(this._groups.length<c){for(;this._groups.length<c;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,n=0;n<=this._groups.length-1;n+=1){if(s=o<c,this._groups[n]._render=s,this.changeGroupRender(this._groups[n].it,s),!s){var u=this.elemsData[n].it,d=u[u.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}o+=1}this._currentCopies=c;var f=this.o.v,p=f%1,h=f>0?Math.floor(f):Math.ceil(f),m=this.pMatrix.props,y=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var g,b,E=0;if(f>0){for(;E<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),E+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),E+=p)}else if(f<0){for(;E>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),E-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),E-=p)}for(n=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==E){for((0!==n&&1===i||n!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),g=0;g<b;g+=1)r[g]=this.matrix.props[g];this.matrix.reset()}else for(this.matrix.reset(),g=0;g<b;g+=1)r[g]=this.matrix.props[g];E+=1,o-=1,n+=i}}else for(o=this._currentCopies,n=0,i=1;o;)r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,n+=i;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,n=shapePool.newElement();n.c=e.c;var i,o,a,s,c,l,u,d,f,p,h,m,y=e._length,v=0;for(r=0;r<y;r+=1)i=e.v[r],a=e.o[r],o=e.i[r],i[0]===a[0]&&i[1]===a[1]&&i[0]===o[0]&&i[1]===o[1]?0!==r&&r!==y-1||e.c?(s=0===r?e.v[y-1]:e.v[r-1],l=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,t)/c:0,u=h=i[0]+(s[0]-i[0])*l,d=m=i[1]-(i[1]-s[1])*l,f=u-(u-i[0])*roundCorner,p=d-(d-i[1])*roundCorner,n.setTripleAt(u,d,f,p,h,m,v),v+=1,s=r===y-1?e.v[0]:e.v[r+1],l=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,t)/c:0,u=f=i[0]+(s[0]-i[0])*l,d=p=i[1]+(s[1]-i[1])*l,h=u-(u-i[0])*roundCorner,m=d-(d-i[1])*roundCorner,n.setTripleAt(u,d,f,p,h,m,v),v+=1):(n.setTripleAt(i[0],i[1],a[0],a[1],o[0],o[1],v),v+=1):(n.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],v),v+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.rd.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,r,e),o=lerpPoint(r,n,e),a=lerpPoint(i,o,e);return[new PolynomialBezier(this.points[0],t,i,a,!0),new PolynomialBezier(a,o,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,n){var i=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(i-=1),0===i)return o;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,r,n,a);for(var c=0;c<i;c+=1)a=zigZagSegment(o,s,t,r,n,-a),s=c!==i-1||e.c?PolynomialBezier.shapeSegment(e,(c+1)%i):null,zigZagCorner(o,e,c+1,t,r,n,a);return o},ZigZagModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c,l,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,n){var i=shapePool.newElement();i.c=e.c;var o,a,s,c=e.length();e.c||(c-=1);var l=[];for(o=0;o<c;o+=1)s=PolynomialBezier.shapeSegment(e,o),l.push(offsetSegmentSplit(s,t));if(!e.c)for(o=c-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(e,o),l.push(offsetSegmentSplit(s,t));l=pruneIntersections(l);var u=null,d=null;for(o=0;o<l.length;o+=1){var f=l[o];for(d&&(u=joinLines(i,d,f[0],r,n)),d=f[f.length-1],a=0;a<f.length;a+=1)s=f[a],u&&pointEqual(s.points[0],u)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),u=s.points[3]}return l.length&&joinLines(i,d,l[0][0],r,n),i},OffsetPathModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.amount.v,l=this.miterLimit.v,u=this.lineJoin;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c,u,l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};
vendor: 6,261 bytes, line 2
2var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,n=127462,i=127487,o=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function a(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var n=createTag("span");n.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var i=n.offsetWidth;return n.style.fontFamily=function(e){var t,r=e.split(","),n=r.length,i=[];for(t=0;t<n;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&i.push(r[t]);return i.join(",")}(e)+", "+t,{node:n,w:i,parent:r}}function s(e,t){var r,n=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===n){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",e.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",e.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",e.fClass)):o.style.fontFamily=e.fFamily,t.appendChild(o),r=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+e.fFamily,r=a}return{measureText:function(e){return"svg"===n?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function c(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var n=e.charCodeAt(1);n>=56320&&n<=57343&&(t=1024*(r-55296)+n-56320+65536)}return t}function l(e){var t=c(e);return t>=n&&t<=i}var u=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};u.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==o.indexOf(r)},u.isZeroWidthJoiner=function(e){return 8205===e},u.isFlagEmoji=function(e){return l(e.substr(0,2))&&l(e.substr(2,2))},u.isRegionalCode=l,u.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},u.isRegionalFlag=function(e,t){var n=c(e.substr(t,2));if(n!==r)return!1;var i=0;for(t+=2;i<5;){if((n=c(e.substr(t,2)))<917601||n>917626)return!1;i+=1,t+=2}return 917631===c(e.substr(t,2))},u.isVariationSelector=function(e){return 65039===e},u.BLACK_FLAG_CODE_POINT=r;var d={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,n,i=e.length,o=this.chars.length;for(t=0;t<i;t+=1){for(r=0,n=!1;r<o;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(n=!0),r+=1;n||(this.chars.push(e[t]),o+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=s(e),e.cache={}})),void(this.fonts=e.list);var r,n=e.list,i=n.length,o=i;for(r=0;r<i;r+=1){var c,l,u=!0;if(n[r].loaded=!1,n[r].monoCase=a(n[r].fFamily,"monospace"),n[r].sansCase=a(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){if((c=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[r].fFamily+'"], style[f-origin="3"][f-family="'+n[r].fFamily+'"]')).length>0&&(u=!1),u){var d=createTag("style");d.setAttribute("f-forigin",n[r].fOrigin),d.setAttribute("f-origin",n[r].origin),d.setAttribute("f-family",n[r].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",t.appendChild(d)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<c.length;l+=1)-1!==c[l].href.indexOf(n[r].fPath)&&(u=!1);if(u){var f=createTag("link");f.setAttribute("f-forigin",n[r].fOrigin),f.setAttribute("f-origin",n[r].origin),f.type="text/css",f.rel="stylesheet",f.href=n[r].fPath,document.body.appendChild(f)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<c.length;l+=1)n[r].fPath===c[l].src&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",n[r].fPath),t.appendChild(p)}}}else n[r].loaded=!0,o-=1;n[r].helper=s(n[r],t),n[r].cache={},this.fonts.push(n[r])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,n){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===t&&this.chars[i].style===r&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,n)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var n=this.getFontByName(t),i=e;if(!n.cache[i]){var o=n.helper;if(" "===e){var a=o.measureText("|"+e+"|"),s=o.measureText("||");n.cache[i]=(a-s)/100}else n.cache[i]=o.measureText(e)/100}return n.cache[i]*r},checkLoadedFonts:function(){var e,t,r,n=this.fonts.length,i=n;for(e=0;e<n;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return u.prototype=d,u}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}
vendor: 11,740 bytes, line 2
2function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,n=e.ef||[];this.effectElements=[];var i,o=n.length;for(r=0;r<o;r+=1)i=new GroupEffect(n[r],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,i=this.data.ef.length,o=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,o[r].ty){case 0:n=new SliderEffect(o[r],t,this);break;case 1:n=new AngleEffect(o[r],t,this);break;case 2:n=new ColorEffect(o[r],t,this);break;case 3:n=new PointEffect(o[r],t,this);break;case 4:case 7:n=new CheckboxEffect(o[r],t,this);break;case 10:n=new LayerIndexEffect(o[r],t,this);break;case 11:n=new MaskIndexEffect(o[r],t,this);break;case 5:n=new EffectsManager(o[r],t,this);break;default:n=new NoValueEffect(o[r],t,this)}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),n=e("shape"),i=e("text"),o=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,n=this.layers.length;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,n=e.length,i=this.layers.length;for(t=0;t<n;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var n=this.elements,i=this.layers,o=0,a=i.length;o<a;)i[o].ind==t&&(n[o]&&!0!==n[o]?(r.push(n[o]),n[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(e,i[o].parent,r):e.setHierarchy(r)):(this.buildItem(o),this.addPendingElement(e))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var n,i=this.elements.length;for(n=0;n<i;n+=1)if(this.elements[n].data.nm===r){t=this.elements[n];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,i,o=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,c,l,u,d,f,p=this.masksProperties,h=0,m=[],y=createElementID(),v="clipPath",g="clip-path";
vendor: 12,313 bytes, line 2
2for(n=0;n<a;n+=1)if(("a"!==p[n].mode&&"n"!==p[n].mode||p[n].inv||100!==p[n].o.k||p[n].o.x)&&(v="mask",g="mask"),"s"!==p[n].mode&&"i"!==p[n].mode||0!==h?l=null:((l=createNS("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w||0),l.setAttribute("height",this.element.comp.data.h||0),m.push(l)),i=createNS("path"),"n"===p[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,p[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[n],3),elem:i,lastPath:""},o.appendChild(i);else{var b;if(h+=1,i.setAttribute("fill","s"===p[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==p[n].x.k?(v="mask",g="mask",f=PropertyFactory.getProp(this.element,p[n].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),u.appendChild(d),o.appendChild(u),i.setAttribute("stroke","s"===p[n].mode?"#000000":"#ffffff")):(d=null,f=null),this.storedData[n]={elem:i,x:f,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===p[n].mode){c=m.length;var E=createNS("g");for(s=0;s<c;s+=1)E.appendChild(m[s]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",y+"_"+h),w.appendChild(i),o.appendChild(w),E.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+h+")"),m.length=0,m.push(E)}else m.push(i);p[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,p[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[n],3),invRect:l},this.viewData[n].prop.k||this.drawPath(p[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(v),a=m.length,n=0;n<a;n+=1)this.maskElement.appendChild(m[n]);h>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(g,"url("+getLocationHref()+"#"+y+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<n;r+=1)t.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var n=this.localTransforms[e].matrix;r.multiply(n)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):n=!1;var o,a=t.length;for(r=0;r<a;r+=1)o=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-o[0],e[1]-o[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(t=0;t<n;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var n,i,o=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,n=1;n<i;n+=1)o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&i>1&&(o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==o){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+o:o),r.elem.setAttribute("d",a)),r.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){r=null;var c=e.data.ef[t].ty;registeredEffects$1[c]&&(r=new(0,registeredEffects$1[c].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,n),n=idPrefix+s,registeredEffects$1[c].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(r.setAttribute("id",i),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,n,i,o=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(n),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(n),a.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type","alpha");var c=createNS("g");s.appendChild(c),t=createElementID(),r=filtersFactory.createFilter(t);var l=createNS("feComponentTransfer");l.setAttribute("in","SourceGraphic"),r.appendChild(l);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),l.appendChild(u),this.globalData.defs.appendChild(r);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("op
2acity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),c.appendChild(d),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(n),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),c.appendChild(d),i.appendChild(this.layerElement),c.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=o}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,n=t.length;r<n;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===e)return void(r[n].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var n=0,i=e.length;n<i;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,n){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var o,a=t.length||0;for(i=0;i<a;i+=1)o=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:t[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var n=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,n=this.o.length/2;r<n;
vendor: 3,770 bytes, line 2
2){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,n,i=4*this.data.p;for(t=0;t<i;t+=1)r=t%4==0?100:255,n=Math.round(this.prop.v[t]*r),this.c[t]!==n&&(this.c[t]=n,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)r=t%2==0?100:1,n=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==n&&(this.o[t-4*this.data.p]=n,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),n=createNS(1===t.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i,o,a,s=[];for(a=4*t.g.p,o=0;o<a;o+=4)i=createNS("stop"),n.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),c=createElementID();o.setAttribute("id",c);var l=createNS(1===e.t?"linearGradient":"radialGradient");l.setAttribute("id",s),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(n=4*e.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(r),u.push(r);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=l,this.ms=o,this.ost=u,this.maskId=c,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,n){if(0===t)return"";var i,o=e.o,a=e.i,s=e.v,c=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)c+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[i][0],a[i][1])+" "+n.applyToPointStringified(s[i][0],s[i][1]);return r&&t&&(c+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(s[0][0],s[0][1]),c+="z"),c},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function n(){}function i(r,n,i){var o,a,s,c,l,u,d,f,p,h,m=n.styles.length,y=n.lvl;for(u=0;
vendor: 5,818 bytes, line 2
2u<m;u+=1){if(c=n.sh._mdf||i,n.styles[u].lvl<y){for(f=t.reset(),p=y-n.styles[u].lvl,h=n.transformers.length-1;!c&&p>0;)c=n.transformers[h].mProps._mdf||c,p-=1,h-=1;if(c)for(p=y-n.styles[u].lvl,h=n.transformers.length-1;p>0;)f.multiply(n.transformers[h].mProps.v),p-=1,h-=1}else f=e;if(a=(d=n.sh.paths)._length,c){for(s="",o=0;o<a;o+=1)(l=d.shapes[o])&&l._length&&(s+=buildShapeString(l,l._length,l.c,f));n.caches[u]=s}else s=n.caches[u];n.styles[u].d+=!0===r.hd?"":s,n.styles[u]._mdf=c||n.styles[u]._mdf}}function o(e,t,r){var n=t.style;(t.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,r){s(e,t,r),c(0,t,r)}function s(e,t,r){var n,i,o,a,s,c=t.gf,l=t.g._hasOpacity,u=t.s.v,d=t.e.v;if(t.o._mdf||r){var f="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(f,t.o.v)}if(t.s._mdf||r){var p=1===e.t?"x1":"cx",h="x1"===p?"y1":"cy";c.setAttribute(p,u[0]),c.setAttribute(h,u[1]),l&&!t.g._collapsable&&(t.of.setAttribute(p,u[0]),t.of.setAttribute(h,u[1]))}if(t.g._cmdf||r){n=t.cst;var m=t.g.c;for(o=n.length,i=0;i<o;i+=1)(a=n[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(l&&(t.g._omdf||r)){var y=t.g.o;for(o=(n=t.g._collapsable?t.cst:t.ost).length,i=0;i<o;i+=1)a=n[i],t.g._collapsable||a.setAttribute("offset",y[2*i]+"%"),a.setAttribute("stop-opacity",y[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(c.setAttribute("x2",d[0]),c.setAttribute("y2",d[1]),l&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)),c.setAttribute("r",s),l&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)));var v=Math.atan2(d[1]-u[1],d[0]-u[0]),g=t.h.v;g>=1?g=.99:g<=-1&&(g=-.99);var b=s*g,E=Math.cos(v+t.a.v)*b+u[0],w=Math.sin(v+t.a.v)*b+u[1];c.setAttribute("fx",E),c.setAttribute("fy",w),l&&!t.g._collapsable&&(t.of.setAttribute("fx",E),t.of.setAttribute("fy",w))}}function c(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",t.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return c;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,n,i,o){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,n,i=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(r=0;r<o;r+=1){for(n=this.stylesList[r],s=!1,a.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(n)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,n=new SVGStyleData(e,t),i=n.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,n):"fl"===e.ty?r=new SVGFillStyleData(this,e,n):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,n)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendM
vendor: 38,685 bytes, line 2
2ode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var n=4;"rc"===e.ty?n=5:"el"===e.ty?n=6:"sr"===e.ty&&(n=7);var i=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,n,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,n,i,o,a){var s,c,l,u,d,f,p=[].concat(o),h=e.length-1,m=[],y=[];for(s=h;s>=0;s-=1){if((f=this.searchProcessedElement(e[s]))?t[s]=r[f-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)f?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==n&&n.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(f)for(l=t[s].it.length,c=0;c<l;c+=1)t[s].prevViewData[c]=t[s].it[c];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,p,a),e[s]._render&&t[s].gr.parentNode!==n&&n.appendChild(t[s].gr)}else"tr"===e[s].ty?(f||(t[s]=this.createTransformElement(e[s],n)),u=t[s].transform,p.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(f||(t[s]=this.createShapeElement(e[s],p,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(f?(d=t[s]).closed=!1:((d=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),y.push(d)):"rp"===e[s].ty&&(f?(d=t[s]).closed=!0:(d=ShapeModifiers.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),a=!1),y.push(d));this.addProcessedElement(e[s],s+1)}for(h=m.length,s=0;s<h;s+=1)m[s].closed=!0;for(h=y.length,s=0;s<h;s+=1)y[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,n,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)o=r!==this.keysIndex?this.effectsSequence[n](o,o.t):this.effectsSequence[n](this.currentData,o.t);t!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,n=e.length;r<=n-1&&!(r===n-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,n=[],i=0,o=e.length,a=!1,s=!1,c="";i<o;)a=s,s=!1,t=e.charCodeAt(i),c=e.charAt(i),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?c=e.substr(i,14):(r=e.charCodeAt(i+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(c=e.substr(i,2),a=!0):c=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(r=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(n[n.length-1]+=c,a=!1):n.push(c),i+=c.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,n,i,o,a,s,c=this.elem.globalData.fontManager,l=this.data,u=[],d=0,f=l.m.g,p=0,h=0,m=0,y=[],v=0,g=0,b=c.getFontByName(e.f),E=0,w=getFontProperties(b);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var S,A=e.tr/1e3*e.finalSize;if(e.sz)for(var _,x,P=!0,I=e.sz[0],k=e.sz[1];P;){_=0,v=0,r=(x=this.buildFinalText(e.t)).length,A=e.tr/1e3*e.finalSize;var O=-1;for(t=0;t<r;t+=1)S=x[t].charCodeAt(0),n=!1," "===x[t]?O=t:13!==S&&3!==S||(v=0,n=!0,_+=e.finalLineHeight||1.2*e.finalSize),c.chars?(s=c.getCharData(x[t],b.fStyle,b.fFamily),E=n?0:s.w*e.finalSize/100):E=c.measureText(x[t],e.f,e.finalSize),v+E>I&&" "!==x[t]?(-1===O?r+=1:t=O,_+=e.finalLineHeight||1.2*e.finalSize,x.splice(t,O===t?1:0,"\r"),O=-1,v=0):(v+=E,v+=A);_+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&k<_?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=x,r=e.finalText.length,P=!1)}v=-A,E=0;var T,C=0;for(t=0;t<r;t+=1)if(n=!1,13===(S=(T=e.finalText[t]).charCodeAt(0))||3===S?(C=0,y.push(v),g=v>g?v:g,v=-2*A,i="",n=!0,m+=1):i=T,c.chars?(s=c.getCharData(T,b.fStyle,c.getFontByName(e.f).fFamily),E=n?0:s.w*e.finalSize/100):E=c.measureText(i,e.f,e.finalSize)," "===T?C+=E+A:(v+=E+A+C,C=0),u.push({l:E,an:E,add:p,n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==f){if(p+=E,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(p-=E);h<=t;)u[h].an=p,u[h].ind=d,u[h].extra=E,h+=1;d+=1,p=0}}else if(3==f){if(p+=E,""===i||t===r-1){for(""===i&&(p-=E);h<=t;)u[h].an=p,u[h].ind=d,u[h].extra=E,h+=1;p=0,d+=1}}else u[d].ind=d,u[d].extra=0,d+=1;if(e.l=u,g=v>g?v:g,y.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=g,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=y;var R,N,L,D,M=l.a;a=M.length;var F=[];for(o=0;o<a;o+=1){for((R=M[o]).a.sc&&(e.strokeColorAnim=!0),R.a.sw&&(e.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(e.fillColorAnim=!0),D=0,L=R.s.b,t=0;t<r;t+=1)(N=u[t]).anIndexes[o]=D,(1==L&&""!==N.val||2==L&&""!==N.val&&" "!==N.val||3==L&&(N.n||" "==N.val||t==r-1)||4==L&&(N.n||t==r-1))&&(1===R.s.rn&&F.push(D),D+=1);l.a[o].s.totalChars=D;var j,B=-1;if(1===R.s.rn)for(t=0;t<r;t+=1)B!=(N=u[t]).anIndexes[o]&&(B=N.anIndexes[o],j=F.splice(Math.floor(Math.random()*F.length),1)[0]),N.anIndexes[o]=j}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function n(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var c=BezierFactory.getBezierEasing(i,o,a,s).get,l=0,u=this.finalS,d=this.finalE,f=this.data.sh;if(2===f)l=c(l=d===u?n>=d?1:0:e(0,t(.5/(d-u)+(n-u)/(d-u),1)));else if(3===f)l=c(l=d===u?n>=d?0:1:1-e(0,t(.5/(d-u)+(n-u)/(d-u),1)));else if(4===f)d===u?l=0:(l=e(0,t(.5/(d-u)+(n-u)/(d-u),1)))<.5?l*=2:l=1-2*(l-.5),l=c(l);else if(5===f){if(d===u)l=0;else{var p=d-u,h=-p/2+(n=t(e(0,n+.5-u),d-u)),m=p/2;l=Math.sqrt(1-h*h/(m*m))}l=c(l)}else 6===f?(d===u?l=0:(n=t(e(0,n+.5-u),d-u),l=(1+Math.cos(Math.PI+2*Math.PI*n/(d-u)))/2),l=c(l)):(n>=r(u)&&(l=e(0,t(n-u<0?t(d,1)-(u-n):d-n,1))),l=c(l));if(100!==this.sm.v){var y=.01*this.sm.v;0===y&&(y=1e-8);var v=.5-.5*y;l<v?l=0:(l=(l-v)/y)>1&&(l=1)}return l*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,n=this.s.v/t+r,i=this.e.v/t+r;if(n>i){var o=n;n=i,i=o}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(e,t,r){return new n(e,t,r)}}}();function TextAnimatorDataProperty(e,t,r){var n={propType:!1},i=PropertyFactory.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,degToRads,r):n,rx:o.rx?i(e,o.rx,0,degToRads,r):n,ry:o.ry?i(e,o.ry,0,degToRads,r):n,sk:o.sk?i(e,o.sk,0,degToRads,r):n,sa:o.sa?i(e,o.sa,0,degToRads,r):n,s:o.s?i(e,o.s,1,.01,r):n,a:o.a?i(e,o.a,1,0,r):n,o:o.o?i(e,o.o,0,.01,r):n,p:o.p?i(e,o.p,1,0,r):n,sw:o.sw?i(e,o.sw,0,0,r):n,sc:o.sc?i(e,o.sc,1,0,r):n,fc:o.fc?i(e,o.fc,1,0,r):n,fh:o.fh?i(e,o.fh,0,0,r):n,fs:o.fs?i(e,o.fs,0,.01,r):n,fb:o.fb?i(e,o.fb,0,.01,r):n,t:o.t?i(e,o.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,n=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,i,o,a,s,c,l,u,d,f,p,h,m,y,v,g,b,E,w=this._moreOptions.alignment.v,S=this._animatorsData,A=this._textData,_=this.mHelper,x=this._renderType,P=this.renderedLetters.length,I=e.l;if(this._hasMaskedPath){if(E=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,O=E.v;for(this._pathData.r.v&&(O=O.reverse()),a={tLength:0,segments:[]},o=O._length-1,v=0,i=0;i<o;i+=1)k=bez.buildBezierData(O.v[i],O.v[i+1],[O.o[i][0]-O.v[i][0],O.o[i][1]-O.v[i][1]],[O.i[i+1][0]-O.v[i+1][0],O.i[i+1][1]-O.v[i+1][1]]),a.tLength+=k.segmentLength,a.segments.push(k),v+=k.segmentLength;i=o,E.v.c&&(k=bez.buildBezierData(O.v[i],O.v[0],[O.o[i][0]-O.v[i][0],O.o[i][1]-O.v[i][1]],[O.i[0][0]-O.v[0][0],O.i[0][1]-O.v[0][1]]),a.tLength+=k.segmentLength,a.segments.push(k),v+=k.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,f=0,d=1,l=0,u=!0,m=a.segments,s<0&&E.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),d=(h=m[f=m.length-1].points).length-1;s<0;)s+=h[d].partialLength,(d-=1)<0&&(d=(h=m[f-=1].points).length-1);p=(h=m[f].points)[d-1],y=(c=h[d]).partialLength}o=I.length,r=0,n=0;var T,C,R,N,L,D=1.2*e.finalSize*.714,M=!0;R=S.length;var F,j,B,V,U,z,G,W,H,$,Y,q,K=-1,Q=s,X=f,Z=d,J=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ne=0,ie=2===e.j?-.5:-1,oe=0,ae=!0;for(i=0;i<o;i+=1)if(I[i].n){for(re&&(re+=ne);oe<i;)I[oe].animatorJustifyOffset=re,oe+=1;re=0,ae=!0}else{for(C=0;C<R;C+=1)(T=S[C].a).t.propType&&(ae&&2===e.j&&(ne+=T.t.v*ie),(L=S[C].s.getMult(I[i].anIndexes[C],A.a[C].s.totalChars)).length?re+=T.t.v*L[0]*ie:re+=T.t.v*L*ie);ae=!1}for(re&&(re+=ne);oe<i;)I[oe].animatorJustifyOffset=re,oe+=1}for(i=0;i<o;i+=1){if(_.reset(),V=1,I[i].n)r=0,n+=e.yOffset,n+=M?1:0,s=Q,M=!1,this._hasMaskedPath&&(d=Z,p=(h=m[f=X].points)[d-1],y=(c=h[d]).partialLength,l=0),ee="",Y="",H="",q="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(J!==I[i].line){switch(e.j){case 1:s+=v-e.lineWidths[I[i].line];break;case 2:s+=(v-e.lineWidths[I[i].line])/2}J=I[i].line}K!==I[i].ind&&(I[K]&&(s+=I[K].extra),s+=I[i].an/2,K=I[i].ind),s+=w[0]*I[i].an*.005;var se=0;for(C=0;C<R;C+=1)(T=S[C].a).p.propType&&((L=S[C].s.getMult(I[i].anIndexes[C],A.a[C].s.totalChars)).length?se+=T.p.v[0]*L[0]:se+=T.p.v[0]*L),T.a.propType&&((L=S[C].s.getMult(I[i].anIndexes[C],A.a[C].s.totalChars)).length?se+=T.a.v[0]*L[0]:se+=T.a.v[0]*L);for(u=!0,this._pathData.a.v&&(s=.5*I[0].an+(v-this._pathData.f.v-.5*I[0].an-.5*I[I.length-1].an)*K/(o-1),s+=this._pathData.f.v);u;)l+y>=s+se||!h?(g=(s+se-l)/c.partialLength,j=p.point[0]+(c.point[0]-p.point[0])*g,B=p.point[1]+(c.point[1]-p.point[1])*g,_.translate(-w[0]*I[i].an*.005,-w[1]*D*.01),u=!1):h&&(l+=c.partialLength,(d+=1)>=h.length&&(d=0,m[f+=1]?h=m[f].points:E.v.c?(d=0,h=m[f=0].points):(l-=c.partialLength,h=null)),h&&(p=c,y=(c=h[d]).partialLength));F=I[i].an/2-I[i].add,_.translate(-F,0,0)}else F=I[i].an/2-I[i].add,_.translate(-F,0,0),_.translate(-w[0]*I[i].an*.005,-w[1]*D*.01,0);for(C=0;C<R;C+=1)(T=S[C].a).t.propType&&(L=S[C].s.getMult(I[i].anIndexes[C],A.a[C].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?L.length?s+=T.t.v*L[0]:s+=T.t.v*L:L.length?r+=T.t.v*L[0]:r+=T.t.v*L));for(e.strokeWidthAnim&&(z=e.sw||0),e.strokeColorAnim&&(U=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(G=[e.fc[0],e.fc[1],e.fc[2]]),C=0;C<R;C+=1)(T=S[C].a).a.propType&&((L=S[C].s.getMult(I[i].anIndexes[C],A.a[C].s.totalChars)).length?_.translate(-T.a.v[0]*L[0],-T.a.v[1]*L[1],T.a.v[2]*L[2]):_.translate(-T.a.v[0]*L,-T.a.v[1]*L,T.a.v[2]*L));for(C=0;C<R;C+=1)(T=S[C].a).s.propType&&((L=S[C].s.getMult(I[i].anIndexes[C],A.a[C].s.totalChars)).length?_.scale(1+(T.s.v[0]-1)*L[0],1+(T.s.v[1]-1)*L[1],1):_.scale(1+(T.s.v[0]-1)*L,1+(T.s.v[1]-1)*L,1));for(C=0;C<R;C+=1){if(T=S[C].a,L=S[C].s.getMult(I[i].anIndexes[C],A.a[C].s.totalChars),T.sk.propType&&(L.length?_.skewFromAxis(-T.sk.v*L[0],T.sa.v*L[1]):_.skewFromAxis(-T.sk.v*L,T.sa.v*L)),T.r.propType&&(L.length?_.rotateZ(-T.r.v*L[2]):_.rotateZ(-T.r.v*L)),T.ry.propType&&(L.length?_.rotateY(T.ry.v*L[1]):_.rotateY(T.ry.v*L)),T.rx.propType&&(L.length?_.rotateX(T.rx.v*L[0]):_.rotateX(T.rx.v*L)),T.o.propType&&(L.length?V+=(T.o.v*L[0]-V)*L[0]:V+=(T.o.v*L-V)*L),e.strokeWidthAnim&&T.sw.propType&&(L.length?z+=T.sw.v*L[0]:z+=T.sw.v*L),e.strokeColorAnim&&T.sc.propType)for(W=0;W<3;W+=1)L.length?U[W]+=(T.sc.v[W]-U[W])*L[0]:U[W]+=(T.sc.v[W]-U[W])*L;if(e.fillColorAnim&&e.fc){if(T.fc.propType)for(W=0;W<3;W+=1)L.length?G[W]+=(T.fc.v[W]-G[W])*L[0]:G[W]+=(T.fc.v[W]-G[W])*L;T.fh.propType&&(G=L.length?addHueToRGB(G,T.fh.v*L[0]):addHueToRGB(G,T.fh.v*L)),T.fs.propType&&(G=L.length?addSaturationToRGB(G,T.fs.v*L[0]):addSaturationToRGB(G,T.fs.v*L)),T.fb.propType&&(G=L.length?addBrightnessToRGB(G,T.fb.v*L[0]):addBrightnessToRGB(G,T.fb.v*L))}}for(C=0;C<R;C+=1)(T=S[C].a).p.propType&&(L=S[C].s.getMult(I[i].anIndexes[C],A.a[C].s.totalChars),this._hasMaskedPath?L.length?_.translate(0,T.p.v[1]*L[0],-T.p.v[2]*L[1]):_.translate(0,T.p.v[1]*L,-T.p.v[2]*L):L.length?_.translate(T.p.v[0]*L[0],T.p.v[1]*L[1],-T.p.v[2]*L[2]):_.translate(T.p.v[0]*L,T.p.v[1]*L,-T.p.v[2]*L));if(e.strokeWidthAnim&&(H=z<0?0:z),e.strokeColorAnim&&($="rgb("+Math.round(255*U[0])+","+Math.round(255*U[1])+","+Math.round(255*U[2])+")"),e.fillColorAnim&&e.fc&&(Y="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),this._hasMaskedPath){if(_.translate(0,-e.ls),_.translate(0,w[1]*D*.01+n,0),this._pathData.p.v){b=(c.point[1]-p.point[1])/(c.point[0]-p.point[0]);var ce=180*Math.atan(b)/Math.PI;c.point[0]<p.point[0]&&(ce+=180),_.rotate(-ce*Math.PI/180)}_.translate(j,B,0),s-=w[0]*I[i].an*.005,I[i+1]&&K!==I[i+1].ind&&(s+=I[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(_.translate(r,n,0),e.ps&&_.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:_.translate(I[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[I[i].line]),0,0);break;case 2:_.translate(I[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[I[i].line])/2,0,0)}_.translate(0,-e.ls),_.translate(F,0,0),_.translate(w[0]*I[i].an*.005,w[1]*D*.01,0),r+=I[i].l+.001*e.tr*e.finalSize}"html"===x?ee=_.toCSS():"svg"===x?ee=_.to2dCSS():te=[_.props[0],_.props[1],_.props[2],_.props[3],_.props[4],_.props[5],_.props[6],_.props[7],_.props[8],_.props[9],_.props[10],_.props[11],_.props[12],_.props[13],_.props[14],_.props[15]],q=V}P<=i?(N=new LetterProps(q,H,$,Y,ee,te),this.renderedLetters.push(N),P+=1,this.lettersChangedFlag=!0):(N=this.renderedLetters[i],this.lettersChangedFlag=N.update(q,H,$,Y,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,n,i=t.length,o="";for(r=0;r<i;r+=1)"sh"===t[r].ty&&(n=t[r].ks.k,o+=buildShapeString(n,n.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,n,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(n,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=t.title,this.svgElement.appendChild(n),r+=i}if(t&&t.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=t.description,this.svgElement.appendChild(o),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,n=[],i="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(n.push(i),i=""):i+=e[t],t+=1;return n.push(i),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var a,s=r.l||[],c=!!this.globalData.fontManager.chars;t=s.length;var l=this.mHelper,u=this.data.singleShape,d=0,f=0,p=!0,h=.001*r.tr*r.finalSize;if(!u||c||r.sz){var m,y=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!c||!u||0===e){if(a=y>e?this.textSpans[e].span:createNS(c?"g":"text"),y<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,c){var v=createNS("g");a.appendChild(v),this.textSpans[e].childSpan=v}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(l.reset(),u&&(s[e].n&&(d=-h,f+=r.yOffset,f+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(r,l,s[e].line,d,f),d+=s[e].l||0,d+=h),c){var g;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)g=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,r.finalSize)),g=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var E=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(E.layerElement),E.destroy()}this.textSpans[e].glyph=g,g._debug=!0,g.prepareFrame(0),g.renderFrame(),this.textSpans[e].childSpan.appendChild(g.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else u&&a.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&a&&a.setAttribute("d","")}else{var w=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}w.setAttribute("text-anchor",S),w.setAttribute("letter-spacing",h);var A=this.buildTextContents(r.finalText);for(t=A.length,f=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=A[e],a.setAttribute("x",0),a.setAttribute("y",f),a.style.display="inherit",w.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,f+=r.finalLineHeight;this.layerElement.appendChild(w)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,n,i,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(r=o[e],n=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var i=t[n].getMatte(this.layers[e].tt);r.setMatte(i)}else this.buildItem(n),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[n].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var n,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,n="_";for(t=0;t<r;t+=1)n+=e[t].transform.key+"_";var i=this.sequences[n];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var r=0,n=e.transforms.length,i=t;r<n&&!t;){if(e.transforms[r].transform.mProps._mdf){i=!0;break}r+=1}if(i)for(e.finalTransform.reset(),r=n-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,n=null;function i(){var i,o,a;t||(i=createNS("svg"),o=createNS("filter"),a=createNS("feColorMatrix"),o.setAttribute("id",e),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),o.appendChild(a),i.appendChild(o),i.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(i.style.display="none"),n=i,document.body.appendChild(n),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:i,get:function(n){return t||i(),t.width=n.width,t.height=n.height,r.filter="url
2(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,r,n=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<n;t+=1){r=null;var i=e.data.ef[t].ty;registeredEffects[i]&&(r=new(0,registeredEffects[i].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,i=!1;for(r=0;r<n;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,n,i=this.element.finalTransform.mat,o=this.element.canvasContext,a=this.masksProperties.length;for(o.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),n=this.viewData[e].v,t=i.applyToPointArray(n.v[0][0],n.v[0][1],0),o.moveTo(t[0],t[1]);var c=n._length;for(s=1;s<c;s+=1)r=i.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,o=4;"rc"===t.ty?o=5:"el"===t.ty?o=6:"sr"===t.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,o,e);var a,s=r.length;for(i=0;i<s;i+=1)r[i].closed||(a={transforms:n.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(a),r[i].elements.push(a))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}
vendor: 27,180 bytes, line 2
2this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,o=e.ks.or.k.length;for(i=0;i<o;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},n={};if("fl"===e.ty||"st"===e.ty?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,n,i){var o,a,s,c,l,u,d=e.length-1,f=[],p=[],h=[].concat(i);for(o=d;o>=0;o-=1){if((c=this.searchProcessedElement(e[o]))?t[o]=r[c-1]:e[o]._shouldRender=n,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)c?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],h),f.push(t[o].style);else if("gr"===e[o].ty){if(c)for(s=t[o].it.length,a=0;a<s;a+=1)t[o].prevViewData[a]=t[o].it[a];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,n,h)}else"tr"===e[o].ty?(c||(u=this.createTransformElement(e[o]),t[o]=u),h.push(t[o]),this.addTransformToStyleList(t[o])):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?c||(t[o]=this.createShapeElement(e[o])):"tm"===e[o].ty||"rd"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(c?(l=t[o]).closed=!1:((l=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=l,this.shapeModifiers.push(l)),p.push(l)):"rp"===e[o].ty&&(c?(l=t[o]).closed=!0:(l=ShapeModifiers.getModifier(e[o].ty),t[o]=l,l.init(this,e,o,t),this.shapeModifiers.push(l),n=!1),p.push(l));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),d=p.length,o=0;o<d;o+=1)p[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,n,i,o,a,s,c,l=this.stylesList.length,u=this.globalData.renderer,d=this.globalData.canvasContext;for(e=0;e<l;e+=1)if(("st"!==(s=(c=this.stylesList[e]).type)&&"gs"!==s||0!==c.wi)&&c.data._shouldRender&&0!==c.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),o=c.elements,"st"===s||"gs"===s?(u.ctxStrokeStyle("st"===s?c.co:c.grd),u.ctxLineWidth(c.wi),u.ctxLineCap(c.lc),u.ctxLineJoin(c.lj),u.ctxMiterLimit(c.ml||0)):u.ctxFillStyle("fl"===s?c.co:c.grd),u.ctxOpacity(c.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),u.ctxTransform(c.preTransforms.finalTransform.props),r=o.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),c.da&&(d.setLineDash(c.da),d.lineDashOffset=c.do)),i=(a=o[t].trNodes).length,n=0;n<i;n+=1)"m"===a[n].t?d.moveTo(a[n].p[0],a[n].p[1]):"c"===a[n].t?d.bezierCurveTo(a[n].pts[0],a[n].pts[1],a[n].pts[2],a[n].pts[3],a[n].pts[4],a[n].pts[5]):d.closePath();"st"!==s&&"gs"!==s||(u.ctxStroke(),c.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(c.r),u.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,n){var i,o;for(o=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(o=r[i].transform,this.renderShapeTransform(e,o)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],r[i]):"fl"===t[i].ty?this.renderFill(t[i],r[i],o):"st"===t[i].ty?this.renderStroke(t[i],r[i],o):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],o):"gr"===t[i].ty?this.renderShape(o,t[i].it,r[i].it):t[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,n,i,o=e.trNodes,a=t.paths,s=a._length;o.length=0;var c=e.transforms.finalTransform;for(i=0;i<s;i+=1){var l=a.shapes[i];if(l&&l.v){for(n=l._length,r=1;r<n;r+=1)1===r&&o.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),o.push({t:"c",pts:c.applyToTriplePoints(l.o[r-1],l.i[r],l.v[r])});1===n&&o.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&n&&(o.push({t:"c",pts:c.applyToTriplePoints(l.o[r-1],l.i[0],l.v[0])}),o.push({t:"z"}))}}e.trNodes=o}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,n=t.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var n,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var o,a=this.globalData.canvasContext,s=t.s.v,c=t.e.v;if(1===e.t)n=a.createLinearGradient(s[0],s[1],c[0],c[1]);else{var l=Math.sqrt(Math.pow(s[0]-c[0],2)+Math.pow(s[1]-c[1],2)),u=Math.atan2(c[1]-s[1],c[0]-s[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var f=l*d,p=Math.cos(u+t.a.v)*f+s[0],h=Math.sin(u+t.a.v)*f+s[1];n=a.createRadialGradient(p,h,0,s[0],s[1],l)}var m=e.g.p,y=t.g.c,v=1;for(o=0;o<m;o+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[2*o+1]),n.addColorStop(y[4*o]/100,"rgba("+y[4*o+1]+","+y[4*o+2]+","+y[4*o+3]+","+v+")");i.grd=n}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n,i,o,a,s,c,l,u,d,f,p,h,m=this.globalData.fontManager.getFontByName(e.f),y=e.l,v=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var g=this.data.singleShape,b=.001*e.tr*e.finalSize,E=0,w=0,S=!0,A=0;for(n=0;n<i;n+=1){a=(o=this.globalData.fontManager.getCharData(e.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&o.data||{},v.reset(),g&&y[n].n&&(E=-b,w+=e.yOffset,w+=S?1:0,S=!1),d=(l=a.shapes?a.shapes[0].it:[]).length,v.scale(e.finalSize/100,e.finalSize/100),g&&this.applyTextPropertiesToMatrix(e,v,y[n].line,E,w),p=createSizedArray(d-1);var _=0;for(u=0;u<d;u+=1)if("sh"===l[u].ty){for(c=l[u].ks.k.i.length,f=l[u].ks.k,h=[],s=1;s<c;s+=1)1===s&&h.push(v.applyToX(f.v[0][0],f.v[0][1],0),v.applyToY(f.v[0][0],f.v[0][1],0)),h.push(v.applyToX(f.o[s-1][0],f.o[s-1][1],0),v.applyToY(f.o[s-1][0],f.o[s-1][1],0),v.applyToX(f.i[s][0],f.i[s][1],0),v.applyToY(f.i[s][0],f.i[s][1],0),v.applyToX(f.v[s][0],f.v[s][1],0),v.applyToY(f.v[s][0],f.v[s][1],0));h.push(v.applyToX(f.o[s-1][0],f.o[s-1][1],0),v.applyToY(f.o[s-1][0],f.o[s-1][1],0),v.applyToX(f.i[0][0],f.i[0][1],0),v.applyToY(f.i[0][0],f.i[0][1],0),v.applyToX(f.v[0][0],f.v[0][1],0),v.applyToY(f.v[0][0],f.v[0][1],0)),p[_]=h,_+=1}g&&(E+=y[n].l,E+=b),this.textSpans[A]?this.textSpans[A].elem=p:this.textSpans[A]={elem:p},A+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,n,i,o;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,s=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;t=c.length;var l,u,d=null,f=null,p=null,h=this.globalData.renderer;for(e=0;e<t;e+=1)if(!c[e].n){if((a=s[e])&&(h.save(),h.ctxTransform(a.p),h.ctxOpacity(a.o)),this.fill){for(a&&a.fc?d!==a.fc&&(h.ctxFillStyle(a.fc),d=a.fc):d!==this.values.fill&&(d=this.values.fill,h.ctxFillStyle(this.values.fill)),n=(l=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(u=l[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),h.ctxFill()}if(this.stroke){for(a&&a.sw?p!==a.sw&&(p=a.sw,h.ctxLineWidth(a.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,h.ctxLineWidth(this.values.sWidth)),a&&a.sc?f!==a.sc&&(f=a.sc,h.ctxStrokeStyle(a.sc)):f!==this.values.stroke&&(f=this.values.stroke,h.ctxStrokeStyle(this.values.stroke)),n=(l=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(u=l[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),h.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,n=e.getContext("2d"),i=this.img.width,o=this.img.height,a=i/o,s=this.assetData.w/this.assetData.h,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===c||a<s&&"xMidYMid slice"!==c?t=(r=o)*s:r=(t=i)/s,n.drawImage(this.img,(i-t)/2,(o-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,n){this.canvasContext.fillRect(e,t,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,n,i,o;if(this.reset(),e?(r=e,n=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",c=a[0]||"xMidYMid",l=c.substr(0,4),u=c.substr(4);i=r/n,(o=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||o<i&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===l&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(
vendor: 23,497 bytes, line 2
2o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],n=r.transform,i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=n[t];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,n=this.stack[this.cArrPos];for(r=0;r<16;r+=1)n.transform[r]=t[r];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=n.opacity,i.fillStyle=n.fillStyle,i.strokeStyle=n.strokeStyle,i.lineWidth=n.lineWidth,i.lineCap=n.lineCap,i.lineJoin=n.lineJoin,i.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,n,i,o,a,s=e.sh.v,c=e.transformers,l=s._length;if(!(l<=1)){for(r=0;r<l-1;r+=1)n=this.getTransformedPoint(c,s.v[r]),i=this.getTransformedPoint(c,s.o[r]),o=this.getTransformedPoint(c,s.i[r+1]),a=this.getTransformedPoint(c,s.v[r+1]),this.checkBounds(n,i,o,a,t);s.c&&(n=this.getTransformedPoint(c,s.v[r]),i=this.getTransformedPoint(c,s.o[r]),o=this.getTransformedPoint(c,s.i[0]),a=this.getTransformedPoint(c,s.v[0]),this.checkBounds(n,i,o,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,n,i){this.getBoundsOfCurve(e,t,r,n);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,n){for(var i,o,a,s,c,l,u,d=[[e[0],n[0]],[e[1],n[1]]],f=0;f<2;++f)o=6*e[f]-12*t[f]+6*r[f],i=-3*e[f]+9*t[f]-9*r[f]+3*n[f],a=3*t[f]-3*e[f],o|=0,a|=0,0==(i|=0)&&0===o||(0===i?(s=-a/o)>0&&s<1&&d[f].push(this.calculateF(s,e,t,r,n,f)):(c=o*o-4*a*i)>=0&&((l=(-o+bmSqrt(c))/(2*i))>0&&l<1&&d[f].push(this.calculateF(l,e,t,r,n,f)),(u=(-o-bmSqrt(c))/(2*i))>0&&u<1&&d[f].push(this.calculateF(u,e,t,r,n,f))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,i,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*r[o]+3*(1-e)*bmPow(e,2)*n[o]+bmPow(e,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var i=e.keyframes[n].s;i>r&&(r=i)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=i,n.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n,i,o=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{t.fontFamily=o.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var c,l,u,d=e.l;i=d.length;var f,p=this.mHelper,h="",m=0;for(n=0;n<i;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?c=this.textPaths[m]:((c=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(l=this.textSpans[m]).children[0]:((l=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(c),styleDiv(l)))):this.isMasked?c=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(l=this.textSpans[m],c=this.textPaths[m]):(styleDiv(l=createTag("span")),styleDiv(c=createTag("span")),l.appendChild(c)),this.globalData.fontManager.chars){var y,v=this.globalData.fontManager.getCharData(e.finalText[n],o.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(y=v?v.data:null,p.reset(),y&&y.shapes&&y.shapes.length&&(f=y.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),h=this.createPathShape(p,f),c.setAttribute("d",h)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(l),y&&y.shapes){document.body.appendChild(u);var g=u.getBBox();u.setAttribute("width",g.width+2),u.setAttribute("height",g.height+2),u.setAttribute("viewBox",g.x-1+" "+(g.y-1)+" "+(g.width+2)+" "+(g.height+2));var b=u.style,E="translate("+(g.x-1)+"px,"+(g.y-1)+"px)";b.transform=E,b.webkitTransform=E,d[n].yOffset=g.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);l.appendChild(u)}}else if(c.textContent=d[n].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(l);var w=c.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=S,w.webkitTransform=S}this.isMasked?this.textSpans[m]=c:this.textSpans[m]=l,this.textSpans[m].style.display="block",this.textPaths[m]=c,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,n,i,o,a,s=0,c=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(n=l.length,r=0;r<n;r+=1)l[r].n?s+=1:(o=this.textSpans[r],a=this.textPaths[r],i=c[s],s+=1,i._mdf.m&&(this.isMasked?o.setAttribute("transform",i.m):(o.style.webkitTransform=i.m,o.style.transform=i.m)),o.style.opacity=i.o,i.sw&&i._mdf.sw&&a.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&a.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(a.setAttribute("fill",i.fc),a.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,n,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,n=t.container.style;var o=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,n.transformOrigin=a,n.mozTransformOrigin=a,n.webkitTransformOrigin=a,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var n=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/o,i[1]/o,i[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),c=Math.atan2(a[1],s),l=Math.atan2(a[0],-a[2]);this.mat.rotateY(l).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var d,f,p;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(d=this.comp.threeDElements[e]).type){if(u){var h=this.mat.toCSS();(p=d.container.style).transform=h,p.webkitTransform=h}this.pe._mdf&&((f=d.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var n=this.layers[t];
vendor: 9,218 bytes, line 2
2if(n.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var i,o,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a],i=(this.layers[a].ddd?this.getThreeDContainerByPos(a):o.getBaseElement())||i),a+=1;i?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,n,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=o.style).transform=s,n.webkitTransform=s}i.appendChild(o);var c={container:o,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,n="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==n&&(n="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==n&&(n="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,n=this.threeDElements.length;r<n;){if(t<=this.threeDElements[r].endPos){for(var i,o=this.threeDElements[r].startPos;o<t;)this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o].getBaseElement()),o+=1;i?this.threeDElements[r].container.insertBefore(e,i):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),n.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=o,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,n,i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=i/o;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,n=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=o/this.globalData.compSize.h,t=o/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,n=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+n+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(e=0;e<n;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,n=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t],n,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,n=0;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var r=0,n=e.layers.length;r<n;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}function seedRandom(e,t){var r,n=this,i=256,o="random",a=t.pow(i,6),s=t.pow(2,52),c=2*s,l=i-1;function u(e){var t,r=e.length,n=this,o=0,a=n.i=n.j=0,s=n.S=[];for(r||(e=[r++]);o<i;)s[o]=o++;for(o=0;o<i;o++)s[o]=s[a=l&a+e[o%r]+(t=s[o])],s[a]=t;n.g=function(e){for(var t,r=0,o=n.i,a=n.j,s=n.S;e--;)t=s[o=l&o+1],r=r*i+s[l&(s[o]=s[a=l&a+t])+(s[a]=t)];return n.i=o,n.j=a,r}}function d(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function f(e,t){var r,n=[],i=_typeof$2(e);if(t&&"object"==i)for(r in e)try{n.push(f(e[r],t-1))}catch(e){}return n.length?n:"string"==i?e:e+"\0"}function p(e,t){for(var r,n=e+"",i=0;i<n.length;)t[l&i]=l&(r^=19*t[l&i])+n.charCodeAt(i++);return h(t)}function h(e){return String.fromCharCode.apply(0,e)}t["seed"+o]=function(l,m,y){var v=[],g=p(f((m=!0===m?{entropy:!0}:m||{}).entropy?[l,h(e)]:null===l?function(){try{if(r)return h(r.randomBytes(i));var t=new Uint8Array(i);return(n.crypto||n.msCrypto).getRandomValues(t),h(t)}catch(t){var o=n.navigator,a=o&&o.plugins;return[+new Date,n,a,n.screen,h(e)]}}():l,3),v),b=new u(v),E=function(){for(var e=b.g(6),t=a,r=0;e<s;)e=(e+r)*i,t*=i,r=b.g(1);for(;e>=c;)e/=2,t/=2,r>>>=1;return(e+r)/t};return E.int32=function(){return 0|b.g(4)},E.quick=function(){return b.g(4)/4294967296},E.double=E,p(h(b.S),e),(m.pass||y||function(e,r,n,i){return i&&(i.S&&d(i,b),e.state=function(){return d(b,{})}),n?(t[o]=e,r):e})(E,g,"global"in m?m.global:this==t,m.state)},p(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};
vendor: 4,565 bytes, line 2
2function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var r,n=e.length,i=[];for(r=0;r<n;r+=1)i[r]=-e[r];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t)||"string"===r||"string"===n)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]+t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t))return"string"===r&&(e=parseInt(e,10)),"string"===n&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]-t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}function mul(e,t){var r,n,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]*t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e*t[n];return r}return 0}function div(e,t){var r,n,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]/t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e/t[n];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var n=r;r=t,t=n}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var n=Math.min(e.length,t.length),i=0;for(r=0;r<n;r+=1)i+=Math.pow(t[r]-e[r],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,n=e[0],i=e[1],o=e[2],a=Math.max(n,i,o),s=Math.min(n,i,o),c=(a+s)/2;if(a===s)t=0,r=0;else{var l=a-s;switch(r=c>.5?l/(2-a-s):l/(a+s),a){case n:t=(i-o)/l+(i<o?6:0);break;case i:t=(o-n)/l+2;break;case o:t=(n-i)/l+4}t/=6}return[t,r,c,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,n,i=e[0],o=e[1],a=e[2];if(0===o)t=a,n=a,r=a;else{var s=a<.5?a*(1+o):a+o-a*o,c=2*a-s;t=hue2rgb(c,s,i+1/3),r=hue2rgb(c,s,i),n=hue2rgb(c,s,i-1/3)}return[t,r,n,e[3]]}function linear(e,t,r,n,i){if(void 0!==n&&void 0!==i||(n=t,i=r,t=0,r=1),r<t){var o=r;r=t,t=o}if(e<=t)return n;if(e>=r)return i;var a,s=r===t?0:(e-t)/(r-t);if(!n.length)return n+(i-n)*s;var c=n.length,l=createTypedArray("float32",c);for(a=0;a<c;a+=1)l[a]=n[a]+(i[a]-n[a])*s;return l}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,n=t.length;e||(e=createTypedArray("float32",n));var i=createTypedArray("float32",n),o=BMMath.random();for(r=0;r<n;r+=1)i[r]=e[r]+o*(t[r]-e[r]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,n){var i,o=e.length,a=shapePool.newElement();a.setPathData(!!n,o);var s,c,l=[0,0];for(i=0;i<o;
vendor: 12,713 bytes, line 2
2i+=1)s=t&&t[i]?t[i]:l,c=r&&r[i]?r[i]:l,a.setTripleAt(e[i][0],e[i][1],c[0]+e[i][0],c[1]+e[i][1],s[0]+e[i][0],s[1]+e[i][1],i,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,n,i=this.pv.length?this.pv.length:1,o=createTypedArray("float32",i),a=Math.floor(5*time);for(r=0,n=0;r<a;){for(n=0;n<i;n+=1)o[n]+=-t+2*t*BMMath.random();r+=1}var s=5*time,c=s-Math.floor(s),l=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)l[n]=this.pv[n]+o[n]+(-t+2*t*BMMath.random())*c;return l}return this.pv+o[0]+(-t+2*t*BMMath.random())*c}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(e,t,r,n,i){return applyEase(easeOutBez,e,t,r,n,i)}function easeIn(e,t,r,n,i){return applyEase(easeInBez,e,t,r,n,i)}function ease(e,t,r,n,i){return applyEase(easeInOutBez,e,t,r,n,i)}function applyEase(e,t,r,n,i,o){void 0===i?(i=r,o=n):t=(t-r)/(n-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(i)){var s,c=i.length,l=createTypedArray("float32",c);for(s=0;s<c;s+=1)l[s]=(o[s]-i[s])*a+i[s];return l}return(o-i)*a+i}function nearestKey(e){var t,r,n,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){r=t+1,n=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,n=data.k[t+1].t):(r=t+1,n=data.k[t].t);break}}-1===r&&(r=t+1,n=data.k[t].t)}else r=0,n=0;var o={};return o.index=r,o.time=n/elem.comp.globalData.frameRate,o}function key(e){var t,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=i.length,r=0;r<n;r+=1)t[r]=i[r],t.value[r]=i[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,n=createSizedArray(t.viewData.length),i=t.viewData.length;for(r=0;r<i;r+=1)n[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<i;){if(t.masksProperties[r].nm===e)return n[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(n){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[n-1]?t.keyframes[n-1].s:"e"in t.keyframes[n-2]?t.keyframes[n-2].e:t.keyframes[n-2].s;var o="unidimensional"===r?new Number(i):Object.assign({},i);return o.time=t.keyframes[n-1].t/t.elem.comp.globalData.frameRate,o.value="unidimensional"===r?i[0]:i,o},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function n(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var n=1/t.mult,i=t.pv*n,o=new Number(i);return o.value=i,r(o,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*n,o.value!==i&&((o=new Number(i)).value=i,r(o,t,"unidimensional")),o}}(i):function(e){e&&"pv"in e||(e=t);var n=1/e.mult,i=e.data&&e.data.l||e.pv.length,o=createTypedArray("float32",i),a=createTypedArray("float32",i);return o.value=a,r(o,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)a[t]=e.v[t]*n,o[t]=a[t];return o}}(i):n}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,n,i,o;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?o=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?o():[r(),n(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function n(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function c(){return[1,1,1,1]}return function(l){var u;function d(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=e,d.invertPoint=a,d.applyPoint=o,d.toWorld=r,d.toWorldVec=t,d.fromWorld=i,d.fromWorldVec=n,d.toComp=r,d.fromComp=s,d.sampleImage=c,d.sourceRectAtTime=l.sourceRectAtTime.bind(l),d._elem=l;
vendor: 5,693 bytes, line 2
2var f=getDescriptor(u=TransformExpressionInterface(l.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:f,anchor_point:f,transform:{get:function(){return u}},active:{get:function(){return l.isInRange}}}),d.startTime=l.data.st,d.index=l.data.ind,d.source=l.data.refId,d.height=0===l.data.ty?l.data.h:100,d.width=0===l.data.ty?l.data.w:100,d.inPoint=l.data.ip/l.comp.globalData.frameRate,d.outPoint=l.data.op/l.comp.globalData.frameRate,d._name=l.data.nm,d.registerMaskInterface=function(e){d.mask=new MaskManagerInterface(e,l)},d.registerEffectsInterface=function(e){d.effect=e},d}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){function e(r,n,i,o){function a(e){for(var t=r.ef,n=0,i=t.length;n<i;){if(e===t[n].nm||e===t[n].mn||e===t[n].ix)return 5===t[n].ty?l[n]:l[n]();n+=1}throw new Error}var s,c=propertyGroupFactory(a,i),l=[],u=r.ef.length;for(s=0;s<u;s+=1)5===r.ef[s].ty?l.push(e(r.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,o)):l.push(t(n.effectElements[s],r.ef[s].ty,o,c));return"ADBE Color Control"===r.mn&&Object.defineProperty(a,"color",{get:function(){return l[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:c}}),a.enabled=0!==r.en,a.active=a.enabled,a}function t(e,t,r,n){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===t?r.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,r){if(t.effectsManager){var n,i=[],o=t.data.ef,a=t.effectsManager.effectElements.length;for(n=0;n<a;n+=1)i.push(e(o[n],t.effectsManager.effectElements[n],r,t));var s=t.data.ef||[],c=function(e){for(n=0,a=s.length;n<a;){if(e===s[n].nm||e===s[n].mn||e===s[n].ix)return i[n];n+=1}return null};return Object.defineProperty(c,"numProperties",{get:function(){return s.length}}),c}return null}}}(),ShapePathInterface=function(e,t,r){var n=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var o=propertyGroupFactory(i,r);return n.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(i,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function e(e,a,f){var p,h=[],m=e?e.length:0;for(p=0;p<m;p+=1)"gr"===e[p].ty?h.push(t(e[p],a[p],f)):"fl"===e[p].ty?h.push(r(e[p],a[p],f)):"st"===e[p].ty?h.push(i(e[p],a[p],f)):"tm"===e[p].ty?h.push(o(e[p],a[p],f)):"tr"===e[p].ty||("el"===e[p].ty?h.push(s(e[p],a[p],f)):"sr"===e[p].ty?h.push(c(e[p],a[p],f)):"sh"===e[p].ty?h.push(ShapePathInterface(e[p],a[p],f)):"rc"===e[p].ty?h.push(l(e[p],a[p],f)):"rd"===e[p].ty?h.push(u(e[p],a[p],f)):"rp"===e[p].ty?h.push(d(e[p],a[p],f)):"gf"===e[p].ty?h.push(n(e[p],a[p],f)):h.push((e[p],a[p],function(){return null})));return h}function t(t,r,n){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,n);var o=function(t,r,n){var i,o=function(e){for(var t=0,r=i.length;t<r;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};o.propertyGroup=propertyGroupFactory(o,n),i=e(t.it,r.it,o.propertyGroup),o.numProperties=i.length;var s=a(t.it[t.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.transform=s,o.propertyIndex=t.cix,o._name=t.nm,o}(t,r,i.propertyGroup),s=a(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=o,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function r(e,t,r){function n(e){return"Color"===e||"color"===e?n.color:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function n(e,t,r){function n(e){return"Start Point"===e||"start point"===e?n.startPoint:"End Point"===e||"end point"===e?n.endPoint:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function i(e,t,r){var n,i=propertyGroupFactory(l,r),o=propertyGroupFactory(c,i);function a(r){Object.defineProperty(c,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,c={};for(n=0;n<s;n+=1)a(n),t.d.dataProps[n].p.setGroupProperty(o);function l(e){return"Color"===e||"color"===e?l.color:"Opacity"===e||"opacity"===e?l.opacity:"Stroke Width"===e||"stroke width"===e?l.strokeWidth:null}
vendor: 18,389 bytes, line 2
2return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return c}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),l}function o(e,t,r){function n(t){return t===e.e.ix||"End"===t||"end"===t?n.end:t===e.s.ix?n.start:t===e.o.ix?n.offset:null}var i=propertyGroupFactory(n,r);return n.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),n.propertyIndex=e.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),n.mn=e.mn,n}function a(e,t,r){function n(t){return e.a.ix===t||"Anchor Point"===t?n.anchorPoint:e.o.ix===t||"Opacity"===t?n.opacity:e.p.ix===t||"Position"===t?n.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?n.rotation:e.s.ix===t||"Scale"===t?n.scale:e.sk&&e.sk.ix===t||"Skew"===t?n.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?n.skewAxis:null}var i=propertyGroupFactory(n,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),n.ty="tr",n.mn=e.mn,n.propertyGroup=r,n}function s(e,t,r){function n(t){return e.p.ix===t?n.position:e.s.ix===t?n.size:null}var i=propertyGroupFactory(n,r);n.propertyIndex=e.ix;var o="tm"===t.sh.ty?t.sh.prop:t.sh;return o.s.setGroupProperty(PropertyInterface("Size",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:e.nm}}),n.mn=e.mn,n}function c(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.rotation:e.pt.ix===t?n.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?n.outerRadius:e.os.ix===t?n.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?n.innerRoundness:null:n.innerRadius}var i=propertyGroupFactory(n,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",i)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),o.pt.setGroupProperty(PropertyInterface("Points",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:e.nm}}),n.mn=e.mn,n}function l(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?n.size:null}var i=propertyGroupFactory(n,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,o.p.setGroupProperty(PropertyInterface("Position",i)),o.s.setGroupProperty(PropertyInterface("Size",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:e.nm}}),n.mn=e.mn,n}function u(e,t,r){function n(t){return e.r.ix===t||"Round Corners 1"===t?n.radius:null}var i=propertyGroupFactory(n,r),o=t;return n.propertyIndex=e.ix,o.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:e.nm}}),n.mn=e.mn,n}function d(e,t,r){function n(t){return e.c.ix===t||"Copies"===t?n.copies:e.o.ix===t||"Offset"===t?n.offset:null}var i=propertyGroupFactory(n,r),o=t;return n.propertyIndex=e.ix,o.c.setGroupProperty(PropertyInterface("Copies",i)),o.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:e.nm}}),n.mn=e.mn,n}return function(t,r,n){var i;function o(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?n:i[e-1];for(var t=0,r=i.length;t<r;){if(i[t]._name===e)return i[t];t+=1}return null}return o.propertyGroup=propertyGroupFactory(o,(function(){return n})),i=e(t,r,o.propertyGroup),o.numProperties=i.length,o._name="Contents",o}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function n(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?n:r;var i=e.indexOf(t);if(-1!==i){var o=parseInt(e.substr(i+t.length),10);return"object"===_typeof(r=r[o])?n:r}return""}return function(){return t="",r=e.getFootageData(),n}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),n=0;if(t.length){var i;for(i=0;i<t.length;i+=1)n+=Math.pow(r[i]-t[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,n=-.001,i=this.getValueAtTime(e),o=this.getValueAtTime(e+n);if(i.length)for(t=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)t[r]=(o[r]-i[r])/n;else t=(o-i)/n;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var n,i,o,a,s,c=this.comp.renderedFrame,l=this.keyframes,u=l[l.length-1].t;if(c<=u)return this.pv;if(r?i=u-(n=t?Math.abs(u-this.elem.comp.globalData.frameRate*t):Math.max(0,u-this.elem.data.ip)):((!t||t>l.length-1)&&(t=l.length-1),n=u-(i=l[l.length-1-t].t)),"pingpong"===e){if(Math.floor((c-i)/n)%2!=0)return this.getValueAtTime((n-(c-i)%n+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),f=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((c-i)%n+i)/this.comp.globalData.frameRate,0),h=Math.floor((c-i)/n);if(this.pv.length){for(a=(s=new Array(d.length)).length,o=0;o<a;o+=1)s[o]=(f[o]-d[o])*h+p[o];return s}return(f-d)*h+p}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),y=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-y[o])*((c-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(c-u)/.001*(m-y)}}return this.getValueAtTime(((c-i)%n+i)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var n,i,o,a,s,c=this.comp.renderedFrame,l=this.keyframes,u=l[0].t;if(c>=u)return this.pv;if(r?i=u+(n=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>l.length-1)&&(t=l.length-1),n=(i=l[t].t)-u),"pingpong"===e){if(Math.floor((u-c)/n)%2==0)return this.getValueAtTime(((u-c)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),f=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime((n-(u-c)%n+u)/this.comp.globalData.frameRate,0),h=Math.floor((u-c)/n)+1;if(this.pv.length){for(a=(s=new Array(d.length)).length,o=0;o<a;o+=1)s[o]=p[o]-(f[o]-d[o])*h;return s}return p-(f-d)*h}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),y=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-y[o])*(u-c)/.001;return s}return m+(m-y)*(u-c)/.001}}return this.getValueAtTime((n-((u-c)%n+u))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,o=i-e,a=t>1?(i+e-o)/(t-1):1,s=0,c=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(n=this.getValueAtTime(o+s*a),this.pv.length)for(c=0;c<this.pv.length;c+=1)r[c]+=n[c];else r+=n;s+=1}if(this.pv.length)for(c=0;c<this.pv.length;c+=1)r[c]/=t;else r/=t;return r}function n(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(e);t.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),o=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),c=this.ry.getValueAtTime(e),l=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(c*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(e),f=this.py.getValueAtTime(e);if(this.data.p.z){var p=this.pz.getValueAtTime(e);t.translate(d*this.px.mult,f*this.py.mult,-p*this.pz.mult)}else t.translate(d*this.px.mult,f*this.py.mult,0)}else{var h=this.p.getValueAtTime(e);t.translate(h[0]*this.p.mult,h[1]*this.p.mult,-h[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var a=o(e,t,r);return a.dynamicProperties.length?a.getValueAtTime=n.bind(a):a.getValueAtTime=i.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(n,i,o,s,c){var l=a(n,i,o,s,c);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=e,l.loopIn=t,l.smooth=r,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===i.a?i.k.length:0,l.propertyIndex=i.ix;var u=0;return 0!==o&&(u=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(n,i,l),l.k&&c.addDynamicProperty(l),l};var s=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.prototype={vertices:function(e,t){this.k&&this.getValue();var r,n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0));var i=n._length,o=n[e],a=n.v,s=createSizedArray(i);for(r=0;r<i;r+=1)s[r]="i"===e||"o"===e?[o[r][0]-a[r][0],o[r][1]-a[r][1]]:[o[r][0],o[r][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n,i=this._segmentsLength,o=i.lengths,a=i.totalLength*e,s=0,c=o.length,l=0;s<c;){if(l+o[s].addedLength>a){var u=s,d=r.c&&s===c-1?0:s+1,f=(a-l)/o[s].addedLength;n=bez.getPointInSegment(r.v[u],r.v[d],r.o[u],r.i[d],f,o[s]);break}l+=o[s].addedLength,s+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var n=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),o=i[0]-n[0],a=i[1]-n[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===r?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([l],s),extendPrototype([l],c),c.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},c.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,n,i){var o=u(e,t,r,n,i);return o.propertyIndex=t.ix,o.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,o):4===r&&expressionHelpers.searchExpressions(e,t.ks,o),o.k&&e.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var n={};return this.copyData(n,e),n.t=r.toString(),n.__complete=!1,n}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,n,i=createNS("feMerge");for(i.setAttribute("result",e),n=0;n<t.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",t[n]),i.appendChild(r),i.appendChild(r);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,n,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",n+"_tint_1"),e.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",n+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var a=this.createMergeNode(n,[i,n+"_tint_1",n+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",n),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.a
vendor: 5,131 bytes, line 2
2ppendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),this.matrixFilter=o;var a=createNS("feFuncR");a.setAttribute("type","table"),o.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),o.appendChild(s),this.feFuncG=s;var c=createNS("feFuncB");c.setAttribute("type","table"),o.appendChild(c),this.feFuncB=c,e.appendChild(o)}function SVGProLevelsFilter(e,t,r,n){this.filterManager=t;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(e,t,r,n,i){var o=t.container.globalData.renderConfig.filterSize,a=t.data.fs||o;e.setAttribute("x",a.x||o.x),e.setAttribute("y",a.y||o.y),e.setAttribute("width",a.width||o.width),e.setAttribute("height",a.height||o.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",n+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",n+"_drop_shadow_1"),c.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var l=createNS("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=l,e.appendChild(l);var u=createNS("feComposite");u.setAttribute("in",n+"_drop_shadow_3"),u.setAttribute("in2",n+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(u);var d=this.createMergeNode(n,[n+"_drop_shadow_4",i]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,n,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<n;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(t),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=o,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,n,i=this.paths.length;for(t=0;t<i;
vendor: 4,562 bytes, line 2
2t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],n=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),c=n.getTotalLength();o="0 0 0 "+c*a+" ";var l,u=c*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(u/d);for(l=0;l<f;l+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*c+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+t[0],o=n[1]+" "+r[1]+" "+t[1],a=n[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,n,i){for(var o,a,s=0,c=Math.min(e,t),l=Math.max(e,t),u=Array.call(null,{length:256}),d=0,f=i-n,p=t-e;s<=256;)a=(o=s/256)<=c?p<0?i:n:o>=l?p<0?n:i:n+f*Math.pow((o-e)/p,1/r),u[d]=a,d+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,
vendor: 4,728 bytes, line 2
2n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),o=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",n),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var n,i=r.children,o=0,a=i.length;o<a&&i[o]!==e.layerElement;)o+=1;o<=a-2&&(n=i[o+1]);var s=createNS("use");s.setAttribute("href","#"+t),n?r.insertBefore(s,n):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(n);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(t,r),o.appendChild(t.layerElement),i.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+r),n.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,n=t.length;r<n;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:t,i=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+i);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,n=t[1].p.v,i=1===t[2].p.v,o=t[3].p.v,a=i?o:t[4].p.v,s=t[5].p.v,c=t[6].p.v,l=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*a,.01*o,1),this.matrix.rotate(-l*degToRads),this.matrix.skewFromAxis(-s*degToRads,(c+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},18876:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14041),i=r(42597),o=r(29211);const a=(0,n.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:s="",children:c,iconNode:l,...u},d)=>(0,n.createElement)("svg",{ref:d,...i.A,width:t,height:t,stroke:e,strokeWidth:a?24*Number(r)/Number(t):r,className:(0,o.zP)("lucide",s),...!c&&!(0,o.m$)(u)&&{"aria-hidden":"true"},...u},[...l.map((([e,t])=>
2(0,n.createElement)(e,t))),...Array.isArray(c)?c:[c]])))},57468:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14041),i=r(29211),o=r(18876);const a=(e,t)=>{const r=(0,n.forwardRef)((({className:r,...a},s)=>(0,n.createElement)(o.A,{ref:s,iconNode:t,className:(0,i.zP)(`lucide-${(0,i.fX)((0,i.MX)(e))}`,`lucide-${e}`,r),...a})));return r.displayName=(0,i.MX)(e),r}},42597:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}},9511:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("align-left",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]])},92886:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},73214:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},90983:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("badge-percent",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]])},74953:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("bell-dot",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M13.916 2.314A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.74 7.327A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673 9 9 0 0 1-.585-.665",key:"1tip0g"}],["circle",{cx:"18",cy:"8",r:"3",key:"1g0gzu"}]])},41375:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]])},4262:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("bell-ring",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]])},77091:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])},32869:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("book-copy",[["path",{d:"M2 16V4a2 2 0 0 1 2-2h11",key:"spzkk5"}],["path",{d:"M22 18H11a2 2 0 1 0 0 4h10.5a.5.5 0 0 0 .5-.5v-15a.5.5 0 0 0-.5-.5H11a2 2 0 0 0-2 2v12",key:"1wz07i"}],["path",{d:"M5 14H4a2 2 0 1 0 0 4h1",key:"16gqf9"}]])},9980:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("book-marked",[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]])},6890:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]])},77085:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("calendar-check",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]])},28563:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]])},11992:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},18856:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("chart-column-big",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]])},49035:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]])},4595:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",ke
2y:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]])},52160:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},10484:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},7077:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},52484:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},3233:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},41259:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},21161:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},75079:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},27079:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});
2const n=(0,r(57468).A)("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]])},63844:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]])},58591:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},32817:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},40101:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("circle-user-round",[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},63752:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]])},48991:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},83966:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},51839:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]])},25275:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("cloud-upload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]])},98395:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},58359:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]])},65002:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},16121:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("columns-3-cog",[["path",{d:"M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5",key:"1g2yzs"}],["path",{d:"m14.3 19.6 1-.4",key:"11sv9r"}],["path",{d:"M15 3v7.5",key:"7lm50a"}],["path",{d:"m15.2 16.9-.9-.3",key:"1t7mvx"}],["path",{d:"m16.6 21.7.3-.9",key:"1j67ps"}],["path",{d:"m16.8 15.3-.4-1",key:"1ei7r6"}],["path",{d:"m19.1 15.2.3-.9",key:"18r7jp"}],["path",{d:"m19.6 21.7-.4-1",key:"z2vh2"}],["path",{d:"m20.7 16.8 1-.4",key:"19m87a"}],["path",{d:"m21.7 19.4-.9-.3",key:"1qgwi9"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]])},72519:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9594:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},6339:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},80091:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("divide",[["circle",{cx:"12",cy:"6",r:"1",key:"1bh7o1"}],["line",{x1:"5",x2:"19",y1:"12",y2:"12",key:"13b5wn"}],["circle",{cx:"12",cy:"18",r:"1",key:"lqb9t5"}]])},43636:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},45803:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]])},9326:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},72750:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("drafting-compass",[["path",{d:"m12.99 6.74 1.93 3.44",key:"iwagvd"}],["path",{d:"M19.136 12a10 10 0 0 1-14.271 0",key:"ppmlo4"}],["path",{d:"m21 21-2.16-3.84",key:"vylbct"}],["path",{d:"m3 21 8.02-14.26",key:"1ssaw4"}],["circle",{cx:"12",cy:"5",r:"2",key:"f1ur92"}]])},14724:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},19902:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},78233:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},62896:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("file-box",[["path",{d:"M14.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"16lz6z"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 13.1a2 2 0 0 0-1 1.76v3.24a2 2 0 0 0 .97 1.78L6 21.7a2 2 0 0 0 2.03.01L11 19.9a2 2 0 0 0 1-1.76V14.9a2 2 0 0 0-.97-1.78L8 11.3a2 2 0 0 0-2.03-.01Z",key:"99pj1s"}],["path",{d:"M7 17v5",key:"1yj1jh"}
2],["path",{d:"M11.7 14.2 7 17l-4.7-2.8",key:"1yk8tc"}]])},40878:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("file-chart-pie",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3.5",key:"13ddob"}],["path",{d:"M4.017 11.512a6 6 0 1 0 8.466 8.475",key:"s6vs5t"}],["path",{d:"M9 16a1 1 0 0 1-1-1v-4c0-.552.45-1.008.995-.917a6 6 0 0 1 4.922 4.922c.091.544-.365.995-.917.995z",key:"1dl6s6"}]])},68706:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("file-check-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3 15 2 2 4-4",key:"1lhrkk"}]])},4089:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("file-check",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]])},10933:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("file-plus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]])},54392:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("file-scan",[["path",{d:"M20 10V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4",key:"1rdf37"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M16 14a2 2 0 0 0-2 2",key:"ceaadl"}],["path",{d:"M20 14a2 2 0 0 1 2 2",key:"1ny6zw"}],["path",{d:"M20 22a2 2 0 0 0 2-2",key:"1l9q4k"}],["path",{d:"M16 22a2 2 0 0 1-2-2",key:"1wqh5n"}]])},69985:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("file-search",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]])},2873:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("file-stack",[["path",{d:"M21 7h-3a2 2 0 0 1-2-2V2",key:"9rb54x"}],["path",{d:"M21 6v6.5c0 .8-.7 1.5-1.5 1.5h-7c-.8 0-1.5-.7-1.5-1.5v-9c0-.8.7-1.5 1.5-1.5H17Z",key:"1059l0"}],["path",{d:"M7 8v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H15",key:"16874u"}],["path",{d:"M3 12v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H11",key:"k2ox98"}]])},98518:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},88605:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("file-warning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},8030:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("file-x-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},91092:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]])},51515:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]])},88752:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]])},74507:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]])},19578:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}
2]])},94828:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("frown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]])},71374:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]])},64767:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("gem",[["path",{d:"M6 3h12l4 6-10 13L2 9Z",key:"1pcd5k"}],["path",{d:"M11 3 8 9l4 13 4-13-3-6",key:"1fcu3u"}],["path",{d:"M2 9h20",key:"16fsjt"}]])},83173:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("git-fork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]])},1462:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("git-pull-request-arrow",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v12",key:"ih889a"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}]])},95340:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("glasses",[["circle",{cx:"6",cy:"15",r:"4",key:"vux9w4"}],["circle",{cx:"18",cy:"15",r:"4",key:"18o8ve"}],["path",{d:"M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2",key:"1ag4bs"}],["path",{d:"M2.5 13 5 7c.7-1.3 1.4-2 3-2",key:"1hm1gs"}],["path",{d:"M21.5 13 19 7c-.7-1.3-1.5-2-3-2",key:"1r31ai"}]])},95949:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]])},14012:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("heart-handshake",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]])},72908:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("highlighter",[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]])},972:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]])},6146:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},99137:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("layout-list",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]])},14977:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]])},21377:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});
2const n=(0,r(57468).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},17987:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},97692:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("mail-check",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]])},61219:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("message-circle-question-mark",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},7876:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},41440:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("messages-square",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]])},51048:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},81064:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("move-right",[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]])},7248:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])},34783:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]])},75846:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("pen-tool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]])},3449:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]])},22994:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},21838:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]])},12983:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]])},63262:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},90856:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},48702:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
2y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},40:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]])},70161:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},29430:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("square-plus",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},34908:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("square-stack",[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]])},92998:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},95764:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("table-properties",[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]])},90981:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("text",[["path",{d:"M15 18H3",key:"olowqp"}],["path",{d:"M17 6H3",key:"16j9eg"}],["path",{d:"M21 12H3",key:"2avoz0"}]])},88706:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]])},12517:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},77602:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]])},24221:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},90993:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("unlink",[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]])},3455:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});
2const n=(0,r(57468).A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])},52676:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]])},27550:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("wallpaper",[["circle",{cx:"8",cy:"9",r:"2",key:"gjzl9d"}],["path",{d:"m9 17 6.1-6.1a2 2 0 0 1 2.81.01L22 15V5a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2",key:"69xh40"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"M12 17v4",key:"1riwvh"}]])},9971:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]])},52512:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(57468).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},29211:(e,t,r)=>{"use strict";r.d(t,{MX:()=>i,fX:()=>n,m$:()=>a,zP:()=>o});const n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,((e,t,r)=>r?r.toUpperCase():t.toLowerCase())))(e);return t.charAt(0).toUpperCase()+t.slice(1)},o=(...e)=>e.filter(((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t)).join(" ").trim(),a=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0}},93683:(e,t,r)=>{"use strict";r.d(t,{n:()=>i});var n=r(94575);function i(e){var t=e.children,r=e.render,i=t||r;return"function"!=typeof i?null:(0,n.q)(i)}i.displayName="Observer"},20998:(e,t,r)=>{"use strict";r.d(t,{FH:()=>a.Y,PA:()=>c.P,Pe:()=>s.P,nu:()=>l.n});r(44107);var n,i=r(53942),o=r(6124),a=(r(94575),r(64563)),s=r(87824),c=r(90218),l=r(93683);r(40895),r(75145),r(78001);(0,o.tl)(i.r);n=a.Y.finalizeAllImmediately},90218:(e,t,r)=>{"use strict";r.d(t,{P:()=>f});var n,i,o=r(14041),a=r(87824),s=r(94575),c="function"==typeof Symbol&&Symbol.for,l=null!==(i=null===(n=Object.getOwnPropertyDescriptor((function(){}),"name"))||void 0===n?void 0:n.configurable)&&void 0!==i&&i,u=c?Symbol.for("react.forward_ref"):"function"==typeof o.forwardRef&&(0,o.forwardRef)((function(e){return null})).$$typeof,d=c?Symbol.for("react.memo"):"function"==typeof o.memo&&(0,o.memo)((function(e){return null})).$$typeof;function f(e,t){var r;if(d&&e.$$typeof===d)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if((0,a.P)())return e;var n=null!==(r=null==t?void 0:t.forwardRef)&&void 0!==r&&r,i=e,c=e.displayName||e.name;if(u&&e.$$typeof===u&&(n=!0,"function"!=typeof(i=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var f,h,m=function(e,t){return(0,s.q)((function(){return i(e,t)}),c)};return m.displayName=e.displayName,l&&Object.defineProperty(m,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(m.contextTypes=e.contextTypes),n&&(m=(0,o.forwardRef)(m)),m=(0,o.memo)(m),f=e,h=m,Object.keys(f).forEach((function(e){p[e]||Object.defineProperty(h,e,Object.getOwnPropertyDescriptor(f,e))})),m}var p={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0}},87824:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});var n=!1;function i(){return n}},78001:(e,t,r)=>{"use strict";r(14041)},40895:(e,t,r)=>{"use strict";r(14041)},75145:(e,t,r)=>{"use strict";r(14041),r(78001)},94575:(e,t,r)=>{"use strict";r.d(t,{q:()=>u});var n=r(83794),i=r(14041),o=r(73651),a=r(87824),s=r(64563),c=r(58139);function l(e){e.reaction=new n.qT("observer".concat(e.name),(function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)}))}function u(e,t){if(void 0===t&&(t="observed"),(0,a.P)())return e();var r=i.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return s.Y.unregister(n),n.onStoreChange=e,n.reaction||(l(n),n.stateVersion=Symbol()),function(){var e;n.onStoreChange=null,null===(e=n.reaction)||void 0===e||e.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var u,d,f=r.current;if(f.reaction||(l(f),s.Y.register(r,f,f)),i.useDebugValue(f.reaction,o.E),(0,c.useSyncExternalStore)(f.subscribe,f.getSnapshot,f.getSnapshot),f.reaction.track((function(){try{u=e()}catch(e){d=e}})),d)throw d;return u}},17350:(e,t,r)=>{"use strict";r.d(t,{Xr:()=>i});var n=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var r=Date.now();t.registrations.forEach((function(n,i){r-n.registeredAt>=e&&(t.finalize(n.value),t.registrations.delete(i))})),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,
2configurable:!0,writable:!0,value:function(e,t,r){this.registrations.set(r,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),i="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:n},44107:(e,t,r)=>{"use strict";var n=r(83794);if(!r(14041).useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!n.Gn)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available")},6124:(e,t,r)=>{"use strict";r.d(t,{tl:()=>o});var n=r(83794);function i(e){e()}function o(e){e||(e=i),(0,n.jK)({reactionScheduler:e})}},64563:(e,t,r)=>{"use strict";r.d(t,{Y:()=>n});var n=new(r(17350).Xr)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null}))},73651:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(83794);function i(e){return(0,n.yl)(e)}},53942:(e,t,r)=>{"use strict";r.d(t,{r:()=>n.unstable_batchedUpdates});var n=r(43144)},56351:(e,t,r)=>{"use strict";r.d(t,{By:()=>C,Db:()=>A,Kq:()=>_,PA:()=>E,WQ:()=>P});var n=r(83794),i=r(14041),o=r(20998);function a(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var s={$$typeof:1,render:1,compare:1,type:1,childContextTypes:1,contextType:1,contextTypes:1,defaultProps:1,getDefaultProps:1,getDerivedStateFromError:1,getDerivedStateFromProps:1,mixins:1,displayName:1,propTypes:1};var c=Symbol("patchMixins"),l=Symbol("patchedDefinition");function u(e,t){for(var r=this,n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];t.locks++;try{var a;return null!=e&&(a=e.apply(this,i)),a}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(r,i)}))}}function d(e,t){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];u.call.apply(u,[this,e,t].concat(n))}}function f(e,t,r){var n=function(e,t){var r=e[c]=e[c]||{},n=r[t]=r[t]||{};return n.locks=n.locks||0,n.methods=n.methods||[],n}(e,t);n.methods.indexOf(r)<0&&n.methods.push(r);var i=Object.getOwnPropertyDescriptor(e,t);if(!i||!i[l]){var o=e[t],a=p(e,t,i?i.enumerable:void 0,n,o);Object.defineProperty(e,t,a)}}function p(e,t,r,n,i){var o,a=d(i,n);return(o={})[l]=!0,o.get=function(){return a},o.set=function(i){if(this===e)a=d(i,n);else{var o=p(this,t,r,n,i);Object.defineProperty(this,t,o)}},o.configurable=!0,o.enumerable=r,o}var h=Symbol("ObserverAdministration"),m=Symbol("isMobXReactObserver");function y(e){var t;return null!=(t=e[h])?t:e[h]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:v(e.constructor),state:void 0,props:void 0,context:void 0}}function v(e){return e.displayName||e.name||"<component>"}function g(e){var t=e.bind(this),r=y(this);return function(){r.reaction||(r.reaction=function(e){return new n.qT(e.name+".render()",(function(){if(e.mounted)try{null==e.forceUpdate||e.forceUpdate()}catch(r){var t;null==(t=e.reaction)||t.dispose(),e.reaction=null}else e.reactionInvalidatedBeforeMount=!0}))}(r),r.mounted||o.FH.register(this,r,this));var e=void 0,i=void 0;if(r.reaction.track((function(){try{i=(0,n.vx)(!1,t)}catch(t){e=t}})),e)throw e;return i}}function b(e,t){return(0,o.Pe)()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!function(e,t){if(a(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.hasOwnProperty.call(t,r[i])||!a(e[r[i]],t[r[i]]))return!1;return!0}(this.props,e)}function E(e,t){if(t&&"class"!==t.kind)throw new Error("The @observer decorator can be used on classes only");return!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(i.Component,e)||Object.prototype.isPrototypeOf.call(i.PureComponent,e)?function(e){var t=e.prototype;if(e[m]){var r=v(e);throw new Error("The provided component class ("+r+") has already been declared as an observer component.")}if(e[m]=!0,t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==i.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==b)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=b;var n=t.render;if("function"!=typeof n){var a=v(e);throw new Error("[mobx-react] class component ("+a+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}t.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:(0,o.Pe)()?n:g.call(this,n)}),this.render()};var s=t.componentDidMount;return t.componentDidMount=function(){var e=this,t=y(this);return t.mounted=!0,o.FH.unregister(this),t.forceUpdate=function(){return e.forceUpdate()},t.reaction&&!t.reactionInvalidatedBeforeMount||t.forceUpdate(),null==s?void 0:s.apply(this,arguments)},f(t,"componentWillUnmount",(function(){var e;if(!(0,o.Pe)()){var t=y(this);null==(e=t.reaction)||e.dispose(),t.reaction=null,t.forceUpdate=null,t.mounted=!1,t.reactionInvalidatedBeforeMount=!1}})),e}(e):(0,o.PA)(e)}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}var S=["children"],A=i.createContext({});function _(e){var t=e.children,r=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,S),n=i.useContext(A),o=i.useRef(w({},n,r)).current;return i.createElement(A.Provider,{value:o},t)}function x(e,t,r,n){var o,a,c,l=i.forwardRef((function(r,n){var o=w({},r),a=i.useContext(A);return Object.assign(o,e(a||{},o)||{}),n&&(o.ref=n),i.createElement(t,o)}));return n&&(l=E(l)),l.isMobxInjector=!0,o=t,a=l,c=Object.getOwnPropertyNames(Object.getPrototypeOf(o)),Object.getOwnPropertyNames(o).forEach((function(e){s[e]||-1!==c.indexOf(e)||Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(o,e))})),l.wrappedComponent=t,l.displayName=function(e,t){var r,n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";r=t?"inject-with-"+t+"("+n+")":"inject("+n+")";return r}(t,r),l}function P(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if("function"==typeof arguments[0]){var n=arguments[0];return function(e){return x(n,e,n.name,!0)}}return function(e){return x(function(e){return function(t,r){return e.forEach((function(e){if(!(e in r)){if(!(e in t))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");r[e]=t[e]}})),r}}(t),e,t.join("-"),!1)}}_.displayName="MobXProvider";i.version.split(".")[0];function I(e){function t(t,r,i,o,a,s){for(var c=arguments.length,l=new Array(c>6?c-6:0),u=6;u<c;u++)l[u-6]=arguments[u];return(0,n.O8)((function(){if(o=o||"<<anonymous>>",s=s||i,null==r[i]){if(t){var n=null===r[i]?"null":"undefined";return new Error("The "+a+" `"+s+"` is marked as required in `"+o+"`, but its value is `"+n+"`.")}return null}return e.apply(void 0,[r,i,o,a,s].concat(l))}))}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function k(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function O(e,t){return I((function(r,i,o,a,s){return(0,n.O8)((function(){if(e&&k(r[i])===t.toLowerCase())return null;var a;switch(t){case"Array":a=n.Fq;break;case"Object":a=n.OB;break;case"Map":a=n.uz;break;default:throw new Error("Unexpected mobxType: "+t)}var c=r[i];if(!a(c)){var l=function(e){var t=k(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}(c),u=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `mobx.Observable"+t+"`"+u+".")}return null}))}))}function T(e,t){return I((function(r,i,o,a,s){for(var c=arguments.length,l=new Array(c>5?c-5:0),u=5;u<c;u++)l[u-5]=arguments[u];return(0,n.O8)((function(){if("function"!=typeof t)return new Error("Property `"+s+"` of component `"+o+"` has invalid PropType notation.");var n=O(e,"Array")(r,i,o,a,s);if(n instanceof Error)return n;for(var c=r[i],u=0;u<c.length;u++)if((n=t.apply(void 0,[c,u,o,a,s+"["+u+"]"].concat(l)))instanceof Error)return n;return null}))}))}var C={observableArray:O(!1,"Array"),observableArrayOf:T.bind(null,!1),observableMap:O(!1,"Map"),observableObject:O(!1,"Object"),arrayOrObservableArray:O(!0,"Array"),arrayOrObservableArrayOf:T.bind(null,!0),objectOrObservableObject:O(!0,"Object")};if(!i.Component)throw new Error("mobx-react requires React to be available");if(!n.sH)throw new Error("mobx-react requires mobx to be available")},78667:(e,t,r)=>{"use strict";r.d(t,{uP:()=>y});var n=r(83794);function i(e,t){void 0===t&&(t="Illegal state"),e||function(e){throw new Error("[mobx-utils] "+e)}(t)}var o=function(e){return e&&e!==Object.prototype&&Object.getOwnPropertyNames(e).concat(o(Object.getPrototypeOf(e))||[])},a=function(e){return function(e){var t=o(e);return t.filter((function(e,r){return t.indexOf(e)===r}))}(e).filter((function(e){return"constructor"!==e&&!~e.indexOf("__")}))}
2,s="pending",c="fulfilled",l="rejected";function u(e){switch(this.state){case s:return e.pending&&e.pending(this.value);case l:return e.rejected&&e.rejected(this.value);case c:return e.fulfilled?e.fulfilled(this.value):this.value}}function d(e,t){if(i(arguments.length<=2,"fromPromise expects up to two arguments"),i("function"==typeof e||"object"==typeof e&&e&&"function"==typeof e.then,"Please pass a promise or function to fromPromise"),!0===e.isPromiseBasedObservable)return e;"function"==typeof e&&(e=new Promise(e));var r=e;e.then((0,n.XI)("observableFromPromise-resolve",(function(e){r.value=e,r.state=c})),(0,n.XI)("observableFromPromise-reject",(function(e){r.value=e,r.state=l}))),r.isPromiseBasedObservable=!0,r.case=u;var o=!t||t.state!==c&&t.state!==s?void 0:t.value;return(0,n.kt)(r,{value:o,state:s},{},{deep:!1}),r}!function(e){e.reject=(0,n.XI)("fromPromise.reject",(function(t){var r=e(Promise.reject(t));return r.state=l,r.value=t,r})),e.resolve=(0,n.XI)("fromPromise.resolve",(function(t){void 0===t&&(t=void 0);var r=e(Promise.resolve(t));return r.state=c,r.value=t,r}))}(d||(d={}));var f=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};!function(){function e(e,t){var r=this;Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"subscription",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),(0,n.Gn)(this),(0,n.h5)((function(){r.current=t,r.subscription=e.subscribe(r)}))}Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.subscription&&this.subscription.unsubscribe()}}),Object.defineProperty(e.prototype,"next",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.current=e}}),Object.defineProperty(e.prototype,"complete",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.dispose()}}),Object.defineProperty(e.prototype,"error",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.current=e,this.dispose()}}),f([n.sH.ref],e.prototype,"current",void 0),f([n.XI.bound],e.prototype,"next",null),f([n.XI.bound],e.prototype,"complete",null),f([n.XI.bound],e.prototype,"error",null)}();var p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)},h=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},m=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];!function(){function e(e){var t=this;Object.defineProperty(this,"model",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"localValues",{enumerable:!0,configurable:!0,writable:!0,value:n.sH.map({})}),Object.defineProperty(this,"localComputedValues",{enumerable:!0,configurable:!0,writable:!0,value:n.sH.map({})}),Object.defineProperty(this,"isPropertyDirty",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return t.localValues.has(e)}}),(0,n.Gn)(this),i((0,n.OB)(e),"createViewModel expects an observable object");var r=a(this);a(e).forEach((function(o){var a;if(!r.includes(o)&&o!==n.BQ&&"__mobxDidRunLazyInitializers"!==o){if(i(-1===m.indexOf(o),"The propertyname "+o+" is reserved and cannot be used with viewModels"),(0,n.H8)(e,o)){var s=(0,n.Mr)(e,o),c=s.derivation.bind(t),l=null===(a=s.setter_)||void 0===a?void 0:a.bind(t);t.localComputedValues.set(o,(0,n.EW)(c,{set:l}))}var u=Object.getOwnPropertyDescriptor(e,o),d=u?{enumerable:u.enumerable}:{};Object.defineProperty(t,o,p(p({},d),{configurable:!0,get:function(){return(0,n.H8)(e,o)?t.localComputedValues.get(o).get():t.isPropertyDirty(o)?t.localValues.get(o):t.model[o]},set:(0,n.XI)((function(r){(0,n.H8)(e,o)?t.localComputedValues.get(o).set(r):r!==t.model[o]?t.localValues.set(o,r):t.localValues.delete(o)}
2))}))}}))}Object.defineProperty(e.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changedValues",{get:function(){return new Map(this.localValues)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"submit",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;(0,n.HP)(this.localValues).forEach((function(t){var r=e.localValues.get(t),i=e.model[t];(0,n.Fq)(i)?i.replace(r):(0,n.uz)(i)?(i.clear(),i.merge(r)):(0,n.YQ)(r)||(e.model[t]=r)})),this.localValues.clear()}}),Object.defineProperty(e.prototype,"reset",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.localValues.clear()}}),Object.defineProperty(e.prototype,"resetProperty",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.localValues.delete(e)}}),h([n.EW],e.prototype,"isDirty",null),h([n.EW],e.prototype,"changedValues",null),h([n.XI.bound],e.prototype,"submit",null),h([n.XI.bound],e.prototype,"reset",null),h([n.XI.bound],e.prototype,"resetProperty",null)}();function y(e){return(0,n.Tx)()||console.warn("'expr' should only be used inside other reactive functions."),(0,n.EW)(e).get()}var v,g=(v=function(e,t){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},v(e,t)},function(e,t){function r(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),b=(function(e){function t(t,r,i){var o=void 0===i?{}:i,a=o.name,s=void 0===a?"ogm"+(1e3*Math.random()|0):a,c=o.keyToName,l=void 0===c?function(e){return""+e}:c,u=e.call(this)||this;Object.defineProperty(u,"_base",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(u,"_ogmInfoKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(u,"_groupBy",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(u,"_keyToName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(u,"_disposeBaseObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),u._keyToName=l,u._groupBy=r,u._ogmInfoKey=Symbol("ogmInfo"+s),u._base=t;for(var d=0;d<t.length;d++)u._addItem(t[d]);return u._disposeBaseObserver=(0,n.lB)(u._base,(function(e){if("splice"===e.type)(0,n.Rn)((function(){for(var t=0,r=e.removed;t<r.length;t++){var n=r[t];u._removeItem(n)}for(var i=0,o=e.added;i<o.length;i++){var a=o[i];u._addItem(a)}}));else{if("update"!==e.type)throw new Error("illegal state");(0,n.Rn)((function(){u._removeItem(e.oldValue),u._addItem(e.newValue)}))}})),u}g(t,e),Object.defineProperty(t.prototype,"clear",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("not supported")}}),Object.defineProperty(t.prototype,"delete",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("not supported")}}),Object.defineProperty(t.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("not supported")}}),Object.defineProperty(t.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._disposeBaseObserver();for(var e=0;e<this._base.length;e++){var t=this._base[e];t[this._ogmInfoKey].reaction(),delete t[this._ogmInfoKey]}}}),Object.defineProperty(t.prototype,"_getGroupArr",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var r=e.prototype.get.call(this,t);return void 0===r&&(r=(0,n.sH)([],{name:"GroupArray["+this._keyToName(t)+"]",deep:!1}),e.prototype.set.call(this,t,r)),r}}),Object.defineProperty(t.prototype,"_removeFromGroupArr",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r){var n=e.prototype.get.call(this,t);1===n.length?e.prototype.delete.call(this,t):(r===n.length-1||(n[r]=n[n.length-1],n[r][this._ogmInfoKey].groupArrIndex=r),n.length--)}}),Object.defineProperty(t.prototype,"_addItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r=this._groupBy(e),i=this._getGroupArr(r),o={groupByValue:r,groupArrIndex:i.length,reaction:(0,n.mJ)((function(){return t._groupBy(e)}),(function(r,n){var i=e[t._ogmInfoKey];t._removeFromGroupArr(i.groupByValue,i.groupArrIndex);var o=t._getGroupArr(r),a=o.length;o.push(e),i.groupByValue=r,i.groupArrIndex=a}))};Object.defineProperty(e,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:o}),i.push(e)}}),Object.defineProperty(t.prototype,"_removeItem",{enumerable:!1,
2configurable:!0,writable:!0,value:function(e){var t=e[this._ogmInfoKey];this._removeFromGroupArr(t.groupByValue,t.groupArrIndex),t.reaction(),delete e[this._ogmInfoKey]}})}(n.Es),function(){function e(e,t){Object.defineProperty(this,"base",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"closest",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"closestIdx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"isDisposed",{enumerable:!0,configurable:!0,writable:!0,value:!1});for(var r=this.closest=this.root=e,n=0;n<this.args.length-1&&(r=r.get(t[n]));n++)this.closest=r;this.closestIdx=n}return Object.defineProperty(e.prototype,"exists",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.assertNotDisposed();var e=this.args.length;return this.closestIdx>=e-1&&this.closest.has(this.args[e-1])}}),Object.defineProperty(e.prototype,"get",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");return this.closest.get(this.args[this.args.length-1])}}),Object.defineProperty(e.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.assertNotDisposed();for(var t=this.args.length,r=this.closest,n=this.closestIdx;n<t-1;n++){var i=new Map;r.set(this.args[n],i),r=i}this.closestIdx=t-1,this.closest=r,r.set(this.args[t-1],e)}}),Object.defineProperty(e.prototype,"delete",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");var e=this.args.length;this.closest.delete(this.args[e-1]);for(var t=this.root,r=[t],n=0;n<e-1;n++)t=t.get(this.args[n]),r.push(t);for(n=r.length-1;n>0;n--)0===r[n].size&&r[n-1].delete(this.args[n-1]);this.isDisposed=!0}}),Object.defineProperty(e.prototype,"assertNotDisposed",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.isDisposed)throw new Error("Concurrent modification exception")}}),e}());!function(){function e(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"argsLength",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"last",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}Object.defineProperty(e.prototype,"entry",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(-1===this.argsLength)this.argsLength=e.length;else if(this.argsLength!==e.length)throw new Error("DeepMap should be used with functions with a consistent length, expected: "+this.argsLength+", got: "+e.length);return this.last&&(this.last.isDisposed=!0),this.last=new b(this.store,e)}})}()},83794:(e,t,r)=>{"use strict";r.d(t,{BQ:()=>G,EW:()=>Ce,Es:()=>Yr,Fq:()=>Ur,Gn:()=>Ir,H8:()=>cr,HO:()=>mr,HP:()=>dr,Mr:()=>En,O8:()=>rt,OB:()=>on,Rn:()=>yr,Tx:()=>Ze,XI:()=>Nt,YQ:()=>sr,fm:()=>Ft,h5:()=>Dt,jK:()=>Kt,kt:()=>Qt,lB:()=>fr,mJ:()=>Vt,q$:()=>Wt,qT:()=>bt,sH:()=>Ie,tC:()=>Gt,uz:()=>qr,vx:()=>Be,yl:()=>Xt,z7:()=>vr});function n(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var i={};function o(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:i}var a=Object.assign,s=Object.getOwnPropertyDescriptor,c=Object.defineProperty,l=Object.prototype,u=[];Object.freeze(u);var d={};Object.freeze(d);var f="undefined"!=typeof Proxy,p=Object.toString();function h(){f||n("Proxy not available")}function m(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var y=function(){};function v(e){return"function"==typeof e}function g(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function b(e){return null!==e&&"object"==typeof e}function E(e){if(!b(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r.toString()===p}function w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function S(e,t,r){c(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}
2function A(e,t,r){c(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function _(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(e){return b(e)&&!0===e[r]}}function x(e){return e instanceof Map}function P(e){return e instanceof Set}var I=void 0!==Object.getOwnPropertySymbols;var k="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:I?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function O(e){return null===e?null:"object"==typeof e?""+e:e}function T(e,t){return l.hasOwnProperty.call(e,t)}var C=Object.getOwnPropertyDescriptors||function(e){var t={};return k(e).forEach((function(r){t[r]=s(e,r)})),t};function R(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"))?o:String(o)),n)}var i,o}function N(e,t,r){return t&&R(e.prototype,t),r&&R(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L.apply(this,arguments)}function D(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,M(e,t)}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function B(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var V=Symbol("mobx-stored-annotations");function U(e){return Object.assign((function(t,r){z(t,r,e)}),e)}function z(e,t,r){T(e,V)||S(e,V,L({},e[V])),function(e){return e.annotationType_===Q}(r)||(e[V][t]=r)}var G=Symbol("mobx administration"),W=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.batchId_=void 0,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=He.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e,this.batchId_=dt.inBatch?dt.batchId:NaN}var t=e.prototype;
vendor: 6,561 bytes, line 2
2return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return vt(this)},t.reportChanged=function(){dt.inBatch&&this.batchId_===dt.batchId||(dt.stateVersion=dt.stateVersion<Number.MAX_SAFE_INTEGER?dt.stateVersion+1:Number.MIN_SAFE_INTEGER,this.batchId_=NaN),mt(),gt(this),yt()},t.toString=function(){return this.name_},e}(),H=_("Atom",W);function $(e,t,r){void 0===t&&(t=y),void 0===r&&(r=y);var n=new W(e);return t!==y&&Gt(n,t),r!==y&&Wt(n,r),n}var Y={identity:function(e,t){return e===t},structural:function(e,t){return _n(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return _n(e,t,1)}};function q(e,t,r){return ur(e)?e:Array.isArray(e)?Ie.array(e,{name:r}):E(e)?Ie.object(e,void 0,{name:r}):x(e)?Ie.map(e,{name:r}):P(e)?Ie.set(e,{name:r}):"function"!=typeof e||Mt(e)||or(e)?e:w(e)?nr(e):Lt(r,e)}function K(e){return e}var Q="override";function X(e,t){return{annotationType_:e,options_:t,make_:Z,extend_:J}}function Z(e,t,r,n){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,r,!1)?0:1;if(n===e.target_)return null===this.extend_(e,t,r,!1)?0:2;if(Mt(r.value))return 1;var o=ee(e,this,t,r,!1);return c(n,t,o),2}function J(e,t,r,n){var i=ee(e,this,t,r);return e.defineProperty_(t,i,n)}function ee(e,t,r,n,i){var o,a,s,c,l,u,d,f;void 0===i&&(i=dt.safeDescriptors),f=n,t.annotationType_,f.value;var p,h=n.value;null!=(o=t.options_)&&o.bound&&(h=h.bind(null!=(p=e.proxy_)?p:e.target_));return{value:Fe(null!=(a=null==(s=t.options_)?void 0:s.name)?a:r.toString(),h,null!=(c=null==(l=t.options_)?void 0:l.autoAction)&&c,null!=(u=t.options_)&&u.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function te(e,t){return{annotationType_:e,options_:t,make_:re,extend_:ne}}function re(e,t,r,n){var i;if(n===e.target_)return null===this.extend_(e,t,r,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!T(e.target_,t)||!or(e.target_[t]))&&null===this.extend_(e,t,r,!1))return 0;if(or(r.value))return 1;var o=ie(e,this,t,r,!1,!1);return c(n,t,o),2}function ne(e,t,r,n){var i,o=ie(e,this,t,r,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,n)}function ie(e,t,r,n,i,o){var a;void 0===o&&(o=dt.safeDescriptors),a=n,t.annotationType_,a.value;var s,c=n.value;(or(c)||(c=nr(c)),i)&&((c=c.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0);return{value:c,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function oe(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:se}}function ae(e,t,r){return null===this.extend_(e,t,r,!1)?0:1}function se(e,t,r,n){return function(e,t,r,n){t.annotationType_,n.get;0}(0,this,0,r),e.defineComputedProperty_(t,L({},this.options_,{get:r.get,set:r.set}),n)}function ce(e,t){return{annotationType_:e,options_:t,make_:le,extend_:ue}}function le(e,t,r){return null===this.extend_(e,t,r,!1)?0:1}function ue(e,t,r,n){var i,o;return function(e,t,r,n){t.annotationType_;0}(0,this),e.defineObservableProperty_(t,r.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:q,n)}var de="true",fe=pe();function pe(e){return{annotationType_:de,options_:e,make_:he,extend_:me}}function he(e,t,r,n){var i,o,a,s;if(r.get)return Ce.make_(e,t,r,n);if(r.set){var l=Fe(t.toString(),r.set);return n===e.target_?null===e.defineProperty_(t,{configurable:!dt.safeDescriptors||e.isPlainObject_,set:l})?0:2:(c(n,t,{configurable:!0,set:l}),2)}if(n!==e.target_&&"function"==typeof r.value)return w(r.value)?(null!=(s=this.options_)&&s.autoBind?nr.bound:nr).make_(e,t,r,n):(null!=(a=this.options_)&&a.autoBind?Lt.bound:Lt).make_(e,t,r,n);var u,d=!1===(null==(i=this.options_)?void 0:i.deep)?Ie.ref:Ie;"function"==typeof r.value&&null!=(o=this.options_)&&o.autoBind&&(r.value=r.value.bind(null!=(u=e.proxy_)?u:e.target_));return d.make_(e,t,r,n)}function me(e,t,r,n){var i,o,a;if(r.get)return Ce.extend_(e,t,r,n);if(r.set)return e.defineProperty_(t,{configurable:!dt.safeDescriptors||e.isPlainObject_,set:Fe(t.toString(),r.set)},n);"function"==typeof r.value&&null!=(i=this.options_)&&i.autoBind&&(r.value=r.value.bind(null!=(a=e.proxy_)?a:e.target_));return(!1===(null==(o=this.options_)?void 0:o.deep)?Ie.ref:Ie).extend_(e,t,r,n)}var ye={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ve(e){return e||ye}Object.freeze(ye);var ge=ce("observable"),be=ce("observable.ref",{enhancer:K}),Ee=ce("observable.shallow",{enhancer:function(e,t,r){return null==e||on(e)||Ur(e)||qr(e)||Xr(e)?e:Array.isArray(e)?Ie.array(e,{name:r,deep:!1}):E(e)?Ie.object(e,void 0,{name:r,deep:!1}):x(e)?Ie.map(e,{name:r,deep:!1}):P(e)?Ie.set(e,{name:r,deep:!1}):void 0}}),we=ce("observable.struct",{enhancer:function(e,t){return _n(e,t)?t:e}}),Se=U(ge);function Ae(e){return!0===e.deep?q:!1===e.deep?K:(t=e.defaultDecorator)&&null!=(r=null==(n=t.options_)?void 0:n.enhancer)?r:q;var t,r,n}function _e(e,t,r){if(!g(t))return ur(e)?e:E(e)?Ie.object(e,t,r):Array.isArray(e)?Ie.array(e,t):x(e)?Ie.map(e,t):P(e)?Ie.set(e,t):"object"==typeof e&&null!==e?e:Ie.box(e,t);z(e,t,ge)}a(_e,Se);var xe,Pe,Ie=a(_e,{box:function(e,t){var r=ve(t);return new Ge(e,Ae(r),r.name,!0,r.equals)},array:function(e,t){var r=ve(t);return(!1===dt.useProxies||!1===r.proxy?gn:Rr)(e,Ae(r),r.name)},map:function(e,t){var r=ve(t);return new Yr(e,Ae(r),r.name)},set:function(e,t){var r=ve(t);return new Qr(e,Ae(r),r.name)},object:function(e,t,r){return Sn((function(){return Qt(!1===dt.useProxies||!1===(null==r?void 0:r.proxy)?tn({},r):function(e,t){var r,n;return h(),e=tn(e,t),null!=(n=(r=e[G]).proxy_)?n:r.proxy_=new Proxy(e,Er)}({},r),e,t)}))},ref:U(be),shallow:U(Ee),deep:Se,struct:U(we)}),ke="computed",Oe=oe(ke),Te=oe("computed.struct",{equals:Y.structural}),Ce=function(e,t){if(g(t))return z(e,t,Oe);if(E(e))return U(oe(ke,e));var r=E(t)?t:{};return r.get=e,r.name||(r.name=e.name||""),new Ye(r)};Object.assign(Ce,Oe),Ce.struct=U(Te);var Re,Ne=0,Le=1,De=null!=(xe=null==(Pe=s((function(){}),"name"))?void 0:Pe.configurable)&&xe,Me={value:"action",configurable:!0,writable:!1,enumerable:!1};function Fe(e,t,r,n){function i(){return je(e,r,t,n||this,arguments)}return void 0===r&&(r=!1),i.isMobxAction=!0,De&&(Me.value=e,c(i,"name",Me)),i}function je(e,t,r,i,o){var a=function(e,t,r,n){var i=!1,o=0;0;var a=dt.trackingDerivation,s=!t||!a;mt();var c=dt.allowStateChanges;s&&(nt(),c=Ve(!0));var l=ot(!0),u={runAsAction_:s,prevDerivation_:a,prevAllowStateChanges_:c,prevAllowStateReads_:l,n
2otifySpy_:i,startTime_:o,actionId_:Le++,parentActionId_:Ne};return Ne=u.actionId_,u}(0,t);try{return r.apply(i,o)}catch(e){throw a.error_=e,e}finally{!function(e){Ne!==e.actionId_&&n(30);Ne=e.parentActionId_,void 0!==e.error_&&(dt.suppressReactionErrors=!0);Ue(e.prevAllowStateChanges_),at(e.prevAllowStateReads_),yt(),e.runAsAction_&&it(e.prevDerivation_);0;dt.suppressReactionErrors=!1}(a)}}function Be(e,t){var r=Ve(e);try{return t()}finally{Ue(r)}}function Ve(e){var t=dt.allowStateChanges;return dt.allowStateChanges=e,t}function Ue(e){dt.allowStateChanges=e}Re=Symbol.toPrimitive;var ze,Ge=function(e){function t(t,r,n,i,o){var a;return void 0===n&&(n="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=Y.default),(a=e.call(this,n)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=r,a.name_=n,a.equals=o,a.value_=r(t,void 0,n),a}D(t,e);var r=t.prototype;return r.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},r.set=function(e){this.value_;if((e=this.prepareNewValue_(e))!==dt.UNCHANGED){0,this.setNewValue_(e)}},r.prepareNewValue_=function(e){if(Je(this),wr(this)){var t=Ar(this,{object:this,type:Or,newValue:e});if(!t)return dt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?dt.UNCHANGED:e},r.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),_r(this)&&Pr(this,{type:Or,object:this,newValue:e,oldValue:t})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(e){return Sr(this,e)},r.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Or,newValue:this.value_,oldValue:void 0}),xr(this,e)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return O(this.get())},r[Re]=function(){return this.valueOf()},t}(W),We=_("ObservableValue",Ge);ze=Symbol.toPrimitive;var He,$e,Ye=function(){function e(e){this.dependenciesState_=He.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=He.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Ke(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=$e.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||n(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Fe("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?Y.structural:Y.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==He.UP_TO_DATE_)return;e.lowestObserverState_=He.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===He.UP_TO_DATE_&&(e.dependenciesState_=He.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)}
vendor: 4,057 bytes, line 2
2,t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&n(32,this.name_,this.derivation),0!==dt.inBatch||0!==this.observers_.size||this.keepAlive_){if(vt(this),Xe(this)){var e=dt.trackingContext;this.keepAlive_&&!e&&(dt.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===He.STALE_)return;e.lowestObserverState_=He.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===He.POSSIBLY_STALE_?t.dependenciesState_=He.STALE_:t.dependenciesState_===He.UP_TO_DATE_&&(e.lowestObserverState_=He.UP_TO_DATE_)}))}(this),dt.trackingContext=e}}else Xe(this)&&(this.warnAboutUntrackedRead_(),mt(),this.value_=this.computeValue_(!1),yt());var t=this.value_;if(Qe(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&n(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else n(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===He.NOT_TRACKING_,r=this.computeValue_(!0),n=t||Qe(e)||Qe(r)||!this.equals_(e,r);return n&&(this.value_=r),n},t.computeValue_=function(e){this.isComputing_=!0;var t,r=Ve(!1);if(e)t=et(this,this.derivation,this.scope_);else if(!0===dt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new Ke(e)}return Ue(r),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(tt(this),this.value_=void 0)},t.observe_=function(e,t){var r=this,n=!0,i=void 0;return Ft((function(){var o=r.get();if(!n||t){var a=nt();e({observableKind:"computed",debugObjectName:r.name_,type:Or,object:r,newValue:o,oldValue:i}),it(a)}n=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return O(this.get())},t[ze]=function(){return this.valueOf()},e}(),qe=_("ComputedValue",Ye);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(He||(He={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}($e||($e={}));var Ke=function(e){this.cause=void 0,this.cause=e};function Qe(e){return e instanceof Ke}function Xe(e){switch(e.dependenciesState_){case He.UP_TO_DATE_:return!1;case He.NOT_TRACKING_:case He.STALE_:return!0;case He.POSSIBLY_STALE_:for(var t=ot(!0),r=nt(),n=e.observing_,i=n.length,o=0;o<i;o++){var a=n[o];if(qe(a)){if(dt.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return it(r),at(t),!0}if(e.dependenciesState_===He.STALE_)return it(r),at(t),!0}}return st(e),it(r),at(t),!1}}function Ze(){return null!==dt.trackingDerivation}function Je(e){}function et(e,t,r){var n=ot(!0);st(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++dt.runId;var i,o=dt.trackingDerivation;if(dt.trackingDerivation=e,dt.inBatch++,!0===dt.disableErrorBoundaries)i=t.call(r);else try{i=t.call(r)}catch(e){i=new Ke(e)}return dt.inBatch--,dt.trackingDerivation=o,function(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,n=He.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=r[a];0===s.diffValue_&&(s.diffValue_=1,i!==a&&(r[i]=s),i++),s.dependenciesState_>n&&(n=s.dependenciesState_)}r.length=i,e.newObserving_=null,o=t.length;for(;o--;){var c=t[o];0===c.diffValue_&&pt(c,e),c.diffValue_=0}for(;i--;){var l=r[i];1===l.diffValue_&&(l.diffValue_=0,ft(l,e))}n!==He.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}(e),at(n),i}function tt(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)pt(t[r],e);e.dependenciesState_=He.NOT_TRACKING_}function rt(e){var t=nt();try{return e()}finally{it(t)}}function nt(){var e=dt.trackingDerivation;return dt.trackingDerivation=null,e}function it(e){dt.trackingDerivation=e}function ot(e){var t=dt.allowStateReads;return dt.allowStateReads=e,t}function at(e){dt.allowStateReads=e}
2function st(e){if(e.dependenciesState_!==He.UP_TO_DATE_){e.dependenciesState_=He.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=He.UP_TO_DATE_}}var ct=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.batchId=Number.MIN_SAFE_INTEGER,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0,this.stateVersion=Number.MIN_SAFE_INTEGER},lt=!0,ut=!1,dt=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(lt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ct).version&&(lt=!1),lt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ct):(setTimeout((function(){ut||n(35)}),1),new ct)}();function ft(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function pt(e,t){e.observers_.delete(t),0===e.observers_.size&&ht(e)}function ht(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,dt.pendingUnobservations.push(e))}function mt(){0===dt.inBatch&&(dt.batchId=dt.batchId<Number.MAX_SAFE_INTEGER?dt.batchId+1:Number.MIN_SAFE_INTEGER),dt.inBatch++}function yt(){if(0==--dt.inBatch){St();for(var e=dt.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation_=!1,0===r.observers_.size&&(r.isBeingObserved_&&(r.isBeingObserved_=!1,r.onBUO()),r instanceof Ye&&r.suspend_())}
vendor: 4,305 bytes, line 2
2dt.pendingUnobservations=[]}}function vt(e){var t=dt.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&dt.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_):(0===e.observers_.size&&dt.inBatch>0&&ht(e),!1)}function gt(e){e.lowestObserverState_!==He.STALE_&&(e.lowestObserverState_=He.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===He.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=He.STALE_})))}var bt=function(){function e(e,t,r,n){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=He.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=$e.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=r,this.requiresObservable_=n}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,dt.pendingReactions.push(this),St())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){mt(),this.isScheduled_=!1;var e=dt.trackingContext;if(dt.trackingContext=this,Xe(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}dt.trackingContext=e,yt()}},t.track=function(e){if(!this.isDisposed_){mt();0,this.isRunning_=!0;var t=dt.trackingContext;dt.trackingContext=this;var r=et(this,e,void 0);dt.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&tt(this),Qe(r)&&this.reportExceptionInDerivation_(r.cause),yt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(dt.disableErrorBoundaries)throw e;var r="[mobx] uncaught error in '"+this+"'";dt.suppressReactionErrors||console.error(r,e),dt.globalReactionErrorHandlers.forEach((function(r){return r(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(mt(),tt(this),yt()))},t.getDisposer_=function(e){var t=this,r=function r(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",r)};return null==e||null==e.addEventListener||e.addEventListener("abort",r),r[G]=this,r},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},e}();var Et=100,wt=function(e){return e()};function St(){dt.inBatch>0||dt.isRunningReactions||wt(At)}function At(){dt.isRunningReactions=!0;for(var e=dt.pendingReactions,t=0;e.length>0;){++t===Et&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,i=r.length;n<i;n++)r[n].runReaction_()}dt.isRunningReactions=!1}var _t=_("Reaction",bt);var xt="action",Pt="autoAction",It="<unnamed action>",kt=X(xt),Ot=X("action.bound",{bound:!0}),Tt=X(Pt,{autoAction:!0}),Ct=X("autoAction.bound",{autoAction:!0,bound:!0});function Rt(e){return function(t,r){return v(t)?Fe(t.name||It,t,e):v(r)?Fe(t,r,e):g(r)?z(t,r,e?Tt:kt):g(t)?U(X(e?Pt:xt,{name:t,autoAction:e})):void 0}}var Nt=Rt(!1);Object.assign(Nt,kt);var Lt=Rt(!0);function Dt(e){return je(e.name,!1,e,this,void 0)}function Mt(e){return v(e)&&!0===e.isMobxAction}function Ft(e,t){var r,n,i,o,a;void 0===t&&(t=d);var s,c=null!=(r=null==(n=t)?void 0:n.name)?r:"Autorun";if(!t.scheduler&&!t.delay)s=new bt(c,(function(){this.track(f)}),t.onError,t.requiresObservable);else{var l=Bt(t),u=!1;s=new bt(c,(function(){u||(u=!0,l((function(){u=!1,s.isDisposed_||s.track(f)})))}),t.onError,t.requiresObservable)}function f(){e(s)}return null!=(i=t)&&null!=(o=i.signal)&&o.aborted||s.schedule_(),s.getDisposer_(null==(a=t)?void 0:a.signal)}Object.assign(Lt,Tt),Nt.bound=U(Ot),Lt.bound=U(Ct);var jt=function(e){return e()};function Bt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:jt}function Vt(e,t,r){var n,i,o,a;void 0===r&&(r=d);var s,c,l,u,f=null!=(n=r.name)?n:"Reaction",p=Nt(f,r.onError?(s=r.onError,c=t,function(){try{return c.apply(this,arguments)}catch(e){s.call(this,e)}}):t),h=!r.scheduler&&!r.delay,m=Bt(r),y=!0,v=!1,g=r.compareStructural?Y.structural
2:r.equals||Y.default,b=new bt(f,(function(){y||h?E():v||(v=!0,m(E))}),r.onError,r.requiresObservable);function E(){if(v=!1,!b.isDisposed_){var t=!1;b.track((function(){var r=Be(!1,(function(){return e(b)}));t=y||!g(l,r),u=l,l=r})),(y&&r.fireImmediately||!y&&t)&&p(l,u,b),y=!1}}return null!=(i=r)&&null!=(o=i.signal)&&o.aborted||b.schedule_(),b.getDisposer_(null==(a=r)?void 0:a.signal)}var Ut="onBO",zt="onBUO";function Gt(e,t,r){return Ht(Ut,e,t,r)}function Wt(e,t,r){return Ht(zt,e,t,r)}function Ht(e,t,r,n){var i="function"==typeof n?bn(t,r):bn(t),o=v(n)?n:r,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var $t="never",Yt="always",qt="observed";function Kt(e){!0===e.isolateGlobalState&&function(){if((dt.pendingReactions.length||dt.inBatch||dt.isRunningReactions)&&n(36),ut=!0,lt){var e=o();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),dt=new ct}}();var t,r,i=e.useProxies,a=e.enforceActions;if(void 0!==i&&(dt.useProxies=i===Yt||i!==$t&&"undefined"!=typeof Proxy),"ifavailable"===i&&(dt.verifyProxies=!0),void 0!==a){var s=a===Yt?Yt:a===qt;dt.enforceActions=s,dt.allowStateChanges=!0!==s&&s!==Yt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(dt[t]=!!e[t])})),dt.allowStateReads=!dt.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,r=wt,wt=function(e){return t((function(){return r(e)}))})}function Qt(e,t,r,n){var i=C(t);return Sn((function(){var t=tn(e,n)[G];k(i).forEach((function(e){t.extend_(e,i[e],!r||(!(e in r)||r[e]))}))})),e}function Xt(e,t){return Zt(bn(e,t))}function Zt(e){var t,r={name:e.name_};return e.observing_&&e.observing_.length>0&&(r.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Zt)),r}var Jt=0;function er(){this.message="FLOW_CANCELLED"}er.prototype=Object.create(Error.prototype);var tr=te("flow"),rr=te("flow.bound",{bound:!0}),nr=Object.assign((function(e,t){if(g(t))return z(e,t,tr);var r=e,n=r.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++Jt,o=Nt(n+" - runid: "+i+" - init",r).apply(this,t),a=void 0,s=new Promise((function(t,r){var s=0;function c(e){var t;a=void 0;try{t=Nt(n+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(e){return r(e)}u(t)}function l(e){var t;a=void 0;try{t=Nt(n+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return r(e)}u(t)}function u(e){if(!v(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(c,l);e.then(u,r)}e=r,c(void 0)}));return s.cancel=Nt(n+" - runid: "+i+" - cancel",(function(){try{a&&ir(a);var t=o.return(void 0),r=Promise.resolve(t.value);r.then(y,y),ir(r),e(new er)}catch(t){e(t)}})),s};return i.isMobXFlow=!0,i}),tr);function ir(e){v(e.cancel)&&e.cancel()}function or(e){return!0===(null==e?void 0:e.isMobXFlow)}function ar(e,t){if(void 0===t)return qe(e);if(!1===on(e))return!1;if(!e[G].values_.has(t))return!1;var r=bn(e,t);return qe(r)}function sr(e){return ar(e)}function cr(e,t){return ar(e,t)}function lr(e,t){return!!e&&(void 0!==t?!!on(e)&&e[G].values_.has(t):on(e)||!!e[G]||H(e)||_t(e)||qe(e))}function ur(e){return lr(e)}function dr(e){return on(e)?e[G].keys_():qr(e)||Xr(e)?Array.from(e.keys()):Ur(e)?e.map((function(e,t){return t})):void n(5)}function fr(e,t,r,n){return v(r)?function(e,t,r,n){return En(e,t).observe_(r,n)}(e,t,r,n):function(e,t,r){return En(e).observe_(t,r)}(e,t,r)}function pr(e,t,r){return e.set(t,r),r}function hr(e,t){if(null==e||"object"!=typeof e||e instanceof Date||!ur(e))return e;if(We(e)||qe(e))return hr(e.get(),t);if(t.has(e))return t.get(e);if(Ur(e)){var r=pr(t,e,new Array(e.length));return e.forEach((function(e,n){r[n]=hr(e,t)})),r}if(Xr(e)){var i=pr(t,e,new Set);return e.forEach((function(e){i.add(hr(e,t))})),i}if(qr(e)){var o=pr(t,e,new Map);return e.forEach((function(e,r){o.set(r,hr(e,t))})),o}var a=pr(t,e,{});return function(e){if(on(e))return e[G].ownKeys_();n(38)}(e).forEach((function(r){l.propertyIsEnumerable.call(e,r)&&(a[r]=hr(e[r],t))})),a}function mr(e,t){return hr(e,new Map)}function yr(e,t){void 0===t&&(t=void 0),mt();try{return e.apply(t)}finally{yt()}}function vr(e,t,r){return 1===arguments.length||t&&"object"==typeof t?function(e,t){var r,n,i;0;if(null!=t&&null!=(r=t.signal)&&r.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var o=new Promise((function(r,o){var a,s=gr(e,r,L({},t,{onError:o}));n=function(){s(),o(new Error("WHEN_CANCELLED"))},i=function(){s(),o(new Error("WHEN_ABORTED"))},null==t||null==(a=t.signal)||null==a.addEventListener||a.addEventListener("abort",i)})).finally((function(){var e;return null==t||null==(e=t.signal)||null==e.removeEventListener?void 0:e.removeEventListener("abort",i)}));return o.cancel=n,o}
vendor: 5,668 bytes, line 2
2(e,t):gr(e,t,r||{})}function gr(e,t,r){var n;if("number"==typeof r.timeout){var i=new Error("WHEN_TIMEOUT");n=setTimeout((function(){if(!a[G].isDisposed_){if(a(),!r.onError)throw i;r.onError(i)}}),r.timeout)}r.name="When";var o=Fe("When-effect",t),a=Ft((function(t){Be(!1,e)&&(t.dispose(),n&&clearTimeout(n),o())}),r);return a}function br(e){return e[G]}nr.bound=U(rr);var Er={has:function(e,t){return br(e).has_(t)},get:function(e,t){return br(e).get_(t)},set:function(e,t,r){var n;return!!g(t)&&(null==(n=br(e).set_(t,r,!0))||n)},deleteProperty:function(e,t){var r;return!!g(t)&&(null==(r=br(e).delete_(t,!0))||r)},defineProperty:function(e,t,r){var n;return null==(n=br(e).defineProperty_(t,r))||n},ownKeys:function(e){return br(e).ownKeys_()},preventExtensions:function(e){n(13)}};function wr(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function Sr(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),m((function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}))}function Ar(e,t){var r=nt();try{for(var i=[].concat(e.interceptors_||[]),o=0,a=i.length;o<a&&((t=i[o](t))&&!t.type&&n(14),t);o++);return t}finally{it(r)}}function _r(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function xr(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),m((function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}))}function Pr(e,t){var r=nt(),n=e.changeListeners_;if(n){for(var i=0,o=(n=n.slice()).length;i<o;i++)n[i](t);it(r)}}function Ir(e,t,r){return Sn((function(){var n=tn(e,r)[G];null!=t||(t=function(e){return T(e,V)||S(e,V,L({},e[V])),e[V]}(e)),k(t).forEach((function(e){return n.make_(e,t[e])}))})),e}var kr="splice",Or="update",Tr={get:function(e,t){var r=e[G];return t===G?r:"length"===t?r.getArrayLength_():"string"!=typeof t||isNaN(t)?T(Nr,t)?Nr[t]:e[t]:r.get_(parseInt(t))},set:function(e,t,r){var n=e[G];return"length"===t&&n.setArrayLength_(r),"symbol"==typeof t||isNaN(t)?e[t]=r:n.set_(parseInt(t),r),!0},preventExtensions:function(){n(15)}},Cr=function(){function e(e,t,r,n){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=r,this.legacyMode_=n,this.atom_=new W(e),this.enhancer_=function(e,r){return t(e,r,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return Sr(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),xr(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&n("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var r=new Array(e-t),i=0;i<e-t;i++)r[i]=void 0;this.spliceWithArray_(t,0,r)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&n(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&vn(e+t+1)},t.spliceWithArray_=function(e,t,r){var n=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===r&&(r=u),wr(this)){var o=Ar(this,{object:this.proxy_,type:kr,index:e,removedCount:t,added:r});if(!o)return u;t=o.removedCount,r=o.added}if(r=0===r.length?r:r.map((function(e){return n.enhancer_(e,void 0)})),this.legacyMode_){var a=r.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,r);return 0===t&&0===r.length||this.notifyArraySplice_(e,r,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,r){var n;if(r.length<1e4)return(n=this.values_).splice.apply(n,[e,t].concat(r));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=r.length-t;for(var a=0;a<r.length;a++)this.values_[e+a]=r[a];for(var s=0;s<o.length;s++)this.values_[e+r.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,r){var n=!this.owned_&&!1,i=_r(this),o=i||n?{observableKind:"array",object:this.proxy_,type:Or,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:r}:null;this.atom_.reportChanged(),i&&Pr(this,o)},t.notifyArraySplice_=function(e,t,r){var n=!this.owned_&&!1,i=_r(this),o=i||n?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:kr,index:e,removed:r,added:t,removedCount:r.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&Pr(this,o)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var r=this.values_;if(this.legacyMode_&&e>r.length&&n(17,e,r.length),e<r.length){this.atom_;var i=r[e];if(wr(this)){var o=Ar(this,{type:Or,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,i))!==i&&(r[e]=t,this.notifyArrayChildUpdate_(e,t,i))}else{for(var a=new Array(e+1-r.length),s=0;s<a.length-1;s++)a[s]=void 0;a[a.length-1]=t,this.spliceWithArray_(r.length,0,a)}},e}();function Rr(e,t,r,n){return void 0===r&&(r="ObservableArray"),void 0===n&&(n=!1),h(),Sn((function(){var i=new Cr(r,t,n,!1);A(i.values_,G,i);var o=new Proxy(i.values_,Tr);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o}
vendor: 14,819 bytes, line 2
2))}var Nr={clear:function(){return this.splice(0)},replace:function(e){var t=this[G];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var o=this[G];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,n)},spliceWithArray:function(e,t,r){return this[G].spliceWithArray_(e,t,r)},push:function(){for(var e=this[G],t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.spliceWithArray_(e.values_.length,0,r),e.values_.length},pop:function(){return this.splice(Math.max(this[G].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[G],t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.spliceWithArray_(0,0,r),e.values_.length},reverse:function(){return dt.trackingDerivation&&n(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){dt.trackingDerivation&&n(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[G],r=t.dehanceValues_(t.values_).indexOf(e);return r>-1&&(this.splice(r,1),!0)}};function Lr(e,t){"function"==typeof Array.prototype[e]&&(Nr[e]=t(e))}function Dr(e){return function(){var t=this[G];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function Mr(e){return function(t,r){var n=this,i=this[G];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(r,e,i,n)}))}}function Fr(e){return function(){var t=this,r=this[G];r.atom_.reportObserved();var n=r.dehanceValues_(r.values_),i=arguments[0];return arguments[0]=function(e,r,n){return i(e,r,n,t)},n[e].apply(n,arguments)}}Lr("concat",Dr),Lr("flat",Dr),Lr("includes",Dr),Lr("indexOf",Dr),Lr("join",Dr),Lr("lastIndexOf",Dr),Lr("slice",Dr),Lr("toString",Dr),Lr("toLocaleString",Dr),Lr("every",Mr),Lr("filter",Mr),Lr("find",Mr),Lr("findIndex",Mr),Lr("flatMap",Mr),Lr("forEach",Mr),Lr("map",Mr),Lr("some",Mr),Lr("reduce",Fr),Lr("reduceRight",Fr);var jr,Br,Vr=_("ObservableArrayAdministration",Cr);function Ur(e){return b(e)&&Vr(e[G])}var zr={},Gr="add",Wr="delete";jr=Symbol.iterator,Br=Symbol.toStringTag;var Hr,$r,Yr=function(){function e(e,t,r){var i=this;void 0===t&&(t=q),void 0===r&&(r="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[G]=zr,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=r,v(Map)||n(18),Sn((function(){i.keysAtom_=$("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,e&&i.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!dt.trackingDerivation)return this.has_(e);var r=this.hasMap_.get(e);if(!r){var n=r=new Ge(this.has_(e),K,"ObservableMap.key?",!1);this.hasMap_.set(e,n),Wt(n,(function(){return t.hasMap_.delete(e)}))}return r.get()},t.set=function(e,t){var r=this.has_(e);if(wr(this)){var n=Ar(this,{type:r?Or:Gr,object:this,newValue:t,name:e});if(!n)return this;t=n.newValue}return r?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((this.keysAtom_,wr(this))&&!Ar(this,{type:Wr,object:this,name:e}))return!1;if(this.has_(e)){var r=_r(this),n=r?{observableKind:"map",debugObjectName:this.name_,type:Wr,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return yr((function(){var r;t.keysAtom_.reportChanged(),null==(r=t.hasMap_.get(e))||r.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),r&&Pr(this,n),!0}return!1},t.updateValue_=function(e,t){var r=this.data_.get(e);if((t=r.prepareNewValue_(t))!==dt.UNCHANGED){var n=_r(this),i=n?{observableKind:"map",debugObjectName:this.name_,type:Or,object:this,oldValue:r.value_,name:e,newValue:t}:null;0,r.setNewValue_(t),n&&Pr(this,i)}},t.addValue_=function(e,t){var r=this;this.keysAtom_,yr((function(){var n,i=new Ge(t,r.enhancer_,"ObservableMap.key",!1);r.data_.set(e,i),t=i.value_,null==(n=r.hasMap_.get(e))||n.setNewValue_(!0),r.keysAtom_.reportChanged()}));var n=_r(this),i=n?{observableKind:"map",debugObjectName:this.name_,type:Gr,object:this,name:e,newValue:t}:null;n&&Pr(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return In({next:function(){var r=t.next(),n=r.done,i=r.value;return{done:n,value:n?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return In({next:function(){var r=t.next(),n=r.done,i=r.value;return{done:n,value:n?void 0:[i,e.get(i)]}}})},t[jr]=function(){return this.entries()},t.forEach=function(e,t){for(var r,n=B(this);!(r=n()).done;){var i=r.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return qr(e)&&(e=new Map(e)),yr((function(){E(e)?function(e){var t=Object.keys(e);if(!I)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter((function(t){return l.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(r){return t.set(r,e[r])})):Array.isArray(e)?e.forEach((function(e){var r=e[0],n=e[1];return t.set(r,n)})):x(e)?(e.constructor!==Map&&n(19,e),e.forEach((function(e,r){return t.set(r,e)}))):null!=e&&n(20,e)})),this},t.clear=function(){var e=this;yr((function(){rt((function(){for(var t,r=B(e.keys());!(t=r()).done;){var n=t.value;e.delete(n)}}))}))},t.replace=function(e){var t=this;return yr((function(){for(var r,i=function(e){if(x(e)||qr(e))return e;if(Array.isArray(e))return new Map(e);if(E(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}return n(21,e)}(e),o=new Map,a=!1,s=B(t.data_.keys());!(r=s()).done;){var c=r.value;if(!i.has(c))if(t.delete(c))a=!0;else{var l=t.data_.get(c);o.set(c,l)}}for(var u,d=B(i.entries());!(u=d()).done;){var f=u.value,p=f[0],h=f[1],m=t.data_.has(p);if(t.set(p,h),t.data_.has(p)){var y=t.data_.get(p);o.set(p,y),m||(a=!0)}}if(!a)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var v=t.data_.keys(),g=o.keys(),b=v.next(),w=g.next();!b.done;){if(b.value!==w.value){t.keysAtom_.reportChanged();break}b=v.next(),w=g.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return xr(this,e)},t.intercept_=function(e){return Sr(this,e)},N(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Br,get:function(){return"Map"}}]),e}(),qr=_("ObservableMap",Yr);var Kr={};Hr=Symbol.iterator,$r=Symbol.toStringTag;var Qr=function(){function e(e,t,r){var i=this;void 0===t&&(t=q),void 0===r&&(r="ObservableSet"),this.name_=void 0,this[G]=Kr,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=r,v(Set)||n(22),this.enhancer_=function(e,n){return t(e,n,r)},Sn((function(){i.atom_=$(i.name_),e&&i.replace(e)}))}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;yr((function(){rt((function(){for(var t,r=B(e.data_.values());!(t=r()).done;){var n=t.value;e.delete(n)}}))}))},t.forEach=function(e,t){for(var r,n=B(this);!(r=n()).done;){var i=r.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if((this.atom_,wr(this))&&!Ar(this,{type:Gr,object:this,newValue:e}))return this;if(!this.has(e)){yr((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var r=!1,n=_r(this),i=n?{observableKind:"set",debugObjectName:this.name_,type:Gr,object:this,newValue:e}:null;r,n&&Pr(this,i)}return this},t.delete=function(e){var t=this;if(wr(this)&&!Ar(this,{type:Wr,object:this,oldValue:e}))return!1;if(this.has(e)){var r=_r(this),n=r?{observableKind:"set",debugObjectName:this.name_,type:Wr,object:this,oldValue:e}:null;return yr((function(){t.atom_.reportChanged(),t.data_.delete(e)})),r&&Pr(this,n),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),r=Array.from(this.values());return In({next:function(){var n=e;return e+=1,n<r.length?{value:[t[n],r[n]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,r=Array.from(this.data_.values());return In({next:function(){return t<r.length?{value:e.dehanceValue_(r[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return Xr(e)&&(e=new Set(e)),yr((function(){Array.isArray(e)||P(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&n("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return xr(this,e)},t.intercept_=function(e){return Sr(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Hr]=function(){return this.values()},N(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:$r,get:function(){return"Set"}}]),e}(),Xr=_("ObservableSet",Qr),Zr=Object.create(null),Jr="remove",en=function(){function e(e,t,r,n){void 0===t&&(t=new Map),void 0===n&&(n=fe),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=r,this.defaultAnnotation_=n,this.keysAtom_=new W("ObservableObject.keys"),this.isPlainObject_=E(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var r=this.values_.get(e);if(r instanceof Ye)return r.set(t),!0;if(wr(this)){var n=Ar(this,{type:Or,object:this.proxy_||this.target_,name:e,newValue:t});if(!n)return null;t=n.newValue}if((t=r.prepareNewValue_(t))!==dt.UNCHANGED){var i=_r(this),o=i?{type:Or,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:r.value_,name:e,newValue:t}:null;0,r.setNewValue_(t),i&&Pr(this,o)}return!0},t.get_=function(e){return dt.trackingDerivation&&!T(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,r){return void 0===r&&(r=!1),T(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):r?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,r)},t.has_=function(e){if(!dt.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Ge(e in this.target_,K,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(sn(this,t,e),!(e in this.target_)){var r;if(null!=(r=this.target_[V])&&r[e])return;n(1,t.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==l;){var o=s(i,e);if(o){var a=t.make_(this,e,o,i);if(0===a)return;if(1===a)break}i=Object.getPrototypeOf(i)}an(this,t,e)}},t.extend_=function(e,t,r,n){if(void 0===n&&(n=!1),!0===r&&(r=this.defaultAnnotation_),!1===r)return this.defineProperty_(e,t,n);sn(this,r,e);var i=r.extend_(this,e,t,n);return i&&an(this,r,e),i},t.defineProperty_=function(e,t,r){void 0===r&&(r=!1),this.keysAtom_;try{mt();var n=this.delete_(e);if(!n)return n;if(wr(this)){var i=Ar(this,{object:this.proxy_||this.target_,name:e,type:Gr,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=L({},t,{value:o}))}if(r){if(!Reflect.defineProperty(this.target_,e,t))return!1}else c(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{yt()}return!0},t.defineObservableProperty_=function(e,t,r,n){void 0===n&&(n=!1),this.keysAtom_;try{mt();var i=this.delete_(e);if(!i)return i;if(wr(this)){var o=Ar(this,{object:this.proxy_||this.target_,name:e,type:Gr,newValue:t});if(!o)return null;t=o.newValue}var a=nn(e),s={configurable:!dt.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(n){if(!Reflect.defineProperty(this.target_,e,s))return!1}else c(this.target_,e,s);var l=new Ge(t,r,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{yt()}return!0},t.defineComputedProperty_=function(e,t,r){void 0===r&&(r=!1),this.keysAtom_;try{mt();var n=this.delete_(e);if(!n)return n;if(wr(this))if(!Ar(this,{object:this.proxy_||this.target_,name:e,type:Gr,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=nn(e),o={configurable:!dt.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(r){if(!Reflect.defineProperty(this.target_,e,o))return!1}else c(this.target_,e,o);this.values_.set(e,new Ye(t)),this.notifyPropertyAddition_(e,void 0)}finally{yt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!T(this.target_,e))return!0;if(wr(this)&&!Ar(this,{object:this.proxy_||this.target_,name:e,type:Jr}))return null;try{var r,n;mt();var i,o=_r(this),a=this.values_.get(e),c=void 0;if(!a&&o)c=null==(i=s(this.target_,e))?void 0:i.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(a&&(this.values_.delete(e),a instanceof Ge&&(c=a.value_),gt(a)),this.keysAtom_.reportChanged(),null==(r=this.pendingKeys_)||null==(n=r.get(e))||n.set(e in this.target_),o){var l={type:Jr,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:e};0,o&&Pr(this,l)}}finally{yt()}return!0},t.observe_=function(e,t){return xr(this,e)},t.intercept_=function(e){return Sr(this,e)},t.notifyPropertyAddition_=function(e,t){var r,n,i=_r(this);if(i){var o=i?{type:Gr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;0,i&&Pr(this,o)}null==(r=this.pendingKeys_)||null==(n=r.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),k(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function tn(e,t){var r;if(T(e,G))return e;var n=null!=(r=null==t?void 0:t.name)?r:"ObservableObject",i=new en(e,new Map,String(n),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:pe(e):void 0}(t));return S(e,G,i),e}var rn=_("ObservableObjectAdministration",en);function nn(e){return Zr[e]||(Zr[e]={get:function(){return this[G].getObservablePropValue_(e)}
2,set:function(t){return this[G].setObservablePropValue_(e,t)}})}function on(e){return!!b(e)&&rn(e[G])}function an(e,t,r){var n;null==(n=e.target_[V])||delete n[r]}function sn(e,t,r){}var cn,ln,un=mn(0),dn=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),fn=0,pn=function(){};cn=pn,ln=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(cn.prototype,ln):void 0!==cn.prototype.__proto__?cn.prototype.__proto__=ln:cn.prototype=ln;var hn=function(e,t,r){function n(t,r,n,i){var o;return void 0===n&&(n="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this,Sn((function(){var e=new Cr(n,r,i,!0);e.proxy_=F(o),A(F(o),G,e),t&&t.length&&o.spliceWithArray(0,0,t),dn&&Object.defineProperty(F(o),"0",un)})),o}D(n,e);var i=n.prototype;return i.concat=function(){this[G].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return Ur(e)?e.slice():e})))},i[r]=function(){var e=this,t=0;return In({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},N(n,[{key:"length",get:function(){return this[G].getArrayLength_()},set:function(e){this[G].setArrayLength_(e)}},{key:t,get:function(){return"Array"}}]),n}(pn,Symbol.toStringTag,Symbol.iterator);function mn(e){return{enumerable:!1,configurable:!0,get:function(){return this[G].get_(e)},set:function(t){this[G].set_(e,t)}}}function yn(e){c(hn.prototype,""+e,mn(e))}function vn(e){if(e>fn){for(var t=fn;t<e+100;t++)yn(t);fn=e}}function gn(e,t,r){return new hn(e,t,r)}function bn(e,t){if("object"==typeof e&&null!==e){if(Ur(e))return void 0!==t&&n(23),e[G].atom_;if(Xr(e))return e.atom_;if(qr(e)){if(void 0===t)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||n(25,t,wn(e)),r}if(on(e)){if(!t)return n(26);var i=e[G].values_.get(t);return i||n(27,t,wn(e)),i}if(H(e)||qe(e)||_t(e))return e}else if(v(e)&&_t(e[G]))return e[G];n(28)}function En(e,t){return e||n(29),void 0!==t?En(bn(e,t)):H(e)||qe(e)||_t(e)||qr(e)||Xr(e)?e:e[G]?e[G]:void n(24,e)}function wn(e,t){var r;if(void 0!==t)r=bn(e,t);else{if(Mt(e))return e.name;r=on(e)||qr(e)||Xr(e)?En(e):bn(e)}return r.name_}function Sn(e){var t=nt(),r=Ve(!0);mt();try{return e()}finally{yt(),Ue(r),it(t)}}Object.entries(Nr).forEach((function(e){var t=e[0],r=e[1];"concat"!==t&&S(hn.prototype,t,r)})),vn(1e3);var An=l.toString;function _n(e,t,r){return void 0===r&&(r=-1),xn(e,t,r)}function xn(e,t,r,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var a=An.call(e);if(a!==An.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++}e=Pn(e),t=Pn(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var c=e.constructor,l=t.constructor;if(c!==l&&!(v(c)&&c instanceof c&&v(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===r)return!1;r<0&&(r=-1),i=i||[];for(var u=(n=n||[]).length;u--;)if(n[u]===e)return i[u]===t;if(n.push(e),i.push(t),s){if((u=e.length)!==t.length)return!1;for(;u--;)if(!xn(e[u],t[u],r-1,n,i))return!1}else{var d,f=Object.keys(e);if(u=f.length,Object.keys(t).length!==u)return!1;for(;u--;)if(!T(t,d=f[u])||!xn(e[d],t[d],r-1,n,i))return!1}return n.pop(),i.pop(),!0}function Pn(e){return Ur(e)?e.slice():x(e)||qr(e)||P(e)||Xr(e)?Array.from(e.entries()):e}function In(e){return e[Symbol.iterator]=kn,e}function kn(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===o()[e]&&n("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:wn},$mobx:G})},61513:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in o=Object(arguments[c]))r.call(o,l)&&(s[l]=o[l]);if(t){a=t(o);for(var u=0;u<a.length;u++)n.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},36999:(e,t,r)=>{"use strict";var n=r(36848);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
2:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},39067:(e,t,r)=>{e.exports=r(36999)()},36848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},57228:(e,t,r)=>{"use strict";r.d(t,{h:()=>_});var n=r(14041),i=r(30840),o=r(35101),a=r(25870),s=r(14951),c=r(89707),l=r(4153),u=r(60305),d=r(45394),f=r(14742),p=r(84193),h=r(61905),m=r(36718),y=r(76516),v=r(56981),g=r(17755),b=r(90395),E=r(87153),w=r(22621),S=r(77034),A=r(67138);function _(e){const{components:t,formatters:r,labels:_,dateLib:x,locale:P,classNames:I}=(0,n.useMemo)((()=>({dateLib:(0,c.a)(e.dateLib),components:(0,a.P)(e.components),formatters:(0,u.G)(e.formatters),labels:{...m,...e.labels},locale:{...y.c,...e.locale},classNames:{...(0,l.a)(),...e.classNames}})),[e.classNames,e.components,e.dateLib,e.formatters,e.labels,e.locale]),{captionLayout:k,firstWeekContainsDate:O,mode:T,onDayBlur:C,onDayClick:R,onDayFocus:N,onDayKeyDown:L,onDayMouseEnter:D,onDayMouseLeave:M,onNextClick:F,onPrevClick:j,showWeekNumber:B,styles:V,useAdditionalDayOfYearTokens:U,useAdditionalWeekYearTokens:z,weekStartsOn:G}=e,W={locale:P,weekStartsOn:G,firstWeekContainsDate:O,useAdditionalWeekYearTokens:z,useAdditionalDayOfYearTokens:U},H=W,{formatCaption:$,formatDay:Y,formatMonthDropdown:q,formatWeekNumber:K,formatWeekNumberHeader:Q,formatWeekdayName:X,formatYearDropdown:Z}=r,J=(0,v._)(e,x),{days:ee,months:te,navStart:re,navEnd:ne,previousMonth:ie,nextMonth:oe,goToMonth:ae}=J,se=(0,E.g)(ee,e,x),{isSelected:ce,select:le,selected:ue}=(0,w.C)(e,x)??{},{blur:de,focused:fe,isFocusTarget:pe,moveFocus:he,setFocused:me}=(0,b.i)(e,J,se,ce??(()=>!1),x),{labelDayButton:ye,labelGridcell:ve,labelGrid:ge,labelMonthDropdown:be,labelNav:Ee,labelWeekday:we,labelWeekNumber:Se,labelWeekNumberHeader:Ae,labelYearDropdown:_e}=_,xe=(0,n.useMemo)((()=>(0,p.c)(P,e.weekStartsOn,e.ISOWeek,e.timeZone,x)),[x,P,e.ISOWeek,e.timeZone,e.weekStartsOn]),Pe=void 0!==T||void 0!==R,Ie=(0,n.useCallback)((()=>{ie&&(ae(ie),j?.(ie))}),[ie,ae,j]),ke=(0,n.useCallback)((()=>{oe&&(ae(oe),F?.(oe))}),[ae,oe,F]),Oe=(0,n.useCallback)(((e,t)=>r=>{r.preventDefault(),r.stopPropagation(),me(e),le?.(e.date,t,r),R?.(e.date,t,r)}),[le,R,me]),Te=(0,n.useCallback)(((e,t)=>r=>{me(e),N?.(e.date,t,r)}),[N,me]),Ce=(0,n.useCallback)(((e,t)=>r=>{de(),C?.(e.date,t,r)}),[de,C]),Re=(0,n.useCallback)(((t,r)=>n=>{const i={ArrowLeft:["day","rtl"===e.dir?"after":"before"],ArrowRight:["day","rtl"===e.dir?"before":"after"],ArrowDown:["week","after"],ArrowUp:["week","before"],PageUp:[n.shiftKey?"year":"month","before"],PageDown:[n.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(i[n.key]){n.preventDefault(),n.stopPropagation();const[e,t]=i[n.key];he(e,t)}L?.(t.date,r,n)}),[he,L,e.dir]),Ne=(0,n.useCallback)(((e,t)=>r=>{D?.(e.date,t,r)}),[D]),Le=(0,n.useCallback)(((e,t)=>r=>{M?.(e.date,t,r)}),[M]),{className:De,style:Me}=(0,n.useMemo)((()=>({className:[I[i.UI.Root],e.className].filter(Boolean).join(" "),style:{...V?.[i.UI.Root],...e.style}})),[I,e.className,e.style,V]),Fe=(0,s.C)(e),je={selected:ue,select:le,isSelected:ce,months:te,nextMonth:oe,previousMonth:ie,goToMonth:ae,getModifiers:se,components:t,classNames:I,styles:V,labels:_,formatters:r};return n.createElement(g.S.Provider,{value:je},n.createElement(t.Root,{className:De,style:Me,dir:e.dir,id:e.id,lang:e.lang,nonce:e.nonce,title:e.title,...Fe},n.createElement(t.Months,{className:I[i.UI.Months],style:V?.[i.UI.Months]},!e.hideNavigation&&n.createElement(t.Nav,{className:I[i.UI.Nav],style:V?.[i.UI.Nav],"aria-label":Ee(),onPreviousClick:Ie,onNextClick:ke,previousMonth:ie,nextMonth:oe}),te.map(((a,s)=>{const c=(0,d.L)(a.date,re,ne,r,P,x),l=(0,h.g)(te[0].date,re,ne,r,x);return n.createElement(t.Month,{className:I[i.UI.Month],style:V?.[i.UI.Month],key:s,displayIndex:s,calendarMonth:a},n.createElement(t.MonthCaption,{className:I[i.UI.MonthCaption],style:V?.[i.UI.MonthCaption],calendarMonth:a,displayIndex:s},k?.startsWith("dropdown")?n.createElement(t.DropdownNav,{className:I[i.UI.Dropdowns],style:V?.[i.UI.Dropdowns]},"dropdown"===k||"dropdown-months"===k?n.createElement(t.MonthsDropdown,{className:I[i.UI.MonthsDropdown],"aria-label":be(),classNames:I,components:t,disabled:Boolean(e.disableNavigation),onChange:e=>{const t=Number(e.target.value),r=x.setMonth(x.startOfMonth(a.date),t);ae(r)},options:c,style:V?.[i.UI.Dropdown],value:a.date.getMonth()}):n.createElement("span",{role:"status","aria-live":"polite"},q(a.date.getMonth())),"dropdown"===k||"dropdown-years"===k?n.createElement(t.YearsDropdown,{className:I[i.UI.YearsDropdown],"aria-label":_e(H),classNames:I,components:t,disabled:Boolean(e.disableNavigation),onChange:e=>{const t=x.setYear(x.startOfMonth(a.date),Number(e.target.value));ae(t)},options:l,style:V?.[i.UI.Dropdown],value:a.date.getFullYear()}):n.createElement("span",{role:"status","aria-live":"polite"},Z(a.date.getFullYear()))):n.createElement(t.CaptionLabel,{className:I[i.UI.CaptionLabel],role:"status","aria-live":"polite"},$(a.date,W,x))),n.createElement(t.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===T||"range"===T,"aria-label":ge(a.date,H,x)||void 0,className:I[i.UI.MonthGrid],style:V?.[i.UI.MonthGrid]},!e.hideWeekdays&&n.createElement(t.Weekdays,{className:I[i.UI.Weekdays],style:V?.[i.UI.Weekdays]},B&&n.createElement(t.WeekNumberHeader,{"aria-label":Ae(H),className:I[i.UI.WeekNumberHeader],style:V?.[i.UI.WeekNumberHeader],scope:"col"},Q()),xe.map(((e,r)=>n.createElement(t.Weekday,{"aria-label":we(e,H,x),className:I[i.UI.Weekday],key:r,style:V?.[i.UI.Weekday],scope:"col"},X(e,W,x))))),n.createElement(t.Weeks,{className:I[i.UI.Weeks],style:V?.[i.UI.Weeks]},a.weeks.map(((r,a)=>n.createElement(t.Week,{className:I[i.UI.Week],key:r.weekNumber,style:V?.[i.UI.Week],week:r},B&&n.createElement(t.WeekNumber,{week:r,style:V?.[i.UI.WeekNumber],"aria-label":Se(r.weekNumber,{locale:P}),className:I[i.UI.WeekNumber],scope:"row"},K(r.weekNumber)),r.days.map((r=>{const{date:a}=r,s=se(r);if(s[i.p.focused]=!s.hidden&&Boolean(fe?.isEqualTo(r)),s[i.w.selected]=!s.disabled&&(ce?.(a)||s.selected),(0,A.oM)(ue)){const{from:e,to:t}=ue;s[i.w.range_start]=Boolean(e&&t&&x.isSameDay(a,e)),s[i.w.range_end]=Boolean(e&&t&&x.isSameDay(a,t)),s[i.w.range_middle]=(0,S.R)(ue,a,!0,x)}const c=(0,f.J)(s,V,e.modifiersStyles),l=(0,o.k)(s,I,e.modifiersClassNames),u=Pe?void 0:ve(a,s,H,x);return n.createElement(t.Day,{key:`${x.format(a,"yyyy-MM-dd")}_${x.format(r.displayMonth,"yyyy-MM")}`,day:r,modifiers:s,className:l.join(" "),style:c,"aria-hidden":s.hidden||void 0,"aria-selected":s.selected||void 0,"aria-label":u,"data-day":x.format(a,"yyyy-MM-dd"),"data-month":r.outside?x.format(a,"yyyy-MM"):void 0,"data-selected":s.selected||void 0,"data-disabled":s.disabled||void 0,"data-hidden":s.hidden||void 0,"data-outside":r.outside||void 0,"data-focused":s.focused||void 0,"data-today":s.today||void 0},Pe?n.createElement(t.DayButton,{className:I[i.UI.DayButton],style:V?.[i.UI.DayButton],type:"button",day:r,modifiers:s,disabled:s.disabled||void 0,tabIndex:pe(r)?0:-1,"aria-label":ye(a,s,H,x),onClick:Oe(r,
2s),onBlur:Ce(r,s),onFocus:Te(r,s),onKeyDown:Re(r,s),onMouseEnter:Ne(r,s),onMouseLeave:Le(r,s)},Y(a,W,x)):Y(r.date,W,x))}))))))))}))),e.footer&&n.createElement(t.Footer,{className:I[i.UI.Footer],style:V?.[i.UI.Footer],role:"status","aria-live":"polite"},e.footer)))}},30840:(e,t,r)=>{"use strict";var n,i,o;r.d(t,{UI:()=>n,p:()=>i,w:()=>o}),function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(n||(n={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(i||(i={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(o||(o={}))},24859:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});var n=r(96940);class i{constructor(e,t,r=n.c){this.date=e,this.displayMonth=t,this.outside=Boolean(t&&!r.isSameMonth(e,t)),this.dateLib=r}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}},39703:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});class n{constructor(e,t){this.date=e,this.weeks=t}}},59173:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});class n{constructor(e,t){this.days=t,this.weekNumber=e}}},72243:(e,t,r)=>{"use strict";r.d(t,{P8:()=>n.P,jA:()=>o.j,jK:()=>i.j});var n=r(24859),i=r(39703),o=r(59173)},23917:(e,t,r)=>{"use strict";r.d(t,{$:()=>i});var n=r(14041);function i(e){return n.createElement("button",{...e})}},97573:(e,t,r)=>{"use strict";r.d(t,{$:()=>i});var n=r(14041);function i(e){return n.createElement("span",{...e})}},18238:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(14041);function i(e){const{size:t=24,orientation:r="left",className:i}=e;return n.createElement("svg",{className:i,width:t,height:t,viewBox:"0 0 24 24"},"up"===r&&n.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===r&&n.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===r&&n.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===r&&n.createElement("polygon",{points:"8 18.612 14.1888889 12.5 8 6.37733333 9.91111111 4.5 18 12.5 9.91111111 20.5"}))}},84887:(e,t,r)=>{"use strict";r.d(t,{L:()=>i});var n=r(14041);function i(e){const{day:t,modifiers:r,...i}=e;return n.createElement("td",{...i})}},80379:(e,t,r)=>{"use strict";r.d(t,{x:()=>i});var n=r(14041);function i(e){const{day:t,modifiers:r,...i}=e,o=n.useRef(null);return n.useEffect((()=>{r.focused&&o.current?.focus()}),[r.focused]),n.createElement("button",{ref:o,...i})}},78096:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(14041),i=r(30840);function o(e){const{options:t,className:r,components:o,classNames:a,...s}=e,c=[a[i.UI.Dropdown],r].join(" "),l=t?.find((({value:e})=>e===s.value));return n.createElement("span",{"data-disabled":s.disabled,className:a[i.UI.DropdownRoot]},n.createElement(o.Select,{className:c,...s},t?.map((({value:e,label:t,disabled:r})=>n.createElement(o.Option,{key:e,value:e,disabled:r},t)))),n.createElement("span",{className:a[i.UI.CaptionLabel],"aria-hidden":!0},l?.label,n.createElement(o.Chevron,{orientation:"down",size:18,className:a[i.UI.Chevron]})))}},75027:(e,t,r)=>{"use strict";r.d(t,{z:()=>i});var n=r(14041);function i(e){return n.createElement("div",{...e})}},79046:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(14041);function i(e){return n.createElement("div",{...e})}},95131:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(14041);function i(e){const{calendarMonth:t,displayIndex:r,...i}=e;return n.createElement("div",{...i},e.children)}},99249:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});var n=r(14041);function i(e){const{calendarMonth:t,displayIndex:r,...i}=e;return n.createElement("div",{...i})}},79883:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(14041);function i(e){return n.createElement("table",{...e})}},26094:(e,t,r)=>{"use strict";r.d(t,{i:()=>i});var n=r(14041);function i(e){return n.createElement("div",{...e})}},31711:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var n=r(14041),i=r(17755);function o(e){const{components:t}=(0,i.w)();return n.createElement(t.Dropdown,{...e})}},17360:(e,t,r)=>{"use strict";r.d(t,{s:()=>a});var n=r(14041),i=r(30840),o=r(17755);function a(e){const{onPreviousClick:t,onNextClick:r,previousMonth:a,nextMonth:s,...c}=e,{components:l,classNames:u,labels:{labelPrevious:d,labelNext:f}}=(0,o.w)();return n.createElement("nav",{...c},n.createElement(l.PreviousMonthButton,{type:"button",className:u[i.UI.PreviousMonthButton],tabIndex:a?void 0:-1,disabled:!a||void 0,"aria-label":d(a),onClick:e.onPreviousClick},n.createElement(l.Chevron,{disabled:!a||void 0,className:u[i.UI.Chevron],orientation:"left"})),n.createElement(l.NextMonthButton,{type:"button",className:u[i.UI.NextMonthButton],tabIndex:s?void 0:-1,disabled:!s||void 0,"aria-label":f(s),onClick:e.onNextClick},n.createElement(l.Chevron,{disabled:!s||void 0,orientation:"right",className:u[i.UI.Chevron]}
2)))}},66360:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(14041),i=r(17755);function o(e){const{components:t}=(0,i.w)();return n.createElement(t.Button,{...e})}},5372:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(14041);function i(e){return n.createElement("option",{...e})}},59416:(e,t,r)=>{"use strict";r.d(t,{u:()=>o});var n=r(14041),i=r(17755);function o(e){const{components:t}=(0,i.w)();return n.createElement(t.Button,{...e})}},97649:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(14041);function i(e){return n.createElement("div",{...e})}},93989:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(14041);function i(e){return n.createElement("select",{...e})}},55449:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var n=r(14041);function i(e){const{week:t,...r}=e;return n.createElement("tr",{...r})}},44256:(e,t,r)=>{"use strict";r.d(t,{u:()=>i});var n=r(14041);function i(e){const{week:t,...r}=e;return n.createElement("th",{...r})}},50549:(e,t,r)=>{"use strict";r.d(t,{t:()=>i});var n=r(14041);function i(e){return n.createElement("th",{...e})}},79411:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});var n=r(14041);function i(e){return n.createElement("th",{...e})}},42198:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var n=r(14041);function i(e){return n.createElement("thead",null,n.createElement("tr",{...e}))}},88668:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(14041);function i(e){return n.createElement("tbody",{...e})}},99346:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var n=r(14041),i=r(17755);function o(e){const{components:t}=(0,i.w)();return n.createElement(t.Dropdown,{...e})}},89991:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Button:()=>n.$,CaptionLabel:()=>i.$,Chevron:()=>o.c,Day:()=>a.L,DayButton:()=>s.x,Dropdown:()=>c.m,DropdownNav:()=>l.z,Footer:()=>u.w,Month:()=>d.f,MonthCaption:()=>f.P,MonthGrid:()=>p.D,Months:()=>h.i,MonthsDropdown:()=>m.l,Nav:()=>y.s,NextMonthButton:()=>v.i,Option:()=>g.c,PreviousMonthButton:()=>b.u,Root:()=>E.b,Select:()=>w.l,Week:()=>S.j,WeekNumber:()=>x.u,WeekNumberHeader:()=>P.t,Weekday:()=>A.B,Weekdays:()=>_.S,Weeks:()=>I.m,YearsDropdown:()=>k.w});var n=r(23917),i=r(97573),o=r(18238),a=r(84887),s=r(80379),c=r(78096),l=r(75027),u=r(79046),d=r(95131),f=r(99249),p=r(79883),h=r(26094),m=r(31711),y=r(17360),v=r(66360),g=r(5372),b=r(59416),E=r(97649),w=r(93989),S=r(55449),A=r(79411),_=r(42198),x=r(44256),P=r(50549),I=r(88668),k=r(99346)},76053:(e,t,r)=>{"use strict";r.d(t,{G:()=>o,w:()=>i});var n=r(96940);function i(e,t,r=n.c){return r.format(e,"LLLL y",t)}const o=i},93677:(e,t,r)=>{"use strict";r.d(t,{i:()=>i});var n=r(96940);function i(e,t,r=n.c){return r.format(e,"d",t)}},65444:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(76516);function i(e,t=n.c){return t.localize?.month(e)}},40774:(e,t,r)=>{"use strict";function n(e){return e<10?`0${e.toLocaleString()}`:`${e.toLocaleString()}`}r.d(t,{n:()=>n})},46519:(e,t,r)=>{"use strict";function n(){return""}r.d(t,{U:()=>n})},64614:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(96940);function i(e,t,r=n.c){return r.format(e,"cccccc",t)}},475:(e,t,r)=>{"use strict";function n(e){return e.toString()}r.d(t,{D:()=>i,e:()=>n});const i=n},38350:(e,t,r)=>{"use strict";r.r(t),r.d(t,{formatCaption:()=>n.w,formatDay:()=>i.i,formatMonthCaption:()=>n.G,formatMonthDropdown:()=>o.Z,formatWeekNumber:()=>a.n,formatWeekNumberHeader:()=>s.U,formatWeekdayName:()=>c.Z,formatYearCaption:()=>l.D,formatYearDropdown:()=>l.e});var n=r(76053),i=r(93677),o=r(65444),a=r(40774),s=r(46519),c=r(64614),l=r(475)},8993:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(30840);function i(e,t,r,i){let o,a=0,s=!1;for(;a<e.length&&!s;){const c=e[a],l=t(c);l[n.p.disabled]||l[n.p.hidden]||l[n.p.outside]||(l[n.p.focused]||i?.isEqualTo(c)||r(c.date)||l[n.p.today])&&(o=c,s=!0),a++}return o||(o=e.find((e=>{const r=t(e);return!r[n.p.disabled]&&!r[n.p.hidden]&&!r[n.p.outside]}))),o}},35101:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});var n=r(30840);function i(e,t,r={}){return Object.entries(e).filter((([,e])=>!0===e)).reduce(((e,[i])=>(r[i]?e.push(r[i]):t[n.p[i]]?e.push(t[n.p[i]]):t[n.w[i]]&&e.push(t[n.w[i]]),e)),[t[n.UI.Day]])}},25870:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});var n=r(89991);function i(e){return{...n,...e}}},14951:(e,t,r)=>{"use strict";function n(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0};return Object.entries(e).forEach((([e,r])=>{e.startsWith("data-")&&(t[e]=r)})),t}r.d(t,{C:()=>n})},89707:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(26859);function i(e){return{...n.c,...e}}},50581:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i});const n=42;function i(e,t,r,i){const o=e[0],a=e[e.length-1],{ISOWeek:s,fixedWeeks:c,locale:l,weekStartsOn:u}=r??{},{startOfWeek:d,endOfWeek:f,startOfISOWeek:p,endOfISOWeek:h,addDays:m,differenceInCalendarDays:y,differenceInCalendarMonths:v,isAfter:g,endOfMonth:b}=i,E=s?p(o):d(o,{weekStartsOn:u,locale:l}),w=y(s?h(b(a)):f(b(a),{weekStartsOn:u,locale:l}),E),S=v(a,o)+1,A=[];for(let e=0;e<=w;e++){const r=m(E,e);if(t&&g(r,t))break;A.push(r)}const _=n*S;if(c&&A.length<_)for(let e=0;e<7;e++){const e=m(A[A.length-1],1);A.push(e)}return A}},6265:(e,t,r)=>{"use strict";function n(e){return e.reduce(((e,t)=>[...e,...t.weeks.reduce(((e,t)=>[...e,...t.days]),[])]),[])}r.d(t,{_:()=>n})},4153:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(30840);function i(){const e={};for(const t in n.UI)e[n.UI[t]]=`rdp-${n.UI[t]}`;for(const t in n.p)e[n.p[t]]=`rdp-${n.p[t]}`;
2for(const t in n.w)e[n.w[t]]=`rdp-${n.w[t]}`;return e}},94593:(e,t,r)=>{"use strict";function n(e,t,r,n){const{numberOfMonths:i=1}=r,o=[];for(let r=0;r<i;r++){const i=n.addMonths(e,r);if(t&&i>t)break;o.push(i)}return o}r.d(t,{o:()=>n})},13932:(e,t,r)=>{"use strict";function n(e,t,r,n,i,o,a){const{weekStartsOn:s,locale:c,ISOWeek:l}=o,{addDays:u,addMonths:d,addYears:f,addWeeks:p,startOfISOWeek:h,endOfISOWeek:m,startOfWeek:y,endOfWeek:v,max:g,min:b}=a;let E={day:u,week:p,month:d,year:f,startOfWeek:e=>l?h(e):y(e,{locale:c,weekStartsOn:s}),endOfWeek:e=>l?m(e):v(e,{locale:c,weekStartsOn:s})}[e](r,"after"===t?1:-1);return"before"===t&&n?E=g([n,E]):"after"===t&&i&&(E=b([i,E])),E}r.d(t,{l:()=>n})},60305:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(38350);function i(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...n,...e}}},35024:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(55541);function i(e,t){const{month:r,defaultMonth:i,today:o=(e.timeZone?n.BB.tz(e.timeZone):t.Date?new t.Date:new Date),numberOfMonths:a=1,endMonth:s,startMonth:c}=e;let l=r||i||o;const{differenceInCalendarMonths:u,addMonths:d,startOfMonth:f}=t;if(s&&u(s,l)<0){l=d(s,-1*(a-1))}return c&&u(l,c)<0&&(l=c),f(l)}},45394:(e,t,r)=>{"use strict";function n(e,t,r,n,i,o){if(!t)return;if(!r)return;const{addMonths:a,startOfMonth:s,isBefore:c}=o,l=e.getFullYear(),u=[];let d=t;for(;u.length<12&&c(d,a(r,1));)u.push(d.getMonth()),d=a(d,1);const f=u.sort(((e,t)=>e-t)).map((e=>{const a=n.formatMonthDropdown(e,i),c=o.Date?new o.Date(l,e):new Date(l,e);return{value:e,label:a,disabled:t&&c<s(t)||r&&c>s(r)||!1}}));return f}r.d(t,{L:()=>n})},98001:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var n=r(72243);function i(e,t,r,i){const{startOfWeek:o,endOfWeek:a,startOfISOWeek:s,endOfISOWeek:c,endOfMonth:l,addDays:u,getWeek:d,getISOWeek:f}=i,p=e.reduce(((e,p)=>{const h=r.ISOWeek?s(p):o(p,{locale:r.locale,weekStartsOn:r.weekStartsOn}),m=r.ISOWeek?c(l(p)):a(l(p),{locale:r.locale,weekStartsOn:r.weekStartsOn}),y=t.filter((e=>e>=h&&e<=m));if(r.fixedWeeks&&y.length<42){const e=t.filter((e=>e>m&&e<=u(m,7)));y.push(...e)}const v=y.reduce(((e,t)=>{const o=r.ISOWeek?f(t):d(t,{locale:r.locale,weekStartsOn:r.weekStartsOn,firstWeekContainsDate:r.firstWeekContainsDate}),a=e.find((e=>e.weekNumber===o)),s=new n.P8(t,p,i);return a?a.days.push(s):e.push(new n.jA(o,[s])),e}),[]),g=new n.jK(p,v);return e.push(g),e}),[]);return r.reverseMonths?p.reverse():p}},30807:(e,t,r)=>{"use strict";r.d(t,{J:()=>i});var n=r(55541);function i(e,t){let{startMonth:r,endMonth:i}=e;const{startOfYear:o,startOfDay:a,startOfMonth:s,endOfMonth:c,addYears:l,endOfYear:u}=t,{fromYear:d,toYear:f,fromMonth:p,toMonth:h}=e;!r&&p&&(r=p),!r&&d&&(r=new Date(d,0,1)),!i&&h&&(i=h),!i&&f&&(i=new Date(f,11,31));const m=e.captionLayout?.startsWith("dropdown");if(r)r=s(r);else if(d)r=new Date(d,0,1);else if(!r&&m){r=o(l(e.today??(e.timeZone?n.BB.tz(e.timeZone):t.Date?new t.Date:new Date),-100))}if(i)i=c(i);else if(f)i=new Date(f,11,31);else if(!i&&m){i=u(e.today??(e.timeZone?n.BB.tz(e.timeZone):t.Date?new t.Date:new Date))}return[r?a(r):r,i?a(i):i]}},79643:(e,t,r)=>{"use strict";r.d(t,{O:()=>a});var n=r(72243),i=r(82249),o=r(13932);function a(e,t,r,s,c,l,u,d=0){if(d>365)return;const f=(0,o.l)(e,t,r.date,s,c,l,u),p=Boolean(l.disabled&&(0,i.k)(f,l.disabled,u)),h=Boolean(l.hidden&&(0,i.k)(f,l.hidden,u)),m=f,y=new n.P8(f,m,u);return p||h?a(e,t,y,s,c,l,u,d+1):y}},87773:(e,t,r)=>{"use strict";function n(e,t,r,n){if(r.disableNavigation)return;const{pagedNavigation:i,numberOfMonths:o=1}=r,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:c}=n,l=i?o:1,u=a(e);if(!t)return s(u,l);return c(t,e)<o?void 0:s(u,l)}r.d(t,{Q:()=>n})},64413:(e,t,r)=>{"use strict";function n(e,t,r,n){if(r.disableNavigation)return;const{pagedNavigation:i,numberOfMonths:o}=r,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:c}=n,l=i?o??1:1,u=a(e);if(!t)return s(u,-l);return c(u,t)<=0?void 0:s(u,-l)}r.d(t,{E:()=>n})},14742:(e,t,r)=>{"use strict";r.d(t,{J:()=>i});var n=r(30840);function i(e,t={},r={}){let i={...t?.[n.UI.Day]};return Object.entries(e).filter((([,e])=>
2!0===e)).forEach((([e])=>{i={...i,...r?.[e]}})),i}},84193:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(55541),i=r(96940);function o(e,t,r,o,a=i.c){const s=o?n.BB.tz(o):a.Date?new a.Date:new Date,c=r?a.startOfISOWeek(s):a.startOfWeek(s,{locale:e,weekStartsOn:t}),l=[];for(let e=0;e<7;e++){const t=a.addDays(c,e);l.push(t)}return l}},6937:(e,t,r)=>{"use strict";function n(e){return e.reduce(((e,t)=>[...e,...t.weeks]),[])}r.d(t,{C:()=>n})},61905:(e,t,r)=>{"use strict";function n(e,t,r,n,i){if(!t)return;if(!r)return;const{startOfMonth:o,startOfYear:a,endOfYear:s,addYears:c,isBefore:l,isSameYear:u}=i,d=e.getMonth(),f=a(t),p=s(r),h=[];let m=f;for(;l(m,p)||u(m,p);)h.push(m.getFullYear()),m=c(m,1);return h.map((e=>{const a=i.Date?new i.Date(e,d):new Date(e,d),s=t&&a<o(t)||d&&r&&a>o(r)||!1;return{value:e,label:n.formatYearDropdown(e),disabled:s}}))}r.d(t,{g:()=>n})},90470:(e,t,r)=>{"use strict";r(4153)},33478:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var n=r(14041);function i(e,t){const[r,i]=(0,n.useState)(e);return[void 0===t?r:t,i]}},98656:(e,t,r)=>{"use strict";r.d(t,{hv:()=>n.h});var n=r(57228);r(61902),r(72243),r(89991),r(96940),r(38350),r(90470),r(36718),r(90226),r(30840),r(17755)},36718:(e,t,r)=>{"use strict";r.r(t),r.d(t,{labelCaption:()=>n.t,labelDay:()=>o.Z,labelDayButton:()=>o.n,labelGrid:()=>n.b,labelGridcell:()=>i.P,labelMonthDropdown:()=>s.a,labelNav:()=>a.y,labelNext:()=>c.s,labelPrevious:()=>l.o,labelWeekNumber:()=>d.k,labelWeekNumberHeader:()=>f.N,labelWeekday:()=>u.n,labelYearDropdown:()=>p.n});var n=r(14088),i=r(56580),o=r(10912),a=r(69799),s=r(3701),c=r(90017),l=r(35957),u=r(71744),d=r(44985),f=r(99284),p=r(89144)},10912:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o,n:()=>i});var n=r(96940);function i(e,t,r,i=n.c){let o=i.format(e,"PPPP",r);return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const o=i},14088:(e,t,r)=>{"use strict";r.d(t,{b:()=>i,t:()=>o});var n=r(96940);function i(e,t,r=n.c){return r.format(e,"LLLL y",t)}const o=i},56580:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});var n=r(96940);function i(e,t,r,i=n.c){let o=i.format(e,"PPPP",r);return t?.today&&(o=`Today, ${o}`),o}},3701:(e,t,r)=>{"use strict";function n(e){return"Choose the Month"}r.d(t,{a:()=>n})},69799:(e,t,r)=>{"use strict";function n(){return""}r.d(t,{y:()=>n})},90017:(e,t,r)=>{"use strict";function n(e){return"Go to the Next Month"}r.d(t,{s:()=>n})},35957:(e,t,r)=>{"use strict";function n(e){return"Go to the Previous Month"}r.d(t,{o:()=>n})},44985:(e,t,r)=>{"use strict";function n(e,t){return`Week ${e}`}r.d(t,{k:()=>n})},99284:(e,t,r)=>{"use strict";function n(e){return"Week Number"}r.d(t,{N:()=>n})},71744:(e,t,r)=>{"use strict";r.d(t,{n:()=>i});var n=r(96940);function i(e,t,r=n.c){return r.format(e,"cccc",t)}},89144:(e,t,r)=>{"use strict";function n(e){return"Choose the Year"}r.d(t,{n:()=>n})},26859:(e,t,r)=>{"use strict";r.d(t,{c:()=>C});var n=r(51035),i=r(8123),o=r(68791),a=r(55956),s=r(82782),c=r(26162),l=r(56510),u=r(78953),d=r(19491),f=r(94914),p=r(38376),h=r(26114),m=r(14727),y=r(6277),v=r(8968),g=r(4603),b=r(55099),E=r(69911),w=r(26827),S=r(37785),A=r(68507),_=r(51305),x=r(92642),P=r(14526),I=r(20509),k=r(84846),O=r(45654),T=r(56459);const C={addDays:n.f,addMonths:i.P,addWeeks:o.J,addYears:a.e,differenceInCalendarDays:s.m,differenceInCalendarMonths:c.U,endOfISOWeek:l.g,endOfMonth:u.p,endOfWeek:d.$,endOfYear:f.Q,format:p.GP,getISOWeek:h.s,getWeek:m.N,isAfter:y.d,isBefore:v.Y,isDate:g.$,isSameDay:b.r,isSameMonth:E.t,isSameYear:w.s,max:S.T,min:A.j,setMonth:_.Z,setYear:x.i,startOfDay:P.o,startOfISOWeek:I.b,startOfMonth:k.w,startOfWeek:O.k,startOfYear:T.D}},96940:(e,t,r)=>{"use strict";r.d(t,{c:()=>n.c});var n=r(26859);r(55541)},63377:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(33478);function i(e,t){const{selected:r,required:i,onSelect:o}=e,[a,s]=(0,n.j)(r,o?r:void 0),c=o?r:a,{isSameDay:l}=t,u=e=>c?.some((t=>l(t,e)))??!1,{min:d,max:f}=e;return{selected:c,select:(e,t,r)=>{let n=[...c??[]];if(u(e)){if(c?.length===d)return;if(i&&1===c?.length)return;n=c?.filter((t=>!l(t,e)))}else n=c?.length===f?[e]:[...n,e];return o||s(n),o?.(n,e,t,r),n},isSelected:u}}},47473:(e,t,r)=>{"use strict";r.d(t,{f:()=>a});var n=r(33478),i=r(90226),o=r(77034);function a(e,t){const{disabled:r,excludeDisabled:a,selected:s,required:c,onSelect:l}=e,[u,d]=(0,n.j)(s,l?s:void 0),f=l?s:u;return{selected:f,select:(n,o,s)=>{const{min:u,max:p}=e,h=n?(0,i.MC)(n,f,u,p,c,t):void 0;if(h?.from&&h.to){let e=h.from;for(;t.differenceInCalendarDays(h.to,e)>0;)if(e=t.addDays(e,1),a&&r&&(0,i.kB)(e,r,t)){h.from=n,h.to=void 0;break}}return l||d(h),l?.(h,n,o,s),h},isSelected:e=>f&&(0,o.R)(f,e,!1,t)}}},39230:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(33478);function i(e,t){const{selected:r,required:i,onSelect:o}=e,[a,s]=(0,n.j)(r,o?r:void 0),c=o?r:a,{isSameDay:l}=t;return{selected:c,select:(e,t,r)=>{let n=e;return!i&&c&&c&&l(e,c)&&(n=void 0),o||s(n),o?.(n,e,t,r),n},isSelected:e=>!!c&&l(c,e)}}},95369:(e,t,r)=>{"use strict";r(99249),r(55449),r(17755)},61902:(e,t,r)=>{"use strict";r(95369)},56981:(e,t,r)=>{"use strict";r.d(t,{_:()=>h});var n=r(14041),i=r(50581),o=r(6265),a=r(94593),s=r(35024),c=r(98001),l=r(30807),u=r(87773),d=r(64413),f=r(6937),p=r(33478);function h(e,t){const[r,h]=(0,l.J)(e,t),{startOfMonth:m,endOfMonth:y}=t,v=(0,s.Z)(e,t),[g,b]=(0,p.j)(v,e.month?m(e.month):void 0);(0,n.useEffect)((()=>{const r=(0,s.Z)(e,t);b(r)}),[e.timeZone]);const E=(0,a.o)(g,h,e,t),w=(0,i.Y)(E,e.endMonth?y(e.endMonth):void 0,e,t),S=(0,c.S)(E,w,e,t),A=(0,f.C)(S),_=(0,o._)(S),x=(0,d.E)(g,r,e,t),P=(0,u.Q)(g,h,e,t),{disableNavigation:I,onMonthChange:k}=e,O=e=>{if(I)return;let t=m(e);r&&t<m(r)&&(t=m(r)),h&&t>m(h)&&(t=m(h)),b(t),k?.(t)};return{months:S,weeks:A,days:_,navStart:r,navEnd:h,previousMonth:x,nextMonth:P,goToMonth:O,goToDay:e=>{(e=>A.some((t=>t.days.some((t=>t.isEqualTo(e))))))(e)||O(e.date)}}}},17755:(e,t,r)=>{"use strict";r.d(t,{S:()=>i,w:()=>o});var n=r(14041);const i=(0,n.createContext)(void 0);function o(){const e=(0,n.useContext)(i);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}},90395:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var n=r(14041),i=r(8993),o=r(79643);function a(e,t,r,a,s){const{autoFocus:c}
2=e,[l,u]=(0,n.useState)(),d=(0,i.A)(t.days,r,a||(()=>!1),l),[f,p]=(0,n.useState)(c?d:void 0);return{isFocusTarget:e=>Boolean(d?.isEqualTo(e)),setFocused:p,focused:f,blur:()=>{u(f),p(void 0)},moveFocus:(r,n)=>{if(!f)return;const i=(0,o.O)(r,n,f,t.navStart,t.navEnd,e,s);i&&(t.goToDay(i),p(i))}}}},87153:(e,t,r)=>{"use strict";r.d(t,{g:()=>a});var n=r(55541),i=r(30840),o=r(82249);function a(e,t,r){const{disabled:a,hidden:s,modifiers:c,showOutsideDays:l,today:u}=t,{isSameDay:d,isSameMonth:f}=r,p={[i.p.focused]:[],[i.p.outside]:[],[i.p.disabled]:[],[i.p.hidden]:[],[i.p.today]:[]},h={},m={[i.w.range_end]:[],[i.w.range_middle]:[],[i.w.range_start]:[],[i.w.selected]:[]};for(const i of e){const{date:e,displayMonth:m}=i,y=Boolean(m&&!f(e,m)),v=Boolean(a&&(0,o.k)(e,a,r)),g=Boolean(s&&(0,o.k)(e,s,r))||!l&&y,b=d(e,u??(t.timeZone?n.BB.tz(t.timeZone):r.Date?new r.Date:new Date));y&&p.outside.push(i),v&&p.disabled.push(i),g&&p.hidden.push(i),b&&p.today.push(i),c&&Object.keys(c).forEach((t=>{const n=c?.[t];!!n&&(0,o.k)(e,n,r)&&(h[t]?h[t].push(i):h[t]=[i])}))}return e=>{const t={[i.p.focused]:!1,[i.p.disabled]:!1,[i.p.hidden]:!1,[i.p.outside]:!1,[i.p.today]:!1},r={[i.w.range_end]:!1,[i.w.range_middle]:!1,[i.w.range_start]:!1,[i.w.selected]:!1},n={};for(const r in p){const n=p[r];t[r]=n.some((t=>t===e))}for(const t in m){const n=m[t];r[t]=n.some((t=>t===e))}for(const t in h)n[t]=h[t].some((t=>t===e));return{...r,...t,...n}}}},22621:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(63377),i=r(47473),o=r(39230);function a(e,t){const r=(0,o.G)(e,t),a=(0,n.N)(e,t),s=(0,i.f)(e,t);switch(e.mode){case"single":return r;case"multiple":return a;case"range":return s;default:return}}},87911:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(96940);function i(e,t,r=0,i=0,o=!1,a=n.c){const{from:s,to:c}=t||{},{isSameDay:l,isAfter:u,isBefore:d}=a;let f;if(s||c){if(s&&!c)f=l(s,e)?o?{from:s,to:void 0}:void 0:d(e,s)?{from:e,to:s}:{from:s,to:e};else if(s&&c)if(l(s,e)&&l(c,e))f=o?{from:s,to:c}:void 0;else if(l(s,e))f={from:s,to:r>0?void 0:e};else if(l(c,e))f={from:e,to:r>0?void 0:e};else if(d(e,s))f={from:e,to:c};else if(u(e,s))f={from:s,to:e};else{if(!u(e,c))throw new Error("Invalid range");f={from:s,to:e}}}else f={from:e,to:r>0?void 0:e};if(f?.from&&f?.to){const t=a.differenceInCalendarDays(f.to,f.from);(i>0&&t>i||r>1&&t<r)&&(f={from:e,to:void 0})}return f}},82249:(e,t,r)=>{"use strict";r.d(t,{k:()=>a});var n=r(26859),i=r(77034),o=r(67138);function a(e,t,r=n.c){const a=Array.isArray(t)?t:[t],{isSameDay:s,differenceInCalendarDays:c,isAfter:l}=r;return a.some((t=>{if("boolean"==typeof t)return t;if(r.isDate(t))return s(e,t);if((0,o.Hg)(t,r))return t.includes(e);if((0,o.oM)(t))return(0,i.R)(t,e,!1,r);if((0,o.OE)(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if((0,o.m4)(t)){const r=c(t.before,e)>0,n=c(t.after,e)<0;return l(t.before,t.after)?n&&r:r||n}return(0,o.RE)(t)?c(e,t.after)>0:(0,o.Ue)(t)?c(t.before,e)>0:"function"==typeof t&&t(e)}))}},90226:(e,t,r)=>{"use strict";r.d(t,{MC:()=>n.M,kB:()=>i.k});var n=r(87911),i=r(82249);r(77034)},77034:(e,t,r)=>{"use strict";r.d(t,{R:()=>i});var n=r(96940);function i(e,t,r=!1,i=n.c){let{from:o,to:a}=e;const{differenceInCalendarDays:s,isSameDay:c}=i;if(o&&a){s(a,o)<0&&([o,a]=[a,o]);return s(t,o)>=(r?1:0)&&s(a,t)>=(r?1:0)}return!r&&a?c(a,t):!(r||!o)&&c(o,t)}},67138:(e,t,r)=>{"use strict";function n(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function i(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function o(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function a(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function s(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function c(e,t){return Array.isArray(e)&&e.every(t.isDate)}r.d(t,{Hg:()=>c,OE:()=>s,RE:()=>o,Ue:()=>a,m4:()=>n,oM:()=>i})},92818:(e,t,r)=>{"use strict";function n(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}r.d(t,{F:()=>n})},37267:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});let n={};function i(){return n}},13515:(e,t,r)=>{"use strict";r.d(t,{_:()=>y});var n=r(80477),i=r(26114),o=r(48959),a=r(14727),s=r(24914),c=r(92818),l=r(40669);const u="midnight",d="noon",f="morning",p="afternoon",h="evening",m="night",y={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return l.C.y(e,t)}
vendor: 4,271 bytes, line 2
2,Y:function(e,t,r,n){const i=(0,s.h)(e,n),o=i>0?i:1-i;if("YY"===t){const e=o%100;return(0,c.F)(e,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):(0,c.F)(o,t.length)},R:function(e,t){const r=(0,o.p)(e);return(0,c.F)(r,t.length)},u:function(e,t){const r=e.getFullYear();return(0,c.F)(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return(0,c.F)(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return(0,c.F)(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return l.C.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return(0,c.F)(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=(0,a.N)(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):(0,c.F)(i,t.length)},I:function(e,t,r){const n=(0,i.s)(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):(0,c.F)(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):l.C.d(e,t)},D:function(e,t,r){const i=(0,n.F)(e);return"Do"===t?r.ordinalNumber(i,{unit:"dayOfYear"}):(0,c.F)(i,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,c.F)(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,c.F)(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return(0,c.F)(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(i=12===n?d:0===n?u:n/12>
2=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(i=n>=17?h:n>=12?p:n>=4?f:m,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return l.C.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):l.C.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):(0,c.F)(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):(0,c.F)(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):l.C.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):l.C.s(e,t)},S:function(e,t){return l.C.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return g(n);case"XXXX":case"XX":return b(n);default:return b(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return g(n);case"xxxx":case"xx":return b(n);default:return b(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+v(n,":");default:return"GMT"+b(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+v(n,":");default:return"GMT"+b(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return(0,c.F)(n,t.length)},T:function(e,t,r){return(0,c.F)(+e,t.length)}};function v(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+t+(0,c.F)(o,2)}function g(e,t){if(e%60==0){return(e>0?"-":"+")+(0,c.F)(Math.abs(e)/60,2)}return b(e,t)}function b(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+(0,c.F)(Math.trunc(n/60),2)+t+(0,c.F)(n%60,2)}},40669:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(92818);const i={y(e,t){const r=e.getFullYear(),i=r>0?r:1-r;return(0,n.F)("yy"===t?i%100:i,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):(0,n.F)(r+1,2)},d:(e,t)=>(0,n.F)(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>(0,n.F)(e.getHours()%12||12,t.length),H:(e,t)=>(0,n.F)(e.getHours(),t.length),m:(e,t)=>(0,n.F)(e.getMinutes(),t.length),s:(e,t)=>(0,n.F)(e.getSeconds(),t.length),S(e,t){const r=t.length,i=e.getMilliseconds(),o=Math.trunc(i*Math.pow(10,r-3));return(0,n.F)(o,t.length)}}},30445:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});const n=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},i=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},o={p:i,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return n(e,t);let s;switch(o){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",n(o,t)).replace("{{time}}",i(a,t))}}},74237:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(65758);function i(e){const t=(0,n.a)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}},56222:(e,t,r)=>{"use strict";r.d(t,{x:()=>i});var n=r(48414);function i(e,...t){const r=n.w.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(r)}},64004:(e,t,r)=>{"use strict";r.d(t,{Ss:()=>c,ef:()=>a,xM:()=>s});const n=/^D+$/,i=/^Y+$/,o=["D","DD","YY","YYYY"];function a(e){return n.test(e)}function s(e){return i.test(e)}function c(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),o.includes(e))throw new RangeError(n)}},51035:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var n=r(48414),i=r(65758);function o(e,t,r){const o=(0,i.a)(e,r?.in);return isNaN(t)?(0,n.w)(r?.in||e,NaN):t?(o.setDate(o.getDate()+t),o):o}},8123:(e,t,r)=>{"use strict";r.d(t,{P:()=>o});var n=r(48414),i=r(65758);function o(e,t,r){const o=(0,i.a)(e,r?.in);if(isNaN(t))return(0,n.w)(r?.in||e,NaN);if(!t)return o;const a=o.getDate(),s=(0,n.w)(r?.in||e,o.getTime());s.setMonth(o.getMonth()+t+1,0);return a>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),a),o)}},68791:(e,t,r)=>{"use strict";r.d(t,{J:()=>i});var n=r(51035);function i(e,t,r){return(0,n.f)(e,7*t,r)}},55956:(e,t,r)=>{"use strict";r.d(t,{e:()=>i});var n=r(8123);function i(e,t,r){return(0,n.P)(e,12*t,r)}},47558:(e,t,r)=>{"use strict";r.d(t,{_P:()=>o,my:()=>n,w4:()=>i});Math.pow(10,8);const n=6048e5,i=864e5,o=Symbol.for("constructDateFrom")},48414:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(47558);function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&n._P in e?e[n._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},82782:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=r(74237),i=r(56222),o=r(47558),a=r(14526);function s(e,t,r){const[s,c]=(0,i.x)(r?.in,e,t),l=(0,a.o)(s),u=(0,a.o)(c),d=+l-(0,n.G)(l),f=+u-(0,n.G)(u);return Math.round((d-f)/o.w4)}},26162:(e,t,r)=>{"use strict";r.d(t,{U:()=>i});var n=r(56222);function i(e,t,r){const[i,o]=(0,n.x)(r?.in,e,t);return 12*(i.getFullYear()-o.getFullYear())+(i.getMonth()-o.getMonth())}},56510:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var n=r(19491);function i(e,t){return(0,n.$)(e,{...t,weekStartsOn:1}
2)}},78953:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var n=r(65758);function i(e,t){const r=(0,n.a)(e,t?.in),i=r.getMonth();return r.setFullYear(r.getFullYear(),i+1,0),r.setHours(23,59,59,999),r}},19491:(e,t,r)=>{"use strict";r.d(t,{$:()=>o});var n=r(37267),i=r(65758);function o(e,t){const r=(0,n.q)(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=(0,i.a)(e,t?.in),s=a.getDay(),c=6+(s<o?-7:0)-(s-o);return a.setDate(a.getDate()+c),a.setHours(23,59,59,999),a}},94914:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(65758);function i(e,t){const r=(0,n.a)(e,t?.in),i=r.getFullYear();return r.setFullYear(i+1,0,0),r.setHours(23,59,59,999),r}},38376:(e,t,r)=>{"use strict";r.d(t,{GP:()=>m});var n=r(76516),i=r(37267),o=r(13515),a=r(30445),s=r(64004),c=r(42957),l=r(65758);const u=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,f=/^'([^]*?)'?$/,p=/''/g,h=/[a-zA-Z]/;function m(e,t,r){const f=(0,i.q)(),p=r?.locale??f.locale??n.c,m=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??f.firstWeekContainsDate??f.locale?.options?.firstWeekContainsDate??1,v=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??f.weekStartsOn??f.locale?.options?.weekStartsOn??0,g=(0,l.a)(e,r?.in);if(!(0,c.f)(g))throw new RangeError("Invalid time value");let b=t.match(d).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,a.m[t])(e,p.formatLong)}return e})).join("").match(u).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:y(e)};if(o._[t])return{isToken:!0,value:e};if(t.match(h))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));p.localize.preprocessor&&(b=p.localize.preprocessor(g,b));const E={firstWeekContainsDate:m,weekStartsOn:v,locale:p};return b.map((n=>{if(!n.isToken)return n.value;const i=n.value;(!r?.useAdditionalWeekYearTokens&&(0,s.xM)(i)||!r?.useAdditionalDayOfYearTokens&&(0,s.ef)(i))&&(0,s.Ss)(i,t,String(e));return(0,o._[i[0]])(g,i,p.localize,E)})).join("")}function y(e){const t=e.match(f);return t?t[1].replace(p,"'"):e}},80477:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});var n=r(82782),i=r(56459),o=r(65758);function a(e,t){const r=(0,o.a)(e,t?.in);return(0,n.m)(r,(0,i.D)(r))+1}},68981:(e,t,r)=>{"use strict";r.d(t,{P:()=>o});var n=r(48414),i=r(65758);function o(e,t){const r=(0,i.a)(e,t?.in),o=r.getFullYear(),a=r.getMonth(),s=(0,n.w)(r,0);return s.setFullYear(o,a+1,0),s.setHours(0,0,0,0),s.getDate()}},26114:(e,t,r)=>{"use strict";r.d(t,{s:()=>s});var n=r(47558),i=r(20509),o=r(64012),a=r(65758);function s(e,t){const r=(0,a.a)(e,t?.in),s=+(0,i.b)(r)-+(0,o.w)(r);return Math.round(s/n.my)+1}},48959:(e,t,r)=>{"use strict";r.d(t,{p:()=>a});var n=r(48414),i=r(20509),o=r(65758);function a(e,t){const r=(0,o.a)(e,t?.in),a=r.getFullYear(),s=(0,n.w)(r,0);s.setFullYear(a+1,0,4),s.setHours(0,0,0,0);const c=(0,i.b)(s),l=(0,n.w)(r,0);l.setFullYear(a,0,4),l.setHours(0,0,0,0);const u=(0,i.b)(l);return r.getTime()>=c.getTime()?a+1:r.getTime()>=u.getTime()?a:a-1}},14727:(e,t,r)=>{"use strict";r.d(t,{N:()=>s});var n=r(47558),i=r(45654),o=r(79579),a=r(65758);function s(e,t){const r=(0,a.a)(e,t?.in),s=+(0,i.k)(r,t)-+(0,o.b)(r,t);return Math.round(s/n.my)+1}},24914:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var n=r(37267),i=r(48414),o=r(45654),a=r(65758);function s(e,t){const r=(0,a.a)(e,t?.in),s=r.getFullYear(),c=(0,n.q)(),l=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,u=(0,i.w)(t?.in||e,0);u.setFullYear(s+1,0,l),u.setHours(0,0,0,0);const d=(0,o.k)(u,t),f=(0,i.w)(t?.in||e,0);f.setFullYear(s,0,l),f.setHours(0,0,0,0);const p=(0,o.k)(f,t);return+r>=+d?s+1:+r>=+p?s:s-1}},6277:(e,t,r)=>{"use strict";r.d(t,{d:()=>i});var n=r(65758);function i(e,t){return+(0,n.a)(e)>+(0,n.a)(t)}},8968:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i});var n=r(65758);function i(e,t){return+(0,n.a)(e)<+(0,n.a)(t)}},4603:(e,t,r)=>{"use strict";function n(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}r.d(t,{$:()=>n})},55099:(e,t,r)=>{"use strict";r.d(t,{r:()=>o});var n=r(56222),i=r(14526);function o(e,t,r){const[o,a]=(0,n.x)(r?.in,e,t);return+(0,i.o)(o)==+(0,i.o)(a)}},69911:(e,t,r)=>{"use strict";r.d(t,{t:()=>i});var n=r(56222);function i(e,t,r){const[i,o]=(0,n.x)(r?.in,e,t);return i.getFullYear()===o.getFullYear()&&i.getMonth()===o.getMonth()}},26827:(e,t,r)=>{"use strict";r.d(t,{s:()=>i});var n=r(56222);function i(e,t,r){const[i,o]=(0,n.x)(r?.in,e,t);return i.getFullYear()===o.getFullYear()}},42957:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var n=r(4603),i=r(65758);function o(e){return!(!(0,n.$)(e)&&"number"!=typeof e||isNaN(+(0,i.a)(e)))}},53966:(e,t,r)=>{"use strict";function n(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}r.d(t,{k:()=>n})},72056:(e,t,r)=>{"use strict";function n(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}r.d(t,{o:()=>n})},27890:(e,t,r)=>{"use strict";function n(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(s,(e=>e.test(a))):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,(e=>e.test(a)));let l;l=e.valueCallback?e.valueCallback(c):c,l=r.valueCallback?r.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}r.d(t,{A:()=>n})},90206:(e,t,r)=>{"use strict";function n(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;return{value:a,rest:t.slice(i.length)}}}r.d(t,{K:()=>n})},76516:(e,t,r)=>{"use strict";r.d(t,{c:()=>c});var n=r(40990),i=r(95855),o=r(55441),a=r(50073),s=r(10349);const c={code:"en-US",formatDistance:n.B,formatLong:i.s,formatRelative:o.o,localize:a.k,match:s.Y,options:{weekStartsOn:0,firstWeekContainsDate:1}}},40990:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});const n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=(e,t,r)=>{let i;const o=n[e];return i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i}},95855:(e,t,r)=>{"use strict";r.d(t,{s:()=>i});var n=r(53966);const i={date:(0,n.k)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,n.k)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,n.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}},55441:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});const n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i=(e,t,r,i)=>n[e]},50073:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});var n=r(72056);const i={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:(0,n.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,n.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,n.o)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,n.o)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,n.o)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})}},10349:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i});var n=r(27890);const i={ordinalNumber:(0,r(90206).K)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,n.A)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,n.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,n.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,n.A)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,n.A)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}},37785:(e,t,r)=>{"use strict";r.d(t,{T:()=>o});var n=r(48414),i=r(65758);function o(e,t){let r,o=t?.in;return e.forEach((e=>{o||"object"!=typeof e||(o=n.w.bind(null,e));const t=(0,i.a)(e,o);(!r||r<t||isNaN(+t))&&(r=t)})),(0,n.w)(o,r||NaN)}},68507:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});var n=r(48414),i=r(65758);function o(e,t){let r,o=t?.in;return e.forEach((e=>{o||"object"!=typeof e||(o=n.w.bind(null,e));const t=(0,i.a)(e,o);(!r||r>t||isNaN(+t))&&(r=t)})),(0,n.w)(o,r||NaN)}},51305:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(48414),i=r(68981),o=r(65758);function a(e,t,r){const a=(0,o.a)(e,r?.in),s=a.getFullYear(),c=a.getDate(),l=(0,n.w)(r?.in||e,0);l.setFullYear(s,t,15),l.setHours(0,0,0,0);const u=(0,i.P)(l);return a.setMonth(t,Math.min(c,u)),a}},92642:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(48414),i=r(65758);function o(e,t,r){const o=(0,i.a)(e,r?.in);return isNaN(+o)?(0,n.w)(r?.in||e,NaN):(o.setFullYear(t),o)}},14526:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(65758);function i(e,t){const r=(0,n.a)(e,t?.in);return r.setHours(0,0,0,0),r}},20509:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(45654);function i(e,t){return(0,n.k)(e,{...t,weekStartsOn:1})}},64012:(e,t,r)=>{"use strict";r.d(t,{w:()=>a});var n=r(48414),i=r(48959),o=r(20509);
2function a(e,t){const r=(0,i.p)(e,t),a=(0,n.w)(t?.in||e,0);return a.setFullYear(r,0,4),a.setHours(0,0,0,0),(0,o.b)(a)}},84846:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(65758);function i(e,t){const r=(0,n.a)(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}},45654:(e,t,r)=>{"use strict";r.d(t,{k:()=>o});var n=r(37267),i=r(65758);function o(e,t){const r=(0,n.q)(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=(0,i.a)(e,t?.in),s=a.getDay(),c=(s<o?7:0)+s-o;return a.setDate(a.getDate()-c),a.setHours(0,0,0,0),a}},79579:(e,t,r)=>{"use strict";r.d(t,{b:()=>s});var n=r(37267),i=r(48414),o=r(24914),a=r(45654);function s(e,t){const r=(0,n.q)(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,c=(0,o.h)(e,t),l=(0,i.w)(t?.in||e,0);l.setFullYear(c,0,s),l.setHours(0,0,0,0);return(0,a.k)(l,t)}},56459:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(65758);function i(e,t){const r=(0,n.a)(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}},65758:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(48414);function i(e,t){return(0,n.w)(t||e,e)}},47400:(e,t,r)=>{"use strict";var n=r(14041),i=r(97967);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 a=new Set,s={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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={},h={};function m(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new m(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){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,r,n){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0!==i.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;
vendor: 8,166 bytes, line 2
2if(n)return!1;if(null!==r)switch(r.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,r,i,n)&&(r=null),n||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"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(v,g);y[t]=new m(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(v,g);y[t]=new m(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(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),I=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var M,F=Object.assign;function j(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var B=!1;function V(e,t){if(!e||B)return"";B=!0;var r=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 n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=n.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var c="\n"+i[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?j(e):""}function U(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 1:return e=V(e.type,!0);default:return""}}function z(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 A:return"Fragment";case S:return"Portal";case x:return"Profiler";case _:return"StrictMode";case O:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case k:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function G(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=H(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function q(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 K(e,t){var r=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Q(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=W(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){X(e,t);var r=W(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}
vendor: 4,263 bytes, line 2
2""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&q(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+W(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(o(92));if(te(r)){if(1<r.length)throw Error(o(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:W(r)}}function oe(e,t){var r=W(t.value),n=W(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!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},he=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ye(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=F({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 ge(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(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}}var Ee=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
vendor: 11,317 bytes, line 2
2odeType?e.parentNode:e}var Se=null,Ae=null,_e=null;function xe(e){if(e=bi(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Se(e.stateNode,e.type,t))}}function Pe(e){Ae?_e?_e.push(e):_e=[e]:Ae=e}function Ie(){if(Ae){var e=Ae,t=_e;if(_e=Ae=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function ke(e,t){return e(t)}function Oe(){}var Te=!1;function Ce(e,t,r){if(Te)return e(t,r);Te=!0;try{return ke(e,t,r)}finally{Te=!1,(null!==Ae||null!==_e)&&(Oe(),Ie())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var n=wi(r);if(null===n)return null;r=n[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":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(o(231,t,typeof r));return r}var Ne=!1;if(u)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ue){Ne=!1}function De(e,t,r,n,i,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(e){this.onError(e)}}var Me=!1,Fe=null,je=!1,Be=null,Ve={onError:function(e){Me=!0,Fe=e}};function Ue(e,t,r,n,i,o,a,s,c){Me=!1,Fe=null,De.apply(Ve,arguments)}function ze(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Ge(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 We(e){if(ze(e)!==e)throw Error(o(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(o(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(n=i.return)){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return We(i),e;if(a===n)return We(i),t;a=a.sibling}throw Error(o(188))}if(r.return!==n.return)r=i,n=a;else{for(var s=!1,c=i.child;c;){if(c===r){s=!0,r=i,n=a;break}if(c===n){s=!0,n=i,r=a;break}c=c.sibling}if(!s){for(c=a.child;c;){if(c===r){s=!0,r=a,n=i;break}if(c===n){s=!0,n=a,r=i;break}c=c.sibling}if(!s)throw Error(o(189))}}if(r.alternate!==n)throw Error(o(190))}if(3!==r.tag)throw Error(o(188));return r.stateNode.current===r?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Ye=i.unstable_scheduleCallback,qe=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Qe=i.unstable_requestPaint,Xe=i.unstable_now,Ze=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,rt=i.unstable_LowPriority,nt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/ct|0)|0},st=Math.log,ct=Math.LN2;var lt=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~i;0!==s?n=dt(s):0!==(o&=a)&&(n=dt(o))}else 0!==(a=r&~i)?n=dt(a):0!==o&&(n=dt(o));if(0===n)return 0;if(0!==t&&t!==n&&0==(t&i)&&((i=n&-n)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-at(t)),n|=e[r],t&=~i;return n}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=lt;return 0==(4194240&(lt<<=1))&&(lt=64),e}function yt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function vt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function gt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var bt=0;function Et(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,St,At,_t,xt,Pt=!1,It=[],kt=null,Ot=null,Tt=null,Ct=new Map,Rt=new Map,Nt=[],Lt="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 Dt(e,t){switch(e){case"focusin":case"focusout":kt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(e,t,r,n,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&St(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ft(e){var t=gi(e.target);if(null!==t){var r=ze(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Ge(r)))return e.blockedOn=t,void xt(e.priority,(function(){At(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=bi(r))&&St(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);Ee=n,r.target.dispatchEvent(n),Ee=null,t.shift()}return!0}function Bt(e,t,r){jt(e)&&r.delete(t)}function Vt(){Pt=!1,null!==kt&&jt(kt)&&(kt=null),null!==Ot&&jt(Ot)&&(Ot=null),null!==Tt&&jt(Tt)&&(Tt=null),Ct.forEach(Bt),Rt.forEach(Bt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Pt||(Pt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Vt)))}function zt(e){function t(t){return Ut(t,e)}if(0<It.length){Ut(It[0],e);for(var r=1;r<It.length;r++){var n=It[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==kt&&Ut(kt,e),null!==Ot&&Ut(Ot,e),null!==Tt&&Ut(Tt,e),Ct.forEach(t),Rt.forEach(t),r=0;r<Nt.length;r++)(n=Nt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Nt.length&&null===(r=Nt[0]).blockedOn;)Ft(r),null===r.blockedOn&&Nt.shift()}var Gt=E.ReactCurrentBatchConfig,Wt=!0;function Ht(e,t,r,n){var i=bt,o=Gt.transition;Gt.transition=null;try{bt=1,Yt(e,t,r,n)}finally{bt=i,Gt.transition=o}}function $t(e,t,r,n){var i=bt,o=Gt.transition;Gt.transition=null;try{bt=4,Yt(e,t,r,n)}finally{bt=i,Gt.transition=o}}function Yt(e,t,r,n){if(Wt){var i=Kt(e,t,r,n);if(null===i)Wn(e,t,n,qt,r),Dt(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return kt=Mt(kt,e,t,r,n,i),!0;case"dragenter":return Ot=Mt(Ot,e,t,r,n,i),!0;case"mouseover":return Tt=Mt(Tt,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return Ct.set(o,Mt(Ct.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Rt.set(o,Mt(Rt.get(o)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(Dt(e,n),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Kt(e,t,r,n))&&Wn(e,t,n,qt,r),o===i)break;i=o}null!==i&&n.stopPropagation()}else Wn(e,t,n,null,r)}}var qt=null;function Kt(e,t,r,n){if(qt=null,null!==(e=gi(e=we(n))))if(null===(t=ze(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Ge(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Xt=null,Zt=null,Jt=null;function er(){if(Jt)return Jt;var e,t,r=Zt,n=r.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<n&&r[e]===i[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===i[o-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tr(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 rr(){return!0}function nr(){return!1}function ir(e){function t(t,r,n,i,o){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return F(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=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var or,ar,sr,cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lr=ir(cr),ur=F({},cr,{view:0,detail:0}),dr=ir(ur),fr=F({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_r,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,346 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(or=e.screenX-sr.screenX,ar=e.screenY-sr.screenY):ar=or=0,sr=e),or)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),pr=ir(fr),hr=ir(F({},fr,{dataTransfer:0})),mr=ir(F({},ur,{relatedTarget:0})),yr=ir(F({},cr,{animationName:0,elapsedTime:0,pseudoElement:0})),vr=F({},cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gr=ir(vr),br=ir(F({},cr,{data:0})),Er={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wr={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"},Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ar(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sr[e])&&!!t[e]}function _r(){return Ar}var xr=F({},ur,{key:function(e){if(e.key){var t=Er[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_r,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pr=ir(xr),Ir=ir(F({},fr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kr=ir(F({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_r})),Or=ir(F({},cr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tr=F({},fr,{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}),Cr=ir(Tr),Rr=[9,13,27,32],Nr=u&&"CompositionEvent"in window,Lr=null;u&&"documentMode"in document&&(Lr=document.documentMode);var Dr=u&&"TextEvent"in window&&!Lr,Mr=u&&(!Nr||Lr&&8<Lr&&11>=Lr),Fr=String.fromCharCode(32),jr=!1;function Br(e,t){switch(e){case"keyup":return-1!==Rr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ur=!1;var zr={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 Gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}function Wr(e,t,r,n){Pe(n),0<(t=$n(t,"onChange")).length&&(r=new lr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Hr=null,$r=null;function Yr(e){jn(e,0)}function qr(e){if(Y(Ei(e)))return e}function Kr(e,t){if("change"===e)return t}var Qr=!1;if(u){var Xr;if(u){var Zr="oninput"in document;if(!Zr){var Jr=document.createElement("div");Jr.setAttribute("oninput","return;"),Zr="function"==typeof Jr.oninput}Xr=Zr}else Xr=!1;Qr=Xr&&(!document.documentMode||9<document.documentMode)}function en(){Hr&&(Hr.detachEvent("onpropertychange",tn),$r=Hr=null)}function tn(e){if("value"===e.propertyName&&qr($r)){var t=[];Wr(t,$r,e,we(e)),Ce(Yr,t)}}function rn(e,t,r){"focusin"===e?(en(),$r=r,(Hr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qr($r)}function on(e,t){if("click"===e)return qr(t)}function an(e,t){if("input"===e||"change"===e)return qr(t)}var sn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cn(e,t){if(sn(e,t))return!0;
vendor: 4,828 bytes, line 2
2if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!d.call(t,i)||!sn(e[i],t[i]))return!1}return!0}function ln(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function un(e,t){var r,n=ln(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ln(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fn(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=q((e=t.contentWindow).document)}return t}function pn(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)}function hn(e){var t=fn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dn(r.ownerDocument.documentElement,r)){if(null!==n&&pn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=void 0===n.end?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=un(r,o);var a=un(r,n);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mn=u&&"documentMode"in document&&11>=document.documentMode,yn=null,vn=null,gn=null,bn=!1;function En(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;bn||null==yn||yn!==q(n)||("selectionStart"in(n=yn)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},gn&&cn(gn,n)||(gn=n,0<(n=$n(vn,"onSelect")).length&&(t=new lr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=yn)))}function wn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Sn={animationend:wn("Animation","AnimationEnd"),animationiteration:wn("Animation","AnimationIteration"),animationstart:wn("Animation","AnimationStart"),transitionend:wn("Transition","TransitionEnd")},An={},_n={};function xn(e){if(An[e])return An[e];if(!Sn[e])return e;var t,r=Sn[e];for(t in r)if(r.hasOwnProperty(t)&&t in _n)return An[e]=r[t];return e}u&&(_n=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);var Pn=xn("animationend"),In=xn("animationiteration"),kn=xn("animationstart"),On=xn("transitionend"),Tn=new Map,Cn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rn(e,t){Tn.set(e,t),c(t,[e])}for(var Nn=0;Nn<Cn.length;Nn++){var Ln=Cn[Nn];Rn(Ln.toLowerCase(),"on"+(Ln[0].toUpperCase()+Ln.slice(1)))}Rn(Pn,"onAnimationEnd"),Rn(In,"onAnimationIteration"),Rn(kn,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(On,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dn));function Fn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,i,a,s,c,l){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(o(198));var u=Fe;Me=!1,Fe=null,je||(je=!0,Be=u)}}(n,t,void 0,e),e.currentTarget=null}function jn(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==o&&i.isPropagationStopped())break e;Fn(i,s,l),o=c}else for(a=0;a<n.length;a++){if(c=(s=n[a]).instance,l=s.currentTarget,s=s.listener,c!==o&&i.isPropagationStopped())break e;Fn(i,s,l),o=c}}}if(je)throw e=Be,je=!1,Be=null,e}function Bn(e,t){var r=t[mi];void 0===r&&(r=t[mi]=new Set);var n=e+"__bubble";r.has(n)||(Gn(t,e,2,!1),r.add(n))}function Vn(e,t,r){var n=0;t&&(n|=4),Gn(r,e,n,t)}var Un="_reactListening"+Math.random().toString(36).slice(2);function zn(e){if(!e[Un]){e[Un]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mn.has(t)||Vn(t,!1,e),Vn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Un]||(t[Un]=!0,Vn("selectionchange",!1,t))}}function Gn(e,t,r,n){switch(Qt(t)){case 1:var i=Ht;break;case 4:i=$t;break;default:i=Yt}r=i.bind(null,t,r,e),i=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Wn(e,t,r,n,i){var o=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var s=n.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=n.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===i||8===c.nodeType&&c.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=gi(s)))return;if(5===(c=a.tag)||6===c){n=o=a;continue e}s=s.parentNode}}n=n.return}Ce((function(){var n=o,i=we(r),a=[];e:{var s=Tn.get(e);if(void 0!==s){var c=lr,l=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":c=Pr;break;case"focusin":l="focus",c=mr;break;case"focusout":l="blur",c=mr;break;case"beforeblur":case"afterblur":c=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=hr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=kr;break;case Pn:case In:case kn:c=yr;break;case On:c=Or;break;case"scroll":c=dr;break;case"wheel":c=Cr;break;case"copy":case"cut":case"paste":c=gr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Ir}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=n;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Re(h,f))&&u.push(Hn(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new c(s,l,null,r,i),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===Ee||!(l=r.relatedTarget||r.fromElement)||!gi(l)&&!l[hi])&&(c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=n,null!==(l=(l=r.relatedTarget||r.toElement)?gi(l):null)&&(l!==(d=ze(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=n),c!==l)){if(u=pr,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Ir,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==c?s:Ei(c),p=null==l?s:Ei(l),(s=new u(m,h+"leave",c,r,i)).target=d,s.relatedTarget=p,m=null,gi(i)===n&&((u=new u(f,h+"enter",l,r,i)).target=p,u.relatedTarget=d,m=u),d=m,c&&l)e:{for(f=l,h=0,p=u=c;p;p=Yn(p))h++;for(p=0,m=f;m;m=Yn(m))p++;for(;0<h-p;)u=Yn(u),h--;for(;0<p-h;)f=Yn(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Yn(u),f=Yn(f)}u=null}else u=null;null!==c&&qn(a,s,c,u,!1),null!==l&&null!==d&&qn(a,d,l,u,!0)}if("select"===(c=(s=n?Ei(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var y=Kr;else if(Gr(s))if(Qr)y=an;else{y=nn;var v=rn}else(c=s.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(y=on);switch(y&&(y=y(e,n))?Wr(a,y,r,i):(v&&v(e,s,n),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=n?Ei(n):window,e){case"focusin":(Gr(v)||"true"===v.contentEditable)&&(yn=v,vn=n,gn=null);break;case"focusout":gn=vn=yn=null;break;case"mousedown":bn=!0;break;case"contextmenu":case"mouseup":case"dragend":bn=!1,En(a,r,i);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":En(a,r,i)}var g;if(Nr)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 Ur?Br(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(Mr&&"ko"!==r.locale&&(Ur||"onCompositionStart"!==b?"onCompositionEnd"===b&&Ur&&(g=er()):(Zt="value"in(Xt=i)?Xt.value:Xt.textContent,Ur=!0)),0<(v=$n(n,b)).length&&(b=new br(b,e,null,r,i),a.push({event:b,listeners:v}),g?b.data=g:null!==(g=Vr(r))&&(b.data=g))),(g=Dr?function(e,t){switch(e){case"compositionend":return Vr(t);case"keypress":return 32!==t.which?null:(jr=!0,Fr);case"textInput":return(e=t.data)===Fr&&jr?null:e;default:return null}}(e,r):function(e,t){if(Ur)return"compositionend"===e||!Nr&&Br(e,t)?(e=er(),Jt=Zt=Xt=null,Ur=!1,e):null;switch(e){case"paste":default: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 Mr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=$n(n,"onBeforeInput")).length&&(i=new br("onBeforeInput","beforeinput",null,r,i),a.push({event:i,listeners:n}),i.data=g))}jn(a,t)}))}function Hn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function $n(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Re(e,r))&&n.unshift(Hn(e,o,i)),null!=(o=Re(e,t))&&n.push(Hn(e,o,i))),e=e.return}return n}function Yn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qn(e,t,r,n,i){for(var o=t._reactName,a=[];null!==r&&r!==n;){var s=r,c=s.alternate,l=s.stateNode;if(null!==c&&c===n)break;5===s.tag&&null!==l&&(s=l,i?null!=(c=Re(r,o))&&a.unshift(Hn(r,c,s)
vendor: 10,663 bytes, line 2
2):i||null!=(c=Re(r,o))&&a.push(Hn(r,c,s))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Kn=/\r\n?/g,Qn=/\u0000|\uFFFD/g;function Xn(e){return("string"==typeof e?e:""+e).replace(Kn,"\n").replace(Qn,"")}function Zn(e,t,r){if(t=Xn(t),Xn(e)!==t&&r)throw Error(o(425))}function Jn(){}var ei=null,ti=null;function ri(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ni="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ni;function si(e){setTimeout((function(){throw e}))}function ci(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&8===i.nodeType)if("/$"===(r=i.data)){if(0===n)return e.removeChild(i),void zt(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=i}while(r);zt(t)}function li(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,pi="__reactProps$"+di,hi="__reactContainer$"+di,mi="__reactEvents$"+di,yi="__reactListeners$"+di,vi="__reactHandles$"+di;function gi(e){var t=e[fi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[hi]||r[fi]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=ui(e);null!==e;){if(r=e[fi])return r;e=ui(e)}return t}r=(e=r).parentNode}return null}function bi(e){return!(e=e[fi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ei(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[pi]||null}var Si=[],Ai=-1;function _i(e){return{current:e}}function xi(e){0>Ai||(e.current=Si[Ai],Si[Ai]=null,Ai--)}function Pi(e,t){Ai++,Si[Ai]=e.current,e.current=t}var Ii={},ki=_i(Ii),Oi=_i(!1),Ti=Ii;function Ci(e,t){var r=e.type.contextTypes;if(!r)return Ii;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ri(e){return null!=(e=e.childContextTypes)}function Ni(){xi(Oi),xi(ki)}function Li(e,t,r){if(ki.current!==Ii)throw Error(o(168));Pi(ki,t),Pi(Oi,r)}function Di(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(o(108,G(e)||"Unknown",i));return F({},r,n)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ii,Ti=ki.current,Pi(ki,e),Pi(Oi,Oi.current),!0}function Fi(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=Di(e,t,Ti),n.__reactInternalMemoizedMergedChildContext=e,xi(Oi),xi(ki),Pi(ki,e)):xi(Oi),Pi(Oi,r)}var ji=null,Bi=!1,Vi=!1;function Ui(e){null===ji?ji=[e]:ji.push(e)}function zi(){if(!Vi&&null!==ji){Vi=!0;var e=0,t=bt;try{var r=ji;for(bt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}ji=null,Bi=!1}catch(t){throw null!==ji&&(ji=ji.slice(e+1)),Ye(Je,zi),t}finally{bt=t,Vi=!1}}return null}var Gi=[],Wi=0,Hi=null,$i=0,Yi=[],qi=0,Ki=null,Qi=1,Xi="";function Zi(e,t){Gi[Wi++]=$i,Gi[Wi++]=Hi,Hi=e,$i=t}function Ji(e,t,r){Yi[qi++]=Qi,Yi[qi++]=Xi,Yi[qi++]=Ki,Ki=e;var n=Qi;e=Xi;var i=32-at(n)-1;n&=~(1<<i),r+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Qi=1<<32-at(t)+i|r<<i|n,Xi=o+e}else Qi=1<<o|r<<i|n,Xi=e}function eo(e){null!==e.return&&(Zi(e,1),Ji(e,1,0))}function to(e){for(;e===Hi;)Hi=Gi[--Wi],Gi[Wi]=null,$i=Gi[--Wi],Gi[Wi]=null;for(;e===Ki;)Ki=Yi[--qi],Yi[qi]=null,Xi=Yi[--qi],Yi[qi]=null,Qi=Yi[--qi],Yi[qi]=null}var ro=null,no=null,io=!1,oo=null;function ao(e,t){var r=Rl(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function so(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ro=e,no=li(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ro=e,no=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Ki?{id:Qi,overflow:Xi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Rl(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ro=e,no=null,!0);default:return!1}}function co(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function lo(e){if(io){var t=no;if(t){var r=t;if(!so(e,t)){if(co(e))throw Error(o(418));t=li(r.nextSibling);var n=ro;t&&so(e,t)?ao(n,r):(e.flags=-4097&e.flags|2,io=!1,ro=e)}}else{if(co(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,ro=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ro=e}function fo(e){if(e!==ro)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=no)){if(co(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=li(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){no=li(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}no=null}}else no=ro?li(e.stateNode.nextSibling):null;return!0}function po(){for(var e=no;e;)e=li(e.nextSibling)}function ho(){no=ro=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var yo=E.ReactCurrentBatchConfig;function vo(e,t){if(e&&e.defaultProps){for(var r in t=F({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var go=_i(null),bo=null,Eo=null,wo=null;function So(){wo=Eo=bo=null}function Ao(e){var t=go.current;xi(go),e._currentValue=t}function _o(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function xo(e,t){bo=e,wo=Eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Es=!0),e.firstContext=null)}function Po(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===Eo){if(null===bo)throw Error(o(308));Eo=e,bo.dependencies={lanes:0,firstContext:e}}else Eo=Eo.next=e;return t}var Io=null;function ko(e){null===Io?Io=[e]:Io.push(e)}function Oo(e,t,r,n){var i=t.interleaved;return null===i?(r.next=r,ko(t)):(r.next=i.next,i.next=r),t.interleaved=r,To(e,n)}function To(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var Co=!1;function Ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function No(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 Lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Do(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&Oc)){var i=n.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),n.pending=t,To(e,r)}return null===(i=n.interleaved)?(t.next=t,ko(n)):(t.next=i.next,i.next=t),n.interleaved=t,To(e,r)}function Mo(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,gt(e,r)}}function Fo(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,o=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===o?i=o=a:o=o.next=a,r=r.next}while(null!==r);null===o?i=o=t:o=o.next=t}else i=o=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function jo(e,t,r,n){var i=e.updateQueue;Co=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var c=s,l=c.next;c.next=null,null===a?o=l:a.next=l,a=c;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(null!==o){var d=i.baseState;for(a=0,u=l=c=null,s=o;;){var f=s.lane,p=s.eventTime;if((n&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=r,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=F({},d,f);break e;case 2:Co=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(l=u=p,c=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Fc|=a,e.lanes=a,e.memoizedState=d}}function Bo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!=typeof i)throw Error(o(191,i));i.call(n)}}}var Vo=(new n.Component).refs;function Uo(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:F({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var zo={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=tl(),i=rl(e),o=Lo(n,i);o.payload=t,null!=r&&(o.callback=r),null!==(t=Do(e,o,i))&&(nl(t,e,i,n),Mo(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=tl(),i=rl(e),o=Lo(n,i);o.tag=1,o.payload=t,null!=r&&(o.callback=r),null!==(t=Do(e,o,i))&&(nl(t,e,i,n),Mo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;
vendor: 13,089 bytes, line 2
2var r=tl(),n=rl(e),i=Lo(r,n);i.tag=2,null!=t&&(i.callback=t),null!==(t=Do(e,i,n))&&(nl(t,e,n,r),Mo(t,e,n))}};function Go(e,t,r,n,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!cn(r,n)||!cn(i,o))}function Wo(e,t,r){var n=!1,i=Ii,o=t.contextType;return"object"==typeof o&&null!==o?o=Po(o):(i=Ri(t)?Ti:ki.current,o=(n=null!=(n=t.contextTypes))?Ci(e,i):Ii),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zo,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ho(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&zo.enqueueReplaceState(t,t.state,null)}function $o(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=Vo,Ro(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Po(o):(o=Ri(t)?Ti:ki.current,i.context=Ci(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Uo(e,t,o,r),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&zo.enqueueReplaceState(i,i.state,null),jo(e,r,i,n),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Yo(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(o(309));var n=r.stateNode}if(!n)throw Error(o(147,e));var i=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===Vo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!r._owner)throw Error(o(290,e))}return e}function qo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ko(e){return(0,e._init)(e._payload)}function Qo(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(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 i(e,t){return(e=Ll(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,r,n){return null===t||6!==t.tag?((t=jl(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function l(e,t,r,n){var o=r.type;return o===A?d(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===R&&Ko(o)===t.type)?((n=i(t,r.props)).ref=Yo(e,t,r),n.return=e,n):((n=Dl(r.type,r.key,r.props,null,e.mode,n)).ref=Yo(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Bl(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function d(e,t,r,n,o){return null===t||7!==t.tag?((t=Ml(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function f(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=jl(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(r=Dl(t.type,t.key,t.props,null,e.mode,r)).ref=Yo(e,null,t),r.return=e,r;case S:return(t=Bl(t,e.mode,r)).return=e,t;case R:return f(e,(0,t._init)(t._payload),r)}if(te(t)||D(t))return(t=Ml(t,e.mode,r,null)).return=e,t;qo(e,t)}return null}function p(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==i?null:c(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return r.key===i?l(e,t,r,n):null;case S:return r.key===i?u(e,t,r,n):null;case R:return p(e,t,(i=r._init)(r._payload),n)}if(te(r)||D(r))return null!==i?null:d(e,t,r,n,null);qo(e,r)}return null}function h(e,t,r,n,i){if("string"==typeof n&&""!==n||"number"==typeof n)return c(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return l(t,e=e.get(null===n.key?r:n.key)||null,n,i);case S:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i);case R:return h(e,t,r,(0,n._init)(n._payload),i)}if(te(n)||D(n))return d(t,e=e.get(r)||null,n,i,null);qo(t,n)}return null}function m(i,o,s,c){for(var l=null,u=null,d=o,m=o=0,y=null;null!==d&&m<s.length;m++){d.index>m?(y=d,d=null):y=d.sibling;var v=p(i,d,s[m],c);if(null===v){null===d&&(d=y);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===u?l=v:u.sibling=v,u=v,d=y}if(m===s.length)return r(i,d),io&&Zi(i,m),l;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],c))&&(o=a(d,o,m),null===u?l=d:u.sibling=d,u=d);return io&&Zi(i,m),l}for(d=n(i,d);m<s.length;m++)null!==(y=h(d,i,m,s[m],c))&&(e&&null!==y.alternate&&d.delete(null===y.key?m:y.key),o=a(y,o,m),null===u?l=y:u.sibling=y,u=y);return e&&d.forEach((function(e){return t(i,e)})),io&&Zi(i,m),l}function y(i,s,c,l){var u=D(c);if("function"!=typeof u)throw Error(o(150));if(null==(c=u.call(c)))throw Error(o(151));for(var d=u=null,m=s,y=s=0,v=null,g=c.next();null!==m&&!g.done;y++,g=c.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=p(i,m,g.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,y),null===d?u=b:d.sibling=b,d=b,m=v}if(g.done)return r(i,m),io&&Zi(i,y),u;if(null===m){for(;!g.done;y++,g=c.next())null!==(g=f(i,g.value,l))&&(s=a(g,s,y),null===d?u=g:d.sibling=g,d=g);return io&&Zi(i,y),u}for(m=n(i,m);!g.done;y++,g=c.next())null!==(g=h(m,i,y,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),s=a(g,s,y),null===d?u=g:d.sibling=g,d=g);return e&&m.forEach((function(e){return t(i,e)})),io&&Zi(i,y),u}return function e(n,o,a,c){if("object"==typeof a&&null!==a&&a.type===A&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var l=a.key,u=o;null!==u;){if(u.key===l){if((l=a.type)===A){if(7===u.tag){r(n,u.sibling),(o=i(u,a.props.children)).return=n,n=o;break e}}else if(u.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===R&&Ko(l)===u.type){r(n,u.sibling),(o=i(u,a.props)).ref=Yo(n,u,a),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===A?((o=Ml(a.props.children,n.mode,c,a.key)).return=n,n=o):((c=Dl(a.type,a.key,a.props,null,n.mode,c)).ref=Yo(n,o,a),c.return=n,n=c)}return s(n);case S:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=Bl(a,n.mode,c)).return=n,n=o}return s(n);case R:return e(n,o,(u=a._init)(a._payload),c)}if(te(a))return m(n,o,a,c);if(D(a))return y(n,o,a,c);qo(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=jl(a,n.mode,c)).return=n,n=o),s(n)):r(n,o)}}var Xo=Qo(!0),Zo=Qo(!1),Jo={},ea=_i(Jo),ta=_i(Jo),ra=_i(Jo);function na(e){if(e===Jo)throw Error(o(174));return e}function ia(e,t){switch(Pi(ra,t),Pi(ta,e),Pi(ea,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xi(ea),Pi(ea,t)}function oa(){xi(ea),xi(ta),xi(ra)}function aa(e){na(ra.current);var t=na(ea.current),r=ce(t,e.type);t!==r&&(Pi(ta,e),Pi(ea,r))}function sa(e){ta.current===e&&(xi(ea),xi(ta))}var ca=_i(0);function la(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&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 ua=[];function da(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var fa=E.ReactCurrentDispatcher,pa=E.ReactCurrentBatchConfig,ha=0,ma=null,ya=null,va=null,ga=!1,ba=!1,Ea=0,wa=0;function Sa(){throw Error(o(321))}function Aa(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function _a(e,t,r,n,i,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:cs,e=r(n,i),ba){a=0;do{if(ba=!1,Ea=0,25<=a)throw Error(o(301));a+=1,va=ya=null,t.updateQueue=null,fa.current=ls,e=r(n,i)}while(ba)}if(fa.current=as,t=null!==ya&&null!==ya.next,ha=0,va=ya=ma=null,ga=!1,t)throw Error(o(300));return e}function xa(){var e=0!==Ea;return Ea=0,e}function Pa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ma.memoizedState=va=e:va=va.next=e,va}function Ia(){if(null===ya){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ya.next;var t=null===va?ma.memoizedState:va.next;if(null!==t)va=t,ya=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ya=e).memoizedState,baseState:ya.baseState,baseQueue:ya.baseQueue,queue:ya.queue,next:null},null===va?ma.memoizedState=va=e:va=va.next=e}return va}function ka(e,t){return"function"==typeof t?t(e):t}function Oa(e){var t=Ia(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=ya,i=n.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}n.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,n=n.baseState;var c=s=null,l=null,u=a;do{var d=u.lane;if((ha&d)===d)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(c=l=f,s=n):l=l.next=f,ma.lanes|=d,Fc|=d}u=u.next}while(null!==u&&u!==a);null===l?s=n:l.next=c,sn(n,t.memoizedState)||(Es=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,ma.lanes|=a,Fc|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ta(e){var t=Ia(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sn(a,t.memoizedState)||(Es=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function Ca(){}function Ra(e,t){var r=ma,n=Ia(),i=t(),a=!sn(n.memoizedState,i);if(a&&(n.memoizedState=i,Es=!0),n=n.queue,Wa(Da.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(r.flags|=2048,Ba(9,La.bind(null,r,n,i,t),void 0,null),null===Tc)throw Error(o(349));0!=(30&ha)||Na(r,t,i)}return i}function Na(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function La(e,t,r,n){t.value=r,t.getSnapshot=n,Ma(t)&&Fa(e)}function Da(e,t,r){return r((function(){Ma(t)&&Fa(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(e){return!0}}function Fa(e){var t=To(e,1);null!==t&&nl(t,e,1,-1)}function ja(e){var t=Pa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:e},t.queue=e,e=e.dispatch=rs.bind(null,ma,e),[t.memoizedState,e]}function Ba(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Va(){return Ia().memoizedState}function Ua(e,t,r,n){var i=Pa();ma.flags|=e,i.memoizedState=Ba(1|t,r,void 0,void 0===n?null:n)}function za(e,t,r,n){var i=Ia();n=void 0===n?null:n;var o=void 0;if(null!==ya){var a=ya.memoizedState;if(o=a.destroy,null!==n&&Aa(n,a.deps))return void(i.memoizedState=Ba(t,r,o,n))}ma.flags|=e,i.memoizedState=Ba(1|t,r,o,n)}function Ga(e,t){return Ua(8390656,8,e,t)}function Wa(e,t){return za(2048,8,e,t)}function Ha(e,t){return za(4,2,e,t)}function $a(e,t){return za(4,4,e,t)}function Ya(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 qa(e,t,r){return r=null!=r?r.concat([e]):null,za(4,4,Ya.bind(null,t,e),r)}function Ka(){}function Qa(e,t){var r=Ia();
vendor: 21,461 bytes, line 2
2t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Aa(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Xa(e,t){var r=Ia();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Aa(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Za(e,t,r){return 0==(21&ha)?(e.baseState&&(e.baseState=!1,Es=!0),e.memoizedState=r):(sn(r,t)||(r=mt(),ma.lanes|=r,Fc|=r,e.baseState=!0),t)}function Ja(e,t){var r=bt;bt=0!==r&&4>r?r:4,e(!0);var n=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=r,pa.transition=n}}function es(){return Ia().memoizedState}function ts(e,t,r){var n=rl(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e))is(t,r);else if(null!==(r=Oo(e,t,r,n))){nl(r,e,n,tl()),os(r,t,n)}}function rs(e,t,r){var n=rl(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,sn(s,a)){var c=t.interleaved;return null===c?(i.next=i,ko(t)):(i.next=c.next,c.next=i),void(t.interleaved=i)}}catch(e){}null!==(r=Oo(e,t,i,n))&&(nl(r,e,n,i=tl()),os(r,t,n))}}function ns(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function is(e,t){ba=ga=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function os(e,t,r){if(0!=(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,gt(e,r)}}var as={readContext:Po,useCallback:Sa,useContext:Sa,useEffect:Sa,useImperativeHandle:Sa,useInsertionEffect:Sa,useLayoutEffect:Sa,useMemo:Sa,useReducer:Sa,useRef:Sa,useState:Sa,useDebugValue:Sa,useDeferredValue:Sa,useTransition:Sa,useMutableSource:Sa,useSyncExternalStore:Sa,useId:Sa,unstable_isNewReconciler:!1},ss={readContext:Po,useCallback:function(e,t){return Pa().memoizedState=[e,void 0===t?null:t],e},useContext:Po,useEffect:Ga,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Ua(4194308,4,Ya.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ua(4,2,e,t)},useMemo:function(e,t){var r=Pa();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Pa();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ts.bind(null,ma,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Pa().memoizedState=e},useState:ja,useDebugValue:Ka,useDeferredValue:function(e){return Pa().memoizedState=e},useTransition:function(){var e=ja(!1),t=e[0];return e=Ja.bind(null,e[1]),Pa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ma,i=Pa();if(io){if(void 0===r)throw Error(o(407));r=r()}else{if(r=t(),null===Tc)throw Error(o(349));0!=(30&ha)||Na(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ga(Da.bind(null,n,a,e),[e]),n.flags|=2048,Ba(9,La.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Pa(),t=Tc.identifierPrefix;if(io){var r=Xi;t=":"+t+"R"+(r=(Qi&~(1<<32-at(Qi)-1)).toString(32)+r),0<(r=Ea++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cs={readContext:Po,useCallback:Qa,useContext:Po,useEffect:Wa,useImperativeHandle:qa,useInsertionEffect:Ha,useLayoutEffect:$a,useMemo:Xa,useReducer:Oa,useRef:Va,useState:function(){return Oa(ka)},useDebugValue:Ka,useDeferredValue:function(e){return Za(Ia(),ya.memoizedState,e)},useTransition:function(){return[Oa(ka)[0],Ia().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1},ls={readContext:Po,useCallback:Qa,useContext:Po,useEffect:Wa,useImperativeHandle:qa,useInsertionEffect:Ha,useLayoutEffect:$a,useMemo:Xa,useReducer:Ta,useRef:Va,useState:function(){return Ta(ka)},useDebugValue:Ka,useDeferredValue:function(e){var t=Ia();return null===ya?t.memoizedState=e:Za(t,ya.memoizedState,e)},useTransition:function(){return[Ta(ka)[0],Ia().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var r="",n=t;do{r+=U(n),n=n.return}while(n);var i=r}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,r){(r=Lo(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Hc||(Hc=!0,$c=n),fs(0,t)},r}function ms(e,t,r){(r=Lo(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){fs(0,t),"function"!=typeof n&&(null===Yc?Yc=new Set([this]):Yc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ys(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new ps;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Pl.bind(null,e,t,r),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,r,n,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Lo(-1,1)).tag=2,Do(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=E.ReactCurrentOwner,Es=!1;function ws(e,t,r,n){t.child=null===e?Zo(t,null,r,n):Xo(t,e.child,r,n)}function Ss(e,t,r,n,i){r=r.render;var o=t.ref;return xo(t,i),n=_a(e,t,r,n,o,i),r=xa(),null===e||Es?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function As(e,t,r,n,i){if(null===e){var o=r.type;return"function"!=typeof o||Nl(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Dl(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,_s(e,t,o,n,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((r=null!==(r=r.compare)?r:cn)(a,n)&&e.ref===t.ref)return Hs(e,t,i)}return t.flags|=1,(e=Ll(o,n)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,r,n,i){if(null!==e){var o=e.memoizedProps;if(cn(o,n)&&e.ref===t.ref){if(Es=!1,t.pendingProps=n=o,0==(e.lanes&i))return t.lanes=e.lanes,Hs(e,t,i);0!=(131072&e.flags)&&(Es=!0)}}return Is(e,t,r,n,i)}function xs(e,t,r){var n=t.pendingProps,i=n.children,o=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pi(Lc,Nc),Nc|=r;else{if(0==(1073741824&r))return e=null!==o?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pi(Lc,Nc),Nc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==o?o.baseLanes:r,Pi(Lc,Nc),Nc|=n}else null!==o?(n=o.baseLanes|r,t.memoizedState=null):n=r,Pi(Lc,Nc),Nc|=n;return ws(e,t,i,r),t.child}function Ps(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Is(e,t,r,n,i){var o=Ri(r)?Ti:ki.current;return o=Ci(t,o),xo(t,i),r=_a(e,t,r,n,o,i),n=xa(),null===e||Es?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function ks(e,t,r,n,i){if(Ri(r)){var o=!0;Mi(t)}else o=!1;if(xo(t,i),null===t.stateNode)Ws(e,t),Wo(t,r,n),$o(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=r.contextType;"object"==typeof l&&null!==l?l=Po(l):l=Ci(t,l=Ri(r)?Ti:ki.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||c!==l)&&Ho(t,a,n,l),Co=!1;var f=t.memoizedState;a.state=f,jo(t,n,a,i),c=t.memoizedState,s!==n||f!==c||Oi.current||Co?("function"==typeof u&&(Uo(t,r,u,n),c=t.memoizedState),(s=Co||Go(t,r,s,n,f,c,l))?(d||"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|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),a.props=n,a.state=c,a.context=l,n=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,No(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:vo(t.type,s),a.props=l,d=t.pendingProps,f=a.context,"object"==typeof(c=r.contextType)&&null!==c?c=Po(c):c=Ci(t,c=Ri(r)?Ti:ki.current);var p=r.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==c)&&Ho(t,a,n,c),Co=!1,f=t.memoizedState,a.state=f,jo(t,n,a,i);var h=t.memoizedState;s!==d||f!==h||Oi.current||Co?("function"==typeof p&&(Uo(t,r,p,n),h=t.memoizedState),(l=Co||Go(t,r,l,n,f,h,c)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,h,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,h,c)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),a.props=n,a.state=h,a.context=c,n=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Os(e,t,r,n,o,i)}function Os(e,t,r,n,i,o){Ps(e,t);var a=0!=(128&t.flags);if(!n&&!a)return i&&Fi(t,r,!1),Hs(e,t,o);n=t.stateNode,bs.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=Xo(t,e.child,null,o),t.child=Xo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=n.state,i&&Fi(t,r,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),ia(e,t.containerInfo)}function Cs(e,t,r,n,i){return ho(),mo(i),t.flags|=256,ws(e,t,r,n),t.child}var Rs,Ns,Ls,Ds,Ms={dehydrated:null,treeContext:null,retryLane:0};function Fs(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,r){var n,i=t.pendingProps,a=ca.current,s=!1,c=0!=(128&t.flags);if((n=c)||(n=(null===e||null!==e.memoizedState)&&0!=(2&a)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Pi(ca,1&a),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(c=i.children,e=i.fallback,s?(i=t.mode,s=t.child,c={mode:"hidden",children:c},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=c):s=Fl(c,i,0,null),e=Ml(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Fs(r),t.memoizedState=Ms,e):Bs(t,c));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Vs(e,t,s,n=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Fl({mode:"visible",children:n.children},i,0,null),(a=Ml(a,i,s,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!=(1&t.mode)&&Xo(t,e.child,null,s),t.child.memoizedState=Fs(s),t.memoizedState=Ms,a);if(0==(1&t.mode))return Vs(e,t,s,null);if("$!"===i.data){if(n=i.nextSibling&&i.nextSibling.dataset)var c=n.dgst;return n=c,Vs(e,t,s,n=ds(a=Error(o(419)),n,void 0))}if(c=0!=(s&e.childLanes),Es||c){if(null!==(n=Tc)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(n.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,To(e,i),nl(n,e,i,-1))}return yl(),Vs(e,t,s,n=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=kl.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,no=li(i.nextSibling),ro=t,io=!0,oo=null,null!==e&&(Yi[qi++]=Qi,Yi[qi++]=Xi,Yi[qi++]=Ki,Qi=e.id,Xi=e.overflow,Ki=t),t=Bs(t,n.children),t.flags|=4096,t)}(e,t,c,i,n,a,r);if(s){s=i.fallback,c=t.mode,n=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&c)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=Ll(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==n?s=Ll(n,s):(s=Ml(s,c,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,c=null===(c=e.child.memoizedState)?Fs(r):{baseLanes:c.baseLanes|r,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~r,t.memoizedState=Ms,i}return e=(s=e.child).sibling,i=Ll(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Bs(e,t){return(t=Fl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vs(e,t,r,n){return null!==n&&mo(n),Xo(t,e.child,null,r),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),_o(e.return,t,r)}function zs(e,t,r,n,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function Gs(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(ws(e,t,n.children,r),0!=(2&(n=ca.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,r,t);else if(19===e.tag)Us(e,r,t);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}n&=1}if(Pi(ca,n),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===la(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),zs(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===la(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}zs(t,!0,r,null,o);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ws(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Fc|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(r=Ll(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ll(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function $s(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ys(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=14680064&i.subtreeFlags,n|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function qs(e,t,r){var n=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(t),null;case 1:case 17:return Ri(t.type)&&Ni(),Ys(t),null;case 3:return n=t.stateNode,oa(),xi(Oi),xi(ki),da(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(sl(oo),oo=null))),Ns(e,t),Ys(t),null;case 5:sa(t);var i=na(ra.current);if(r=t.type,null!==e&&null!=t.stateNode)Ls(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(o(166));return Ys(t),null}if(e=na(ea.current),fo(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[fi]=t,n[pi]=a,e=0!=(1&t.mode),r){case"dialog":Bn("cancel",n),Bn("close",n);break;case"iframe":case"object":case"embed":Bn("load",n);break;case"video":case"audio":for(i=0;i<Dn.length;i++)Bn(Dn[i],n);break;case"source":Bn("error",n);break;case"img":case"image":case"link":Bn("error",n),Bn("load",n);break;case"details":Bn("toggle",n);break;case"input":Q(n,a),Bn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Bn("invalid",n);break;case"textarea":ie(n,a),Bn("invalid",n)}for(var c in ge(r,a),i=null,a)if(a.hasOwnProperty(c)){var l=a[c];"children"===c?"string"==typeof l?n.textContent!==l&&(!0!==a.suppressHydrationWarning&&Zn(n.textContent,l,e),i=["children",l]):"number"==typeof l&&n.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Zn(n.textContent,l,e),i=["children",""+l]):s.hasOwnProperty(c)&&null!=l&&"onScroll"===c&&Bn("scroll",n)}switch(r){case"input":$(n),J(n,a,!0);break;case"textarea":$(n),ae(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Jn)}n=i,t.updateQueue=n,null!==n&&(t.flags|=4)}else{c=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),"select"===r&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[fi]=t,e[pi]=n,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(c=be(r,n),r){case"dialog":Bn("cancel",e),Bn("close",e),i=n;break;case"iframe":case"object":case"embed":Bn("load",e),i=n;break;case"video":case"audio":for(i=0;i<Dn.length;i++)Bn(Dn[i],e);i=n;break;case"source":Bn("error",e),i=n;break;case"img":case"image":case"link":Bn("error",e),Bn("load",e),i=n;break;case"details":Bn("toggle",e),i=n;break;case"input":Q(e,n),i=K(e,n),Bn("invalid",e);break;case"option":default:i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=F({},n,{value:void 0}),Bn("invalid",e);break;case"textarea":ie(e,n),i=ne(e,n),Bn("invalid",e)}for(a in ge(r,i),l=i)if(l.hasOwnProperty(a)){var u=l[a];"style"===a?ye(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==r||""!==u)&&fe(e,u):"number"==typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Bn("scroll",e):null!=u&&b(e,a,u,c))}switch(r){case"input":$(e),J(e,n,!1);break;case"textarea":$(e),ae(e);break;case"option":null!=n.value&&e.setAttribute("value",""+W(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?re(e,!!n.multiple,a,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Jn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ys(t),null;case 6:if(e&&null!=t.stateNode)Ds(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(o(166));if(r=na(ra.current),na(ea.current),fo(t)){if(n=t.stateNode,r=t.memoizedProps,n[fi]=t,(a=n.nodeValue!==r)&&null!==(e=ro))switch(e.tag){case 3:Zn(n.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zn(n.nodeValue,r,0!=(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[fi]=t,t.stateNode=n}return Ys(t),null;case 13:if(xi(ca),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==no&&0!=(1&t.mode)&&0==(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else ho(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ys(t),a=!1}else null!==oo&&(sl(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ca.current)?0===Dc&&(Dc=3):yl()
vendor: 4,846 bytes, line 2
2)),null!==t.updateQueue&&(t.flags|=4),Ys(t),null);case 4:return oa(),Ns(e,t),null===e&&zn(t.stateNode.containerInfo),Ys(t),null;case 10:return Ao(t.type._context),Ys(t),null;case 19:if(xi(ca),null===(a=t.memoizedState))return Ys(t),null;if(n=0!=(128&t.flags),null===(c=a.rendering))if(n)$s(a,!1);else{if(0!==Dc||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(c=la(e))){for(t.flags|=128,$s(a,!1),null!==(n=c.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Pi(ca,1&ca.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Gc&&(t.flags|=128,n=!0,$s(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=la(c))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),$s(a,!0),null===a.tail&&"hidden"===a.tailMode&&!c.alternate&&!io)return Ys(t),null}else 2*Xe()-a.renderingStartTime>Gc&&1073741824!==r&&(t.flags|=128,n=!0,$s(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=a.last)?r.sibling=c:t.child=c,a.last=c)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,r=ca.current,Pi(ca,n?1&r|2:1&r),t):(Ys(t),null);case 22:case 23:return fl(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&Nc)&&(Ys(t),6&t.subtreeFlags&&(t.flags|=8192)):Ys(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ks(e,t){switch(to(t),t.tag){case 1:return Ri(t.type)&&Ni(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),xi(Oi),xi(ki),da(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(xi(ca),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xi(ca),null;case 4:return oa(),null;case 10:return Ao(t.type._context),null;case 22:case 23:return fl(),null;default:return null}}Rs=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ns=function(){},Ls=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,na(ea.current);var o,a=null;switch(r){case"input":i=K(e,i),n=K(e,n),a=[];break;case"select":i=F({},i,{value:void 0}),n=F({},n,{value:void 0}),a=[];break;case"textarea":i=ne(e,i),n=ne(e,n),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(e.onclick=Jn)}for(u in ge(r,n),r=null,i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var c=i[u];for(o in c)c.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(c=null!=i?i[u]:void 0,n.hasOwnProperty(u)&&l!==c&&(null!=l||null!=c))if("style"===u)if(c){for(o in c)!c.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&c[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Bn("scroll",e),a||c===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ds=function(e,t,r,n){r!==n&&(t.flags|=4)};var Qs=!1,Xs=!1,Zs="function"==typeof WeakSet?WeakSet:Set,Js=null;function ec(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){xl(e,t,r)}else r.current=null}function tc(e,t,r){try{r()}catch(r){xl(e,t,r)}}var rc=!1;function nc(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tc(t,r,o)}i=i.next}while(i!==n)}}function ic(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}
vendor: 13,257 bytes, line 2
2while(r!==t)}}function oc(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function ac(e){var t=e.alternate;null!==t&&(e.alternate=null,ac(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[mi],delete t[yi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sc(e){return 5===e.tag||3===e.tag||4===e.tag}function cc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lc(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Jn));else if(4!==n&&null!==(e=e.child))for(lc(e,t,r),e=e.sibling;null!==e;)lc(e,t,r),e=e.sibling}function uc(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(uc(e,t,r),e=e.sibling;null!==e;)uc(e,t,r),e=e.sibling}var dc=null,fc=!1;function pc(e,t,r){for(r=r.child;null!==r;)hc(e,t,r),r=r.sibling}function hc(e,t,r){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,r)}catch(e){}switch(r.tag){case 5:Xs||ec(r,t);case 6:var n=dc,i=fc;dc=null,pc(e,t,r),fc=i,null!==(dc=n)&&(fc?(e=dc,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):dc.removeChild(r.stateNode));break;case 18:null!==dc&&(fc?(e=dc,r=r.stateNode,8===e.nodeType?ci(e.parentNode,r):1===e.nodeType&&ci(e,r),zt(e)):ci(dc,r.stateNode));break;case 4:n=dc,i=fc,dc=r.stateNode.containerInfo,fc=!0,pc(e,t,r),dc=n,fc=i;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&tc(r,t,a),i=i.next}while(i!==n)}pc(e,t,r);break;case 1:if(!Xs&&(ec(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){xl(r,t,e)}pc(e,t,r);break;case 21:pc(e,t,r);break;case 22:1&r.mode?(Xs=(n=Xs)||null!==r.memoizedState,pc(e,t,r),Xs=n):pc(e,t,r);break;default:pc(e,t,r)}}function mc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Zs),t.forEach((function(t){var n=Ol.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function yc(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,s=t,c=s;e:for(;null!==c;){switch(c.tag){case 5:dc=c.stateNode,fc=!1;break e;case 3:case 4:dc=c.stateNode.containerInfo,fc=!0;break e}c=c.return}if(null===dc)throw Error(o(160));hc(a,s,i),dc=null,fc=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){xl(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vc(t,e),t=t.sibling}function vc(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yc(t,e),gc(e),4&n){try{nc(3,e,e.return),ic(3,e)}catch(t){xl(e,e.return,t)}try{nc(5,e,e.return)}catch(t){xl(e,e.return,t)}}break;case 1:yc(t,e),gc(e),512&n&&null!==r&&ec(r,r.return);break;case 5:if(yc(t,e),gc(e),512&n&&null!==r&&ec(r,r.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){xl(e,e.return,t)}}if(4&n&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,c=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===c&&"radio"===a.type&&null!=a.name&&X(i,a),be(c,s);var u=be(c,a);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];"style"===d?ye(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,u)}switch(c){case"input":Z(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(t){xl(e,e.return,t)}}break;case 6:if(yc(t,e),gc(e),4&n){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){xl(e,e.return,t)}}break;case 3:if(yc(t,e),gc(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){xl(e,e.return,t)}break;case 4:default:yc(t,e),gc(e);break;case 13:yc(t,e),gc(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(zc=Xe())),4&n&&mc(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Xs=(u=Xs)||d,yc(t,e),Xs=u):yc(t,e),gc(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nc(4,p,p.return);break;case 1:ec(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){n=p,r=p.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){xl(n,r,e)}}break;case 5:ec(p,p.return);break;case 22:if(null!==p.memoizedState){Sc(f);continue}}null!==h?(h.return=p,Js=h):Sc(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(c=f.stateNode,s=null!=(l=f.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,c.style.display=me("display",s))}catch(t){xl(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){xl(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:yc(t,e),gc(e),4&n&&mc(e);case 21:}}function gc(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(sc(r)){var n=r;break e}r=r.return}throw Error(o(160))}switch(n.tag){case 5:var i=n.stateNode;32&n.flags&&(fe(i,""),n.flags&=-33),uc(e,cc(e),i);break;case 3:case 4:var a=n.stateNode.containerInfo;lc(e,cc(e),a);break;default:throw Error(o(161))}}catch(t){xl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bc(e,t,r){Js=e,Ec(e,t,r)}function Ec(e,t,r){for(var n=0!=(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&n){var a=null!==i.memoizedState||Qs;if(!a){var s=i.alternate,c=null!==s&&null!==s.memoizedState||Xs;s=Qs;var l=Xs;if(Qs=a,(Xs=c)&&!l)for(Js=i;null!==Js;)c=(a=Js).child,22===a.tag&&null!==a.memoizedState?Ac(i):null!==c?(c.return=a,Js=c):Ac(i);for(;null!==o;)Js=o,Ec(o,t,r),o=o.sibling;Js=i,Qs=s,Xs=l}wc(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,Js=o):wc(e)}}function wc(e){for(;null!==Js;){var t=Js;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xs||ic(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Xs)if(null===r)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:vo(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bo(t,a,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Bo(t,s,r)}break;case 5:var c=t.stateNode;if(null===r&&4&t.flags){r=c;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&zt(f)}}}break;default:throw Error(o(163))}Xs||512&t.flags&&oc(t)}catch(e){xl(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(r=t.sibling)){r.return=t.return,Js=r;break}Js=t.return}}function Sc(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Js=r;break}Js=t.return}}function Ac(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ic(4,t)}catch(e){xl(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var i=t.return;try{n.componentDidMount()}catch(e){xl(t,i,e)}}var o=t.return;try{oc(t)}catch(e){xl(t,o,e)}break;case 5:var a=t.return;try{oc(t)}catch(e){xl(t,a,e)}}}catch(e){xl(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var _c,xc=Math.ceil,Pc=E.ReactCurrentDispatcher,Ic=E.ReactCurrentOwner,kc=E.ReactCurrentBatchConfig,Oc=0,Tc=null,Cc=null,Rc=0,Nc=0,Lc=_i(0),Dc=0,Mc=null,Fc=0,jc=0,Bc=0,Vc=null,Uc=null,zc=0,Gc=1/0,Wc=null,Hc=!1,$c=null,Yc=null,qc=!1,Kc=null,Qc=0,Xc=0,Zc=null,Jc=-1,el=0;function tl(){return 0!=(6&Oc)?Xe():-1!==Jc?Jc:Jc=Xe()}function rl(e){return 0==(1&e.mode)?1:0!=(2&Oc)&&0!==Rc?Rc&-Rc:null!==yo.transition?(0===el&&(el=mt()),el):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function nl(e,t,r,n){if(50<Xc)throw Xc=0,Zc=null,Error(o(185));vt(e,r,n),0!=(2&Oc)&&e===Tc||(e===Tc&&(0==(2&Oc)&&(jc|=r),4===Dc&&cl(e,Rc)),il(e,n),1===r&&0===Oc&&0==(1&t.mode)&&(Gc=Xe()+500,Bi&&zi()))}function il(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,c=i[a];-1===c?0!=(s&r)&&0==(s&n)||(i[a]=pt(s,t)):c<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var n=ft(e,e===Tc?Rc:0);if(0===n)null!==r&&qe(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&qe(r),1===t)0===e.tag?function(e){Bi=!0,Ui(e)}(ll.bind(null,e)):Ui(ll.bind(null,e)),ai((function(){0==(6&Oc)&&zi()})),r=null;else{switch(Et(n)){case 1:r=Je;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Tl(r,ol.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ol(e,t){if(Jc=-1,el=0,0!=(6&Oc))throw Error(o(327));var r=e.callbackNode;if(Al()&&e.callbackNode!==r)return null;var n=ft(e,e===Tc?Rc:0);if(0===n)return null;if(0!=(30&n)||0!=(n&e.expiredLanes)||t)t=vl(e,n);else{t=n;var i=Oc;Oc|=2;var a=ml();for(Tc===e&&Rc===t||(Wc=null,Gc=Xe()+500,pl(e,t));;)try{bl();break}catch(t){hl(e,t)}So(),Pc.current=a,Oc=i,null!==Cc?t=0:(Tc=null,Rc=0,t=Dc)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(n=i,t=al(e,i))),1===t)throw r=Mc,pl(e,0),cl(e,n),il(e,Xe()),r;if(6===t)cl(e,n);else{if(i=e.current.alternate,0==(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!sn(o(),i))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=vl(e,n))&&(0!==(a=ht(e))&&(n=a,t=al(e,a))),1===t))throw r=Mc,pl(e,0),cl(e,n),il(e,Xe()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(o(345));case 2:case 5:Sl(e,Uc,Wc);break;case 3:if(cl(e,n),(130023424&n)===n&&10<(t=zc+500-Xe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){tl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ni(Sl.bind(null,e,Uc,Wc),t);break}Sl(e,Uc,Wc);break;case 4:if(cl(e,n),(4194240&n)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-at(n);a=1<<s,(s=t[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=Xe()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*xc(n/1960))-n)){e.timeoutHandle=ni(Sl.bind(null,e,Uc,Wc),n);break}Sl(e,Uc,Wc);break;default:throw Error(o(329))}}}return il(e,Xe()),e.callbackNode===r?ol.bind(null,e):null}function al(e,t){var r=Vc;return e.current.memoizedState.isDehydrated&&(pl(e,t).flags|=256),2!==(e=vl(e,t))&&(t=Uc,Uc=r,null!==t&&sl(t)),e}function sl(e){null===Uc?Uc=e:Uc.push.apply(Uc,e)}function cl(e,t){for(t&=~Bc,t&=~jc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-at(t),n=1<<r;e[r]=-1,t&=~n}}function ll(e){if(0!=(6&Oc))throw Error(o(327));Al();var t=ft(e,0);if(0==(1&t))return il(e,Xe()),null;var r=vl(e,t);if(0!==e.tag&&2===r){var n=ht(e);0!==n&&(t=n,r=al(e,n))}if(1===r)throw r=Mc,pl(e,0),cl(e,t),il(e,Xe()),r;if(6===r)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sl(e,Uc,Wc),il(e,Xe()),null}function ul(e,t){var r=Oc;Oc|=1;try{return e(t)}finally{0===(Oc=r)&&(Gc=Xe()+500,Bi&&zi())}}function dl(e){null!==Kc&&0===Kc.tag&&0==(6&Oc)&&Al();var t=Oc;Oc|=1;var r=kc.transition,n=bt;try{if(kc.transition=null,bt=1,e)return e()}finally{bt=n,kc.transition=r,0==(6&(Oc=t))&&zi()}}function fl(){Nc=Lc.current,xi(Lc)}function pl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,ii(r)),null!==Cc)for(r=Cc.return;null!==r;){var n=r;switch(to(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ni();break;
vendor: 4,365 bytes, line 2
2case 3:oa(),xi(Oi),xi(ki),da();break;case 5:sa(n);break;case 4:oa();break;case 13:case 19:xi(ca);break;case 10:Ao(n.type._context);break;case 22:case 23:fl()}r=r.return}if(Tc=e,Cc=e=Ll(e.current,null),Rc=Nc=t,Dc=0,Mc=null,Bc=jc=Fc=0,Uc=Vc=null,null!==Io){for(t=0;t<Io.length;t++)if(null!==(n=(r=Io[t]).interleaved)){r.interleaved=null;var i=n.next,o=r.pending;if(null!==o){var a=o.next;o.next=i,n.next=a}r.pending=n}Io=null}return e}function hl(e,t){for(;;){var r=Cc;try{if(So(),fa.current=as,ga){for(var n=ma.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}ga=!1}if(ha=0,va=ya=ma=null,ba=!1,Ea=0,Ic.current=null,null===r||null===r.return){Dc=1,Mc=t,Cc=null;break}e:{var a=e,s=r.return,c=r,l=t;if(t=Rc,c.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,d=c,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vs(s);if(null!==h){h.flags&=-257,gs(h,s,c,0,t),1&h.mode&&ys(a,u,t),l=u;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}if(0==(1&t)){ys(a,u,t),yl();break e}l=Error(o(426))}else if(io&&1&c.mode){var v=vs(s);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),gs(v,s,c,0,t),mo(us(l,c));break e}}a=l=us(l,c),4!==Dc&&(Dc=2),null===Vc?Vc=[a]:Vc.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Fo(a,hs(0,l,t));break e;case 1:c=l;var g=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof g.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Yc||!Yc.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Fo(a,ms(a,c,t));break e}}a=a.return}while(null!==a)}wl(r)}catch(e){t=e,Cc===r&&null!==r&&(Cc=r=r.return);continue}break}}function ml(){var e=Pc.current;return Pc.current=as,null===e?as:e}function yl(){0!==Dc&&3!==Dc&&2!==Dc||(Dc=4),null===Tc||0==(268435455&Fc)&&0==(268435455&jc)||cl(Tc,Rc)}function vl(e,t){var r=Oc;Oc|=2;var n=ml();for(Tc===e&&Rc===t||(Wc=null,pl(e,t));;)try{gl();break}catch(t){hl(e,t)}if(So(),Oc=r,Pc.current=n,null!==Cc)throw Error(o(261));return Tc=null,Rc=0,Dc}function gl(){for(;null!==Cc;)El(Cc)}function bl(){for(;null!==Cc&&!Ke();)El(Cc)}function El(e){var t=_c(e.alternate,e,Nc);e.memoizedProps=e.pendingProps,null===t?wl(e):Cc=t,Ic.current=null}function wl(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=qs(r,t,Nc)))return void(Cc=r)}else{if(null!==(r=Ks(r,t)))return r.flags&=32767,void(Cc=r);if(null===e)return Dc=6,void(Cc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Cc=t);Cc=t=e}while(null!==t);0===Dc&&(Dc=5)}function Sl(e,t,r){var n=bt,i=kc.transition;try{kc.transition=null,bt=1,function(e,t,r,n){do{Al()}while(null!==Kc);if(0!=(6&Oc))throw Error(o(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-at(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}(e,a),e===Tc&&(Cc=Tc=null,Rc=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||qc||(qc=!0,Tl(tt,(function(){return Al(),null}))),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=kc.transition,kc.transition=null;var s=bt;bt=1;var c=Oc;Oc|=4,Ic.current=null,function(e,t){if(ei=Wt,pn(e=fn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(c=s+i),f!==a||0!==n&&3!==f.nodeType||(l=s+n),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++u===i&&(c=s),p===a&&++d===n&&(l=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===c||-1===l?null:{start:c,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;
vendor: 4,750 bytes, line 2
2for(ti={focusedElem:e,selectionRange:r},Wt=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:vo(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var E=t.stateNode.containerInfo;1===E.nodeType?E.textContent="":9===E.nodeType&&E.documentElement&&E.removeChild(E.documentElement);break;default:throw Error(o(163))}}catch(e){xl(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=rc,rc=!1}(e,r),vc(r,e),hn(ti),Wt=!!ei,ti=ei=null,e.current=r,bc(r,e,i),Qe(),Oc=c,bt=s,kc.transition=a}else e.current=r;if(qc&&(qc=!1,Kc=e,Qc=i),a=e.pendingLanes,0===a&&(Yc=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),il(e,Xe()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Hc)throw Hc=!1,e=$c,$c=null,e;0!=(1&Qc)&&0!==e.tag&&Al(),a=e.pendingLanes,0!=(1&a)?e===Zc?Xc++:(Xc=0,Zc=e):Xc=0,zi()}(e,t,r,n)}finally{kc.transition=i,bt=n}return null}function Al(){if(null!==Kc){var e=Et(Qc),t=kc.transition,r=bt;try{if(kc.transition=null,bt=16>e?16:e,null===Kc)var n=!1;else{if(e=Kc,Kc=null,Qc=0,0!=(6&Oc))throw Error(o(331));var i=Oc;for(Oc|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!=(16&Js.flags)){var c=a.deletions;if(null!==c){for(var l=0;l<c.length;l++){var u=c[l];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nc(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(ac(d),d===u){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(null!==y)}}Js=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!=(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nc(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Js=g;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var E=(s=Js).child;if(0!=(2064&s.subtreeFlags)&&null!==E)E.return=s,Js=E;else e:for(s=b;null!==Js;){if(0!=(2048&(c=Js).flags))try{switch(c.tag){case 0:case 11:case 15:ic(9,c)}}catch(e){xl(c,c.return,e)}if(c===s){Js=null;break e}var w=c.sibling;if(null!==w){w.return=c.return,Js=w;break e}Js=c.return}}if(Oc=i,zi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}n=!0}return n}finally{bt=r,kc.transition=t}}return!1}function _l(e,t,r){e=Do(e,t=hs(0,t=us(r,t),1),1),t=tl(),null!==e&&(vt(e,1,t),il(e,t))}function xl(e,t,r){if(3===e.tag)_l(e,e,r);else for(;null!==t;){if(3===t.tag){_l(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Yc||!Yc.has(n))){t=Do(t,e=ms(t,e=us(r,e),1),1),e=tl(),null!==t&&(vt(t,1,e),il(t,e));break}}t=t.return}}function Pl(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=tl(),e.pingedLanes|=e.suspendedLanes&r,Tc===e&&(Rc&r)===r&&(4===Dc||3===Dc&&(130023424&Rc)===Rc&&500>Xe()-zc?pl(e,0):Bc|=r),il(e,t)}function Il(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var r=tl();null!==(e=To(e,t))&&(vt(e,t,r),il(e,r))}function kl(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Il(e,r)}function Ol(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(o(314))}null!==n&&n.delete(t),Il(e,r)}function Tl(e,t){return Ye(e,t)}function Cl(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rl(e,t,r,n){return new Cl(e,t,r,n)}function Nl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ll(e,t){var r=e.alternate;return null===r?((r=Rl(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.depen
vendor: 9,424 bytes, line 2
2dencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Dl(e,t,r,n,i,a){var s=2;if(n=e,"function"==typeof e)Nl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case A:return Ml(r.children,i,a,t);case _:s=8,i|=8;break;case x:return(e=Rl(12,r,t,2|i)).elementType=x,e.lanes=a,e;case O:return(e=Rl(13,r,t,i)).elementType=O,e.lanes=a,e;case T:return(e=Rl(19,r,t,i)).elementType=T,e.lanes=a,e;case N:return Fl(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:s=10;break e;case I:s=9;break e;case k:s=11;break e;case C:s=14;break e;case R:s=16,n=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Rl(s,r,t,i)).elementType=e,t.type=n,t.lanes=a,t}function Ml(e,t,r,n){return(e=Rl(7,e,n,t)).lanes=r,e}function Fl(e,t,r,n){return(e=Rl(22,e,n,t)).elementType=N,e.lanes=r,e.stateNode={isHidden:!1},e}function jl(e,t,r){return(e=Rl(6,e,null,t)).lanes=r,e}function Bl(e,t,r){return(t=Rl(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vl(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ul(e,t,r,n,i,o,a,s,c){return e=new Vl(e,t,r,s,c),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Rl(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ro(o),e}function zl(e){if(!e)return Ii;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ri(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var r=e.type;if(Ri(r))return Di(e,r,t)}return t}function Gl(e,t,r,n,i,o,a,s,c){return(e=Ul(r,n,!0,e,0,o,0,s,c)).context=zl(null),r=e.current,(o=Lo(n=tl(),i=rl(r))).callback=null!=t?t:null,Do(r,o,i),e.current.lanes=i,vt(e,i,n),il(e,n),e}function Wl(e,t,r,n){var i=t.current,o=tl(),a=rl(i);return r=zl(r),null===t.context?t.context=r:t.pendingContext=r,(t=Lo(o,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Do(i,t,a))&&(nl(e,i,a,o),Mo(e,i,a)),a}function Hl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $l(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Yl(e,t){$l(e,t),(e=e.alternate)&&$l(e,t)}_c=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oi.current)Es=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return Es=!1,function(e,t,r){switch(t.tag){case 3:Ts(t),ho();break;case 5:aa(t);break;case 1:Ri(t.type)&&Mi(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Pi(go,n._currentValue),n._currentValue=i;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Pi(ca,1&ca.current),t.flags|=128,null):0!=(r&t.child.childLanes)?js(e,t,r):(Pi(ca,1&ca.current),null!==(e=Hs(e,t,r))?e.sibling:null);Pi(ca,1&ca.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(128&e.flags)){if(n)return Gs(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Pi(ca,ca.current),n)break;return null;case 22:case 23:return t.lanes=0,xs(e,t,r)}return Hs(e,t,r)}(e,t,r);Es=0!=(131072&e.flags)}else Es=!1,io&&0!=(1048576&t.flags)&&Ji(t,$i,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ws(e,t),e=t.pendingProps;var i=Ci(t,ki.current);xo(t,r),i=_a(null,t,n,e,i,r);var a=xa();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ri(n)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ro(t),i.updater=zo,t.stateNode=i,i._reactInternals=t,$o(t,n,e,r),t=Os(null,t,n,!0,a,r)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"==typeof e)return Nl(e)?1:0;if(null!=e){if((e=e.$$typeof)===k)return 11;if(e===C)return 14}return 2}(n),e=vo(n,e),i){case 0:t=Is(null,t,n,e,r);break e;case 1:t=ks(null,t,n,e,r);break e;case 11:t=Ss(null,t,n,e,r);break e;case 14:t=As(null,t,n,vo(n.type,e),r);break e}throw Error(o(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,Is(e,t,n,i=t.elementType===n?i:vo(n,i),r);case 1:return n=t.type,i=t.pendingProps,ks(e,t,n,i=t.elementType===n?i:vo(n,i),r);case 3:e:{if(Ts(t),null===e)throw Error(o(387));n=t.pendingProps,i=(a=t.memoizedState).element,No(e,t),jo(t,n,null,r);var s=t.memoizedState;if(n=s.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Cs(e,t,n,r,i=us(Error(o(423)),t));break e}if(n!==i){t=Cs(e,t,n,r,i=us(Error(o(424)),t));break e}for(no=li(t.stateNode.containerInfo.firstChild),ro=t,io=!0,oo=null,r=Zo(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ho(),n===i){t=Hs(e,t,r);break e}ws(e,t,n,r)}t=t.child}return t;case 5:return aa(t),null===e&&lo(t),n=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ri(n,i)?s=null:null!==a&&ri(n,a)&&(t.flags|=32),Ps(e,t),ws(e,t,s,r),t.child;case 6:return null===e&&lo(t),null;case 13:return js(e,t,r);case 4:return ia(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Xo(t,null,n,r):ws(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,Ss(e,t,n,i=t.elementType===n?i:vo(n,i),r);case 7:return ws(e,t,t.pendingProps,r),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Pi(go,n._currentValue),n._currentValue=s,null!==a)if(sn(a.value,s)){if(a.children===i.children&&!Oi.current){t=Hs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var c=a.dependencies;if(null!==c){s=a.child;for(var l=c.firstContext;null!==l;){if(l.context===n){if(1===a.tag){(l=Lo(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),_o(a.return,r,t),c.lanes|=r;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=r,null!==(c=s.alternate)&&(c.lanes|=r),_o(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,xo(t,r),n=n(i=Po(i)),t.flags|=1,ws(e,t,n,r),t.child;case 14:return i=vo(n=t.type,t.pendingProps),As(e,t,n,i=vo(n.type,i),r);case 15:return _s(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:vo(n,i),Ws(e,t),t.tag=1,Ri(n)?(e=!0,Mi(t)):e=!1,xo(t,r),Wo(t,n,i),$o(t,n,i,r),Os(null,t,n,!0,e,r);case 19:return Gs(e,t,r);case 22:return xs(e,t,r)}throw Error(o(156,t.tag))};var ql="function"==typeof reportError?reportError:function(e){console.error(e)};function Kl(e){this._internalRoot=e}function Ql(e){this._internalRoot=e}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jl(){}function eu(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Hl(a);s.call(e)}}Wl(t,a,e,i)}else a=function(e,t,r,n,i){if(i){if("function"==typeof n){var o=n;n=function(){var e=Hl(a);o.call(e)}}var a=Gl(t,n,e,0,null,!1,0,"",Jl);return e._reactRootContainer=a,e[hi]=a.current,zn(8===e.nodeType?e.parentNode:e),dl(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof n){var s=n;n=function(){var e=Hl(c);s.call(e)}}var c=Ul(e,0,!1,null,0,!1,0,"",Jl);return e._reactRootContainer=c,e[hi]=c.current,zn(8===e.nodeType?e.parentNode:e),dl((function(){Wl(t,c,r,n)})),c}(r,t,e,i,n);return Hl(a)}Ql.prototype.render=Kl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Wl(e,t,null,null)},Ql.prototype.unmount=Kl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dl((function(){Wl(null,e,null,null)})),t[hi]=null}},Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Nt.length&&0!==t&&t<Nt[r].priority;r++);Nt.splice(r,0,e),0===r&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dt(t.pendingLanes);0!==r&&(gt(t,1|r),il(t,Xe()),0==(6&Oc)&&(Gc=Xe()+500,zi()))}break;case 13:dl((function(){var t=To(e,1);
vendor: 4,431 bytes, line 2
2if(null!==t){var r=tl();nl(t,e,1,r)}})),Yl(e,1)}},St=function(e){if(13===e.tag){var t=To(e,134217728);if(null!==t)nl(t,e,134217728,tl());Yl(e,134217728)}},At=function(e){if(13===e.tag){var t=rl(e),r=To(e,t);if(null!==r)nl(r,e,t,tl());Yl(e,t)}},_t=function(){return bt},xt=function(e,t){var r=bt;try{return bt=e,t()}finally{bt=r}},Se=function(e,t,r){switch(t){case"input":if(Z(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=wi(n);if(!i)throw Error(o(90));Y(n),Z(n,i)}}}break;case"textarea":oe(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},ke=ul,Oe=dl;var tu={usingClientEntryPoint:!1,Events:[bi,Ei,wi,Pe,Ie,ul]},ru={findFiberByHostInstance:gi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nu={bundleType:ru.bundleType,version:ru.version,rendererPackageName:ru.rendererPackageName,rendererConfig:ru.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:ru.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{it=iu.inject(nu),ot=iu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xl(t))throw Error(o(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Xl(e))throw Error(o(299));var r=!1,n="",i=ql;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Ul(e,1,!1,null,0,r,0,n,i),e[hi]=t.current,zn(8===e.nodeType?e.parentNode:e),new Kl(t)},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(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return dl(e)},t.hydrate=function(e,t,r){if(!Zl(t))throw Error(o(200));return eu(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Xl(e))throw Error(o(405));var n=null!=r&&r.hydratedSources||null,i=!1,a="",s=ql;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Gl(t,null,e,1,null!=r?r:null,i,0,a,s),e[hi]=t.current,zn(e),n)for(e=0;e<n.length;e++)i=(i=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Ql(t)},t.render=function(e,t,r){if(!Zl(t))throw Error(o(200));return eu(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Zl(e))throw Error(o(40));return!!e._reactRootContainer&&(dl((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=ul,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Zl(r))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,r,!1,n)},t.version="18.2.0-next-9e3b772b8-20220608"},25873:(e,t,r)=>{"use strict";var n=r(43144);t.H=n.createRoot,n.hydrateRoot},43144:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(47400)},79772:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;
vendor: 4,704 bytes, line 2
2if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,c,l,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(c=s;0!=c--;)if(!o(e[c],a[c]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(c=s;0!=c--;)if(e[c]!==a[c])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(l=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(t&&e instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!e.$$typeof)&&!o(e[l[c]],a[l[c]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},93285:(e,t,r)=>{"use strict";r.d(t,{m:()=>pe});var n,i,o,a,s=r(39067),c=r.n(s),l=r(86399),u=r.n(l),d=r(79772),f=r.n(d),p=r(14041),h=r(61513),m=r.n(h),y="bodyAttributes",v="htmlAttributes",g="titleAttributes",b={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},E=(Object.keys(b).map((function(e){return b[e]})),"charset"),w="cssText",S="href",A="http-equiv",_="innerHTML",x="itemprop",P="name",I="property",k="rel",O="src",T="target",C={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},R="defaultTitle",N="defer",L="encodeSpecialCharacters",D="onChangeClientState",M="titleTemplate",F=Object.keys(C).reduce((function(e,t){return e[C[t]]=t,e}),{}),j=[b.NOSCRIPT,b.SCRIPT,b.STYLE],B="data-react-helmet",V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},W=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},H=function(e){var t=Q(e,b.TITLE),r=Q(e,M);if(r&&t)return r.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=Q(e,R);return t||n||void 0},$=function(e){return Q(e,D)||function(){}},Y=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return z({},e,t)}),{})},q=function(e,t){return t.filter((function(e){return void 0!==e[b.BASE]})).map((function(e){return e[b.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),i=0;i<n.length;i++){var o=n[i].toLowerCase();if(-1!==e.indexOf(o)&&r[o])return t.concat(r)}return t}),[])},K=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&te("Helmet: "+e+' should be of type "Array". Instead found type "'+V(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var i={};r.filter((function(e){for(var r=void 0,o=Object.keys(e),a=0;a<o.length;a++){var s=o[a],c=s.toLowerCase();-1===t.indexOf(c)||r===k&&"canonical"===e[r].toLowerCase()||c===k&&"stylesheet"===e[c].toLowerCase()||(r=c),-1===t.indexOf(s)||s!==_&&s!==w&&s!==x||(r=s)}if(!r||!e[r])return!1;var l=e[r].toLowerCase();return n[r]||(n[r]={}),i[r]||(i[r]={}),!n[r][l]&&(i[r][l]=!0,!0)}
2)).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],c=m()({},n[s],i[s]);n[s]=c}return e}),[]).reverse()},Q=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.hasOwnProperty(t))return n[t]}return null},X=(n=Date.now(),function(e){var t=Date.now();t-n>16?(n=t,e(t)):setTimeout((function(){X(e)}),0)}),Z=function(e){return clearTimeout(e)},J="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||X:r.g.requestAnimationFrame||X,ee="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Z:r.g.cancelAnimationFrame||Z,te=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},re=null,ne=function(e,t){var r=e.baseTag,n=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,l=e.scriptTags,u=e.styleTags,d=e.title,f=e.titleAttributes;ae(b.BODY,n),ae(b.HTML,i),oe(d,f);var p={baseTag:se(b.BASE,r),linkTags:se(b.LINK,o),metaTags:se(b.META,a),noscriptTags:se(b.NOSCRIPT,s),scriptTags:se(b.SCRIPT,l),styleTags:se(b.STYLE,u)},h={},m={};Object.keys(p).forEach((function(e){var t=p[e],r=t.newTags,n=t.oldTags;r.length&&(h[e]=r),n.length&&(m[e]=p[e].oldTags)})),t&&t(),c(e,h,m)},ie=function(e){return Array.isArray(e)?e.join(""):e},oe=function(e,t){void 0!==e&&document.title!==e&&(document.title=ie(e)),ae(b.TITLE,t)},ae=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute(B),i=n?n.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],l=t[c]||"";r.getAttribute(c)!==l&&r.setAttribute(c,l),-1===i.indexOf(c)&&i.push(c);var u=o.indexOf(c);-1!==u&&o.splice(u,1)}for(var d=o.length-1;d>=0;d--)r.removeAttribute(o[d]);i.length===o.length?r.removeAttribute(B):r.getAttribute(B)!==a.join(",")&&r.setAttribute(B,a.join(","))}},se=function(e,t){var r=document.head||document.querySelector(b.HEAD),n=r.querySelectorAll(e+"["+B+"]"),i=Array.prototype.slice.call(n),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===_)r.innerHTML=t.innerHTML;else if(n===w)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[n]?"":t[n];r.setAttribute(n,s)}r.setAttribute(B,"true"),i.some((function(e,t){return a=t,r.isEqualNode(e)}))?i.splice(a,1):o.push(r)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return r.appendChild(e)})),{oldTags:i,newTags:o}},ce=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[C[r]||r]=e[r],t}),t)},ue=function(e,t,r){switch(e){case b.TITLE:return{toComponent:function(){return e=t.title,r=t.titleAttributes,(n={key:e})[B]=!0,i=le(r,n),[p.createElement(b.TITLE,i,e)];var e,r,n,i},toString:function(){return function(e,t,r,n){var i=ce(r),o=ie(t);return i?"<"+e+" "+B+'="true" '+i+">"+W(o,n)+"</"+e+">":"<"+e+" "+B+'="true">'+W(o,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case y:case v:return{toComponent:function(){return le(t)},toString:function(){return ce(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,r){var n,i=((n={key:r})[B]=!0,n);return Object.keys(t).forEach((function(e){var r=C[e]||e;if(r===_||r===w){var n=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:n}}else i[r]=t[e]})),p.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var i=Object.keys(n).filter((function(e){return!(e===_||e===w)})).reduce((function(e,t){var i=void 0===n[t]?t:t+'="'+W(n[t],r)+'"';return e?e+" "+i:i}),""),o=n.innerHTML||n.cssText||"",a=-1===j.indexOf(e);return t+"<"+e+" "+B+'="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,r)}}}},de=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,l=e.styleTags,u=e.title,d=void 0===u?"":u,f=e.titleAttributes;return{base:ue(b.BASE,t,n),bodyAttributes:ue(y,r,n),htmlAttributes:ue(v,i,n),link:ue(b.LINK,o,n),meta:ue(b.META,a,n),noscript:ue(b.NOSCRIPT,s,n),script:ue(b.SCRIPT,c,n),style:ue(b.STYLE,l,
2n),title:ue(b.TITLE,{title:d,titleAttributes:f},n)}},fe=u()((function(e){return{baseTag:q([S,T],e),bodyAttributes:Y(y,e),defer:Q(e,N),encode:Q(e,L),htmlAttributes:Y(v,e),linkTags:K(b.LINK,[k,S],e),metaTags:K(b.META,[P,E,A,I,x],e),noscriptTags:K(b.NOSCRIPT,[_],e),onChangeClientState:$(e),scriptTags:K(b.SCRIPT,[O,_],e),styleTags:K(b.STYLE,[w],e),title:H(e),titleAttributes:Y(g,e)}}),(function(e){re&&ee(re),e.defer?re=J((function(){ne(e,(function(){re=null}))})):(ne(e),re=null)}),de)((function(){return null})),pe=(i=fe,a=o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!f()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case b.SCRIPT:case b.NOSCRIPT:return{innerHTML:t};case b.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return z({},n,((t={})[r.type]=[].concat(n[r.type]||[],[z({},i,this.mapNestedChildrenToProps(r,o))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(n.type){case b.TITLE:return z({},i,((t={})[n.type]=a,t.titleAttributes=z({},o),t));case b.BODY:return z({},i,{bodyAttributes:z({},o)});case b.HTML:return z({},i,{htmlAttributes:z({},o)})}return z({},i,((r={})[n.type]=z({},o),r))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=z({},t);return Object.keys(e).forEach((function(t){var n;r=z({},r,((n={})[t]=e[t],n))})),r}
2,t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return p.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[F[r]||r]=e[r],t}),t)}(G(i,["children"]));switch(r.warnOnInvalidChildren(e,o),e.type){case b.LINK:case b.META:case b.NOSCRIPT:case b.SCRIPT:case b.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:a,nestedChildren:o});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},t.prototype.render=function(){var e=this.props,t=e.children,r=G(e,["children"]),n=z({},r);return t&&(n=this.mapChildrenToProps(t,n)),p.createElement(i,n)},U(t,null,[{key:"canUseDOM",set:function(e){i.canUseDOM=e}}]),t}(p.Component),o.propTypes={base:c().object,bodyAttributes:c().object,children:c().oneOfType([c().arrayOf(c().node),c().node]),defaultTitle:c().string,defer:c().bool,encodeSpecialCharacters:c().bool,htmlAttributes:c().object,link:c().arrayOf(c().object),meta:c().arrayOf(c().object),noscript:c().arrayOf(c().object),onChangeClientState:c().func,script:c().arrayOf(c().object),style:c().arrayOf(c().object),title:c().string,titleAttributes:c().object,titleTemplate:c().string},o.defaultProps={defer:!0,encodeSpecialCharacters:!0},o.peek=i.peek,o.rewind=function(){var e=i.rewind();return e||(e=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);pe.renderStatic=pe.rewind},23929:(e,t,r)=>{"use strict";r.d(t,{Wx:()=>p,pL:()=>f});var n=r(14041),i=Object.defineProperty,o=(e,t,r)=>(((e,t,r)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),a=new Map,s=new WeakMap,c=0,l=void 0;function u(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(r=e.root,r?(s.has(r)||(c+=1,s.set(r,c.toString())),s.get(r)):"0"):e[t]}`;var r})).toString()}function d(e,t,r={},n=l){if(void 0===window.IntersectionObserver&&void 0!==n){const i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}const{id:i,observer:o,elements:s}=function(e){const t=u(e);let r=a.get(t);if(!r){const n=new Map;let i;const o=new IntersectionObserver((t=>{t.forEach((t=>{var r;const o=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=n.get(t.target))||r.forEach((e=>{e(o,t)}))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:o,elements:n},a.set(t,r)}return r}(r),c=s.get(e)||[];return s.has(e)||s.set(e,c),c.push(t),o.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(s.delete(e),o.unobserve(e)),0===s.size&&(o.disconnect(),a.delete(i))}}var f=class extends n.Component{constructor(e){super(e),o(this,"node",null),o(this,"_unobserveCb",null),o(this,"handleNode",(e=>{this.node&&(this.unobserve(),e||this.props.triggerOnce||this.props.skip||this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=e||null,this.observeNode()})),o(this,"handleChange",((e,t)=>{e&&this.props.triggerOnce&&this.unobserve(),function(e){return"function"!=typeof e.children}(this.props)||this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t)})),this.state={inView:!!e.initialInView,entry:void 0}}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;const{threshold:e,root:t,rootMargin:r,trackVisibility:n,delay:i,fallbackInView:o}=this.props;this._unobserveCb=d(this.node,this.handleChange,{threshold:e,root:t,rootMargin:r,trackVisibility:n,delay:i},o)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){const{children:e}=this.props;if("function"==typeof e){const{inView:t,entry:r}=this.state;return e({inView:t,entry:r,ref:this.handleNode})}const{as:t,triggerOnce:r,threshold:i,root:o,rootMargin:a,onChange:s,skip:c,trackVisibility:l,delay:u,initialInView:d,fallbackInView:f,...p}=this.props;return n.createElement(t||"div",{ref:this.handleNode,...p},e)}};function p({threshold:e,delay:t,trackVisibility:r,rootMargin:i,root:o,triggerOnce:a,skip:s,initialInView:c,fallbackInView:l,onChange:u}={}){var f;const[p,h]=n.useState(null),m=n.useRef(),[y,v]=n.useState({inView:!!c,entry:void 0});m.current=u,n.useEffect((()=>
2{if(s||!p)return;let n;return n=d(p,((e,t)=>{v({inView:e,entry:t}),m.current&&m.current(e,t),t.isIntersecting&&a&&n&&(n(),n=void 0)}),{root:o,rootMargin:i,threshold:e,trackVisibility:r,delay:t},l),()=>{n&&n()}}),[Array.isArray(e)?e.toString():e,p,o,i,a,s,r,l,t]);const g=null==(f=y.entry)?void 0:f.target,b=n.useRef();p||!g||a||s||b.current===g||(b.current=g,v({inView:!!c,entry:void 0}));const E=[h,y.inView,y.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}},90146:(e,t,r)=>{"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function o(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,a=null,s=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==r||null!==a||null!==s){var c=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;u.call(this,e,t,n)}}return e}r.r(t),r.d(t,{polyfill:()=>a}),n.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},42892:(e,t,r)=>{"use strict";var n=f(r(30052)),i=f(r(47534)),o=f(r(4081)),a=f(r(38457)),s=f(r(83042)),c=f(r(14801)),l=f(r(14041)),u=f(r(39067)),d=f(r(77356));function f(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){var e,r,n,a;(0,o.default)(this,t);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=n=(0,s.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(l))),n.handleClickToPause=function(){n.anim.isPaused?n.anim.play():n.anim.pause()},a=r,(0,s.default)(n,a)}
2return(0,c.default)(t,e),(0,a.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.options,r=e.eventListeners,i=t.loop,o=t.autoplay,a=t.animationData,s=t.rendererSettings,c=t.segments;this.options={container:this.el,renderer:"svg",loop:!1!==i,autoplay:!1!==o,segments:!1!==c,animationData:a,rendererSettings:s},this.options=(0,n.default)({},this.options,t),this.anim=d.default.loadAnimation(this.options),this.registerEvents(r)}},{key:"componentWillUpdate",value:function(e){this.options.animationData!==e.options.animationData&&(this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options=(0,n.default)({},this.options,e.options),this.anim=d.default.loadAnimation(this.options),this.registerEvents(e.eventListeners))}},{key:"componentDidUpdate",value:function(){this.props.isStopped?this.stop():this.props.segments?this.playSegments():this.play(),this.pause(),this.setSpeed(),this.setDirection()}},{key:"componentWillUnmount",value:function(){this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options.animationData=null,this.anim=null}},{key:"setSpeed",value:function(){this.anim.setSpeed(this.props.speed)}},{key:"setDirection",value:function(){this.anim.setDirection(this.props.direction)}},{key:"play",value:function(){this.anim.play()}},{key:"playSegments",value:function(){this.anim.playSegments(this.props.segments)}},{key:"stop",value:function(){this.anim.stop()}},{key:"pause",value:function(){(this.props.isPaused&&!this.anim.isPaused||!this.props.isPaused&&this.anim.isPaused)&&this.anim.pause()}},{key:"destroy",value:function(){this.anim.destroy()}},{key:"registerEvents",value:function(e){var t=this;e.forEach((function(e){t.anim.addEventListener(e.eventName,e.callback)}))}},{key:"deRegisterEvents",value:function(e){var t=this;e.forEach((function(e){t.anim.removeEventListener(e.eventName,e.callback)}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.width,i=t.height,o=t.ariaRole,a=t.ariaLabel,s=t.isClickToPauseDisabled,c=t.title,u=function(e){return"number"==typeof e?e+"px":e||"100%"},d=(0,n.default)({width:u(r),height:u(i),overflow:"hidden",margin:"0 auto",outline:"none"},this.props.style),f=s?function(){return null}:this.handleClickToPause;return l.default.createElement("div",{ref:function(t){e.el=t},style:d,onClick:f,title:c,role:o,"aria-label":a,tabIndex:"0"})}}]),t}(l.default.Component);t.A=p,p.propTypes={eventListeners:u.default.arrayOf(u.default.object),options:u.default.object.isRequired,height:u.default.oneOfType([u.default.string,u.default.number]),width:u.default.oneOfType([u.default.string,u.default.number]),isStopped:u.default.bool,isPaused:u.default.bool,speed:u.default.number,segments:u.default.arrayOf(u.default.number),direction:u.default.number,ariaRole:u.default.string,ariaLabel:u.default.string,isClickToPauseDisabled:u.default.bool,title:u.default.string,style:u.default.string},p.defaultProps={eventListeners:[],isStopped:!1,isPaused:!1,speed:1,ariaRole:"button",ariaLabel:"animation",isClickToPauseDisabled:!1,title:""}},41076:(e,t,r)=>{"use strict";r.d(t,{A:()=>ne});var n=r(14041),i=r(43144),o=r(83005),a=r(78284),s=r(30645),c=r(18427),l=r(81387),u=r(79425),d=r(71490);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}var h="calc(100% - env(safe-area-inset-top) - 34px)",m="undefined"==typeof window,y={ease:"easeOut",duration:.2},v={ease:"linear",duration:.01};function g(e,t){for(var r=e[0],n=Math.abs(e[0]-t),i=1;i<e.length;i++){var o=Math.abs(e[i]-t);o<n&&(r=e[i],n=o)}return r}function b(e){var t=document.querySelector("body"),r=document.getElementById(e);r&&(r.style.removeProperty("border-top-right-radius"),r.style.removeProperty("border-top-left-radius"),r.style.removeProperty("transform"),r.addEventListener("transitionend",(function e(){r.style.removeProperty("overflow"),r.style.removeProperty("will-change"),r.style.removeProperty("transition"),t.style.removeProperty("background-color"),r.removeEventListener("transitionend",e)})))}function E(e){var t=e.snapTo,r=e.sheetHeight;return t<0&&console.warn("Snap point is out of bounds. Sheet height is "+r+" but snap point is "+(r+Math.abs(t))+"."),Math.max(Math.round(t),0)}function w(e){return function(t){e.forEach((function(e){"function"==typeof e?e(t):e&&(e.current=t)}))}}var S=m?n.useEffect:n.useLayoutEffect;function A(e,t){var r=_(e);(0,n.useEffect)((function(){t&&!r&&e?function(e){var t=document.querySelector("body"),r=document.querySelector("#"+e);if(r){var n=window.innerHeight,i=(n-24)/n;t.style.backgroundColor="#000",r.style.overflow="hidden",r.style.willChange="transform",r.style.transition="transform 200ms ease-in-out, border-radius 200ms linear",r.style.transform="translateY(calc(env(safe-area-inset-top) + 12px)) scale("+i+")",r.style.borderTopRightRadius="10px",r.style.borderTopLeftRadius="10px"}}(t):t&&!e&&r&&b(t)}),[e,r]),(0,n.useEffect)((function(){return function(){t&&e&&b(t)}}),[e])}function _(e){var t=(0,n.useRef)();return(0,n.useEffect)((function(){t.current=e})),t.current}function x(e){var t=(0,n.useRef)();return S((function(){t.current=e})),(0,n.useCallback)((function(){for(var e=t.current,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return null==e?void 0:e.apply(void 0,n)}),[])}var P={bottom:0,top:0,left:0,right:0};function I(){return{constraintsRef:(0,n.useRef)(null),onMeasureDragConstraints:(0,n.useCallback)((function(){return P}),[])}}var k=(0,n.createContext)(void 0),O=function(){var e=(0,n.useContext)(k);if(!e)throw Error("Sheet context error");return e},T=(0,n.createContext)(void 0);
2function C(e){var t=e.children,r=O(),i=(0,n.useState)(!!r.disableDrag),o=i[0],a=i[1];return(0,n.createElement)(T.Provider,{value:{disableDrag:o,setDragEnabled:function(){r.disableDrag||a(!1)},setDragDisabled:function(){o||a(!0)}}},t)}var R,N=function(){var e=(0,n.useContext)(T);if(!e)throw Error("Sheet scroller context error");return e},L="undefined"!=typeof window&&window.visualViewport,D=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),M=0;function F(e){void 0===e&&(e={});var t=e.isDisabled;(0,d.Nf)((function(){if(!t)return 1===++M&&(R=(0,d.un)()?function(){var e,t=0,r=function(r){(e=(0,d.mH)(r.target))===document.documentElement&&e===document.body||(t=r.changedTouches[0].pageY)},n=function(r){if(e!==document.documentElement&&e!==document.body){var n=r.changedTouches[0].pageY,i=e.scrollTop,o=e.scrollHeight-e.clientHeight;0!==o&&((i<=0&&n>t||i>=o&&n<t)&&r.preventDefault(),t=n)}else r.preventDefault()},i=function(e){var t=e.target;U(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((function(){t.style.transform=""})))},o=function(e){var t=e.target;U(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((function(){t.style.transform="",L&&(L.height<window.innerHeight?requestAnimationFrame((function(){V(t)})):L.addEventListener("resize",(function(){return V(t)}),{once:!0}))})))},a=function(){window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=(0,d.cy)(j(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),j(document.documentElement,"overflow","hidden"),j(document.body,"marginTop","-"+c+"px"));window.scrollTo(0,0);var u=(0,d.cy)(B(document,"touchstart",r,{passive:!1,capture:!0}),B(document,"touchmove",n,{passive:!1,capture:!0}),B(document,"touchend",i,{passive:!1,capture:!0}),B(document,"focus",o,!0),B(window,"scroll",a));return function(){l(),u(),window.scrollTo(s,c)}}():(0,d.cy)(j(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),j(document.documentElement,"overflow","hidden"))),function(){0===--M&&R()}}),[t])}function j(e,t,r){var n=e.style[t];return e.style[t]=r,function(){e.style[t]=n}}function B(e,t,r,n){return e.addEventListener(t,r,n),function(){e.removeEventListener(t,r,n)}}function V(e){for(var t=document.scrollingElement||document.documentElement;e&&e!==t;){var r=(0,d.mH)(e);if(r!==document.documentElement&&r!==document.body&&r!==e){var n=r.getBoundingClientRect().top,i=e.getBoundingClientRect().top;i>n+e.clientHeight&&(r.scrollTop+=i-n)}e=r.parentElement}}function U(e){return e instanceof HTMLInputElement&&!D.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var z={wrapper:{position:"fixed",top:0,bottom:0,left:0,right:0,overflow:"hidden",pointerEvents:"none"},backdrop:{zIndex:1,position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.2)",touchAction:"none",border:"none"},container:{zIndex:2,position:"absolute",left:0,bottom:0,width:"100%",backgroundColor:"#fff",borderTopRightRadius:"8px",borderTopLeftRadius:"8px",boxShadow:"0px -2px 16px rgba(0, 0, 0, 0.3)",display:"flex",flexDirection:"column",pointerEvents:"auto"},headerWrapper:{width:"100%"},header:{height:"40px",width:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},indicator:{width:"18px",height:"4px",borderRadius:"99px",backgroundColor:"#ddd"},content:{flexGrow:1,display:"flex",flexDirection:"column",minHeight:"0px",position:"relative"},scroller:{height:"100%",overflowY:"auto"}},G=["onOpenStart","onOpenEnd","onClose","onCloseStart","onCloseEnd","onSnap","children","disableScrollLocking","isOpen","snapPoints","rootId","mountPoint","style","detent","initialSnap","disableDrag","prefersReducedMotion","tweenConfig"],W=(0,n.forwardRef)((function(e,t){var r=e.onOpenStart,d=e.onOpenEnd,h=e.onClose,b=e.onCloseStart,w=e.onCloseEnd,_=e.onSnap,P=e.children,I=e.disableScrollLocking,O=void 0!==I&&I,T=e.isOpen,R=e.snapPoints,N=e.rootId,L=e.mountPoint,D=e.style,M=e.detent,j=void 0===M?"full-height":M,B=e.initialSnap,V=void 0===B?0:B,U=e.disableDrag,W=void 0!==U&&U,H=e.prefersReducedMotion,$=void 0!==H&&H,Y=e.tweenConfig,q=void 0===Y?y:Y,K=p(e,G),Q=(0,n.useRef)(null),X=(0,o.d)(0),Z=function(){var e=(0,n.use
2State)(0),t=e[0],r=e[1];return S((function(){var e=function(){return r(window.innerHeight)};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]),t}(),J=(0,a.I)(),ee=Boolean($||J),te=f({type:"tween"},ee?v:q),re=(0,o.d)(0),ne=(0,s.G)(re,(function(e){return e>=Z?-1:9999999})),ie=(0,s.G)(re,(function(e){return e>=Z?"hidden":"visible"})),oe=(0,n.useRef)({onOpenStart:r,onOpenEnd:d,onCloseStart:b,onCloseEnd:w});S((function(){oe.current={onOpenStart:r,onOpenEnd:d,onCloseStart:b,onCloseEnd:w}})),R&&(R=R.map((function(e){return e>0&&e<=1?Math.round(e*Z):e<0?Z+e:e})),console.assert(function(e){for(var t=0;t<e.length;t++)if(e[t+1]>e[t])return!1;return!0}(R)||0===Z,"Snap points need to be in descending order got: ["+R+"]"));var ae=x((function(e,t){var r=t.delta,n=re.getVelocity();n>0&&X.set(10),n<0&&X.set(-10),re.set(Math.max(re.get()+r.y,0))})),se=x((function(e,t){if(t.velocity.y>500)h();else{var r=Q.current.getBoundingClientRect().height,n=re.get(),i=0;if(R){var o=R.map((function(e){return r-Math.min(e,r)}));"content-height"!==j||o.includes(0)||o.unshift(0),i=g(o,n)}else n/r>.6&&(i=r);if(i=E({snapTo:i,sheetHeight:r}),(0,c.i)(re,i,te),R&&_){var a=Math.abs(Math.round(R[0]-i)),s=R.indexOf(g(R,a));_(s)}i>=Math.round(r)&&h()}X.set(0)}));(0,n.useEffect)((function(){if(R&&_){var e=T?V:R.length-1;_(e)}}),[T]),(0,n.useImperativeHandle)(t,(function(){return{y:re,snapTo:function(e){var t=Q.current;if(R&&void 0!==R[e]&&null!==t){var r=t.getBoundingClientRect().height,n=E({snapTo:r-R[e],sheetHeight:r});(0,c.i)(re,n,te),_&&_(e),n>=r&&h()}}}})),A(T,N),F({isDisabled:!0===O||!T});var ce=(0,n.useMemo)((function(){return W?void 0:{drag:"y",dragElastic:0,dragMomentum:!1,dragPropagation:!1,onDrag:ae,onDragEnd:se}}),[W]),le={y:re,sheetRef:Q,isOpen:T,initialSnap:V,snapPoints:R,detent:j,indicatorRotation:X,callbacks:oe,dragProps:ce,windowHeight:Z,animationOptions:te,reduceMotion:ee,disableDrag:W},ue=(0,n.createElement)(k.Provider,{value:le},(0,n.createElement)(l.P.div,Object.assign({},K,{ref:t,style:f({},z.wrapper,{zIndex:ne,visibility:ie},D)}),(0,n.createElement)(u.N,null,T?(0,n.createElement)(C,null,n.Children.map(P,(function(e,t){return(0,n.cloneElement)(e,{key:"sheet-child-"+t})}))):null)));return m?ue:(0,i.createPortal)(ue,null!=L?L:document.body)})),H=["children","style","className"],$=(0,n.forwardRef)((function(e,t){var r=e.children,i=e.style,o=void 0===i?{}:i,a=e.className,s=void 0===a?"":a,c=p(e,H),u=O(),d=u.y,m=u.isOpen,y=u.callbacks,v=u.snapPoints,g=u.initialSnap,b=void 0===g?0:g,E=u.sheetRef,S=u.windowHeight,A=u.detent,x=u.animationOptions,P=u.reduceMotion,I=function(e,t){var r=_(e),i=(0,n.useRef)(!1),o=(0,n.useCallback)((function(){i.current?(null==t.current.onCloseEnd||t.current.onCloseEnd(),i.current=!1):(null==t.current.onOpenEnd||t.current.onOpenEnd(),i.current=!0)}),[e,r]);return(0,n.useEffect)((function(){!r&&e?null==t.current.onOpenStart||t.current.onOpenStart():!e&&r&&(null==t.current.onCloseStart||t.current.onCloseStart())}),[e,r]),{handleAnimationComplete:o}}(m,y),k=I.handleAnimationComplete,T=v?v[0]-v[b]:0,C=v?v[0]:null,R=null!==C?"min("+C+"px, "+h+")":h;return(0,n.createElement)(l.P.div,Object.assign({},c,{ref:w([E,t]),className:"react-modal-sheet-container "+s,style:f({},z.container,o,"full-height"===A&&{height:R},"content-height"===A&&{maxHeight:R},{y:d}),initial:!P&&{y:S},animate:{y:T,transition:x},exit:{y:S,transition:x},onAnimationComplete:k}),r)})),Y=["children","style","disableDrag","className"],q=(0,n.forwardRef)((function(e,t){var r=e.children,i=e.style,o=e.disableDrag,a=e.className,s=void 0===a?"":a,c=p(e,Y),u=O(),d=N(),h=I(),m=h.constraintsRef,y=h.onMeasureDragConstraints,v=o||d.disableDrag?void 0:u.dragProps;return(0,n.createElement)(l.P.div,Object.assign({},c,{ref:w([t,m]),className:"react-modal-sheet-content "+s,style:f({},z.content,i)},v,{dragConstraints:m,onMeasureDragConstraints:y}),r)})),K=["children","style","disableDrag"],Q=(0,n.forwardRef)((function(e,t){var r=e.children,i=e.style,o=e.disableDrag,a=p(e,K),c=O(),u=c.indicatorRotation,d=c.dragProps,h=I(),m=h.constraintsRef,y=h.onMeasureDragConstraints,v=o?void 0:d,g=(0,s.G)(u,(function(e){return"translateX(2px) rotate("+e+"deg)"})),b=(0,s.G)(u,(function(e){return"translateX(-2px) rotate("+-1*e+"deg)"}));return(0,n.createElement)(l.P.div,Object.assign({},a,{ref:w([t,m]),style:f({},z.headerWrapper,i)},v,{dragConstraints:m,onMeasureDragConstraints:y}),r||(0,n.createElement)("div",{className:"react-modal-sheet-header",style:z.header},(0,n.createElement)(l.P.span,{className:"react-modal-sheet-drag-indicator",style:f({},z.indicator,{transform:g})}),(0,n.createElement)(l.P.span,{className:"react-modal-sheet-drag-indicator",style:f({},z.indicator,{transform:b})})))})),X=["style","className"],Z=function(e){return!!e.onClick||!!e.onTap},J=(0,n.forwardRef)((function(e,t){var r=e.style,i=void 0===r?{}:r,o=e.className,a=void 0===o?"":o,s=p(e,X),c=Z(s)?l.P.button:l.P.div,u=Z(s)?"auto":"none";return(0,n.createElement)(c,Object.assign({},s,{ref:t,className:"react-modal-sheet-backdrop "+a,style:f({},z.backdrop,i,{pointerEvents:u}),initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0}}))})),ee=["draggableAt","children","style","className"],te=(0,n.forwardRef)((function(e,t){var r=e.draggableAt,i=void 0===r?"top":r,o=e.children,a=e.style,s=e.className,c=void 0===s?"":s,l=p(e,ee),u=N();function d(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;if(r>n){var o=t<=0,a=r-t===n;"top"===i&&o||"bottom"===i&&a||"both"===i&&(o||a)?u.setDragEnabled():u.setDragDisabled()}}var h="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0)?{onScroll:function(e){d(e.currentTarget)},onTouchStart:function(e){d(e.currentTarget)}}:void 0;return(0,n.createElement)("div",Object.assign({},l,{ref:t,className:"react-modal-sheet-scroller "+c,style:f({},z.scroller,a)},h),o)})),re=W;re.Container=$,re.Header=Q,re.Content=q,re.Backdrop=J,re.Scroller=te;const ne=re},7367:(e,t,r)=>{"use strict";r.d(t,{jp:()=>d});var n=r(14041),i=r(75119),o=r(96141),a=r(42561),s=(0,i.T0)(),c="data-scroll-locked",l=function(e,t,r,n){var i=e.left,a=e.top,s=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat(o.E9," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(c,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(o.Mi," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(o.pN," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(o.Mi," .").concat(o.Mi," {\n right: 0 ").concat(n,";\n }\n \n .").concat(o.pN," .").concat(o.pN," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(c,"] {\n ").concat(o.xi,": ").concat(l,"px;\n }\n")},u=function(){var e=parseInt(document.body.getAttribute(c)||"0",10);return isFinite(e)?e:0},d=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i;n.useEffect((function(){return document.body.setAttribute(c,(u()+1).toString()),function(){var e=u()-1;e<=0?document.body.removeAttribute(c):document.body.setAttribute(c,e.toString())}}),[]);var d=n.useMemo((function(){return(0,a.P)(o)}),[o]);return n.createElement(s,{styles:l(d,!t,o,r?"":"!important")})}},96141:(e,t,r)=>{"use strict";r.d(t,{E9:()=>o,Mi:()=>n,pN:()=>i,xi:()=>a});var n="right-scroll-bar-position",i="width-before-scroll-bar",o="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},20472:(e,t,r)=>{"use strict";r.d(t,{jp:()=>n.jp});var n=r(7367);r(42561)},42561:(e,t,r)=>{"use strict";r.d(t,{P:()=>o});var n={left:0,top:0,right:0,gap:0},i=function(e){return parseInt(e||"",10)||0},o=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return n;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[i(r),i(n),i(o)]}(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}}},70887:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(34117),i=r(14041),o=r(75416),a=r(62103),s=i.forwardRef((function(e,t){return i.createElement(o.G,(0,n.Cl)({},e,{ref:t,sideCar:a.A}))}));s.classNames=o.G.classNames;const c=s},5088:(e,t,r)=>{"use strict";r.d(t,{DK:()=>y});var n=r(34117),i=r(14041),o=r(20472),a=r(75119),s=r(11855),c=r(64453),l=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},u=function(e){return[e.deltaX,e.deltaY]},d=function(e){return e&&"current"in e?e.current:e},f=function(e,t){return e[0]===t[0]&&e[1]===t[1]},p=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},h=0,m=[];function y(e){var t=i.useRef([]),r=i.useRef([0,0]),y=i.useRef(),g=i.useState(h++)[0],b=i.useState(a.T0)[0],E=i.useRef(e);i.useEffect((function(){E.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(g));var t=(0,n.fX)([e.lockRef.current],(e.shards||[]).map(d),!0).filter(
2Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(g))})),function(){document.body.classList.remove("block-interactivity-".concat(g)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(g))}))}}}),[e.inert,e.lockRef.current,e.shards]);var w=i.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!E.current.allowPinchZoom;var n,i=l(e),o=r.current,a="deltaX"in e?e.deltaX:o[0]-i[0],s="deltaY"in e?e.deltaY:o[1]-i[1],u=e.target,d=Math.abs(a)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=(0,c.K)(d,u);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=(0,c.K)(d,u)),!f)return!1;if(!y.current&&"changedTouches"in e&&(a||s)&&(y.current=n),!n)return!0;var p=y.current||n;return(0,c.Q)(p,t,e,"h"===p?a:s,!0)}),[]),S=i.useCallback((function(e){var r=e;if(m.length&&m[m.length-1]===b){var n="deltaY"in r?u(r):l(r),i=t.current.filter((function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&f(e.delta,n)}))[0];if(i&&i.should)r.cancelable&&r.preventDefault();else if(!i){var o=(E.current.shards||[]).map(d).filter(Boolean).filter((function(e){return e.contains(r.target)}));(o.length>0?w(r,o[0]):!E.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),A=i.useCallback((function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:v(n)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),_=i.useCallback((function(e){r.current=l(e),y.current=void 0}),[]),x=i.useCallback((function(t){A(t.type,u(t),t.target,w(t,e.lockRef.current))}),[]),P=i.useCallback((function(t){A(t.type,l(t),t.target,w(t,e.lockRef.current))}),[]);i.useEffect((function(){return m.push(b),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:P}),document.addEventListener("wheel",S,s.X),document.addEventListener("touchmove",S,s.X),document.addEventListener("touchstart",_,s.X),function(){m=m.filter((function(e){return e!==b})),document.removeEventListener("wheel",S,s.X),document.removeEventListener("touchmove",S,s.X),document.removeEventListener("touchstart",_,s.X)}}),[]);var I=e.removeScrollBar,k=e.inert;return i.createElement(i.Fragment,null,k?i.createElement(b,{styles:p(g)}):null,I?i.createElement(o.jp,{gapMode:e.gapMode}):null)}function v(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}},75416:(e,t,r)=>{"use strict";r.d(t,{G:()=>l});var n=r(34117),i=r(14041),o=r(96141),a=r(49311),s=r(40425),c=function(){},l=i.forwardRef((function(e,t){var r=i.useRef(null),o=i.useState({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:c}),l=o[0],u=o[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,y=e.shards,v=e.sideCar,g=e.noIsolation,b=e.inert,E=e.allowPinchZoom,w=e.as,S=void 0===w?"div":w,A=e.gapMode,_=(0,n.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=v,P=(0,a.S)([r,t]),I=(0,n.Cl)((0,n.Cl)({},_),l);return i.createElement(i.Fragment,null,m&&i.createElement(x,{sideCar:s.O,removeScrollBar:h,shards:y,noIsolation:g,inert:b,setCallbacks:u,allowPinchZoom:!!E,lockRef:r,gapMode:A}),d?i.cloneElement(i.Children.only(f),(0,n.Cl)((0,n.Cl)({},I),{ref:P})):i.createElement(S,(0,n.Cl)({},I,{className:p,ref:P}),f))}));l.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},l.classNames={fullWidth:o.pN,zeroRight:o.Mi}},11855:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=!1;if("undefined"!=typeof window)try{var i=Object.defineProperty({},"passive",{get:function(){return n=!0,!0}});window.addEventListener("test",i,i),window.removeEventListener("test",i,i)}catch(e){n=!1}var o=!!n&&{passive:!1}},64453:(e,t,r)=>{"use strict";r.d(t,{K:()=>i,Q:()=>s});var n=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},i=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),o(e,n)){var i=a(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},o=function(e,t){return"v"===e?function(e){return n(e,"overflowY")}(t):function(e){return n(e,"overflowX")}(t)},a=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},s=function(e,t,r,n,i){var s=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),c=s*n,l=r.target,u=t.contains(l),d=!1,f=c>0,p=0,h=0;do{var m=a(e,l),y=m[0],v=m[1]-m[2]-s*y;(y||v)&&o(e,l)&&(p+=v,h+=y),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(f&&(i&&Math.abs(p)<1||!i&&c>p)||!f&&(i&&Math.abs(h)<1||!i&&-c>h))&&(d=!0),d}},40425:(e,t,r)=>{"use strict";r.d(t,{O:()=>n});var n=(0,r(95778).f)()}
2,62103:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(1666),i=r(5088),o=r(40425);const a=(0,n.m)(o.O,i.DK)},33664:(e,t,r)=>{"use strict";r.d(t,{N_:()=>m,k2:()=>g});var n=r(86090),i=r(13959),o=r(14041),a=r(98130),s=r(56868),c=r(38519),l=r(80655);o.Component;o.Component;var u=function(e,t){return"function"==typeof e?e(t):e},d=function(e,t){return"string"==typeof e?(0,a.yJ)(e,null,null,t):e},f=function(e){return e},p=o.forwardRef;void 0===p&&(p=f);var h=p((function(e,t){var r=e.innerRef,n=e.navigate,i=e.onClick,a=(0,c.A)(e,["innerRef","navigate","onClick"]),l=a.target,u=(0,s.A)({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),n())}});return u.ref=f!==p&&t||r,o.createElement("a",u)}));var m=p((function(e,t){var r=e.component,i=void 0===r?h:r,m=e.replace,y=e.to,v=e.innerRef,g=(0,c.A)(e,["component","replace","to","innerRef"]);return o.createElement(n.XZ.Consumer,null,(function(e){e||(0,l.A)(!1);var r=e.history,n=d(u(y,e.location),e.location),c=n?r.createHref(n):"",h=(0,s.A)({},g,{href:c,navigate:function(){var t=u(y,e.location),n=(0,a.AO)(e.location)===(0,a.AO)(d(t));(m||n?r.replace:r.push)(t)}});return f!==p?h.ref=t||v:h.innerRef=v,o.createElement(i,h)}))})),y=function(e){return e},v=o.forwardRef;void 0===v&&(v=y);var g=v((function(e,t){var r=e["aria-current"],i=void 0===r?"page":r,a=e.activeClassName,f=void 0===a?"active":a,p=e.activeStyle,h=e.className,g=e.exact,b=e.isActive,E=e.location,w=e.sensitive,S=e.strict,A=e.style,_=e.to,x=e.innerRef,P=(0,c.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(n.XZ.Consumer,null,(function(e){e||(0,l.A)(!1);var r=E||e.location,a=d(u(_,r),r),c=a.pathname,I=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),k=I?(0,n.B6)(r.pathname,{path:I,exact:g,sensitive:w,strict:S}):null,O=!!(b?b(k,r):k),T="function"==typeof h?h(O):h,C="function"==typeof A?A(O):A;O&&(T=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((function(e){return e})).join(" ")}(T,f),C=(0,s.A)({},C,p));var R=(0,s.A)({"aria-current":O&&i||null,className:T,style:C,to:a},P);return y!==v?R.ref=t||x:R.innerRef=x,o.createElement(m,R)}))}))},56868:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{A:()=>n})},13959:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(70130);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.A)(e,t)}},38519:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r.d(t,{A:()=>n})},70130:(e,t,r)=>{"use strict";
2function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{A:()=>n})},86090:(e,t,r)=>{"use strict";r.d(t,{B6:()=>T,Ix:()=>b,W6:()=>B,XG:()=>w,XZ:()=>g,dO:()=>F,g:()=>U,qh:()=>C,rd:()=>P,zy:()=>V});var n=r(82190),i=r(14041),o=r(39067),a=r.n(o),s=r(98130),c=r(80655),l=r(96553),u=r(82402),d=r.n(u),f=(r(35919),r(79032)),p=(r(75985),1073741823),h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:{};var m=i.createContext||function(e,t){var r,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",c=function(e){function r(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(r=t.props.value,n=[],{on:function(e){n.push(e)},off:function(e){n=n.filter((function(t){return t!==e}))},get:function(){return r},set:function(e,t){r=e,n.forEach((function(e){return e(r,t)}))}}),t}(0,n.A)(r,e);var i=r.prototype;return i.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var r,n=this.props.value,i=e.value;((o=n)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?r=0:(r="function"==typeof t?t(n,i):p,0!==(r|=0)&&this.emitter.set(e.value,r))}var o,a},i.render=function(){return this.props.children},r}(i.Component);c.childContextTypes=((r={})[s]=a().object.isRequired,r);var l=function(t){function r(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,r){0!=((0|e.observedBits)&r)&&e.setState({value:e.getValue()})},e}(0,n.A)(r,t);var i=r.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?p:t},i.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?p:e},i.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},i.getValue=function(){return this.context[s]?this.context[s].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},r}(i.Component);return l.contextTypes=((o={})[s]=a().object,o),{Provider:c,Consumer:l}},y=function(e){var t=m();return t.displayName=e,t},v=y("Router-History"),g=y("Router"),b=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={location:t.history.location},r._isMounted=!1,r._pendingLocation=null,t.staticContext||(r.unlisten=t.history.listen((function(e){r._pendingLocation=e}))),r}(0,n.A)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=t.prototype;return r.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return i.createElement(g.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.Component);i.Component;var E=function(e){function t(){return e.apply(this,arguments)||this}(0,n.A)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},r.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},r.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},r.render=function(){return null},t}(i.Component);function w(e){var t=e.message,r=e.when,n=void 0===r||r;return i.createElement(g.Consumer,null,(function(e){if(e||(0,c.A)(!1),!n||e.staticContext)return null;var r=e.history.block;return i.createElement(E,{onMount:function(e){e.release=r(t)}
2,onUpdate:function(e,n){n.message!==t&&(e.release(),e.release=r(t))},onUnmount:function(e){e.release()},message:t})}))}var S={},A=1e4,_=0;function x(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(S[e])return S[e];var t=d().compile(e);return _<A&&(S[e]=t,_++),t}(e)(t,{pretty:!0})}function P(e){var t=e.computedMatch,r=e.to,n=e.push,o=void 0!==n&&n;return i.createElement(g.Consumer,null,(function(e){e||(0,c.A)(!1);var n=e.history,a=e.staticContext,u=o?n.push:n.replace,d=(0,s.yJ)(t?"string"==typeof r?x(r,t.params):(0,l.A)({},r,{pathname:x(r.pathname,t.params)}):r);return a?(u(d),null):i.createElement(E,{onMount:function(){u(d)},onUpdate:function(e,t){var r=(0,s.yJ)(t.to);(0,s.Fu)(r,(0,l.A)({},d,{key:r.key}))||u(d)},to:r})}))}var I={},k=1e4,O=0;function T(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var r=t,n=r.path,i=r.exact,o=void 0!==i&&i,a=r.strict,s=void 0!==a&&a,c=r.sensitive,l=void 0!==c&&c;return[].concat(n).reduce((function(t,r){if(!r&&""!==r)return null;if(t)return t;var n=function(e,t){var r=""+t.end+t.strict+t.sensitive,n=I[r]||(I[r]={});if(n[e])return n[e];var i=[],o={regexp:d()(e,i,t),keys:i};return O<k&&(n[e]=o,O++),o}(r,{end:o,strict:s,sensitive:l}),i=n.regexp,a=n.keys,c=i.exec(e);if(!c)return null;var u=c[0],f=c.slice(1),p=e===u;return o&&!p?null:{path:r,url:"/"===r&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,r){return e[t.name]=f[r],e}),{})}}),null)}var C=function(e){function t(){return e.apply(this,arguments)||this}return(0,n.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(g.Consumer,null,(function(t){t||(0,c.A)(!1);var r=e.props.location||t.location,n=e.props.computedMatch?e.props.computedMatch:e.props.path?T(r.pathname,e.props):t.match,o=(0,l.A)({},t,{location:r,match:n}),a=e.props,s=a.children,u=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===i.Children.count(e)}(s)&&(s=null),i.createElement(g.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:u?i.createElement(u,o):d?d(o):null:"function"==typeof s?s(o):null)}))},t}(i.Component);function R(e){return"/"===e.charAt(0)?e:"/"+e}function N(e,t){if(!e)return t;var r=R(e);return 0!==t.pathname.indexOf(r)?t:(0,l.A)({},t,{pathname:t.pathname.substr(r.length)})}function L(e){return"string"==typeof e?e:(0,s.AO)(e)}function D(e){return function(){(0,c.A)(!1)}}function M(){}i.Component;var F=function(e){function t(){return e.apply(this,arguments)||this}return(0,n.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(g.Consumer,null,(function(t){t||(0,c.A)(!1);var r,n,o=e.props.location||t.location;return i.Children.forEach(e.props.children,(function(e){if(null==n&&i.isValidElement(e)){r=e;var a=e.props.path||e.props.from;n=a?T(o.pathname,(0,l.A)({},e.props,{path:a})):t.match}})),n?i.cloneElement(r,{location:o,computedMatch:n}):null}))},t}(i.Component);var j=i.useContext;function B(){return j(v)}function V(){return j(g).location}function U(){var e=j(g).match;return e?e.params:{}}},96553:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{A:()=>n})},82190:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(53429);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.A)(e,t)}},79032:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r.d(t,{A:()=>n})},53429:(e,t,r)=>{"use strict";
vendor: 4,946 bytes, line 2
2function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{A:()=>n})},93150:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},82402:(e,t,r)=>{var n=r(93150);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var r,n=[],o=0,a=0,s="",u=t&&t.delimiter||"/";null!=(r=i.exec(e));){var d=r[0],f=r[1],p=r.index;if(s+=e.slice(a,p),a=p+d.length,f)s+=f[1];else{var h=e[a],m=r[2],y=r[3],v=r[4],g=r[5],b=r[6],E=r[7];s&&(n.push(s),s="");var w=null!=m&&null!=h&&h!==m,S="+"===b||"*"===b,A="?"===b||"*"===b,_=r[2]||u,x=v||g;n.push({name:y||o++,prefix:m||"",delimiter:_,optional:A,repeat:S,partial:w,asterisk:!!E,pattern:x?l(x):E?".*":"[^"+c(_)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&n.push(s),n}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var r=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(r[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",s=t||{},c=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var d,f=s[u.name];if(null==f){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(n(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=c(f[p]),!r[l].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(f),!r[l].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,r){n(t)||(r=t||r,t=[]);for(var i=(r=r||{}).strict,o=!1!==r.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"==typeof l)a+=c(l);else{var f=c(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+f+p+")*"),a+=p=l.optional?l.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var h=c(r.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",u(new RegExp("^"+a,d(r)),t)}function p(e,t,r){return n(t)||(r=t||r,t=[]),r=r||{},e instanceof RegExp?function(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):n(e)?function(e,t,r){for(var n=[],i=0;i<e.length;i++)n.push(p(e[i],t,r).source);return u(new RegExp("(?:"+n.join("|")+")",d(r)),t)}(e,t,r):function(e,t,r){return f(o(e,r),t,r)}(e,t,r)}},31451:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case y:case m:case c:return e;default:return t}}case i:return t}}}function S(e){return w(e)===d}},35919:(e,t,r)=>{"use strict";r(31451)},86399:(e,t,r)=>{"use strict";var n,i=r(14041),o=(n=i)&&"object"==typeof n&&"default"in n?n.default:n;function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,r){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");
2if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==r&&"function"!=typeof r)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var c,l=[];function u(){c=e(l.map((function(e){return e.props}))),d.canUseDOM?t(c):r&&(c=r(c))}var d=function(e){var t,r;function i(){return e.apply(this,arguments)||this}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i.peek=function(){return c},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,l=[],e};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){l.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),u()},a.render=function(){return o.createElement(n,this.props)},i}(i.PureComponent);return a(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),a(d,"canUseDOM",s),d}}},43915:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(77096),i=function(){var e=(0,n._)();return function(t){var r=t.styles,n=t.dynamic;return e(r,n),null}}},77096:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(14041),i=r(57878),o=function(){var e=(0,i.i)();return function(t,r){n.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])}}},75119:(e,t,r)=>{"use strict";r.d(t,{T0:()=>n.T});var n=r(43915);r(77096)},57878:(e,t,r)=>{"use strict";r.d(t,{i:()=>i});var n=r(83662);var i=function(){var e=0,t=null;return{add:function(r){var i,o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,n.m)();return t&&e.setAttribute("nonce",t),e}())&&(o=r,(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}}},61745:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}t.default=e}(r(39067));var n=s(r(6416)),i=s(r(9673)),o=s(r(14041)),a=s(r(28890));r(22753);function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}var l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,n.default)(e,t)}))},u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},d=function(e){var t,r;function n(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).onEnter=function(e,r){var n=t.getClassNames(r?"appear":"enter").className;t.removeClasses(e,"exit"),l(e,n),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.getClassNames(r?"appear":"enter").activeClassName;t.reflowAndAddClass(e,n),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.getClassNames("appear").doneClassName,i=t.getClassNames("enter").doneClassName,o=r?n+" "+i:i;t.removeClasses(e,r?"appear":"enter"),l(e,o),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),l(e,r),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,r),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),l(e,r),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,i=n?(n&&r?r+"-":"")+e:r[e];return{className:i,activeClassName:n?i+"-active":r[e+"Active"],doneClassName:n?i+"-done":r[e+"Done"]}},t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.removeClasses=function(e,t){var r=this.getClassNames(t),n=r.className,i=r.activeClassName,o=r.doneClassName;n&&u(e,n),i&&u(e,i),o&&u(e,o)},i.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,l(e,t))},i.render=function(){var e=c({},this.props);return delete e.classNames,o.default.createElement(a.default,c({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(o.default.Component);d.defaultProps={classNames:""},d.propTypes={};var f=d;t.default=f,e.exports=t.default},42518:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;a(r(39067));
2var n=a(r(14041)),i=r(43144),o=a(r(94183));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,r;function a(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).handleEnter=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEnter",0,r)},t.handleEntering=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntering",0,r)},t.handleEntered=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntered",0,r)},t.handleExit=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExit",1,r)},t.handleExiting=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExiting",1,r)},t.handleExited=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExited",1,r)},t}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var s=a.prototype;return s.handleLifecycle=function(e,t,r){var o,a=this.props.children,s=n.default.Children.toArray(a)[t];s.props[e]&&(o=s.props)[e].apply(o,r),this.props[e]&&this.props[e]((0,i.findDOMNode)(this))},s.render=function(){var e=this.props,t=e.children,r=e.in,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,["children","in"]),a=n.default.Children.toArray(t),s=a[0],c=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,n.default.createElement(o.default,i,r?n.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(n.default.Component);s.propTypes={};var c=s;t.default=c,e.exports=t.default},28890:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(39067)),i=s(r(14041)),o=s(r(43144)),a=r(90146);r(22753);function s(e){return e&&e.__esModule?e:{default:e}}var c="unmounted";t.UNMOUNTED=c;var l="exited";t.EXITED=l;var u="entering";t.ENTERING=u;var d="entered";t.ENTERED=d;var f="exiting";t.EXITING=f;var p=function(e){var t,r;function n(t,r){var n;n=e.call(this,t,r)||this;var i,o=r.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(i=l,n.appearStatus=u):i=d:i=t.unmountOnExit||t.mountOnEnter?c:l,n.state={status:i},n.nextCallback=null,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:l}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==u&&r!==d&&(t=u):r!==u&&r!==d||(t=f)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=o.default.findDOMNode(this);t===u?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:c})},a.performEnter=function(e,t){var r=this,n=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;t||n?(this.props.onEnter(e,i),this.safeSetState({status:u},(function(){r.props.onEntering(e,i),r.onTransitionEnd(e,a,(function(){r.safeSetState({status:d},(function(){r.props.onEntered(e,i)}))}))}))):this.safeSetState({status:d},(function(){r.props.onEntered(e)}))},a.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(e),this.safeSetState({status:f}
2,(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:l},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:l},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},a.onTransitionEnd=function(e,t,r){this.setNextCallback(r);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,r=t.children,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(e,n);var o=i.default.Children.only(r);return i.default.cloneElement(o,n)},n}(i.default.Component);function h(){}p.contextTypes={transitionGroup:n.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var m=(0,a.polyfill)(p);t.default=m},94183:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=s(r(39067)),i=s(r(14041)),o=r(90146),a=r(69831);function s(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},d=function(e){var t,r;function n(t,r){var n,i=(n=e.call(this,t,r)||this).handleExited.bind(l(l(n)));return n.state={handleExited:i,firstRender:!0},n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0,this.mounted=!0},o.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;
2return{children:t.firstRender?(0,a.getInitialChildMapping)(e,n):(0,a.getNextChildMapping)(e,r,n),firstRender:!1}},o.handleExited=function(e,t){var r=(0,a.getChildMapping)(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=c({},t.children);return delete r[e.key],{children:r}})))},o.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,["component","childFactory"]),o=u(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?o:i.default.createElement(t,n,o)},n}(i.default.Component);d.childContextTypes={transitionGroup:n.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var f=(0,o.polyfill)(d);t.default=f,e.exports=t.default},53833:(e,t,r)=>{"use strict";var n=s(r(61745)),i=s(r(42518)),o=s(r(94183)),a=s(r(28890));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:n.default}},69831:(e,t,r)=>{"use strict";t.__esModule=!0,t.getChildMapping=i,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return i(e.children,(function(r){return(0,n.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:a(r,"appear",e),enter:a(r,"enter",e),exit:a(r,"exit",e)})}))},t.getNextChildMapping=function(e,t,r){var s=i(e.children),c=o(t,s);return Object.keys(c).forEach((function(i){var o=c[i];if((0,n.isValidElement)(o)){var l=i in t,u=i in s,d=t[i],f=(0,n.isValidElement)(d)&&!d.props.in;!u||l&&!f?u||!l||f?u&&l&&(0,n.isValidElement)(d)&&(c[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:d.props.in,exit:a(o,"exit",e),enter:a(o,"enter",e)})):c[i]=(0,n.cloneElement)(o,{in:!1}):c[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:!0,exit:a(o,"exit",e),enter:a(o,"enter",e)})}})),c};var n=r(14041);function i(e,t){var r=Object.create(null);return e&&n.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,n.isValidElement)(e)?t(e):e}(e)})),r}function o(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var c in t){if(i[c])for(n=0;n<i[c].length;n++){var l=i[c][n];s[i[c][n]]=r(l)}s[c]=r(c)}for(n=0;n<o.length;n++)s[o[n]]=r(o[n]);return s}function a(e,t,r){return null!=r[t]?r[t]:e.props[t]}},22753:(e,t,r)=>{"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var n;(n=r(39067))&&n.__esModule;t.timeoutsShape=null;t.classNamesShape=null},73335:(e,t,r)=>{"use strict";var n=r(14041),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,o={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!c.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:l,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},14304:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||h}function g(){}function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var E=b.prototype=new g;
vendor: 5,523 bytes, line 2
2E.constructor=b,m(E,v.prototype),E.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,A={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,i)&&!_.hasOwnProperty(i)&&(o[i]=t[i]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps)void 0===o[i]&&(o[i]=c[i]);return{$$typeof:r,type:e,key:a,ref:s,props:o,_owner:A.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var I=/\/+/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 O(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case n:c=!0}}if(c)return a=a(c=e),e=""===o?"."+k(c,0):o,w(a)?(i="",null!=e&&(i=e.replace(I,"$&/")+"/"),O(a,t,i,"",(function(e){return e}))):null!=a&&(P(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(I,"$&/")+"/")+e)),t.push(a)),1;if(c=0,o=""===o?".":o+":",w(e))for(var l=0;l<e.length;l++){var u=o+k(s=e[l],l);c+=O(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),l=0;!(s=e.next()).done;)c+=O(s=s.value,t,i,u=o+k(s,l++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function T(e,t,r){if(null==e)return e;var n=[],i=0;return O(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function C(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},N={transition:null},L={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:N,ReactCurrentOwner:A};t.Children={map:T,forEach:function(e,t,r){T(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=A.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)S.call(t,l)&&!_.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:r,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:C}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,r){return R.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,r){return R.current.useReducer(e,t,r)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return R.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return R.current.useTransition()},t.version="18.2.0"},14041:(e,t,r)=>{"use strict";e.exports=r(14304)},31085:(e,t,r)=>{"use strict";e.exports=r(73335)},49930:(e,t,r)=>{"use strict";function n(e){return"/"===e.charAt(0)}function i(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}r.d(t,{A:()=>
vendor: 9,105 bytes, line 2
2o});const o=function(e,t){void 0===t&&(t="");var r,o=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&n(e),c=t&&n(t),l=s||c;if(e&&n(e)?a=o:o.length&&(a.pop(),a=a.concat(o)),!a.length)return"/";if(a.length){var u=a[a.length-1];r="."===u||".."===u||""===u}else r=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?i(a,f):".."===p?(i(a,f),d++):d&&(i(a,f),d--)}if(!l)for(;d--;d)a.unshift("..");!l||""===a[0]||a[0]&&n(a[0])||a.unshift("");var h=a.join("/");return r&&"/"!==h.substr(-1)&&(h+="/"),h}},25636:(e,t,r)=>{var n=r(1048),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},72568:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(!(0<o(i,t)))break e;e[n]=t,e[r]=i,r=n}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,a=i>>>1;n<a;){var s=2*(n+1)-1,c=e[s],l=s+1,u=e[l];if(0>o(c,r))l<i&&0>o(u,c)?(e[n]=u,e[l]=r,n=l):(e[n]=c,e[s]=r,n=s);else{if(!(l<i&&0>o(u,r)))break e;e[n]=u,e[l]=r,n=l}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var l=[],u=[],d=1,f=null,p=3,h=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function E(e){for(var t=n(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,r(l,t)}t=n(u)}}function w(e){if(y=!1,E(e),!m)if(null!==n(l))m=!0,N(S);else{var t=n(u);null!==t&&L(w,t.startTime-e)}}function S(e,r){m=!1,y&&(y=!1,g(P),P=-1),h=!0;var o=p;try{for(E(r),f=n(l);null!==f&&(!(f.expirationTime>r)||e&&!O());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?f.callback=s:f===n(l)&&i(l),E(r)}else i(l);f=n(l)}if(null!==f)var c=!0;else{var d=n(u);null!==d&&L(w,d.startTime-r),c=!1}return c}finally{f=null,p=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var A,_=!1,x=null,P=-1,I=5,k=-1;function O(){return!(t.unstable_now()-k<I)}function T(){if(null!==x){var e=t.unstable_now();k=e;var r=!0;try{r=x(!0,e)}finally{r?A():(_=!1,x=null)}}else _=!1}if("function"==typeof b)A=function(){b(T)};else if("undefined"!=typeof MessageChannel){var C=new MessageChannel,R=C.port2;C.port1.onmessage=T,A=function(){R.postMessage(null)}}else A=function(){v(T,0)};function N(e){x=e,_||(_=!0,A())}function L(e,r){P=v((function(){e(t.unstable_now())}),r)}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(){m||h||(m=!0,N(S))},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"):I=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var r=p;p=t;try{return e()}finally{p=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=p;p=e;try{return t()}finally{p=r}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,r(u,e),null===n(l)&&e===n(u)&&(y?(g(P),P=-1):y=!0,L(w,o-a))):(e.sortIndex=s,r(l,e),m||h||(m=!0,N(S))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}},97967:(e,t,r)=>{"use strict";e.exports=r(72568)},1229:(e,t,r)=>{var n=r(25636).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var c=a%i,l=Math.min(o-s,i-c),u=0;u<l;u++)r[c+u]=e[s+u];s+=l,(a+=l)%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},13229:(e,t,r)=>{var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(93675),n.sha1=r(28980),n.sha224=r(20947),n.sha256=r(52826),n.sha384=r(19922),n.sha512=r(13699)},93675:(e,t,r)=>{var n=r(12276),i=r(1229),o=r(25636).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function u(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=r[d-3]^r[d-8]^r[d-14]^r[d-16];for(var f=0;f<80;++f){var p=~~(f/20),h=0|((t=n)<<5|t>>>27)+u(p,i,o,s)+c+r[f]+a[p];c=s,s=o,o=l(i),i=n,n=h}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},28980:(e,t,r)=>{var n=r(12276),i=r(1229),o=r(25636).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=(t=r[f-3]^r[f-8]^r[f-14]^r[f-16])<<1|t>>>31;for(var p=0;p<80;++p){var h=~~(p/20),m=l(n)+d(h,i,o,s)+c+r[p]+a[h]|0;c=s,s=o,o=u(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},20947:(e,t,r)=>{var n=r(12276),i=r(52826),o=r(1229),a=r(25636).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},52826:(e,t,r)=>
vendor: 4,564 bytes, line 2
2{var n=r(12276),i=r(1229),o=r(25636).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,h=0|this._f,m=0|this._g,y=0|this._h,v=0;v<16;++v)r[v]=e.readInt32BE(4*v);for(;v<64;++v)r[v]=0|(((t=r[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[v-7]+p(r[v-15])+r[v-16];for(var g=0;g<64;++g){var b=y+f(c)+l(c,h,m)+a[g]+r[g]|0,E=d(n)+u(n,i,o)|0;y=m,m=h,h=c,c=s+b|0,s=o,o=i,i=n,n=b+E|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=h+this._f|0,this._g=m+this._g|0,this._h=y+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},19922:(e,t,r)=>{var n=r(12276),i=r(13699),o=r(1229),a=r(25636).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},13699:(e,t,r)=>{var n=r(12276),i=r(1229),o=r(25636).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
vendor: 1,738 bytes, line 2
21126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0<t>>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,g=0|this._gh,b=0|this._hh,E=0|this._al,w=0|this._bl,S=0|this._cl,A=0|this._dl,_=0|this._el,x=0|this._fl,P=0|this._gl,I=0|this._hl,k=0;k<32;k+=2)t[k]=e.readInt32BE(4*k),t[k+1]=e.readInt32BE(4*k+4);for(;k<160;k+=2){var O=t[k-30],T=t[k-30+1],C=p(O,T),R=h(T,O),N=m(O=t[k-4],T=t[k-4+1]),L=y(T,O),D=t[k-14],M=t[k-14+1],F=t[k-32],j=t[k-32+1],B=R+M|0,V=C+D+v(B,R)|0;V=(V=V+N+v(B=B+L|0,L)|0)+F+v(B=B+j|0,j)|0,t[k]=V,t[k+1]=B}for(var U=0;U<160;U+=2){V=t[U],B=t[U+1];var z=u(r,n,i),G=u(E,w,S),W=d(r,E),H=d(E,r),$=f(s,_),Y=f(_,s),q=a[U],K=a[U+1],Q=l(s,c,g),X=l(_,x,P),Z=I+Y|0,J=b+$+v(Z,I)|0;
2J=(J=(J=J+Q+v(Z=Z+X|0,X)|0)+q+v(Z=Z+K|0,K)|0)+V+v(Z=Z+B|0,B)|0;var ee=H+G|0,te=W+z+v(ee,H)|0;b=g,I=P,g=c,P=x,c=s,x=_,s=o+J+v(_=A+Z|0,A)|0,o=i,A=S,i=n,S=w,n=r,w=E,r=J+te+v(E=Z+ee|0,Z)|0}this._al=this._al+E|0,this._bl=this._bl+w|0,this._cl=this._cl+S|0,this._dl=this._dl+A|0,this._el=this._el+_|0,this._fl=this._fl+x|0,this._gl=this._gl+P|0,this._hl=this._hl+I|0,this._ah=this._ah+r+v(this._al,E)|0,this._bh=this._bh+n+v(this._bl,w)|0,this._ch=this._ch+i+v(this._cl,S)|0,this._dh=this._dh+o+v(this._dl,A)|0,this._eh=this._eh+s+v(this._el,_)|0,this._fh=this._fh+c+v(this._fl,x)|0,this._gh=this._gh+g+v(this._gl,P)|0,this._hh=this._hh+b+v(this._hl,I)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},51391:(e,t,r)=>{"use strict";r.d(t,{l:()=>ge,o:()=>de});var n=r(14041),i=r(43144),{entries:o,setPrototypeOf:a,isFrozen:s,getPrototypeOf:c,getOwnPropertyDescriptor:l}=Object,{freeze:u,seal:d,create:f}=Object,{apply:p,construct:h}="undefined"!=typeof Reflect&&Reflect;u||(u=function(e){return e}),d||(d=function(e){return e}),p||(p=function(e,t,r){return e.apply(t,r)}),h||(h=function(e,t){return new e(...t)});var m,y=k(Array.prototype.forEach),v=k(Array.prototype.pop),g=k(Array.prototype.push),b=k(String.prototype.toLowerCase),E=k(String.prototype.toString),w=k(String.prototype.match),S=k(String.prototype.replace),A=k(String.prototype.indexOf),_=k(String.prototype.trim),x=k(Object.prototype.hasOwnProperty),P=k(RegExp.prototype.test),I=(m=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h(m,t)});function k(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return p(e,t,n)}}function O(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;a&&a(e,null);let n=t.length;for(;n--;){let i=t[n];if("string"==typeof i){let e=r(i);e!==i&&(s(t)||(t[n]=e),i=e)}e[i]=!0}return e}function T(e){for(let t=0;t<e.length;t++)x(e,t)||(e[t]=null);return e}function C(e){let t=f(null);for(let[r,n]of o(e))x(e,r)&&(Array.isArray(n)?t[r]=T(n):n&&"object"==typeof n&&n.constructor===Object?t[r]=C(n):t[r]=n);return t}function R(e,t){for(;null!==e;){let r=l(e,t);if(r){if(r.get)return k(r.get);if("function"==typeof r.value)return k(r.value)}e=c(e)}return function(){return null}}var N=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),j=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=u(["#text"]),V=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),U=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=d(/<%[\w\W]*|[\w\W]*%>/gm),$=d(/\${[\w\W]*}/gm),Y=d(/^data-[\-\w.\u00B7-\uFFFF]/),q=d(/^aria-[\-\w]+$/),K=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=d(/^(?:\w+script|data):/i),X=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=d(/^html$/i),J=d(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i),ee=Object.freeze({__proto__:null,MUSTACHE_EXPR:W,ERB_EXPR:H,TMPLIT_EXPR:$,DATA_ATTR:Y,ARIA_ATTR:q,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:Q,ATTR_WHITESPACE:X,DOCTYPE_NAME:Z,CUSTOM_ELEMENT:J});var te=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,r=t=>e(t);if(r.version="3.0.10",r.removed=[],!t||!t.document||9!==t.document.nodeType)return r.isSupported=!1,r;let{document:n}=t,i=n,a=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:c,Node:l,Element:d,NodeFilter:p,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:k,trustedTypes:T}=t,W=d.prototype,H=R(W,"cloneNode"),$=R(W,"nextSibling"),Y=R(W,"childNodes"),q=R(W,"parentNode");if("function"==typeof c){let e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let Q,X="",{implementation:J,createNodeIterator:te,createDocumentFragment:re,getElementsByTagName:ne}=n,{importNode:ie}=i,oe={};r.isSupported="function"==typeof o&&"function"==typeof q&&J&&void 0!==J.createHTMLDocument;let{MUSTACHE_EXPR:ae,ERB_EXPR:se,TMPLIT_EXPR:ce,DATA_ATTR:le,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:pe}=ee,{IS_ALLOWED_URI:he}=ee,me=null,ye=O({},[...N,...L,...D,...F,...B]),ve=null,ge=O({},[...V,...U,...z,...G]),be=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,we=null,Se=!0,Ae=!0,_e=!1,xe=!0,Pe=!1,Ie=!1,ke=!1,Oe=!1,Te=!1,Ce=!1,Re=!1,Ne=!0,Le=!1,De=!0,Me=!1,Fe={},je=null,Be=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,Ue=O({},["audio","video","img","source","image","track"]),ze=null,Ge=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml",Ye=$e,qe=!1,Ke=null,Qe=O({},[We,He,$e],E),Xe=null,Ze=["application/xhtml+xml","text/html"],Je=null,et=null,tt=n.createElement("form"),rt=function(e){return e instanceof RegExp||e instanceof Function},nt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!et||et!==e){if((!e||"object"!=typeof e)&&(e={}
vendor: 4,826 bytes, line 2
2),e=C(e),Xe=-1===Ze.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Je="application/xhtml+xml"===Xe?E:b,me=x(e,"ALLOWED_TAGS")?O({},e.ALLOWED_TAGS,Je):ye,ve=x(e,"ALLOWED_ATTR")?O({},e.ALLOWED_ATTR,Je):ge,Ke=x(e,"ALLOWED_NAMESPACES")?O({},e.ALLOWED_NAMESPACES,E):Qe,ze=x(e,"ADD_URI_SAFE_ATTR")?O(C(Ge),e.ADD_URI_SAFE_ATTR,Je):Ge,Ve=x(e,"ADD_DATA_URI_TAGS")?O(C(Ue),e.ADD_DATA_URI_TAGS,Je):Ue,je=x(e,"FORBID_CONTENTS")?O({},e.FORBID_CONTENTS,Je):Be,Ee=x(e,"FORBID_TAGS")?O({},e.FORBID_TAGS,Je):{},we=x(e,"FORBID_ATTR")?O({},e.FORBID_ATTR,Je):{},Fe=!!x(e,"USE_PROFILES")&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,_e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,Ie=e.WHOLE_DOCUMENT||!1,Te=e.RETURN_DOM||!1,Ce=e.RETURN_DOM_FRAGMENT||!1,Re=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,Ne=!1!==e.SANITIZE_DOM,Le=e.SANITIZE_NAMED_PROPS||!1,De=!1!==e.KEEP_CONTENT,Me=e.IN_PLACE||!1,he=e.ALLOWED_URI_REGEXP||K,Ye=e.NAMESPACE||$e,be=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(be.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(be.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(be.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Ae=!1),Ce&&(Te=!0),Fe&&(me=O({},B),ve=[],!0===Fe.html&&(O(me,N),O(ve,V)),!0===Fe.svg&&(O(me,L),O(ve,U),O(ve,G)),!0===Fe.svgFilters&&(O(me,D),O(ve,U),O(ve,G)),!0===Fe.mathMl&&(O(me,F),O(ve,z),O(ve,G))),e.ADD_TAGS&&(me===ye&&(me=C(me)),O(me,e.ADD_TAGS,Je)),e.ADD_ATTR&&(ve===ge&&(ve=C(ve)),O(ve,e.ADD_ATTR,Je)),e.ADD_URI_SAFE_ATTR&&O(ze,e.ADD_URI_SAFE_ATTR,Je),e.FORBID_CONTENTS&&(je===Be&&(je=C(je)),O(je,e.FORBID_CONTENTS,Je)),De&&(me["#text"]=!0),Ie&&O(me,["html","head","body"]),me.table&&(O(me,["tbody"]),delete Ee.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,X=Q.createHTML("")}else void 0===Q&&(Q=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(T,a)),null!==Q&&"string"==typeof X&&(X=Q.createHTML(""));u&&u(e),et=e}},it=O({},["mi","mo","mn","ms","mtext"]),ot=O({},["foreignobject","desc","title","annotation-xml"]),at=O({},["title","style","font","a","script"]),st=O({},[...L,...D,...M]),ct=O({},[...F,...j]),lt=function(e){g(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},ut=function(e,t){try{g(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ve[e])if(Te||Ce)try{lt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},dt=function(e){let t=null,r=null;if(Oe)e="<remove></remove>"+e;else{let t=w(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===Xe&&Ye===$e&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=Q?Q.createHTML(e):e;if(Ye===$e)try{t=(new k).parseFromString(i,Xe)}catch(e){}if(!t||!t.documentElement){t=J.createDocument(Ye,"template",null);try{t.documentElement.innerHTML=qe?X:i}catch(e){}}let o=t.body||t.documentElement;return e&&r&&o.insertBefore(n.createTextNode(r),o.childNodes[0]||null),Ye===$e?ne.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:o},ft=function(e){return te.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION,null)},pt=function(e){return"function"==typeof l&&e instanceof l},ht=function(e,t,n){oe[e]&&y(oe[e],(e=>{e.call(r,t,n,et)}))},mt=function(e){let t=null;if(ht("beforeSanitizeElements",e,null),function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)}(e))return lt(e),!0;let n=Je(e.nodeName);if(ht("uponSanitizeElement",e,{tagName:n,allowedTags:me}),e.hasChildNodes()&&!pt(e.firstElementChild)&&P(/<[/\w]/g,e.innerHTML)&&P(/<[/\w]/g,e.textContent))return lt(e),!0;
vendor: 5,543 bytes, line 2
2if(!me[n]||Ee[n]){if(!Ee[n]&&vt(n)&&(be.tagNameCheck instanceof RegExp&&P(be.tagNameCheck,n)||be.tagNameCheck instanceof Function&&be.tagNameCheck(n)))return!1;if(De&&!je[n]){let t=q(e)||e.parentNode,r=Y(e)||e.childNodes;if(r&&t){for(let n=r.length-1;n>=0;--n)t.insertBefore(H(r[n],!0),$(e))}}return lt(e),!0}return e instanceof d&&!function(e){let t=q(e);(!t||!t.tagName)&&(t={namespaceURI:Ye,tagName:"template"});let r=b(e.tagName),n=b(t.tagName);return!!Ke[e.namespaceURI]&&(e.namespaceURI===He?t.namespaceURI===$e?"svg"===r:t.namespaceURI===We?"svg"===r&&("annotation-xml"===n||it[n]):!!st[r]:e.namespaceURI===We?t.namespaceURI===$e?"math"===r:t.namespaceURI===He?"math"===r&&ot[n]:!!ct[r]:e.namespaceURI===$e?!(t.namespaceURI===He&&!ot[n]||t.namespaceURI===We&&!it[n])&&!ct[r]&&(at[r]||!st[r]):!("application/xhtml+xml"!==Xe||!Ke[e.namespaceURI]))}(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&P(/<\/no(script|embed|frames)/i,e.innerHTML)?(lt(e),!0):(Pe&&3===e.nodeType&&(t=e.textContent,y([ae,se,ce],(e=>{t=S(t,e," ")})),e.textContent!==t&&(g(r.removed,{element:e.cloneNode()}),e.textContent=t)),ht("afterSanitizeElements",e,null),!1)},yt=function(e,t,r){if(Ne&&("id"===t||"name"===t)&&(r in n||r in tt))return!1;if((!Ae||we[t]||!P(le,t))&&(!Se||!P(ue,t)))if(!ve[t]||we[t]){if(!(vt(e)&&(be.tagNameCheck instanceof RegExp&&P(be.tagNameCheck,e)||be.tagNameCheck instanceof Function&&be.tagNameCheck(e))&&(be.attributeNameCheck instanceof RegExp&&P(be.attributeNameCheck,t)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(t))||"is"===t&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&P(be.tagNameCheck,r)||be.tagNameCheck instanceof Function&&be.tagNameCheck(r))))return!1}else if(!ze[t]&&!P(he,S(r,fe,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==A(r,"data:")||!Ve[e])&&(!_e||P(de,S(r,fe,"")))&&r)return!1;return!0},vt=function(e){return"annotation-xml"!==e&&w(e,pe)},gt=function(e){ht("beforeSanitizeAttributes",e,null);let{attributes:t}=e;if(!t)return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ve},i=t.length;for(;i--;){let o=t[i],{name:a,namespaceURI:s,value:c}=o,l=Je(a),u="value"===a?c:_(c);if(n.attrName=l,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,ht("uponSanitizeAttribute",e,n),u=n.attrValue,n.forceKeepAttr||(ut(a,e),!n.keepAttr))continue;if(!xe&&P(/\/>/i,u)){ut(a,e);continue}Pe&&y([ae,se,ce],(e=>{u=S(u,e," ")}));let d=Je(e.nodeName);if(yt(d,l,u)){if(Le&&("id"===l||"name"===l)&&(ut(a,e),u="user-content-"+u),Q&&"object"==typeof T&&"function"==typeof T.getAttributeType&&!s)switch(T.getAttributeType(d,l)){case"TrustedHTML":u=Q.createHTML(u);break;case"TrustedScriptURL":u=Q.createScriptURL(u)}try{s?e.setAttributeNS(s,a,u):e.setAttribute(a,u),v(r.removed)}catch(e){}}}ht("afterSanitizeAttributes",e,null)},bt=function e(t){let r=null,n=ft(t);for(ht("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)ht("uponSanitizeShadowNode",r,null),!mt(r)&&(r.content instanceof s&&e(r.content),gt(r));ht("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,c=null;if(qe=!e,qe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!pt(e)){if("function"!=typeof e.toString)throw I("toString is not a function");if("string"!=typeof(e=e.toString()))throw I("dirty is not a string, aborting")}if(!r.isSupported)return e;if(ke||nt(t),r.removed=[],"string"==typeof e&&(Me=!1),Me){if(e.nodeName){let t=Je(e.nodeName);if(!me[t]||Ee[t])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)n=dt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Te&&!Pe&&!Ie&&-1===e.indexOf("<"))return Q&&Re?Q.createHTML(e):e;if(n=dt(e),!n)return Te?null:Re?X:""}n&&Oe&<(n.firstChild);let u=ft(Me?e:n);for(;a=u.nextNode();)mt(a)||(a.content instanceof s&&bt(a.content),gt(a));if(Me)return e;if(Te){if(Ce)for(c=re.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(ve.shadowroot||ve.shadowrootmode)&&(c=ie.call(i,c,!0)),c}let d=Ie?n.outerHTML:n.innerHTML;return Ie&&me["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&P(Z,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Pe&&y([ae,se,ce],(e=>{d=S(d,e," ")})),Q&&Re?Q.createHTML(d):d},r.setConfig=function(){nt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ke=!0},r.clearConfig=function(){et=null,ke=!1},r.isValidAttribute=function(e,t,r){et||nt({});let n=Je(e),i=Je(t);return yt(n,i,r)},r.addHook=function(e,t){"function"==typeof t&&(oe[e]=oe[e]||[],g(oe[e],t))},r.removeHook=function(e){if(oe[e])return v(oe[e])},r.removeHooks=function(e){oe[e]&&(oe[e]=[])},r.removeAllHooks=function(){oe={}},r}(),re=Array(12).fill(0),ne=({visible:e})=>n.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},n.createElement("div",{className:"sonner-spinner"},re.map(((e,t)=>n.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`}))))),ie=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),oe=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
2currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ae=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),se=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ce=1,le=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach((t=>t(e)))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,i="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:ce++,o=this.toasts.find((e=>e.id===i)),a=void 0===e.dismissible||e.dismissible;return o?this.toasts=this.toasts.map((t=>t.id===i?(this.publish({...t,...e,id:i,title:r}),{...t,...e,id:i,dismissible:a,title:r}):t)):this.addToast({title:r,...n,dismissible:a,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach((e=>{this.subscribers.forEach((t=>t({id:e.id,dismiss:!0})))})),this.subscribers.forEach((t=>t({id:e,dismiss:!0}))),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
2this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;void 0!==t.loading&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let n=e instanceof Promise?e:e(),i=void 0!==r;return n.then((e=>{if(e&&"boolean"==typeof e.ok&&!e.ok){i=!1;let n="function"==typeof t.error?t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?t.description(`HTTP error! status: ${e.status}`):t.description;this.create({id:r,type:"error",message:n,description:o})}else if(void 0!==t.success){i=!1;let n="function"==typeof t.success?t.success(e):t.success,o="function"==typeof t.description?t.description(e):t.description;this.create({id:r,type:"success",message:n,description:o})}})).catch((e=>{if(void 0!==t.error){i=!1;let n="function"==typeof t.error?t.error(e):t.error,o="function"==typeof t.description?t.description(e):t.description;this.create({id:r,type:"error",message:n,description:o})}})).finally((()=>{var e;i&&(this.dismiss(r),r=void 0),null==(e=t.finally)||e.call(t)})),r},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||ce++;return this.create({jsx:e(r),id:r,...t}),r},this.subscribers=[],this.toasts=[]}},ue=(e,t)=>
2{let r=(null==t?void 0:t.id)||ce++;return le.addToast({title:e,...t,id:r}),r},de=Object.assign(ue,{success:le.success,info:le.info,warning:le.warning,error:le.error,custom:le.custom,message:le.message,promise:le.promise,dismiss:le.dismiss,loading:le.loading});function fe(e){return void 0!==e.label&&"function"==typeof e.onClick}!function(e,{insertAt:t}={}){if(!e||"undefined"==typeof document)return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
2left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
2:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');var pe=3,he=14;function me(...e){return e.filter(Boolean).join(" ")}var ye=e=>{var t,r,i,o,a,s,c;let{invert:l,toast:u,unstyled:d,interacting:f,setHeights:p,visibleToasts:h,heights:m,index:y,toasts:v,expanded:g,removeToast:b,closeButton:E,style:w,cancelButtonStyle:S,actionButtonStyle:A,className:_="",descriptionClassName:x="",duration:P,position:I,gap:k,loadingIcon:O,expandByDefault:T,classNames:C,icons:R,closeButtonAriaLabel:N="Close toast",pauseWhenPageIsHidden:L,cn:D}=e,[M,F]=n.useState(!1),[j,B]=n.useState(!1),[V,U]=n.useState(!1),[z,G]=n.useState(!1),[W,H]=n.useState(0),[$,Y]=n.useState(0),q=n.useRef(null),K=n.useRef(null),Q=0===y,X=y+1<=h,Z=u.type,J=!1!==u.dismissible,ee=u.className||"",re=u.descriptionClassName||"",ce=n.useMemo((()=>m.findIndex((e=>e.toastId===u.id))||0),[m,u.id]),le=n.useMemo((()=>{var e;return null!=(e=u.closeButton)?e:E}),[u.closeButton,E]),ue=n.useMemo((()=>u.duration||P||4e3),[u.duration,P]),de=n.useRef(0),pe=n.useRef(0),he=n.useRef(0),me=n.useRef(null),[ye,ve]=I.split("-"),ge=n.useMemo((()=>m.reduce(((e,t,r)=>r>=ce?e:e+t.height),0)),[m,ce]),be=(()=>{let[e,t]=n.useState(!1);return n.useEffect((()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)}),[]),e})(),Ee=u.invert||l,we="loading"===Z;pe.current=n.useMemo((()=>ce*k+ge),[ce,ge]),n.useEffect((()=>{F(!0)}),[]),n.useLayoutEffect((()=>
2{if(!M)return;let e=K.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,Y(r),p((e=>e.find((e=>e.toastId===u.id))?e.map((e=>e.toastId===u.id?{...e,height:r}:e)):[{toastId:u.id,height:r,position:u.position},...e]))}),[M,u.title,u.description,p,u.id]);let Se=n.useCallback((()=>{B(!0),H(pe.current),p((e=>e.filter((e=>e.toastId!==u.id)))),setTimeout((()=>{b(u)}),200)}),[u,b,p,pe]);function Ae(e){return{__html:te.sanitize(e)}}return n.useEffect((()=>{if(u.promise&&"loading"===Z||u.duration===1/0||"loading"===u.type)return;let e,t=ue;return g||f||L&&be?(()=>{if(he.current<de.current){let e=(new Date).getTime()-de.current;t-=e}he.current=(new Date).getTime()})():t!==1/0&&(de.current=(new Date).getTime(),e=setTimeout((()=>{var e;null==(e=u.onAutoClose)||e.call(u,u),Se()}),t)),()=>clearTimeout(e)}),[g,f,T,u,ue,Se,u.promise,Z,L,be]),n.useEffect((()=>{let e=K.current;if(e){let t=e.getBoundingClientRect().height;return Y(t),p((e=>[{toastId:u.id,height:t,position:u.position},...e])),()=>p((e=>e.filter((e=>e.toastId!==u.id))))}}),[p,u.id]),n.useEffect((()=>{u.delete&&Se()}),[Se,u.delete]),n.createElement("li",{"aria-live":u.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:K,className:D(_,ee,null==C?void 0:C.toast,null==(t=null==u?void 0:u.classNames)?void 0:t.toast,null==C?void 0:C.default,null==C?void 0:C[Z],null==(r=null==u?void 0:u.classNames)?void 0:r[Z]),"data-sonner-toast":"","data-styled":!(u.jsx||u.unstyled||d),"data-mounted":M,"data-promise":!!u.promise,"data-removed":j,"data-visible":X,"data-y-position":ye,"data-x-position":ve,"data-index":y,"data-front":Q,"data-swiping":V,"data-dismissible":J,"data-type":Z,"data-invert":Ee,"data-swipe-out":z,"data-expanded":!!(g||T&&M),style:{"--index":y,"--toasts-before":y,"--z-index":v.length-y,"--offset":`${j?W:pe.current}px`,"--initial-height":T?"auto":`${$}px`,...w,...u.style},onPointerDown:e=>{we||!J||(q.current=new Date,H(pe.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(U(!0),me.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n;if(z||!J)return;me.current=null;let i=Number((null==(e=K.current)?void 0:e.style.getPropertyValue("--swipe-amount").replace("px",""))||0),o=(new Date).getTime()-(null==(t=q.current)?void 0:t.getTime()),a=Math.abs(i)/o;if(Math.abs(i)>=20||a>.11)return H(pe.current),null==(r=u.onDismiss)||r.call(u,u),Se(),void G(!0);null==(n=K.current)||n.style.setProperty("--swipe-amount","0px"),U(!1)},onPointerMove:e=>{var t;if(!me.current||!J)return;let r=e.clientY-me.current.y,n=e.clientX-me.current.x,i=("top"===ye?Math.min:Math.max)(0,r),o="touch"===e.pointerType?10:2;Math.abs(i)>o?null==(t=K.current)||t.style.setProperty("--swipe-amount",`${r}px`):Math.abs(n)>o&&(me.current=null)}},le&&!u.jsx?n.createElement("button",{"aria-label":N,"data-disabled":we,"data-close-button":!0,onClick:we||!J?()=>{}:()=>{var e;Se(),null==(e=u.onDismiss)||e.call(u,u)},className:D(null==C?void 0:C.closeButton,null==(i=null==u?void 0:u.classNames)?void 0:i.closeButton)},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},n.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,u.jsx||n.isValidElement(u.title)?u.jsx||u.title:n.createElement(n.Fragment,null,Z||u.icon||u.promise?n.createElement("div",{"data-icon":"",className:D(null==C?void 0:C.icon)},u.promise||"loading"===u.type&&!u.icon?u.icon||(null!=R&&R.loading?n.createElement("div",{className:"sonner-loader","data-visible":"loading"===Z},R.loading):O?n.createElement("div",{className:"sonner-loader","data-visible":"loading"===Z},O):n.createElement(ne,{visible:"loading"===Z})):null,"loading"!==u.type?u.icon||(null==R?void 0:R[Z])||(e=>{switch(e){case"success":return ie;case"info":return ae;case"warning":return oe;case"error":return se;default:return null}})(Z):null):null,n.createElement("div",{"data-content":"",className:D(null==C?void 0:C.content)},n.createElement("div",{"data-title":"",className:D(null==C?void 0:C.title,null==(o=null==u?void 0:u.classNames)?void 0:o.title),dangerouslySetInnerHTML:Ae(u.title)}),u.description?n.createElement("div",{"data-description":"",className:D(x,re,null==C?void 0:C.description,null==(a=null==u?void 0:u.classNames)?void 0:a.description),dangerouslySetInnerHTML:Ae(u.description)}):null),n.isValidElement(u.cancel)?u.cancel:u.cancel&&fe(u.cancel)?n.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||S,onClick:e=>{fe(u.cancel)&&J&&(Se(),u.cancel.onClick(e))},className:D(null==C?void 0:C.cancelButton,null==(s=null==u?void 0:u.classNames)?void 0:s.cancelButton)},u.cancel.label):null,n.isValidElement(u.action)?u.action:u.action&&fe(u.action)?n.createElement("button",{"data-button":"",style:u.actionButtonStyle||A,onClick:e=>{fe(u.action)&&(u.action.onClick(e),!e.defaultPrevented&&Se())},className:D(null==C?void 0:C.actionButton,null==(c=null==u?void 0:u.classNames)?void 0:c.actionButton)},u.action.label):null))};function ve(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var ge=e=>{let{invert:t,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:s,className:c,offset:l,theme:u="light",richColors:d,duration:f,style:p,visibleToasts:h=pe,toastOptions:m,dir:y=ve(),gap:v=he,loadingIcon:g,icons:b,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:w,cn:S=me}=e,[A,_]=n.useState([]),x=n.useMemo((()=>Array.from(new Set([r].concat(A.filter((e=>e.position)).map((e=>e.position)))))),[A,r]),[P,I]=n.useState([]),[k,O]=n.useState(!1),[T,C]=n.useState(!1),[R,N]=n.useState("system"!==u?u:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
2k":"light"),L=n.useRef(null),D=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=n.useRef(null),F=n.useRef(!1),j=n.useCallback((e=>_((t=>t.filter((({id:t})=>t!==e.id))))),[]);return n.useEffect((()=>le.subscribe((e=>{e.dismiss?_((t=>t.map((t=>t.id===e.id?{...t,delete:!0}:t)))):setTimeout((()=>{i.flushSync((()=>{_((t=>{let r=t.findIndex((t=>t.id===e.id));return-1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]}))}))}))}))),[]),n.useEffect((()=>{"system"===u?("system"===u&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?N("dark"):N("light")),"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(({matches:e})=>{N(e?"dark":"light")}))):N(u)}),[u]),n.useEffect((()=>{A.length<=1&&O(!1)}),[A]),n.useEffect((()=>{let e=e=>{var t,r;o.every((t=>e[t]||e.code===t))&&(O(!0),null==(t=L.current)||t.focus()),"Escape"===e.code&&(document.activeElement===L.current||null!=(r=L.current)&&r.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[o]),n.useEffect((()=>{if(L.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,F.current=!1)}}),[L.current]),A.length?n.createElement("section",{"aria-label":`${E} ${D}`,tabIndex:-1},x.map(((e,r)=>{var i;let[o,u]=e.split("-");return n.createElement("ol",{key:e,dir:"auto"===y?ve():y,tabIndex:-1,ref:L,className:c,"data-sonner-toaster":!0,"data-theme":R,"data-rich-colors":d,"data-y-position":o,"data-x-position":u,style:{"--front-toast-height":`${(null==(i=P[0])?void 0:i.height)||0}px`,"--offset":"number"==typeof l?`${l}px`:l||"32px","--width":"356px","--gap":`${v}px`,...p},onBlur:e=>{F.current&&!e.currentTarget.contains(e.relatedTarget)&&(F.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||F.current||(F.current=!0,M.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{T||O(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||C(!0)},onPointerUp:()=>C(!1)},A.filter((t=>!t.position&&0===r||t.position===e)).map(((r,i)=>{var o,c;return n.createElement(ye,{key:r.id,icons:b,index:i,toast:r,duration:null!=(o=null==m?void 0:m.duration)?o:f,className:null==m?void 0:m.className,descriptionClassName:null==m?void 0:m.descriptionClassName,invert:t,visibleToasts:h,closeButton:null!=(c=null==m?void 0:m.closeButton)?c:s,interacting:T,position:e,style:null==m?void 0:m.style,unstyled:null==m?void 0:m.unstyled,classNames:null==m?void 0:m.classNames,cancelButtonStyle:null==m?void 0:m.cancelButtonStyle,actionButtonStyle:null==m?void 0:m.actionButtonStyle,removeToast:j,toasts:A.filter((e=>e.position==r.position)),heights:P.filter((e=>e.position==r.position)),setHeights:I,expandByDefault:a,gap:v,loadingIcon:g,expanded:k,pauseWhenPageIsHidden:w,cn:S})})))}))):null}},72851:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},7269:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},61226:(e,t,r)=>{"use strict";r.d(t,{QP:()=>$});const n="-";function i(e){const t=function(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]},i=function(e,t){if(!t)return e;return e.map((([e,r])=>[e,r.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,r])=>[t+e,r]))):e))]))}(Object.entries(e.classGroups),r);return i.forEach((([e,r])=>{s(r,n,e,t)})),n}(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:function(e){const r=e.split(n);return""===r[0]&&1!==r.length&&r.shift(),o(r,t)||function(e){if(a.test(e)){const t=a.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){const n=r[e]||[];return t&&i[e]?[...n,...i[e]]:n}}}function o(e,t){if(0===e.length)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),a=i?o(e.slice(1),i):void 0;if(a)return a;
2if(0===t.validators.length)return;const s=e.join(n);return t.validators.find((({validator:e})=>e(s)))?.classGroupId}const a=/^\[(.+)\]$/;function s(e,t,r,n){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void s(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((([e,i])=>{s(i,c(t,e),r,n)}))}else{(""===e?t:c(t,e)).classGroupId=r}}))}function c(e,t){let r=e;return t.split(n).forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r}function l(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function i(i,o){r.set(i,o),t++,t>e&&(t=0,n=r,r=new Map)}return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):i(e,t)}}}const u="!";function d(e){const t=e.separator,r=1===t.length,n=t[0],i=t.length;return function(e){const o=[];let a,s=0,c=0;for(let l=0;l<e.length;l++){let u=e[l];if(0===s){if(u===n&&(r||e.slice(l,l+i)===t)){o.push(e.slice(c,l)),c=l+i;continue}if("/"===u){a=l;continue}}"["===u?s++:"]"===u&&s--}const l=0===o.length?e:e.substring(c),d=l.startsWith(u);return{modifiers:o,hasImportantModifier:d,baseClassName:d?l.substring(1):l,maybePostfixModifierPosition:a&&a>c?a-c:void 0}}}const f=/\s+/;function p(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=h(e))&&(n&&(n+=" "),n+=t);return n}function h(e){if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=h(e[n]))&&(r&&(r+=" "),r+=t);return r}function m(e,...t){let r,n,o,a=function(c){const u=t.reduce(((e,t)=>t(e)),e());return r=function(e){return{cache:l(e.cacheSize),splitModifiers:d(e),...i(e)}}(u),n=r.cache.get,o=r.cache.set,a=s,s(c)};function s(e){const t=n(e);if(t)return t;const i=function(e,t){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,o=new Set;return e.trim().split(f).map((e=>{const{modifiers:t,hasImportantModifier:i,baseClassName:o,maybePostfixModifierPosition:a}=r(e);let s=n(a?o.substring(0,a):o),c=Boolean(a);if(!s){if(!a)return{isTailwindClass:!1,originalClassName:e};if(s=n(o),!s)return{isTailwindClass:!1,originalClassName:e};c=!1}const l=function(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach((e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)})),t.push(...r.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:i?l+u:l,classGroupId:s,originalClassName:e,hasPostfixModifier:c}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:r,hasPostfixModifier:n}=e,a=t+r;return!o.has(a)&&(o.add(a),i(r,n).forEach((e=>o.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,r);return o(e,i),i}return function(){return a(p.apply(null,arguments))}}function y(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const v=/^\[(?:([a-z-]+):)?(.+)\]$/i,g=/^\d+\/\d+$/,b=new Set(["px","full","screen"]),E=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,w=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,A=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function x(e){return I(e)||b.has(e)||g.test(e)}function P(e){return V(e,"length",U)}function I(e){return Boolean(e)&&!Number.isNaN(Number(e))}function k(e){return V(e,"number",I)}function O(e){return Boolean(e)&&Number.isInteger(Number(e))}function T(e){return e.endsWith("%")&&I(e.slice(0,-1))}function C(e){return v.test(e)}function R(e){return E.test(e)}const N=new Set(["length","size","percentage"]);function L(e){return V(e,N,z)}function D(e){return V(e,"position",z)}const M=new Set(["image","url"]);function F(e){return V(e,M,W)}function j(e){return V(e,"",G)}function B(){return!0}function V(e,t,r){const n=v.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))}function U(e){return w.test(e)&&!S.test(e)}function z(){return!1}function G(e){return A.test(e)}function W(e){return _.test(e)}Symbol.toStringTag;function H(){const e=y("colors"),t=y("spacing"),r=y("blur"),n=y("brightness"),i=y("borderColor"),o=y("borderRadius"),a=y("borderSpacing"),s=y("borderWidth"),c=y("contrast"),l=y("grayscale"),u=y("hueRotate"),d=y("invert"),f=y("gap"),p=y("gradientColorStops"),h=y("gradientColorStopPositions"),m=y("inset"),v=y("margin"),g=y("opacity"),b=y("padding"),E=y("saturate"),w=y("scale"),S=y("sepia"),A=y("skew"),_=y("space"),N=y("translate"),M=()=>["auto",C,t],V=()=>[C,t],U=()=>["",x,P],z=()=>["auto",I,C],G=()=>["","0",C],W=()=>[I,k],H=()=>[I,C];return{cacheSize:500,separator:":",theme:{colors:[B],spacing:[x,P],blur:["none","",R,C],brightness:W(),borderColor:[e],borderRadius:["n
2one","","full",R,C],borderSpacing:V(),borderWidth:U(),contrast:W(),grayscale:G(),hueRotate:H(),invert:G(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[T,P],inset:M(),margin:M(),opacity:W(),padding:V(),saturate:W(),scale:W(),sepia:G(),skew:H(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[R]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",C]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",O,C]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",O,C]}],"grid-cols":[{"grid-cols":[B]}],"col-start-end":[{col:["auto",{span:["full",O,C]},C]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[B]}],"row-start-end":[{row:["auto",{span:[O,C]},C]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",C,t]}],"min-w":[{"min-w":[C,t,"min","max","fit"]}],"max-w":[{"max-w":[C,t,"none","full","min","max","fit","prose",{screen:[R]},R]}],h:[{h:[C,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[C,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[C,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[C,t,"auto","min","max","fit"]}],"font-size":[{text:["base",R,P]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",k]}],"font-family":[{font:[B]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],"line-clamp":[{"line-clamp":["none",I,k]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",x,C]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",x,P]}],"underline-offset":[{"underline-offset":["auto",x,C]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",D]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",L]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},F]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}
vendor: 4,288 bytes, line 2
2],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[x,C]}],"outline-w":[{outline:[x,P]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[x,P]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",R,j]}],"shadow-color":[{shadow:[B]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",R,C]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[E]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[O,C]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","
2none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[x,P,k]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const $=m(H)},62294:(e,t,r)=>{"use strict";r.d(t,{QP:()=>Y});var n=r(12511),i="-";function o(e){var t=function(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},i=function(e,t){if(!t)return e;return e.map((function(e){return[e[0],e[1].map((function(e){return"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((function(e){var r=e[0],n=e[1];return[t+r,n]}))):e}))]}))}(Object.entries(e.classGroups),r);
2return i.forEach((function(e){var r=e[0];c(e[1],n,r,t)})),n}(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers;return{getClassGroupId:function(e){var r=e.split(i);return""===r[0]&&1!==r.length&&r.shift(),a(r,t)||function(e){if(s.test(e)){var t=s.exec(e)[1],r=null==t?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){var i=r[e]||[];return t&&n[e]?[].concat(i,n[e]):i}}}function a(e,t){var r;if(0===e.length)return t.classGroupId;var n=e[0],o=t.nextPart.get(n),s=o?a(e.slice(1),o):void 0;if(s)return s;if(0!==t.validators.length){var c=e.join(i);return null==(r=t.validators.find((function(e){return(0,e.validator)(c)})))?void 0:r.classGroupId}}var s=/^\[(.+)\]$/;function c(e,t,r,n){e.forEach((function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void c(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((function(e){var i=e[0];c(e[1],l(t,i),r,n)}))}else{(""===e?t:l(t,e)).classGroupId=r}}))}function l(e,t){var r=e;return t.split(i).forEach((function(e){r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r}function u(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function i(i,o){r.set(i,o),++t>e&&(t=0,n=r,r=new Map)}return{get:function(e){var t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set:function(e,t){r.has(e)?r.set(e,t):i(e,t)}}}var d="!";function f(e){var t=e.separator,r=1===t.length,n=t[0],i=t.length;return function(e){for(var o,a=[],s=0,c=0,l=0;l<e.length;l++){var u=e[l];if(0===s){if(u===n&&(r||e.slice(l,l+i)===t)){a.push(e.slice(c,l)),c=l+i;continue}if("/"===u){o=l;continue}}"["===u?s++:"]"===u&&s--}var f=0===a.length?e:e.substring(c),p=f.startsWith(d);return{modifiers:a,hasImportantModifier:p,baseClassName:p?f.substring(1):f,maybePostfixModifierPosition:o&&o>c?o-c:void 0}}}var p=/\s+/;function h(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=m(e))&&(n&&(n+=" "),n+=t);return n}function m(e){if("string"==typeof e)return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=m(e[n]))&&(r&&(r+=" "),r+=t);return r}function y(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var a,s,c,l=function(t){var i=r.reduce((function(e,t){return t(e)}),e());return a=function(e){return(0,n.A)({cache:u(e.cacheSize),splitModifiers:f(e)},o(e))}(i),s=a.cache.get,c=a.cache.set,l=m,m(t)};function m(e){var t=s(e);if(t)return t;var r=function(e,t){var r=t.splitModifiers,n=t.getClassGroupId,i=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(p).map((function(e){var t=r(e),i=t.modifiers,o=t.hasImportantModifier,a=t.baseClassName,s=t.maybePostfixModifierPosition,c=n(s?a.substring(0,s):a),l=Boolean(s);if(!c){if(!s)return{isTailwindClass:!1,originalClassName:e};if(!(c=n(a)))return{isTailwindClass:!1,originalClassName:e};l=!1}var u=function(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach((function(e){"["===e[0]?(t.push.apply(t,r.sort().concat([e])),r=[]):r.push(e)})),t.push.apply(t,r.sort()),t}(i).join(":");return{isTailwindClass:!0,modifierId:o?u+d:u,classGroupId:c,originalClassName:e,hasPostfixModifier:l}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,r=e.classGroupId,n=e.hasPostfixModifier,a=t+r;return!o.has(a)&&(o.add(a),i(r,n).forEach((function(e){return o.add(t+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" ")}(e,a);return c(e,r),r}return function(){return l(h.apply(null,arguments))}}function v(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var g=/^\[(?:([a-z-]+):)?(.+)\]$/i,b=/^\d+\/\d+$/,E=new Set(["px","full","screen"]),w=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,x=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function P(e){return k(e)||E.has(e)||b.test(e)}function I(e){return U(e,"length",z)}function k(e){return Boolean(e)&&!Number.isNaN(Number(e))}function O(e){return U(e,"number",k)}function T(e){return Boolean(e)&&Number.isInteger(Number(e))}function C(e){return e.endsWith("%")&&k(e.slice(0,-1))}function R(e){return g.test(e)}function N(e){return w.test(e)}var L=new Set(["length","size","percentage"]);function D(e){return U(e,L,G)}function M(e){return U(e,"position",G)}var F=new Set(["image","url"]);function j(e){return U(e,F,H)}function B(e){return U(e,"",W)}function V(){return!0}function U(e,t,r){var n=g.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))}function z(e){return S.test(e)&&!A.test(e)}function G(){return!1}function W(e){return _.test(e)}function H(e){return x.test(e)}Symbol.toStringTag;function $(){var e=v("colors"),t=v("spacing"),r=v("blur"),n=v("brightness"),i=v("borderColor"),o=v("borderRadius"),a=v("borderSpacing"),s=v("borderWidth"),c=v("contrast"),l=v("grayscale"),u=v("hueRotate"),d=v("invert"),f=v("gap"),p=v("gradientColorStops"),h=v("gradientColorStopPositions"),m=v("inset"),y=v("margin"),g=v("opacity"),b=v("padding"),E=v("saturate"),w=v("scale"),S=v("sepia"),A=v("skew"),_=v("space"),x=v("translate"),L=function(){return["auto",R,t]},F=function(){return[R,t]},U=function(){return["",P,I]},z=function(){return["auto",k,R]},G=function(){return["","0",R]},W=function(){return[k,O]},H=function(){return[k,R]};return{cacheSize:500,separator:":",theme:{colors:[V],spacing:[P,I],blur:["none","",
vendor: 6,910 bytes, line 2
2N,R],brightness:W(),borderColor:[e],borderRadius:["none","","full",N,R],borderSpacing:F(),borderWidth:U(),contrast:W(),grayscale:G(),hueRotate:H(),invert:G(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[C,I],inset:L(),margin:L(),opacity:W(),padding:F(),saturate:W(),scale:W(),sepia:G(),skew:H(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",R]}],container:["container"],columns:[{columns:[N]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[R])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",T,R]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",R]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",T,R]}],"grid-cols":[{"grid-cols":[V]}],"col-start-end":[{col:["auto",{span:["full",T,R]},R]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[V]}],"row-start-end":[{row:["auto",{span:[T,R]},R]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",R]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",R]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",R,t]}],"min-w":[{"min-w":[R,t,"min","max","fit"]}],"max-w":[{"max-w":[R,t,"none","full","min","max","fit","prose",{screen:[N]},N]}],h:[{h:[R,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[R,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[R,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[R,t,"auto","min","max","fit"]}],"font-size":[{text:["base",N,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[V]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",R]}],"line-clamp":[{"line-clamp":["none",k,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,R]}],"list-image":[{"list-image":["none",R]}],"list-style-type":[{list:["none","disc","decimal",R]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",P,I]}],"underline-offset":[{"underline-offset":["auto",P,R]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",R]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[M])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}
vendor: 4,508 bytes, line 2
2],"bg-size":[{bg:["auto","cover","contain",D]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},j]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[P,R]}],"outline-w":[{outline:[P,I]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[P,I]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",N,B]}],"shadow-color":[{shadow:[V]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[].concat(["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],["plus-lighter","plus-darker"])}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",N,R]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[E]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",R]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",R]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",R]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[T,R]}],"translate-x":[{"translate-x":[x]}],"translate-y":[{"translate-y":[x]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",R]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","
2none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",R]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",R]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[P,I,O]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Y=y($)},12511:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{A:()=>n})},80655:(e,t,r)=>{"use strict";r.d(t,{A:()=>
2o});var n=!0,i="Invariant failed";function o(e,t){if(!e){if(n)throw new Error(i);var r="function"==typeof t?t():t,o=r?"".concat(i,": ").concat(r):i;throw new Error(o)}}},34117:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n,Tt:()=>i,fX:()=>o});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}Object.create;function o(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},29827:(e,t,r)=>{"use strict";function n(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}r.d(t,{b:()=>n})},49311:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});var n=r(29827),i=r(92325);function o(e,t){return(0,i.c)(t||null,(function(t){return e.forEach((function(e){return(0,n.b)(e,t)}))}))}},92325:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(14041);function i(e,t){var r=(0,n.useState)((function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0];return r.callback=t,r.facade}},1666:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(34117),i=r(14041),o=function(e){var t=e.sideCar,r=(0,n.Tt)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return i.createElement(o,(0,n.Cl)({},r))};function a(e,t){return e.useMedium(t),o}o.isSideCarExport=!0},95778:(e,t,r)=>{"use strict";r.d(t,{f:()=>a});var n=r(34117);function i(e){return e}function o(e,t){void 0===t&&(t=i);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}function a(e){void 0===e&&(e={});var t=o(null);return t.options=(0,n.Cl)({async:!0,ssr:!1},e),t}},34026:(e,t,r)=>{"use strict";var n=r(14041);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,u=n[1];return s((function(){i.value=r,i.getSnapshot=t,l(i)&&u({inst:i})}),[e,r,t]),a((function(){return l(i)&&u({inst:i}),e((function(){l(i)&&u({inst:i})}))}),[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},58139:(e,t,r)=>{"use strict";e.exports=r(34026)},95272:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},51531:(e,t,r)=>{"use strict";var n=r(55387),i=r(2625),o=r(52730),a=r(95943);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(c)var h=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===u(e)}function g(e){return"[object Set]"===u(e)}function b(e){return"[object WeakMap]"===u(e)}function E(e){return"[object WeakSet]"===u(e)}function w(e){return"[object ArrayBuffer]"===u(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function A(e){return"[object DataView]"===u(e)}
vendor: 4,886 bytes, line 2
2function _(e){return"undefined"!=typeof DataView&&(A.working?A(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||_(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},E.working="undefined"!=typeof WeakSet&&E(new WeakSet),t.isWeakSet=function(e){return E(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=S,A.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&A(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=_;var x="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function P(e){return"[object SharedArrayBuffer]"===u(e)}function I(e){return void 0!==x&&(void 0===P.working&&(P.working=P(new x)),P.working?P(e):e instanceof x)}function k(e){return y(e,d)}function O(e){return y(e,f)}function T(e){return y(e,p)}function C(e){return c&&y(e,h)}function R(e){return l&&y(e,m)}t.isSharedArrayBuffer=I,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=k,t.isStringObject=O,t.isBooleanObject=T,t.isBigIntObject=C,t.isSymbolObject=R,t.isBoxedPrimitive=function(e){return k(e)||O(e)||T(e)||C(e)||R(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||I(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},49208:(e,t,r)=>{var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<o;s=n[++r])y(s)||!w(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var o={},a=/^$/;if(process.env.NODE_DEBUG){var s=process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}function c(e,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),d(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"�["+c.colors[r][0]+"m"+e+"�["+c.colors[r][1]+"m":e}function u(e,t){return e}function d(e,r,n){if(e.customInspect&&r&&_(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=d(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");
vendor: 5,034 bytes, line 2
2if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(v(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),A(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(r);if(0===a.length){if(_(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(E(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return e.stylize(Date.prototype.toString.call(r),"date");if(A(r))return f(r)}var l,u="",w=!1,x=["{","}"];(h(r)&&(w=!0,x=["[","]"]),_(r))&&(u=" [Function"+(r.name?": "+r.name:"")+"]");return E(r)&&(u=" "+RegExp.prototype.toString.call(r)),S(r)&&(u=" "+Date.prototype.toUTCString.call(r)),A(r)&&(u=" "+f(r)),0!==a.length||w&&0!=r.length?n<0?E(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),l=w?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)k(t,String(a))?o.push(p(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return p(e,r,n,s,t,w)})),e.seen.pop(),function(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(l,u,x)):x[0]+u+x[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,n,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),k(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=y(r)?d(e,c.value,null):d(e,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function E(e){return w(e)&&"[object RegExp]"===x(e)}function w(e){return"object"==typeof e&&null!==e}function S(e){return w(e)&&"[object Date]"===x(e)}function A(e){return w(e)&&("[object Error]"===x(e)||e instanceof Error)}function _(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(a.test(e)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(51531),t.isArray=h,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=E,t.types.isRegExp=E,t.isObject=w,t.isDate=S,t.types.isDate=S,t.isError=A,t.types.isNativeError=A,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(95272);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":"),[e.getDate(),I[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(12276),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(O&&e[O]){var t;if("function"!=typeof(t=e[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,
2configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),O&&Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=O,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then((function(e){process.nextTick(o.bind(null,null,e))}),(function(e){process.nextTick(T.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},60788:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},48062:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>o});const i=new Uint8Array(16);function o(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}},99834:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});const n=[];for(let e=0;e<256;++e)n.push((e+256).toString(16).slice(1));function i(e,t=0){return n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]}},86450:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(48062),i=r(99834);let o,a,s=0,c=0;const l=function(e,t,r){let l=t&&r||0;const u=t||new Array(16);let d=(e=e||{}).node||o,f=void 0!==e.clockseq?e.clockseq:a;if(null==d||null==f){const t=e.random||(e.rng||n.A)();null==d&&(d=o=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=a=16383&(t[6]<<8|t[7]))}let p=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:c+1;const m=p-s+(h-c)/1e4;if(m<0&&void 0===e.clockseq&&(f=f+1&16383),(m<0||p>s)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,c=h,a=f,p+=122192928e5;const y=(1e4*(268435455&p)+h)%4294967296;u[l++]=y>>>24&255,u[l++]=y>>>16&255,u[l++]=y>>>8&255,u[l++]=255&y;const v=p/4294967296*1e4&268435455;u[l++]=v>>>8&255,u[l++]=255&v,u[l++]=v>>>24&15|16,u[l++]=v>>>16&255,u[l++]=f>>>8|128,u[l++]=255&f;for(let e=0;e<6;++e)u[l+e]=d[e];return t||(0,i.k)(u)}},94321:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(60788);const i=function(e){return"string"==typeof e&&n.A.test(e)}},74142:(e,t,r)=>{"use strict";function n(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}r.d(t,{A:()=>i});const i=function e(t,r){if(t===r)return!0;if(null==t||null==r)return!1;if(Array.isArray(t))return Array.isArray(r)&&t.length===r.length&&t.every((function(t,n){return e(t,r[n])}));if("object"==typeof t||"object"==typeof r){var i=n(t),o=n(r);return i!==t||o!==r?e(i,o):Object.keys(Object.assign({},t,r)).every((function(n){return e(t[n],r[n])}))}return!1}},64674:e=>{"use strict";var t=function(){};e.exports=t},52730:(e,t,r)=>{"use strict";var n=r(80705),i=r(89289),o=r(28498),a=r(79818),s=r(69336),c=a("Object.prototype.toString"),l=r(51913)(),u="undefined"==typeof globalThis?r.g:globalThis,d=i(),f=a("String.prototype.slice"),p=Object.getPrototypeOf,h=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},m={__proto__:null};n(d,l&&s&&p?function(e){var t=new u[e];if(Symbol.toStringTag in t){var r=p(t),n=s(r,Symbol.toStringTag);if(!n){var i=p(r);n=s(i,Symbol.toStringTag)}m["$"+e]=o(n.get)}}:function(e){var t=new u[e];m["$"+e]=o(t.slice)});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=f(c(e),8,-1);return h(d,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(m,(function(r,n){if(!t)try{r(e),t=f(n,1)}catch(e){}})),t}(e)}return s?function(e){var t=!1;return n(m,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=f(n,1))}catch(e){}})),t}(e):null}},9684:(e,t,r)=>{"use strict";function n(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=n(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function i(){for(var e,t,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=n(e))&&(i&&(i+=" "),i+=t);return i}r.d(t,{$:()=>i})},28196:(e,t,r)=>{"use strict";const n=r(7269),i=r(28605),o=r(72851),a=r(90028);function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function l(e,t){return t.decode?i(e):e}function u(e){return Array.isArray(e)?e.sort():"object"==typeof e?u(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function d(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const i="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!i&&l(r,e).includes(e.arrayFormatSeparator);r=o?l(r,e):r;const a=i||o?r.split(e.arrayFormatSeparator).map((t=>l(t,e))):null===r?r:l(r,e);n[t]=a};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:l(a,t),r(l(e,t),a,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=u(r):e[t]=r,e}
vendor: 1,266 bytes, line 2
2),Object.create(null))}t.extract=f,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),"[",i,"]"].join("")]:[...r,[c(t,e),"[",c(i,e),"]=",c(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),"[]"].join("")]:[...r,[c(t,e),"[]=",c(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>null==n||0===n.length?r:0===r.length?[[c(t,e),"=",c(n,e)].join("")]:[[r,c(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,c(t,e)]:[...r,[c(t,e),"=",c(n,e)].join("")]}}(t),i={};for(const t of Object.keys(e))r(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((r=>{const i=e[r];return void 0===i?"":null===i?c(r,t):Array.isArray(i)?i.reduce(n(r),[]).join("&"):c(r,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>
2{t=Object.assign({decode:!0},t);const[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:h(f(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:l(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0},r);const n=d(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let s=t.stringify(a,r);s&&(s=`?${s}`);let l=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(l=`#${c(e.fragmentIdentifier,r)}`),`${n}${s}${l}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0},n);const{url:i,query:o,fragmentIdentifier:s}=t.parseUrl(e,n);return t.stringifyUrl({url:i,query:a(o,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{const i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,i,n)}},32948:(e,t,r)=>{"use strict";e.exports=r.p+"experts-online.cd07ec6b.png"},12419:(e,t,r)=>{"use strict";e.exports=r.p+"icon-academic-writers.c788007c.png"},54240:(e,t,r)=>{"use strict";e.exports=r.p+"icon-calculations-writers.227e5449.png"},57977:(e,t,r)=>{"use strict";e.exports=r.p+"icon-programming-writers.187b7fe7.png"},6519:e=>{"use strict";e.exports=JSON.parse('{"v":"5.5.6","fr":24,"ip":0,"op":48,"w":158,"h":158,"nm":"disappointed_140","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"disappointed_140.ai","cl":"ai","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[79.828,79.095,0],"ix":2},"a":{"a":0,"k":[79.828,79.095,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[{"i":[[0,0],[-16.785,-6.429]],"o":[[0,0],[0,0]],"v":[[-15.536,3.572],[15.536,2.857]],"c":false}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":15,"s":[{"i":[[0,0],[-12.4,-8.162]],"o":[[-1.004,-2.101],[0,0]],"v":[[-15.889,2.511],[15.535,2.857]],"c":false}]},{"t":36,"s":[{"i":[[0,0],[-16.785,-6.429]],"o":[[0,0],[0,0]],"v":[[-15.536,3.572],[15.536,2.857]],"c":false}]}],"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.368999974868,0.46699999641,0.819999964097,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Ðбводка 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[78.146,97.696],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":14.896,"s":[-8.139]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":26,"s":[3.741]},{"t":36,"s":[-0.077]}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"ÐÑÑппа 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-5.277,0.002],[-0.78,4.568]],"o":[[0.846,4.501],[5.33,-0.002],[0,0]],"v":[[-10.514,-3.896],[-0.01,4.034],[10.514,-4.036]],"c":true},"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.368999974868,0.46699999641,0.819999964097,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Ðаливка 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":30,"s":[99.356,70.011],"to":[3,0],"ti":[-3,0]},{"t":48,"s":[117.356,70.011]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29,"s":[0]},{"t":30,"s":[100]}],"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"p_03","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-5.277,0.002],[-0.78,4.568]],"o":[[0.846,4.501],[5.33,-0.002],[0,0]],"v":[[-10.514,-3.896],[-0.01,4.034],[10.514,-4.036]],"c":true},"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.368999974868,0.46699999641,0.819999964097,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Ðаливка 1","mn":"ADBE Vector Graphic - Fill","hd":false}
vendor: 6,769 bytes, line 2
2,{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[117.356,70.011],"to":[-3,0],"ti":[3,0]},{"t":30,"s":[99.356,70.011]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29,"s":[100]},{"t":30,"s":[0]}],"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"p_01","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-20.468,-0.174],[20.468,0.174]],"c":false},"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.368999974868,0.46699999641,0.819999964097,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Ðбводка 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[108.266,65.433],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"ÐÑÑппа 3","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-5.278,0.002],[-0.78,4.568]],"o":[[0.846,4.501],[5.329,-0.002],[0,0]],"v":[[-10.515,-3.896],[-0.01,4.034],[10.514,-4.036]],"c":true},"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.368999974868,0.46699999641,0.819999964097,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Ðаливка 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":30,"s":[48.856,69.296],"to":[2.583,0],"ti":[-2.583,0]},{"t":47,"s":[64.356,69.296]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29,"s":[0]},{"t":30,"s":[100]}],"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"p_04","np":2,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-5.278,0.002],[-0.78,4.568]],"o":[[0.846,4.501],[5.329,-0.002],[0,0]],"v":[[-10.515,-3.896],[-0.01,4.034],[10.514,-4.036]],"c":true},"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.368999974868,0.46699999641,0.819999964097,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Ðаливка 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[64.856,69.296],"to":[-2.667,0],"ti":[0.083,0]},{"t":30,"s":[48.856,69.296]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29,"s":[100]},{"t":30,"s":[0]}],"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"p_02","np":2,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-20.467,-0.174],[20.467,0.174]],"c":false},"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.368999974868,0.46699999641,0.819999964097,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Ðбводка 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[55.408,65.076],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"ÐÑÑппа 5","np":2,"cix":2,"bm":0,"ix":7,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-38.66],[38.66,0],[0,38.661],[-38.66,0]],"o":[[0,38.661],[-38.66,0],[0,-38.66],[38.66,0]],"v":[[70,0],[0,70],[-70,0],[0,-70]],"c":true},"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.368999974868,0.46699999641,0.819999964097,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Ðбводка 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.976000019148,0.961000031116,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Ðаливка 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[79.828,79.095],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"ÐÑÑппа 6","np":3,"cix":2,"bm":0,"ix":8,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":48,"st":0,"bm":0}],"markers":[]}')},20069:e=>{"use strict";e.exports=JSON.parse('{"v":"5.5.6","fr":24,"ip":0,"op":48,"w":156,"h":156,"nm":"nice_140","ddd":0,"comps":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"nice_140.ai","cl":"ai","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[77.221,78.139,0],"ix":2},"a":{"a":0,"k":[77.221,78.139,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[19.598,-0.002],[6.56,17.264]],"o":[[-6.827,16.731],[-19.993,0.004],[0,0]],"v":[[43.394,-13.783],[0.205,14.779],[-43.394,-14.784]],"c":false},"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[12]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":12,"s":[0]},{"t":19,"s":[12]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[86]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":12,"s":[100]},{"t":19,"s":[86]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"ÐбÑезаÑÑ ÐºÐ¾Ð½ÑÑÑÑ 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.658999992819,0.008000000785,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Ðбводка 1","mn":"ADBE Vector Graphic - Stroke","hd":false}
2,{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[76.967,106],"to":[0,0.5],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":6,"s":[76.967,109],"to":[0,0],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":12,"s":[76.967,106],"to":[0,0],"ti":[0,-0.5]},{"t":19,"s":[76.967,109]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"ÐÑÑппа 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":29,"s":[{"i":[[0,-6.065],[6.065,0],[0,6.065],[-6.066,0]],"o":[[0,6.065],[-6.066,0],[0,-6.065],[6.065,0]],"v":[[10.982,0],[0,10.982],[-10.982,0],[0,-10.982]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":32,"s":[{"i":[[0,-0.823],[6.065,0],[0,0.823],[-6.066,0]],"o":[[0,0.823],[-6.066,0],[0,-0.823],[6.065,0]],"v":[[10.982,9.491],[0,10.982],[-10.982,9.491],[0.125,9.625]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0},"t":35,"s":[{"i":[[0,-6.065],[6.065,0],[0,6.065],[-6.066,0]],"o":[[0,6.065],[-6.066,0],[0,-6.065],[6.065,0]],"v":[[10.982,0],[0,10.982],[-10.982,0],[0,-10.982]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":40,"s":[{"i":[[0,-6.065],[6.065,0],[0,6.065],[-6.066,0]],"o":[[0,6.065],[-6.066,0],[0,-6.065],[6.065,0]],"v":[[10.982,0],[0,10.982],[-10.982,0],[0,-10.982]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":42.5,"s":[{"i":[[0,-0.823],[6.065,0],[0,0.823],[-6.066,0]],"o":[[0,0.823],[-6.066,0],[0,-0.823],[6.065,0]],"v":[[10.982,9.491],[0,10.982],[-10.982,9.491],[0.125,9.625]],"c":true}]},{"t":45,"s":[{"i":[[0,-6.065],[6.065,0],[0,6.065],[-6.066,0]],"o":[[0,6.065],[-6.066,0],[0,-6.065],[6.065,0]],"v":[[10.982,0],[0,10.982],[-10.982,0],[0,-10.982]],"c":true}]}],"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.685999971278,0.063000002094,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Ðаливка 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[101.916,67],"to":[0,1.833],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":6,"s":[101.916,78],"to":[0,0],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":12,"s":[101.916,67],"to":[0,0],"ti":[0,-1.833]},{"t":19,"s":[101.916,78]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"eye","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":29,"s":[{"i":[[0,-6.065],[6.065,0],[0,6.065],[-6.065,0]],"o":[[0,6.065],[-6.065,0],[0,-6.065],[6.065,0]],"v":[[10.982,0],[0,10.982],[-10.982,0],[0,-10.982]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":32,"s":[{"i":[[0,-1.1],[6.065,0],[0,1.1],[-6.065,0]],"o":[[0,1.1],[-6.065,0],[0,-1.1],[6.065,0]],"v":[[10.982,8.991],[0,10.982],[-10.982,8.991],[0,9.75]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":35,"s":[{"i":[[0,-6.065],[6.065,0],[0,6.065],[-6.065,0]],"o":[[0,6.065],[-6.065,0],[0,-6.065],[6.065,0]],"v":[[10.982,0],[0,10.982],[-10.982,0],[0,-10.982]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":40,"s":[{"i":[[0,-6.065],[6.065,0],[0,6.065],[-6.065,0]],"o":[[0,6.065],[-6.065,0],[0,-6.065],[6.065,0]],"v":[[10.982,0],[0,10.982],[-10.982,0],[0,-10.982]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":43,"s":[{"i":[[0,-1.1],[6.065,0],[0,1.1],[-6.065,0]],"o":[[0,1.1],[-6.065,0],[0,-1.1],[6.065,0]],"v":[[10.982,8.991],[0,10.982],[-10.982,8.991],[0,9.75]],"c":true}]},{"t":46,"s":[{"i":[[0,-6.065],[6.065,0],[0,6.065],[-6.065,0]],"o":[[0,6.065],[-6.065,0],[0,-6.065],[6.065,0]],"v":[[10.982,0],[0,10.982],[-10.982,0],[0,-10.982]],"c":true}]}],"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.685999971278,0.063000002094,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Ðаливка 1","mn":"ADBE Vector Graphic - Fill","hd":false}
vendor: 10,412 bytes, line 2
2,{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[52.273,67],"to":[0,1.833],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":6,"s":[52.273,78],"to":[0,0],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":12,"s":[52.273,67],"to":[0,0],"ti":[0,-1.833]},{"t":19,"s":[52.273,78]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"eye","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-38.66],[38.66,0],[0,38.66],[-38.66,0]],"o":[[0,38.66],[-38.66,0],[0,-38.66],[38.66,0]],"v":[[70,0],[0,70],[-70,0],[0,-70]],"c":true},"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.685999971278,0.063000002094,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Ðбводка 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.976000019148,0.961000031116,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Ðаливка 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[77.221,78.139],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"ÐÑÑппа 4","np":3,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":48,"st":0,"bm":0}],"markers":[]}')},91814:e=>{"use strict";e.exports=JSON.parse('{"v":"5.5.6","fr":24,"ip":0,"op":44,"w":153,"h":155,"nm":"super_140","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"smile_140.ai","cl":"ai","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[77.547,100.248,0],"to":[0,-1.333,0],"ti":[0,0.008,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[77.547,92.248,0],"to":[0,-0.008,0],"ti":[0,0.008,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":16,"s":[77.547,100.2,0],"to":[0,-0.008,0],"ti":[0,1.333,0]},{"t":24,"s":[77.547,92.2,0]}],"ix":2},"a":{"a":0,"k":[77.547,100.248,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[{"i":[[9.739,-4.663],[-10.684,0.282],[-6.816,4.39]],"o":[[7.311,4.815],[9.694,-0.256],[-23.739,-10.65]],"v":[[-26.553,1.54],[1.225,8.89],[26.553,1.479]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[{"i":[[10.548,-4.884],[-10.684,0.282],[-6.816,4.39]],"o":[[7.311,4.815],[9.694,-0.256],[-21.809,-7.323]],"v":[[-26.553,1.54],[1.225,8.89],[26.553,1.479]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":16,"s":[{"i":[[9.739,-4.663],[-10.684,0.282],[-6.816,4.39]],"o":[[7.311,4.815],[9.694,-0.256],[-23.739,-10.65]],"v":[[-26.553,1.54],[1.225,8.89],[26.553,1.479]],"c":true}]},{"t":24,"s":[{"i":[[10.548,-4.884],[-10.684,0.282],[-6.816,4.39]],"o":[[7.311,4.815],[9.694,-0.256],[-21.809,-7.323]],"v":[[-26.553,1.54],[1.225,8.89],[26.553,1.479]],"c":true}]}],"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.976000019148,0.961000031116,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Ðаливка 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[77.256,105.595],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"ÐÑÑппа 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[{"i":[[18.015,-4.426],[-0.226,-0.976],[-23.107,0],[-4.444,15.541],[1.254,0.397]],"o":[[-1.338,0.328],[3.75,16.178],[22.492,0],[0.268,-0.942],[-35.303,-11.201]],"v":[[-43.982,-10.412],[-45.892,-8.151],[0.142,20.347],[45.85,-6.866],[44.161,-9.146]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[{"i":[[17.923,-6.284],[-0.226,-0.976],[-23.107,0],[-4.444,15.541],[1.199,0.54]],"o":[[-1.3,0.456],[3.75,16.178],[22.492,0],[0.268,-0.942],[-38.97,-17.55]],"v":[[-43.982,-10.412],[-45.892,-8.151],[0.142,20.347],[45.85,-6.866],[44.161,-9.146]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":16,"s":[{"i":[[18.015,-4.426],[-0.226,-0.976],[-23.107,0],[-4.444,15.541],[1.254,0.397]],"o":[[-1.338,0.328],[3.75,16.178],[22.492,0],[0.268,-0.942],[-35.303,-11.201]],"v":[[-43.982,-10.412],[-45.892,-8.151],[0.142,20.347],[45.85,-6.866],[44.161,-9.146]],"c":true}]},{"t":24,"s":[{"i":[[17.923,-6.284],[-0.226,-0.976],[-23.107,0],[-4.444,15.541],[1.199,0.54]],"o":[[-1.3,0.456],[3.75,16.178],[22.492,0],[0.268,-0.942],[-38.97,-17.55]],"v":[[-43.982,-10.412],[-45.892,-8.151],[0.142,20.347],[45.85,-6.866],[44.161,-9.146]],"c":true}]}],"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.258999992819,0.666999966491,0.246999987434,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Ðаливка 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[77.559,97.946],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"ÐÑÑппа 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":44,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"super_140.ai","cl":"ai","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[76.202,75.648,0],"ix":2},"a":{"a":0,"k":[76.202,75.648,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-16.785,-14.286]],"o":[[0,0],[0,0]],"v":[[-15.893,6.786],[15.893,7.143]],"c":false},"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"t":2,"s":[12]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"t":2,"s":[90]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"ÐбÑезаÑÑ ÐºÐ¾Ð½ÑÑÑÑ 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.258999992819,0.666999966491,0.246999987434,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Ðбводка 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[103.173,53.363],"to":[0,-1.167],"ti":[0,-0.006]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":8,"s":[103.173,46.363],"to":[0,0.006],"ti":[0,-0.006]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":16,"s":[103.173,53.4],"to":[0,0.006],"ti":[0,1.167]},{"t":24,"s":[103.173,46.4]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"eye","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-16.786,-14.286]],"o":[[0,0],[0,0]],"v":[[-15.893,6.786],[15.893,7.143]],"c":false},"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"t":2,"s":[12]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"t":2,"s":[90]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"ÐбÑезаÑÑ ÐºÐ¾Ð½ÑÑÑÑ 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"ÐбÑезаÑÑ ÐºÐ¾Ð½ÑÑÑÑ 2","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"ÐбÑезаÑÑ ÐºÐ¾Ð½ÑÑÑÑ 3","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.258999992819,0.666999966491,0.246999987434,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Ðбводка 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[53.501,53.4],"to":[0,-1.167],"ti":[0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":8,"s":[53.501,46.4],"to":[0,0],"ti":[0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":16,"s":[53.501,53.4],"to":[0,0],"ti":[0,1.167]},{"t":24,"s":[53.501,46.4]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}],"nm":"eye","np":5,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-38.66],[38.66,0],[0,38.66],[-38.66,0]],"o":[[0,38.66],[-38.66,0],[0,-38.66],[38.66,0]],"v":[[70,0],[0,70],[-70,0],[0,-70]],"c":true},"ix":2},"nm":"ÐонÑÑÑ 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.258999992819,0.666999966491,0.246999987434,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Ðбводка 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.976000019148,0.961000031116,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Ðаливка 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[76.202,75.648],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"ÐÑеобÑазоваÑÑ"}
2],"nm":"ÐÑÑппа 5","np":3,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":44,"st":0,"bm":0}],"markers":[]}')},88918:e=>{"use strict";e.exports=JSON.parse('[{"checkedKey":"reasonContentChecked","commentKey":"reasonContent","title":"Content","description":"Specify what exact parts, abstracts, or sentences of your paper require further customization and/or elaboration."},{"checkedKey":"reasonSourcesChecked","commentKey":"reasonSources","title":"Sources","description":"Indicate what exact sources are to be adjusted. Specify if the writer needs to substitute, remove, add/or format them correctly. Add the number of sources to be used, if required."},{"checkedKey":"reasonFormatChecked","commentKey":"reasonFormat","title":"Format","description":"Mention if the writer has used incorrect paper format and indicate what exactly is wrong with the title page, citing, bibliography, etc."},{"checkedKey":"reasonGrammarChecked","commentKey":"reasonGrammar","title":"Grammar","description":"Indicate what exact grammar mistakes have been committed by the writer. Highlight them in the text of your paper or provide several examples to help the writer locate his errors."},{"checkedKey":"reasonInstructionsChecked","commentKey":"reasonInstructions","title":"Instructions not followed","description":"Specify what exact instructions were not followed by the writer. Indicate the exact points and aspects of your paper details that the writer still needs to take into close consideration."},{"checkedKey":"reasonOtherChecked","commentKey":"reasonOther","title":"Other","description":"Let us know the reason for this revision and indicate what specific parts of the paper are to be improved. Try to be very detailed when providing your comments."}]')},20163:e=>{"use strict";e.exports=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 3.0.2","a":"","k":"","d":"","tc":""},"fr":25,"ip":0,"op":50,"w":500,"h":500,"nm":"32 Papers","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"Main Stroke Width Color Ctrl","parent":6,"sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2},"a":{"a":0,"k":[50,50,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ef":[{"ty":5,"nm":" Stroke Width","np":3,"mn":"ADBE Slider Control","ix":1,"en":1,"ef":[{"ty":0,"nm":"Slider","mn":"ADBE Slider Control-0001","ix":1,"v":{"a":0,"k":24,"ix":1}}]},{"ty":5,"nm":"Base Color","np":3,"mn":"ADBE Color Control","ix":2,"en":1,"ef":[{"ty":2,"nm":"Color","mn":"ADBE Color Control-0001","ix":1,"v":{"a":0,"k":[0,0.450980395079,0.901960790157,1],"ix":1}}]},{"ty":5,"nm":"Highlight","np":3,"mn":"ADBE Color Control","ix":3,"en":1,"ef":[{"ty":2,"nm":"Color","mn":"ADBE Color Control-0001","ix":1,"v":{"a":0,"k":[0,0.450980395079,0.901960790157,1],"ix":1}}]}],"ip":0,"op":50,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Info page 1","parent":3,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-27.641,82.923],[27.641,82.923]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\'Base Color\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\' Stroke Width\')(\'Slider\');"},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-110.564,82.923],[-82.923,82.923]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\'Base Color\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\' Stroke Width\')(\'Slider\');"},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-27.641,27.641],[27.641,27.641]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\'Base Color\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\' Stroke Width\')(\'Slider\');"},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-110.564,27.641],[-82.923,27.641]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\'Base Color\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\' Stroke Width\')(\'Slider\');"},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 4","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[27.641,-27.641],[27.641,-124.385],[-110.564,-27.641]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.20000000298,0.800000011921,0.800000011921,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\'Highlight\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\' Stroke Width\')(\'Slider\');"},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 5","np":2,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.64],"y":[1]},"o":{"x":[0.36],"y":[0]},"t":0,"s":[100]},{"i":{"x":[0.64],"y":[1]},"o":{"x":[0.36],"y":[0]},"t":25,"s":[0]},{"i":{"x":[0.64],"y":[1]},"o":{"x":[0.36],"y":[0]},"t":27,"s":[0]},{"t":49,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":6,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":50,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Page 1","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.64,"y":1},"o":{"x":0.36,"y":0}
vendor: 10,490 bytes, line 2
2,"t":0,"s":[50,50,0],"to":[0,11.167,0],"ti":[0,2.667,0]},{"i":{"x":0.64,"y":1},"o":{"x":0.36,"y":0},"t":11,"s":[50,117,0],"to":[0,-2.667,0],"ti":[0,5.333,0]},{"i":{"x":0.64,"y":1},"o":{"x":0.36,"y":0},"t":19,"s":[50,34,0],"to":[0,-5.333,0],"ti":[0,-2.667,0]},{"i":{"x":0.64,"y":1},"o":{"x":0.36,"y":0},"t":26,"s":[50,85,0],"to":[0,2.667,0],"ti":[0,5.833,0]},{"i":{"x":0.64,"y":0.64},"o":{"x":0.36,"y":0.36},"t":34,"s":[50,50,0],"to":[0,0,0],"ti":[0,0,0]},{"t":44,"s":[50,50,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-179.667,-110.564],[-82.923,-110.564],[-82.923,-207.308]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\'Base Color\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\' Stroke Width\')(\'Slider\');"},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[96.744,-207.308],[-82.923,-207.308],[-179.667,-110.564],[-179.667,138.205],[96.744,138.205]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\'Base Color\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\' Stroke Width\')(\'Slider\');"},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Page 1 mask","parent":1,"td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.64,"y":1},"o":{"x":0.36,"y":0},"t":0,"s":[50,50,0],"to":[0,11.167,0],"ti":[0,2.667,0]},{"i":{"x":0.64,"y":1},"o":{"x":0.36,"y":0},"t":11,"s":[50,117,0],"to":[0,-2.667,0],"ti":[0,5.333,0]},{"i":{"x":0.64,"y":1},"o":{"x":0.36,"y":0},"t":19,"s":[50,34,0],"to":[0,-5.333,0],"ti":[0,-2.667,0]},{"i":{"x":0.64,"y":1},"o":{"x":0.36,"y":0},"t":26,"s":[50,85,0],"to":[0,2.667,0],"ti":[0,5.833,0]},{"i":{"x":0.64,"y":0.64},"o":{"x":0.36,"y":0.36},"t":34,"s":[50,50,0],"to":[0,0,0],"ti":[0,0,0]},{"t":44,"s":[50,50,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-179.667,-110.564],[-82.923,-110.564],[-82.923,-207.308]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\' Stroke Width\')(\'Slider\');"},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[96.744,-207.308],[-82.923,-207.308],[-179.667,-110.564],[-179.667,138.205],[96.744,138.205]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\' Stroke Width\')(\'Slider\');"},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false}],"ip":0,"op":50,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Page 2","parent":1,"tt":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.64,"y":1},"o":{"x":0.36,"y":0},"t":0,"s":[50,50,0],"to":[0,-9.5,0],"ti":[0,-2.833,0]},{"i":{"x":0.64,"y":1},"o":{"x":0.36,"y":0},"t":11,"s":[50,-7,0],"to":[0,2.833,0],"ti":[0,-6.5,0]},{"i":{"x":0.64,"y":1},"o":{"x":0.36,"y":0},"t":20,"s":[50,67,0],"to":[0,6.5,0],"ti":[0,2.833,0]},{"i":{"x":0.64,"y":1},"o":{"x":0.36,"y":0},"t":27,"s":[50,32,0],"to":[0,-2.833,0],"ti":[0,-3,0]},{"t":34,"s":[50,50,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[179.667,-138.205],[96.744,-138.205],[-96.744,-138.205],[-96.744,138.205],[-96.744,207.308],[179.667,207.308]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\'Base Color\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5,"x":"var $bm_rt;\\n$bm_rt = thisComp.layer(\'Main Stroke Width Color Ctrl\').effect(\' Stroke Width\')(\'Slider\');"},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":3,"nm":"Zero | Stroke Width Color Ctrl","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[250,250,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":50,"st":0,"bm":0}],"markers":[]}')},80125:e=>{"use strict";e.exports=JSON.parse('[{"testId":"freeRevisionInstructionsOption","checkedFlag":"instructionsFlag","commentBody":"instructionsBody","title":"My instruction was not followed","description":"Indicate the exact points of your paper details that the writer still needs to take into close consideration.","placeholder":"Specify what instruction points your writer didnât follow"},{"testId":"freeRevisionContentOption","checkedFlag":"contentRelatedFlag","commentBody":"contentRelatedBody","title":"Issues with content, format, or grammar","description":"Specify what exact parts, abstracts, or sentences of your paper require further customization and/or elaboration.","placeholder":"Provide details or locate mistakes that your writer should correct"},{"testId":"freeRevisionOtherOption","checkedFlag":"otherFlag","commentBody":"otherBody","title":"I want to add new instruction points","description":"Add new instructions and comment on how the writer should incorporate the extra parts into your paper.","placeholder":"Add new instruction points here. Significant additions may result in extra charges."}]')},73537:e=>{"use strict";e.exports=JSON.parse('[{"testId":"revisionOptionSources","checkedFlag":"sourcesFlag","commentBody":"sourcesBody","title":"Sources","description":"Indicate what exact sources are to be adjusted. Specify if the writer needs to substitute, remove, add/or format them correctly. Add the number of sources to be used, if required."},{"testId":"revisionOptionFormat","checkedFlag":"formatFlag","commentBody":"formatBody","title":"Format","description":"Mention if the writer has used incorrect paper format and indicate what exactly is wrong with the title page, citing, bibliography, etc."},{"testId":"revisionOptionGrammar","checkedFlag":"grammarFlag","commentBody":"grammarBody","title":"Grammar","description":"Indicate what exact grammar mistakes have been committed by the writer. Highlight them in the text of your paper or provide several examples to help the writer locate his errors."},{"testId":"revisionOptionInstructions","checkedFlag":"instructionsFlag","commentBody":"instructionsBody","title":"Instructions not followed","description":"Specify what exact instructions were not followed by the writer. Indicate the exact points and aspects of your paper details that the writer still needs to take into close consideration."},{"testId":"revisionOptionContent","checkedFlag":"contentFlag","commentBody":"contentBody","title":"Customize content","description":"Specify what exact parts, abstracts, or sentences of your paper require further customization and/or elaboration."},{"testId":"revisionOptionOther","checkedFlag":"otherFlag","commentBody":"otherBody","title":"Other","description":"Let us know the reason for this revision and indicate what specific parts of the paper are to be improved. Try to be very detailed when providing your comments."}]')}},__webpack_module_cache__={},deferred,leafPrototypes,getProto,inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};
vendor: 4,155 bytes, line 2
2return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(e,t,r,n)=>{if(!t){var i=1/0;for(c=0;c<deferred.length;c++){for(var[t,r,n]=deferred[c],o=!0,a=0;a<t.length;a++)(!1&n||i>=n)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](t[a])))?t.splice(a--,1):(o=!1,n<i&&(i=n));if(o){deferred.splice(c--,1);var s=r();void 0!==s&&(e=s)}}return e}n=n||0;for(var c=deferred.length;c>0&&deferred[c-1][2]>n;c--)deferred[c]=deferred[c-1];deferred[c]=[t,r,n]},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var r=Object.create(null);__webpack_require__.r(r);var n={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var i=2&t&&e;"object"==typeof i&&!~leafPrototypes.indexOf(i);i=getProto(i))Object.getOwnPropertyNames(i).forEach((t=>n[t]=()=>e[t]));return n.default=()=>e,__webpack_require__.d(r,n),r},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,r)=>(__webpack_require__.f[r](e,t),t)),[])),__webpack_require__.u=e=>e+".7598cb28.js",__webpack_require__.miniCssF=e=>{},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="__CWT_CD___:",__webpack_require__.l=(e,t,r,n)=>{if(inProgress[e])inProgress[e].push(t);else{var i,o;if(void 0!==r)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var c=a[s];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==dataWebpackPrefix+r){i=c;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",dataWebpackPrefix+r),i.src=e),inProgress[e]=[t];var l=(t,r)=>{i.onerror=i.onload=null,clearTimeout(u);var n=inProgress[e];if(delete inProgress[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(r))),t)return t(r)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),o&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),__webpack_require__.p="/assets/customer-dashboard/",(()=>{var e={223:0};__webpack_require__.f.j=(t,r)=>{var n=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise(((r,i)=>n=e[t]=[r,i]));r.push(n[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,(r=>{if(__webpack_require__.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,n[1](a)}}),"chunk-"+t,t)}},__webpack_require__.O.j=t=>0===e[t];var t=(t,r)=>{var n,i,[o,a,s]=r,c=0;if(o.some((t=>0!==e[t]))){for(n in a)__webpack_require__.o(a,n)&&(__webpack_require__.m[n]=a[n]);if(s)var l=s(__webpack_require__)}for(t&&t(r);c<o.length;c++)i=o[c],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return __webpack_require__.O(l)},r=self.webpackChunk_CWT_CD_=self.webpackChunk_CWT_CD_||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),__webpack_require__.nc=void 0})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.