@shipengine/alchemy 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +10 -12
- package/index.mjs +2147 -7291
- package/package.json +3 -1
package/index.js
CHANGED
|
@@ -1,30 +1,28 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
2
|
-
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!i}if(this.isSpeedy){var o=tp(a);try{o.insertRule(n,o.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',s)}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),j="-ms-",Ze="-moz-",T="-webkit-",qa="comm",Ir="rule",Sr="decl",ap="@import",Ya="@keyframes",ip=Math.abs,_r=String.fromCharCode,op=Object.assign;function uc(e,t){return Z(e,0)^45?(((t<<2^Z(e,0))<<2^Z(e,1))<<2^Z(e,2))<<2^Z(e,3):0}function cc(e){return e.trim()}function Ve(e,t){return(e=t.exec(e))?e[0]:e}function L(e,t,r){return e.replace(t,r)}function Ct(e,t){return e.indexOf(t)}function Z(e,t){return e.charCodeAt(t)|0}function At(e,t,r){return e.slice(t,r)}function Oe(e){return e.length}function Ja(e){return e.length}function rr(e,t){return t.push(e),e}function lc(e,t){return e.map(t).join("")}var xr=1,bt=1,fc=0,fe=0,re=0,It="";function Or(e,t,r,n,a,i,o){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:xr,column:bt,length:o,return:""}}function ke(e,t){return op(Or("",null,null,"",null,null,0),e,{length:-e.length},t)}function sp(){return re}function up(){return re=fe>0?Z(It,--fe):0,bt--,re===10&&(bt=1,xr--),re}function Ce(){return re=fe<fc?Z(It,fe++):0,bt++,re===10&&(bt=1,xr++),re}function We(){return Z(It,fe)}function or(){return fe}function Wt(e,t){return At(It,e,t)}function Ft(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function gc(e){return xr=bt=1,fc=Oe(It=e),fe=0,[]}function pc(e){return It="",e}function sr(e){return cc(Wt(fe-1,$a(e===91?e+2:e===40?e+1:e)))}function cp(e){for(;(re=We())&&re<33;)Ce();return Ft(e)>2||Ft(re)>3?"":" "}function lp(e,t){for(;--t&&Ce()&&!(re<48||re>102||re>57&&re<65||re>70&&re<97););return Wt(e,or()+(t<6&&We()==32&&Ce()==32))}function $a(e){for(;Ce();)switch(re){case e:return fe;case 34:case 39:e!==34&&e!==39&&$a(re);break;case 40:e===41&&$a(e);break;case 92:Ce();break}return fe}function fp(e,t){for(;Ce()&&e+re!==47+10;)if(e+re===42+42&&We()===47)break;return"/*"+Wt(t,fe-1)+"*"+_r(e===47?e:Ce())}function gp(e){for(;!Ft(We());)Ce();return Wt(e,fe)}function pp(e){return pc(ur("",null,null,null,[""],e=gc(e),0,[0],e))}function ur(e,t,r,n,a,i,o,s,u){for(var f=0,g=0,c=o,p=0,h=0,v=0,m=1,b=1,y=1,A=0,x="",I=a,S=i,D=n,$=x;b;)switch(v=A,A=Ce()){case 40:if(v!=108&&Z($,c-1)==58){Ct($+=L(sr(A),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:$+=sr(A);break;case 9:case 10:case 13:case 32:$+=cp(v);break;case 92:$+=lp(or()-1,7);continue;case 47:switch(We()){case 42:case 47:rr(dp(fp(Ce(),or()),t,r),u);break;default:$+="/"}break;case 123*m:s[f++]=Oe($)*y;case 125*m:case 59:case 0:switch(A){case 0:case 125:b=0;case 59+g:h>0&&Oe($)-c&&rr(h>32?Ji($+";",n,r,c-1):Ji(L($," ","")+";",n,r,c-2),u);break;case 59:$+=";";default:if(rr(D=Yi($,t,r,f,g,a,s,x,I=[],S=[],c),i),A===123)if(g===0)ur($,t,D,D,I,i,c,s,S);else switch(p===99&&Z($,3)===110?100:p){case 100:case 109:case 115:ur(e,D,D,n&&rr(Yi(e,D,D,0,0,a,s,x,a,I=[],c),S),a,S,c,s,n?I:S);break;default:ur($,D,D,D,[""],S,0,s,S)}}f=g=h=0,m=y=1,x=$="",c=o;break;case 58:c=1+Oe($),h=v;default:if(m<1){if(A==123)--m;else if(A==125&&m++==0&&up()==125)continue}switch($+=_r(A),A*m){case 38:y=g>0?1:($+="\f",-1);break;case 44:s[f++]=(Oe($)-1)*y,y=1;break;case 64:We()===45&&($+=sr(Ce())),p=We(),g=c=Oe(x=$+=gp(or())),A++;break;case 45:v===45&&Oe($)==2&&(m=0)}}return i}function Yi(e,t,r,n,a,i,o,s,u,f,g){for(var c=a-1,p=a===0?i:[""],h=Ja(p),v=0,m=0,b=0;v<n;++v)for(var y=0,A=At(e,c+1,c=ip(m=o[v])),x=e;y<h;++y)(x=cc(m>0?p[y]+" "+A:L(A,/&\f/g,p[y])))&&(u[b++]=x);return Or(e,t,r,a===0?Ir:s,u,f,g)}function dp(e,t,r){return Or(e,t,r,qa,_r(sp()),At(e,2,-2),0)}function Ji(e,t,r,n){return Or(e,t,r,Sr,At(e,0,n),At(e,n+1,-1),n)}function dc(e,t,r){switch(uc(e,t)){case 5103:return T+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+e+e;case 4789:return Ze+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return T+e+Ze+e+j+e+e;case 5936:switch(Z(e,t+11)){case 114:return T+e+j+L(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return T+e+j+L(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return T+e+j+L(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return T+e+j+e+e;case 6165:return T+e+j+"flex-"+e+e;case 5187:return T+e+L(e,/(\w+).+(:[^]+)/,T+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return T+e+j+"flex-item-"+L(e,/flex-|-self/g,"")+(Ve(e,/flex-|baseline/)?"":j+"grid-row-"+L(e,/flex-|-self/g,""))+e;case 4675:return T+e+j+"flex-line-pack"+L(e,/align-content|flex-|-self/g,"")+e;case 5548:return T+e+j+L(e,"shrink","negative")+e;case 5292:return T+e+j+L(e,"basis","preferred-size")+e;case 6060:return T+"box-"+L(e,"-grow","")+T+e+j+L(e,"grow","positive")+e;case 4554:return T+L(e,/([^-])(transform)/g,"$1"+T+"$2")+e;case 6187:return L(L(L(e,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),e,"")+e;case 5495:case 3959:return L(e,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return L(L(e,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+j+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+e+e;case 4200:if(!Ve(e,/flex-|baseline/))return j+"grid-column-align"+At(e,t)+e;break;case 2592:case 3360:return j+L(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,a){return t=a,Ve(n.props,/grid-\w+-end/)})?~Ct(e+(r=r[t].value),"span")?e:j+L(e,"-start","")+e+j+"grid-row-span:"+(~Ct(r,"span")?Ve(r,/\d+/):+Ve(r,/\d+/)-+Ve(e,/\d+/))+";":j+L(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return Ve(n.props,/grid-\w+-start/)})?e:j+L(L(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return L(e,/(.+)-inline(.+)/,T+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Oe(e)-1-t>6)switch(Z(e,t+1)){case 109:if(Z(e,t+4)!==45)break;case 102:return L(e,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+Ze+(Z(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ct(e,"stretch")?dc(L(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return L(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,a,i,o,s,u,f){return j+a+":"+i+f+(o?j+a+"-span:"+(s?u:+u-+i)+f:"")+e});case 4949:if(Z(e,t+6)===121)return L(e,":",":"+T)+e;break;case 6444:switch(Z(e,Z(e,14)===45?18:11)){case 120:return L(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+T+(Z(e,14)===45?"inline-":"")+"box$3$1"+T+"$2$3$1"+j+"$2box$3")+e;case 100:return L(e,":",":"+j)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return L(e,"scroll-","scroll-snap-")+e}return e}function qe(e,t){for(var r="",n=Ja(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function hp(e,t,r,n){switch(e.type){case ap:case Sr:return e.return=e.return||e.value;case qa:return"";case Ya:return e.return=e.value+"{"+qe(e.children,n)+"}";case Ir:e.value=e.props.join(",")}return Oe(r=qe(e.children,n))?e.return=e.value+"{"+r+"}":""}function yp(e){var t=Ja(e);return function(r,n,a,i){for(var o="",s=0;s<t;s++)o+=e[s](r,n,a,i)||"";return o}}function vp(e){return function(t){t.root||(t=t.return)&&e(t)}}function Cp(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Sr:e.return=dc(e.value,e.length,r);return;case Ya:return qe([ke(e,{value:L(e.value,"@","@"+T)})],n);case Ir:if(e.length)return lc(e.props,function(a){switch(Ve(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qe([ke(e,{props:[L(a,/:(read-\w+)/,":"+Ze+"$1")]})],n);case"::placeholder":return qe([ke(e,{props:[L(a,/:(plac\w+)/,":"+T+"input-$1")]}),ke(e,{props:[L(a,/:(plac\w+)/,":"+Ze+"$1")]}),ke(e,{props:[L(a,/:(plac\w+)/,j+"input-$1")]})],n)}return""})}}function hc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ap=function(t,r,n){for(var a=0,i=0;a=i,i=We(),a===38&&i===12&&(r[n]=1),!Ft(i);)Ce();return Wt(t,fe)},bp=function(t,r){var n=-1,a=44;do switch(Ft(a)){case 0:a===38&&We()===12&&(r[n]=1),t[n]+=Ap(fe-1,r,n);break;case 2:t[n]+=sr(a);break;case 4:if(a===44){t[++n]=We()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=_r(a)}while(a=Ce());return t},mp=function(t,r){return pc(bp(gc(t),r))},Ki=new WeakMap,Ip=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Ki.get(n))&&!a){Ki.set(t,!0);for(var i=[],o=mp(r,i),s=n.props,u=0,f=0;u<o.length;u++)for(var g=0;g<s.length;g++,f++)t.props[f]=i[u]?o[u].replace(/&\f/g,s[g]):s[g]+" "+o[u]}}},Sp=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},_p="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",xp=function(t){return t.type==="comm"&&t.children.indexOf(_p)>-1},Op=function(t){return function(r,n,a){if(!(r.type!=="rule"||t.compat)){var i=r.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=r.parent===a[0],s=o?a[0].children:a,u=s.length-1;u>=0;u--){var f=s[u];if(f.line<r.line)break;if(f.column<r.column){if(xp(f))return;break}}i.forEach(function(g){console.error('The pseudo class "'+g+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+g.split("-child")[0]+'-of-type".')})}}}},yc=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},wp=function(t,r){for(var n=t-1;n>=0;n--)if(!yc(r[n]))return!0;return!1},Qi=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Rp=function(t,r,n){yc(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Qi(t)):wp(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Qi(t)))};function vc(e,t){switch(uc(e,t)){case 5103:return T+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return T+e+Ze+e+j+e+e;case 6828:case 4268:return T+e+j+e+e;case 6165:return T+e+j+"flex-"+e+e;case 5187:return T+e+L(e,/(\w+).+(:[^]+)/,T+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return T+e+j+"flex-item-"+L(e,/flex-|-self/,"")+e;case 4675:return T+e+j+"flex-line-pack"+L(e,/align-content|flex-|-self/,"")+e;case 5548:return T+e+j+L(e,"shrink","negative")+e;case 5292:return T+e+j+L(e,"basis","preferred-size")+e;case 6060:return T+"box-"+L(e,"-grow","")+T+e+j+L(e,"grow","positive")+e;case 4554:return T+L(e,/([^-])(transform)/g,"$1"+T+"$2")+e;case 6187:return L(L(L(e,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),e,"")+e;case 5495:case 3959:return L(e,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return L(L(e,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+j+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+e+e;case 4095:case 3583:case 4068:case 2532:return L(e,/(.+)-inline(.+)/,T+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Oe(e)-1-t>6)switch(Z(e,t+1)){case 109:if(Z(e,t+4)!==45)break;case 102:return L(e,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+Ze+(Z(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ct(e,"stretch")?vc(L(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Z(e,t+1)!==115)break;case 6444:switch(Z(e,Oe(e)-3-(~Ct(e,"!important")&&10))){case 107:return L(e,":",":"+T)+e;case 101:return L(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(Z(e,14)===45?"inline-":"")+"box$3$1"+T+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(Z(e,t+11)){case 114:return T+e+j+L(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return T+e+j+L(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return T+e+j+L(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return T+e+j+e+e}return e}var Lp=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Sr:t.return=vc(t.value,t.length);break;case Ya:return qe([ke(t,{value:L(t.value,"@","@"+T)})],a);case Ir:if(t.length)return lc(t.props,function(i){switch(Ve(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qe([ke(t,{props:[L(i,/:(read-\w+)/,":"+Ze+"$1")]})],a);case"::placeholder":return qe([ke(t,{props:[L(i,/:(plac\w+)/,":"+T+"input-$1")]}),ke(t,{props:[L(i,/:(plac\w+)/,":"+Ze+"$1")]}),ke(t,{props:[L(i,/:(plac\w+)/,j+"input-$1")]})],a)}return""})}},Tp=[Lp],Cc=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
3
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("react"),rt=require("react/jsx-runtime"),nt=require("@emotion/react"),Qt=require("@packlink/brands"),pr=require("@packlink/giger"),be=require("@shipengine/react-api"),wa=require("react-i18next");function Sa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Vt=Sa(T);function Oa(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function xa(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ea=function(){function e(r){var a=this;this._insertTag=function(n){var i;a.tags.length===0?a.insertionPoint?i=a.insertionPoint.nextSibling:a.prepend?i=a.container.firstChild:i=a.before:i=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(n,i),a.tags.push(n)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(xa(this));var n=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var i=a.charCodeAt(0)===64&&a.charCodeAt(1)===105;i&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
2
|
+
`+a+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!i}if(this.isSpeedy){var o=Oa(n);try{o.insertRule(a,o.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(a)&&console.error('There was a problem inserting the following rule: "'+a+'"',s)}}else n.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){return a.parentNode&&a.parentNode.removeChild(a)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),P="-ms-",se="-moz-",O="-webkit-",er="comm",ct="rule",ft="decl",Pa="@import",tr="@keyframes",Ca=Math.abs,lt=String.fromCharCode,Ra=Object.assign;function En(e,t){return L(e,0)^45?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}function Pn(e){return e.trim()}function oe(e,t){return(e=t.exec(e))?e[0]:e}function S(e,t,r){return e.replace(t,r)}function Re(e,t){return e.indexOf(t)}function L(e,t){return e.charCodeAt(t)|0}function ke(e,t,r){return e.slice(t,r)}function K(e){return e.length}function rr(e){return e.length}function Ye(e,t){return t.push(e),e}function Cn(e,t){return e.map(t).join("")}var dt=1,Ne=1,Rn=0,F=0,A=0,Le="";function pt(e,t,r,a,n,i,o){return{value:e,root:t,parent:r,type:a,props:n,children:i,line:dt,column:Ne,length:o,return:""}}function ee(e,t){return Ra(pt("",null,null,"",null,null,0),e,{length:-e.length},t)}function ka(){return A}function Na(){return A=F>0?L(Le,--F):0,Ne--,A===10&&(Ne=1,dt--),A}function B(){return A=F<Rn?L(Le,F++):0,Ne++,A===10&&(Ne=1,dt++),A}function re(){return L(Le,F)}function Xe(){return F}function Be(e,t){return ke(Le,e,t)}function Ue(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function kn(e){return dt=Ne=1,Rn=K(Le=e),F=0,[]}function Nn(e){return Le="",e}function Ze(e){return Pn(Be(F-1,qt(e===91?e+2:e===40?e+1:e)))}function La(e){for(;(A=re())&&A<33;)B();return Ue(e)>2||Ue(A)>3?"":" "}function _a(e,t){for(;--t&&B()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return Be(e,Xe()+(t<6&&re()==32&&B()==32))}function qt(e){for(;B();)switch(A){case e:return F;case 34:case 39:e!==34&&e!==39&&qt(A);break;case 40:e===41&&qt(e);break;case 92:B();break}return F}function Aa(e,t){for(;B()&&e+A!==47+10;)if(e+A===42+42&&re()===47)break;return"/*"+Be(t,F-1)+"*"+lt(e===47?e:B())}function Ta(e){for(;!Ue(re());)B();return Be(e,F)}function ja(e){return Nn(Qe("",null,null,null,[""],e=kn(e),0,[0],e))}function Qe(e,t,r,a,n,i,o,s,u){for(var f=0,l=0,c=o,d=0,p=0,y=0,b=1,w=1,h=1,g=0,x="",m=n,v=i,N=a,C=x;w;)switch(y=g,g=B()){case 40:if(y!=108&&L(C,c-1)==58){Re(C+=S(Ze(g),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:C+=Ze(g);break;case 9:case 10:case 13:case 32:C+=La(y);break;case 92:C+=_a(Xe()-1,7);continue;case 47:switch(re()){case 42:case 47:Ye($a(Aa(B(),Xe()),t,r),u);break;default:C+="/"}break;case 123*b:s[f++]=K(C)*h;case 125*b:case 59:case 0:switch(g){case 0:case 125:w=0;case 59+l:p>0&&K(C)-c&&Ye(p>32?gr(C+";",a,r,c-1):gr(S(C," ","")+";",a,r,c-2),u);break;case 59:C+=";";default:if(Ye(N=hr(C,t,r,f,l,n,s,x,m=[],v=[],c),i),g===123)if(l===0)Qe(C,t,N,N,m,i,c,s,v);else switch(d===99&&L(C,3)===110?100:d){case 100:case 109:case 115:Qe(e,N,N,a&&Ye(hr(e,N,N,0,0,n,s,x,n,m=[],c),v),n,v,c,s,a?m:v);break;default:Qe(C,N,N,N,[""],v,0,s,v)}}f=l=p=0,b=h=1,x=C="",c=o;break;case 58:c=1+K(C),p=y;default:if(b<1){if(g==123)--b;else if(g==125&&b++==0&&Na()==125)continue}switch(C+=lt(g),g*b){case 38:h=l>0?1:(C+="\f",-1);break;case 44:s[f++]=(K(C)-1)*h,h=1;break;case 64:re()===45&&(C+=Ze(B())),d=re(),l=c=K(x=C+=Ta(Xe())),g++;break;case 45:y===45&&K(C)==2&&(b=0)}}return i}function hr(e,t,r,a,n,i,o,s,u,f,l){for(var c=n-1,d=n===0?i:[""],p=rr(d),y=0,b=0,w=0;y<a;++y)for(var h=0,g=ke(e,c+1,c=Ca(b=o[y])),x=e;h<p;++h)(x=Pn(b>0?d[h]+" "+g:S(g,/&\f/g,d[h])))&&(u[w++]=x);return pt(e,t,r,n===0?ct:s,u,f,l)}function $a(e,t,r){return pt(e,t,r,er,lt(ka()),ke(e,2,-2),0)}function gr(e,t,r,a){return pt(e,t,r,ft,ke(e,0,a),ke(e,a+1,-1),a)}function Ln(e,t,r){switch(En(e,t)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 4789:return se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+se+e+P+e+e;case 5936:switch(L(e,t+11)){case 114:return O+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+P+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return O+e+P+e+e;case 6165:return O+e+P+"flex-"+e+e;case 5187:return O+e+S(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return O+e+P+"flex-item-"+S(e,/flex-|-self/g,"")+(oe(e,/flex-|baseline/)?"":P+"grid-row-"+S(e,/flex-|-self/g,""))+e;case 4675:return O+e+P+"flex-line-pack"+S(e,/align-content|flex-|-self/g,"")+e;case 5548:return O+e+P+S(e,"shrink","negative")+e;case 5292:return O+e+P+S(e,"basis","preferred-size")+e;case 6060:return O+"box-"+S(e,"-grow","")+O+e+P+S(e,"grow","positive")+e;case 4554:return O+S(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4200:if(!oe(e,/flex-|baseline/))return P+"grid-column-align"+ke(e,t)+e;break;case 2592:case 3360:return P+S(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(a,n){return t=n,oe(a.props,/grid-\w+-end/)})?~Re(e+(r=r[t].value),"span")?e:P+S(e,"-start","")+e+P+"grid-row-span:"+(~Re(r,"span")?oe(r,/\d+/):+oe(r,/\d+/)-+oe(e,/\d+/))+";":P+S(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(a){return oe(a.props,/grid-\w+-start/)})?e:P+S(S(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(K(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+se+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Re(e,"stretch")?Ln(S(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return S(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(a,n,i,o,s,u,f){return P+n+":"+i+f+(o?P+n+"-span:"+(s?u:+u-+i)+f:"")+e});case 4949:if(L(e,t+6)===121)return S(e,":",":"+O)+e;break;case 6444:switch(L(e,L(e,14)===45?18:11)){case 120:return S(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+O+(L(e,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+P+"$2box$3")+e;case 100:return S(e,":",":"+P)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return S(e,"scroll-","scroll-snap-")+e}return e}function ue(e,t){for(var r="",a=rr(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function Ia(e,t,r,a){switch(e.type){case Pa:case ft:return e.return=e.return||e.value;case er:return"";case tr:return e.return=e.value+"{"+ue(e.children,a)+"}";case ct:e.value=e.props.join(",")}return K(r=ue(e.children,a))?e.return=e.value+"{"+r+"}":""}function Da(e){var t=rr(e);return function(r,a,n,i){for(var o="",s=0;s<t;s++)o+=e[s](r,a,n,i)||"";return o}}function Fa(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ua(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case ft:e.return=Ln(e.value,e.length,r);return;case tr:return ue([ee(e,{value:S(e.value,"@","@"+O)})],a);case ct:if(e.length)return Cn(e.props,function(n){switch(oe(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([ee(e,{props:[S(n,/:(read-\w+)/,":"+se+"$1")]})],a);case"::placeholder":return ue([ee(e,{props:[S(n,/:(plac\w+)/,":"+O+"input-$1")]}),ee(e,{props:[S(n,/:(plac\w+)/,":"+se+"$1")]}),ee(e,{props:[S(n,/:(plac\w+)/,P+"input-$1")]})],a)}return""})}}function _n(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ma=function(t,r,a){for(var n=0,i=0;n=i,i=re(),n===38&&i===12&&(r[a]=1),!Ue(i);)B();return Be(t,F)},Ba=function(t,r){var a=-1,n=44;do switch(Ue(n)){case 0:n===38&&re()===12&&(r[a]=1),t[a]+=Ma(F-1,r,a);break;case 2:t[a]+=Ze(n);break;case 4:if(n===44){t[++a]=re()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=lt(n)}while(n=B());return t},Va=function(t,r){return Nn(Ba(kn(t),r))},mr=new WeakMap,qa=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,n=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!mr.get(a))&&!n){mr.set(t,!0);for(var i=[],o=Va(r,i),s=a.props,u=0,f=0;u<o.length;u++)for(var l=0;l<s.length;l++,f++)t.props[f]=i[u]?o[u].replace(/&\f/g,s[l]):s[l]+" "+o[u]}}},za=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},Ha="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Ka=function(t){return t.type==="comm"&&t.children.indexOf(Ha)>-1},Ja=function(t){return function(r,a,n){if(!(r.type!=="rule"||t.compat)){var i=r.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=r.parent===n[0],s=o?n[0].children:n,u=s.length-1;u>=0;u--){var f=s[u];if(f.line<r.line)break;if(f.column<r.column){if(Ka(f))return;break}}i.forEach(function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},An=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Ya=function(t,r){for(var a=t-1;a>=0;a--)if(!An(r[a]))return!0;return!1},vr=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Wa=function(t,r,a){An(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),vr(t)):Ya(r,a)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),vr(t)))};function Tn(e,t){switch(En(e,t)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+se+e+P+e+e;case 6828:case 4268:return O+e+P+e+e;case 6165:return O+e+P+"flex-"+e+e;case 5187:return O+e+S(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return O+e+P+"flex-item-"+S(e,/flex-|-self/,"")+e;case 4675:return O+e+P+"flex-line-pack"+S(e,/align-content|flex-|-self/,"")+e;case 5548:return O+e+P+S(e,"shrink","negative")+e;case 5292:return O+e+P+S(e,"basis","preferred-size")+e;case 6060:return O+"box-"+S(e,"-grow","")+O+e+P+S(e,"grow","positive")+e;case 4554:return O+S(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(K(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+se+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Re(e,"stretch")?Tn(S(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(L(e,t+1)!==115)break;case 6444:switch(L(e,K(e)-3-(~Re(e,"!important")&&10))){case 107:return S(e,":",":"+O)+e;case 101:return S(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(L(e,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+P+"$2box$3")+e}break;case 5936:switch(L(e,t+11)){case 114:return O+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+P+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return O+e+P+e+e}return e}var Ga=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case ft:t.return=Tn(t.value,t.length);break;case tr:return ue([ee(t,{value:S(t.value,"@","@"+O)})],n);case ct:if(t.length)return Cn(t.props,function(i){switch(oe(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([ee(t,{props:[S(i,/:(read-\w+)/,":"+se+"$1")]})],n);case"::placeholder":return ue([ee(t,{props:[S(i,/:(plac\w+)/,":"+O+"input-$1")]}),ee(t,{props:[S(i,/:(plac\w+)/,":"+se+"$1")]}),ee(t,{props:[S(i,/:(plac\w+)/,P+"input-$1")]})],n)}return""})}},Xa=[Ga],jn=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
3
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(b){var w=b.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var n=t.stylisPlugins||Xa;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var w=b.getAttribute("data-emotion").split(" "),h=1;h<w.length;h++)i[w[h]]=!0;s.push(b)});var u,f=[qa,za];process.env.NODE_ENV!=="production"&&f.push(Ja({get compat(){return y.compat}}),Wa);{var l,c=[Ia,process.env.NODE_ENV!=="production"?function(b){b.root||(b.return?l.insert(b.return):b.value&&b.type!==er&&l.insert(b.value+"{}"))}:Fa(function(b){l.insert(b)})],d=Da(f.concat(n,c)),p=function(w){return ue(ja(w),d)};u=function(w,h,g,x){l=g,process.env.NODE_ENV!=="production"&&h.map!==void 0&&(l={insert:function(v){g.insert(v+h.map)}}),p(w?w+"{"+h.styles+"}":h.styles),x&&(y.inserted[h.name]=!0)}}var y={key:r,sheet:new Ea({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return y.sheet.hydrate(s),y};function Za(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zt={},Qa={get exports(){return zt},set exports(e){zt=e}},R={};/** @license React v16.13.1
|
|
4
4
|
* react-is.production.min.js
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
10
|
+
*/var yr;function ei(){if(yr)return R;yr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function x(v){if(typeof v=="object"&&v!==null){var N=v.$$typeof;switch(N){case t:switch(v=v.type,v){case u:case f:case a:case i:case n:case c:return v;default:switch(v=v&&v.$$typeof,v){case s:case l:case y:case p:case o:return v;default:return N}}case r:return N}}}function m(v){return x(v)===f}return R.AsyncMode=u,R.ConcurrentMode=f,R.ContextConsumer=s,R.ContextProvider=o,R.Element=t,R.ForwardRef=l,R.Fragment=a,R.Lazy=y,R.Memo=p,R.Portal=r,R.Profiler=i,R.StrictMode=n,R.Suspense=c,R.isAsyncMode=function(v){return m(v)||x(v)===u},R.isConcurrentMode=m,R.isContextConsumer=function(v){return x(v)===s},R.isContextProvider=function(v){return x(v)===o},R.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},R.isForwardRef=function(v){return x(v)===l},R.isFragment=function(v){return x(v)===a},R.isLazy=function(v){return x(v)===y},R.isMemo=function(v){return x(v)===p},R.isPortal=function(v){return x(v)===r},R.isProfiler=function(v){return x(v)===i},R.isStrictMode=function(v){return x(v)===n},R.isSuspense=function(v){return x(v)===c},R.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===a||v===f||v===i||v===n||v===c||v===d||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===p||v.$$typeof===o||v.$$typeof===s||v.$$typeof===l||v.$$typeof===w||v.$$typeof===h||v.$$typeof===g||v.$$typeof===b)},R.typeOf=x,R}var k={};/** @license React v16.13.1
|
|
11
11
|
* react-is.development.js
|
|
12
12
|
*
|
|
13
13
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var br;function ti(){return br||(br=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function x(E){return typeof E=="string"||typeof E=="function"||E===a||E===f||E===i||E===n||E===c||E===d||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===p||E.$$typeof===o||E.$$typeof===s||E.$$typeof===l||E.$$typeof===w||E.$$typeof===h||E.$$typeof===g||E.$$typeof===b)}function m(E){if(typeof E=="object"&&E!==null){var Oe=E.$$typeof;switch(Oe){case t:var ye=E.type;switch(ye){case u:case f:case a:case i:case n:case c:return ye;default:var dr=ye&&ye.$$typeof;switch(dr){case s:case l:case y:case p:case o:return dr;default:return Oe}}case r:return Oe}}}var v=u,N=f,C=s,X=o,Z=t,_=l,z=a,D=y,_e=p,V=r,ze=i,we=n,he=c,Ae=!1;function Te(E){return Ae||(Ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),He(E)||m(E)===u}function He(E){return m(E)===f}function ge(E){return m(E)===s}function St(E){return m(E)===o}function Ot(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function me(E){return m(E)===l}function Ke(E){return m(E)===a}function ve(E){return m(E)===y}function Se(E){return m(E)===p}function je(E){return m(E)===r}function Je(E){return m(E)===i}function $e(E){return m(E)===n}function ce(E){return m(E)===c}k.AsyncMode=v,k.ConcurrentMode=N,k.ContextConsumer=C,k.ContextProvider=X,k.Element=Z,k.ForwardRef=_,k.Fragment=z,k.Lazy=D,k.Memo=_e,k.Portal=V,k.Profiler=ze,k.StrictMode=we,k.Suspense=he,k.isAsyncMode=Te,k.isConcurrentMode=He,k.isContextConsumer=ge,k.isContextProvider=St,k.isElement=Ot,k.isForwardRef=me,k.isFragment=Ke,k.isLazy=ve,k.isMemo=Se,k.isPortal=je,k.isProfiler=Je,k.isStrictMode=$e,k.isSuspense=ce,k.isValidElementType=x,k.typeOf=m}()),k}(function(e){process.env.NODE_ENV==="production"?e.exports=ei():e.exports=ti()})(Qa);var $n=zt,ri={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ni={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},In={};In[$n.ForwardRef]=ri;In[$n.Memo]=ni;var ai=!0;function ii(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):a+=n+" "}),a}var Dn=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||ai===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},oi=function(t,r,a){Dn(t,r,a);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+n:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function si(e){for(var t=0,r,a=0,n=e.length;n>=4;++a,n-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ui={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wr=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
18
18
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
19
19
|
You can read more about this here:
|
|
20
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,
|
|
20
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,ci="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",fi=/[A-Z]|^ms/g,Fn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nr=function(t){return t.charCodeAt(1)===45},Sr=function(t){return t!=null&&typeof t!="boolean"},xt=_n(function(e){return nr(e)?e:e.replace(fi,"-$&").toLowerCase()}),at=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Fn,function(a,n,i){return J={name:n,styles:i,next:J},n})}return ui[t]!==1&&!nr(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var li=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,di=["normal","none","initial","inherit","unset"],pi=at,hi=/^-ms-/,gi=/-(.)/g,Or={};at=function(t,r){if(t==="content"&&(typeof r!="string"||di.indexOf(r)===-1&&!li.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var a=pi(t,r);return a!==""&&!nr(t)&&t.indexOf("-")!==-1&&Or[t]===void 0&&(Or[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(hi,"ms-").replace(gi,function(n,i){return i.toUpperCase()})+"?")),a}}var Un="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Me(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Un);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return J={name:r.name,styles:r.styles,next:J},r.name;if(r.styles!==void 0){var a=r.next;if(a!==void 0)for(;a!==void 0;)J={name:a.name,styles:a.styles,next:J},a=a.next;var n=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(n+=r.map),n}return mi(e,t,r)}case"function":{if(e!==void 0){var i=J,o=r(e);return J=i,Me(e,t,o)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var s=[],u=r.replace(Fn,function(l,c,d){var p="animation"+s.length;return s.push("const "+p+" = keyframes`"+d.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+p+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+u+"`"]).join(`
|
|
21
21
|
`)+`
|
|
22
22
|
|
|
23
23
|
You should wrap it with \`css\` like this:
|
|
24
24
|
|
|
25
|
-
`+("css`"+u+"`"))}break}if(t==null)return r;var f=t[r];return f!==void 0?f:r}function
|
|
26
|
-
`),n=0;n<r.length;n++){var a=td(r[n]);if(a){if(rd.has(a))break;if(/^[A-Z]/.test(a))return nd(a)}}},Fa="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Da="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Oc=function(t,r){if(process.env.NODE_ENV!=="production"&&typeof r.css=="string"&&r.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+r.css+"`");var n={};for(var a in r)wr.call(r,a)&&(n[a]=r[a]);if(n[Fa]=t,process.env.NODE_ENV!=="production"&&r.css&&(typeof r.css!="object"||typeof r.css.name!="string"||r.css.name.indexOf("-")===-1)){var i=ad(new Error().stack);i&&(n[Da]=i)}return n},id=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return mc(r,n,a),Qp(function(){return Np(r,n,a)}),null},ei=ed(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[Fa],i=[n],o="";typeof e.className=="string"?o=jp(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=oo(i,void 0,Q.useContext(xc));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var u=e[Da];u&&(s=oo([s,"label:"+u+";"]))}o+=t.key+"-"+s.name;var f={};for(var g in e)wr.call(e,g)&&g!=="css"&&g!==Fa&&(process.env.NODE_ENV==="production"||g!==Da)&&(f[g]=e[g]);return f.ref=r,f.className=o,Q.createElement(Q.Fragment,null,Q.createElement(id,{cache:t,serialized:s,isStringTag:typeof a=="string"}),Q.createElement(a,f))});process.env.NODE_ENV!=="production"&&(ei.displayName="EmotionCssPropInternal");function ve(e,t,r){return wr.call(t,"css")?gr.jsx(ei,Oc(e,t),r):gr.jsx(e,t,r)}function od(e,t,r){return wr.call(t,"css")?gr.jsxs(ei,Oc(e,t),r):gr.jsxs(e,t,r)}var Rr={},Lr={},kt={},sd={get exports(){return kt},set exports(e){kt=e}};(function(e,t){var r=200,n="__lodash_hash_undefined__",a=800,i=16,o=9007199254740991,s="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",g="[object Boolean]",c="[object Date]",p="[object Error]",h="[object Function]",v="[object GeneratorFunction]",m="[object Map]",b="[object Number]",y="[object Null]",A="[object Object]",x="[object Proxy]",I="[object RegExp]",S="[object Set]",D="[object String]",$="[object Undefined]",N="[object WeakMap]",ne="[object ArrayBuffer]",W="[object DataView]",F="[object Float32Array]",q="[object Float64Array]",oe="[object Int8Array]",ee="[object Int16Array]",Ge="[object Int32Array]",Pe="[object Uint8Array]",_e="[object Uint8ClampedArray]",Fe="[object Uint16Array]",Xe="[object Uint32Array]",Ye=/[\\^$.*+?()[\]{}|]/g,Ae=/^\[object .+?Constructor\]$/,Je=/^(?:0|[1-9]\d*)$/,k={};k[F]=k[q]=k[oe]=k[ee]=k[Ge]=k[Pe]=k[_e]=k[Fe]=k[Xe]=!0,k[s]=k[u]=k[ne]=k[g]=k[W]=k[c]=k[p]=k[h]=k[m]=k[b]=k[A]=k[I]=k[S]=k[D]=k[N]=!1;var ue=typeof Qe=="object"&&Qe&&Qe.Object===Object&&Qe,E=typeof self=="object"&&self&&self.Object===Object&&self,_=ue||E||Function("return this")(),w=t&&!t.nodeType&&t,P=w&&!0&&e&&!e.nodeType&&e,B=P&&P.exports===w,V=B&&ue.process,K=function(){try{var l=P&&P.require&&P.require("util").types;return l||V&&V.binding&&V.binding("util")}catch{}}(),O=K&&K.isTypedArray;function ae(l,d,C){switch(C.length){case 0:return l.call(d);case 1:return l.call(d,C[0]);case 2:return l.call(d,C[0],C[1]);case 3:return l.call(d,C[0],C[1],C[2])}return l.apply(d,C)}function be(l,d){for(var C=-1,R=Array(l);++C<l;)R[C]=d(C);return R}function ft(l){return function(d){return l(d)}}function Hf(l,d){return l?.[d]}function Mf(l,d){return function(C){return l(d(C))}}var zf=Array.prototype,Uf=Function.prototype,Zt=Object.prototype,qr=_["__core-js_shared__"],qt=Uf.toString,He=Zt.hasOwnProperty,Ei=function(){var l=/[^.]+$/.exec(qr&&qr.keys&&qr.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),$i=Zt.toString,Vf=qt.call(Object),Zf=RegExp("^"+qt.call(He).replace(Ye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yt=B?_.Buffer:void 0,Pi=_.Symbol,Fi=_.Uint8Array,Di=Yt?Yt.allocUnsafe:void 0,ki=Mf(Object.getPrototypeOf,Object),Bi=Object.create,qf=Zt.propertyIsEnumerable,Yf=zf.splice,nt=Pi?Pi.toStringTag:void 0,Jt=function(){try{var l=Kr(Object,"defineProperty");return l({},"",{}),l}catch{}}(),Jf=Yt?Yt.isBuffer:void 0,Wi=Math.max,Kf=Date.now,ji=Kr(_,"Map"),xt=Kr(Object,"create"),Qf=function(){function l(){}return function(d){if(!it(d))return{};if(Bi)return Bi(d);l.prototype=d;var C=new l;return l.prototype=void 0,C}}();function at(l){var d=-1,C=l==null?0:l.length;for(this.clear();++d<C;){var R=l[d];this.set(R[0],R[1])}}function eg(){this.__data__=xt?xt(null):{},this.size=0}function tg(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function rg(l){var d=this.__data__;if(xt){var C=d[l];return C===n?void 0:C}return He.call(d,l)?d[l]:void 0}function ng(l){var d=this.__data__;return xt?d[l]!==void 0:He.call(d,l)}function ag(l,d){var C=this.__data__;return this.size+=this.has(l)?0:1,C[l]=xt&&d===void 0?n:d,this}at.prototype.clear=eg,at.prototype.delete=tg,at.prototype.get=rg,at.prototype.has=ng,at.prototype.set=ag;function Me(l){var d=-1,C=l==null?0:l.length;for(this.clear();++d<C;){var R=l[d];this.set(R[0],R[1])}}function ig(){this.__data__=[],this.size=0}function og(l){var d=this.__data__,C=Kt(d,l);if(C<0)return!1;var R=d.length-1;return C==R?d.pop():Yf.call(d,C,1),--this.size,!0}function sg(l){var d=this.__data__,C=Kt(d,l);return C<0?void 0:d[C][1]}function ug(l){return Kt(this.__data__,l)>-1}function cg(l,d){var C=this.__data__,R=Kt(C,l);return R<0?(++this.size,C.push([l,d])):C[R][1]=d,this}Me.prototype.clear=ig,Me.prototype.delete=og,Me.prototype.get=sg,Me.prototype.has=ug,Me.prototype.set=cg;function gt(l){var d=-1,C=l==null?0:l.length;for(this.clear();++d<C;){var R=l[d];this.set(R[0],R[1])}}function lg(){this.size=0,this.__data__={hash:new at,map:new(ji||Me),string:new at}}function fg(l){var d=er(this,l).delete(l);return this.size-=d?1:0,d}function gg(l){return er(this,l).get(l)}function pg(l){return er(this,l).has(l)}function dg(l,d){var C=er(this,l),R=C.size;return C.set(l,d),this.size+=C.size==R?0:1,this}gt.prototype.clear=lg,gt.prototype.delete=fg,gt.prototype.get=gg,gt.prototype.has=pg,gt.prototype.set=dg;function pt(l){var d=this.__data__=new Me(l);this.size=d.size}function hg(){this.__data__=new Me,this.size=0}function yg(l){var d=this.__data__,C=d.delete(l);return this.size=d.size,C}function vg(l){return this.__data__.get(l)}function Cg(l){return this.__data__.has(l)}function Ag(l,d){var C=this.__data__;if(C instanceof Me){var R=C.__data__;if(!ji||R.length<r-1)return R.push([l,d]),this.size=++C.size,this;C=this.__data__=new gt(R)}return C.set(l,d),this.size=C.size,this}pt.prototype.clear=hg,pt.prototype.delete=yg,pt.prototype.get=vg,pt.prototype.has=Cg,pt.prototype.set=Ag;function bg(l,d){var C=tn(l),R=!C&&en(l),X=!C&&!R&&Mi(l),z=!C&&!R&&!X&&Ui(l),Y=C||R||X||z,G=Y?be(l.length,String):[],J=G.length;for(var me in l)(d||He.call(l,me))&&!(Y&&(me=="length"||X&&(me=="offset"||me=="parent")||z&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||Xi(me,J)))&&G.push(me);return G}function Yr(l,d,C){(C!==void 0&&!tr(l[d],C)||C===void 0&&!(d in l))&&Jr(l,d,C)}function mg(l,d,C){var R=l[d];(!(He.call(l,d)&&tr(R,C))||C===void 0&&!(d in l))&&Jr(l,d,C)}function Kt(l,d){for(var C=l.length;C--;)if(tr(l[C][0],d))return C;return-1}function Jr(l,d,C){d=="__proto__"&&Jt?Jt(l,d,{configurable:!0,enumerable:!0,value:C,writable:!0}):l[d]=C}var Ig=Dg();function Qt(l){return l==null?l===void 0?$:y:nt&&nt in Object(l)?kg(l):Xg(l)}function Ni(l){return Ot(l)&&Qt(l)==s}function Sg(l){if(!it(l)||Ng(l))return!1;var d=nn(l)?Zf:Ae;return d.test(Ug(l))}function _g(l){return Ot(l)&&zi(l.length)&&!!k[Qt(l)]}function xg(l){if(!it(l))return Gg(l);var d=Hi(l),C=[];for(var R in l)R=="constructor"&&(d||!He.call(l,R))||C.push(R);return C}function Gi(l,d,C,R,X){l!==d&&Ig(d,function(z,Y){if(X||(X=new pt),it(z))Og(l,d,Y,C,Gi,R,X);else{var G=R?R(Qr(l,Y),z,Y+"",l,d,X):void 0;G===void 0&&(G=z),Yr(l,Y,G)}},Vi)}function Og(l,d,C,R,X,z,Y){var G=Qr(l,C),J=Qr(d,C),me=Y.get(J);if(me){Yr(l,C,me);return}var he=z?z(G,J,C+"",l,d,Y):void 0,wt=he===void 0;if(wt){var an=tn(J),on=!an&&Mi(J),qi=!an&&!on&&Ui(J);he=J,an||on||qi?tn(G)?he=G:Vg(G)?he=$g(G):on?(wt=!1,he=Lg(J,!0)):qi?(wt=!1,he=Eg(J,!0)):he=[]:Zg(J)||en(J)?(he=G,en(G)?he=qg(G):(!it(G)||nn(G))&&(he=Bg(J))):wt=!1}wt&&(Y.set(J,he),X(he,J,R,z,Y),Y.delete(J)),Yr(l,C,he)}function wg(l,d){return Mg(Hg(l,d,Zi),l+"")}var Rg=Jt?function(l,d){return Jt(l,"toString",{configurable:!0,enumerable:!1,value:Jg(d),writable:!0})}:Zi;function Lg(l,d){if(d)return l.slice();var C=l.length,R=Di?Di(C):new l.constructor(C);return l.copy(R),R}function Tg(l){var d=new l.constructor(l.byteLength);return new Fi(d).set(new Fi(l)),d}function Eg(l,d){var C=d?Tg(l.buffer):l.buffer;return new l.constructor(C,l.byteOffset,l.length)}function $g(l,d){var C=-1,R=l.length;for(d||(d=Array(R));++C<R;)d[C]=l[C];return d}function Pg(l,d,C,R){var X=!C;C||(C={});for(var z=-1,Y=d.length;++z<Y;){var G=d[z],J=R?R(C[G],l[G],G,C,l):void 0;J===void 0&&(J=l[G]),X?Jr(C,G,J):mg(C,G,J)}return C}function Fg(l){return wg(function(d,C){var R=-1,X=C.length,z=X>1?C[X-1]:void 0,Y=X>2?C[2]:void 0;for(z=l.length>3&&typeof z=="function"?(X--,z):void 0,Y&&Wg(C[0],C[1],Y)&&(z=X<3?void 0:z,X=1),d=Object(d);++R<X;){var G=C[R];G&&l(d,G,R,z)}return d})}function Dg(l){return function(d,C,R){for(var X=-1,z=Object(d),Y=R(d),G=Y.length;G--;){var J=Y[l?G:++X];if(C(z[J],J,z)===!1)break}return d}}function er(l,d){var C=l.__data__;return jg(d)?C[typeof d=="string"?"string":"hash"]:C.map}function Kr(l,d){var C=Hf(l,d);return Sg(C)?C:void 0}function kg(l){var d=He.call(l,nt),C=l[nt];try{l[nt]=void 0;var R=!0}catch{}var X=$i.call(l);return R&&(d?l[nt]=C:delete l[nt]),X}function Bg(l){return typeof l.constructor=="function"&&!Hi(l)?Qf(ki(l)):{}}function Xi(l,d){var C=typeof l;return d=d??o,!!d&&(C=="number"||C!="symbol"&&Je.test(l))&&l>-1&&l%1==0&&l<d}function Wg(l,d,C){if(!it(C))return!1;var R=typeof d;return(R=="number"?rn(C)&&Xi(d,C.length):R=="string"&&d in C)?tr(C[d],l):!1}function jg(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function Ng(l){return!!Ei&&Ei in l}function Hi(l){var d=l&&l.constructor,C=typeof d=="function"&&d.prototype||Zt;return l===C}function Gg(l){var d=[];if(l!=null)for(var C in Object(l))d.push(C);return d}function Xg(l){return $i.call(l)}function Hg(l,d,C){return d=Wi(d===void 0?l.length-1:d,0),function(){for(var R=arguments,X=-1,z=Wi(R.length-d,0),Y=Array(z);++X<z;)Y[X]=R[d+X];X=-1;for(var G=Array(d+1);++X<d;)G[X]=R[X];return G[d]=C(Y),ae(l,this,G)}}function Qr(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var Mg=zg(Rg);function zg(l){var d=0,C=0;return function(){var R=Kf(),X=i-(R-C);if(C=R,X>0){if(++d>=a)return arguments[0]}else d=0;return l.apply(void 0,arguments)}}function Ug(l){if(l!=null){try{return qt.call(l)}catch{}try{return l+""}catch{}}return""}function tr(l,d){return l===d||l!==l&&d!==d}var en=Ni(function(){return arguments}())?Ni:function(l){return Ot(l)&&He.call(l,"callee")&&!qf.call(l,"callee")},tn=Array.isArray;function rn(l){return l!=null&&zi(l.length)&&!nn(l)}function Vg(l){return Ot(l)&&rn(l)}var Mi=Jf||Kg;function nn(l){if(!it(l))return!1;var d=Qt(l);return d==h||d==v||d==f||d==x}function zi(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=o}function it(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Ot(l){return l!=null&&typeof l=="object"}function Zg(l){if(!Ot(l)||Qt(l)!=A)return!1;var d=ki(l);if(d===null)return!0;var C=He.call(d,"constructor")&&d.constructor;return typeof C=="function"&&C instanceof C&&qt.call(C)==Vf}var Ui=O?ft(O):_g;function qg(l){return Pg(l,Vi(l))}function Vi(l){return rn(l)?bg(l,!0):xg(l)}var Yg=Fg(function(l,d,C,R){Gi(l,d,C,R)});function Jg(l){return function(){return l}}function Zi(l){return l}function Kg(){return!1}e.exports=Yg})(sd,kt);var Le={},wc={};const ud={palette:{primary:{main:"#ff5f00",light:"#ffcdb8",ultraLight:"#fce9e6",dark:"#d94900"},secondary:{main:"#0871c4",light:"#0c8cef",ultraLight:"#eff4ff",dark:"#023864"}},defaultFontFamily:"proxima-nova,sans-serif",fontFaces:[{family:"proxima-nova",source:["$cdnUrl/brand/packlink_cons/fonts/ProximaNova-BoldWeb.woff2"],descriptors:{weight:"700",style:"normal",display:"swap"}},{family:"proxima-nova",source:["$cdnUrl/brand/packlink_cons/fonts/ProximaNova-SemiboldWeb.woff2"],descriptors:{weight:"600",style:"normal",display:"swap"}},{family:"proxima-nova",source:["$cdnUrl/brand/packlink_cons/fonts/ProximaNova-RegularWeb.woff2"],descriptors:{weight:"400",style:"normal",display:"swap"}}]};wc.packlink_cons=ud;var Rc={},Lc={};const cd=e=>({defaultColor:e.palette.primary.main,visitedColor:e.palette.primary.dark,hoverColor:e.palette.primary.dark,activeColor:e.palette.primary.light,isDark:{defaultColor:e.palette.white,visitedColor:e.palette.white,hoverColor:e.palette.white,activeColor:e.palette.primary.light}});Lc.createThemeLinkComponent=cd;var ld=Lc;const fd={palette:{primary:{main:"#0871c4",light:"#0c8cef",ultraLight:"#eff4ff",dark:"#023864"},secondary:{main:"#023864",light:"#eff4ff",ultraLight:"#eff4ff",dark:"#023864"}},components:{Link:ld.createThemeLinkComponent},defaultFontFamily:"proxima-nova,sans-serif",fontFaces:[{family:"proxima-nova",source:["$cdnUrl/brand/packlink_cons/fonts/ProximaNova-BoldWeb.woff2"],descriptors:{weight:"700",style:"normal",display:"swap"}},{family:"proxima-nova",source:["$cdnUrl/brand/packlink_cons/fonts/ProximaNova-SemiboldWeb.woff2"],descriptors:{weight:"600",style:"normal",display:"swap"}},{family:"proxima-nova",source:["$cdnUrl/brand/packlink_cons/fonts/ProximaNova-RegularWeb.woff2"],descriptors:{weight:"400",style:"normal",display:"swap"}}]};Rc.packlink_pro=fd;var Tc={},Ec={};const gd=e=>({defaultColor:e.palette.primary.main,visitedColor:e.palette.primary.dark,hoverColor:e.palette.primary.dark,activeColor:e.palette.primary.light,isDark:{defaultColor:e.palette.white,visitedColor:e.palette.white,hoverColor:e.palette.white,activeColor:e.palette.primary.light}});Ec.createThemeLinkComponent=gd;var $c={};const pd=e=>({borderRadius:"0px"});$c.createThemeButtonComponent=pd;var Pc={};const dd=()=>({borderRadius:"0",square:!0});Pc.createThemeCheckboxComponent=dd;var hd=Ec,yd=$c,vd=Pc;const Cd={palette:{primary:{main:"#dc0032",light:"#ed7f98",ultraLight:"#fad9e0",dark:"#a90034"},secondary:{main:"#414042",light:"#808285",ultraLight:"#e6e7e8",dark:"#191919"},error:{main:"#dc0032",light:"#ed7f98"},success:{main:"#78be20",light:"#a7ce97"},gray:{main:"#808285",light:"#dedede",ultraLight:"#e6e7e8",megaLight:"#e6e7e8",dark:"#414042"},black:"#414042",white:"#fff"},typography:{fontWeight:{light:200,normal:300,semibold:400,bold:700}},card:{borderRadius:{mobile:"0",tablet:"0",desktop:"0"}},components:{Link:hd.createThemeLinkComponent,Button:yd.createThemeButtonComponent,Checkbox:vd.createThemeCheckboxComponent},defaultFontFamily:"pluto-sans, sans-serif",fontFaces:[{family:"pluto-sans",source:["$cdnUrl/brand/dpd/fonts/PlutoSans/PlutoSans-RegularWeb.woff"],descriptors:{weight:"400",style:"normal"}},{family:"pluto-sans",source:["$cdnUrl/brand/dpd/fonts/PlutoSans/PlutoSans-LightWeb.woff"],descriptors:{weight:"300",style:"normal"}},{family:"pluto-sans",source:["$cdnUrl/brand/dpd/fonts/PlutoSans/PlutoSans-ExtraLightWeb.woff"],descriptors:{weight:"200",style:"normal"}}]};Tc.dpd=Cd;var ti={},Fc={};const Ad=e=>({action:{justifyContent:"flex-start"},content:{textAlign:"left",padding:e.spacing(.5)},header:{titleColor:e.palette.gray.dark,padding:e.spacing(.5),borderBottom:`1px solid ${e.palette.gray.light}`}});Fc.createThemeDialogComponent=Ad;var Dc={};const bd=e=>({defaultColor:e.palette.primary.main,visitedColor:e.palette.primary.dark,hoverColor:e.palette.primary.dark,activeColor:e.palette.primary.light,isDark:{defaultColor:e.palette.white,visitedColor:e.palette.white,hoverColor:e.palette.white,activeColor:e.palette.primary.light}});Dc.createThemeLinkComponent=bd;var md=Fc,Id=Dc;const Sd={palette:{primary:{main:"#0654ba",light:"#b3d3fd",ultraLight:"#d6e7fe",dark:"#0549a1"},secondary:{main:"#2e4265",light:"#aabbd8",ultraLight:"#cdd7e8",dark:"#001c3a"},error:{main:"#a40303",light:"#fed6d6"},success:{main:"#36cf57",light:"#caf2d3"},alert:{main:"#ba0606",light:"#fa5f5f"},info:{main:"#258bb5",light:"#cbe8f4"},gray:{main:"#a1a1a1",light:"#ccc",ultraLight:"#f5f5f5",megaLight:"#fafafa",dark:"#333"},black:"#000",white:"#fff"},components:{Dialog:md.createThemeDialogComponent,Link:Id.createThemeLinkComponent},defaultFontFamily:"helvetica-neue, Helvetica, arial, roboto, sans-serif",fontFaces:[{family:"helvetica-neue",source:["$cdnUrl/brand/ebay/fonts/HelveticaNeue-Bold.woff"],descriptors:{weight:"600",style:"normal"}},{family:"helvetica-neue",source:["$cdnUrl/brand/ebay/fonts/HelveticaNeue-Medium.woff"],descriptors:{weight:"400",style:"normal"}},{family:"helvetica-neue",source:["$cdnUrl/brand/ebay/fonts/HelveticaNeue-Light.woff"],descriptors:{weight:"200",style:"normal"}}]};ti.ebay=Sd;var kc={},_d=ti;const xd={..._d.ebay};kc.ebay_it=xd;var Bc={},Wc={};const Od=e=>({backgroundColor:e.palette.white,border:`1px solid ${e.palette.gray.light}`,isSelected:{backgroundColor:e.palette.primary.ultraLight,color:e.palette.primary.dark}});Wc.createThemeChipComponent=Od;var jc={};const wd=e=>({action:{justifyContent:"flex-end"},content:{textAlign:"left",padding:e.spacing(.5)},dialog:{borderRadius:e.borderRadius.M},header:{borderBottom:`1px solid ${e.palette.gray.light}`,padding:e.spacing(.5),titleColor:e.palette.gray.dark}});jc.createThemeDialogComponent=wd;var Nc={};const Rd=e=>({defaultColor:e.palette.primary.main,visitedColor:e.palette.primary.dark,hoverColor:e.palette.primary.dark,activeColor:e.palette.primary.light,isDark:{defaultColor:e.palette.white,visitedColor:e.palette.white,hoverColor:e.palette.white,activeColor:e.palette.primary.light}});Nc.createThemeLinkComponent=Rd;var Gc={};const Ld=e=>({borderRadius:"20px"});Gc.createThemeButtonComponent=Ld;var Td=Wc,Ed=jc,$d=Nc,Pd=Gc;const Fd={palette:{primary:{main:"#0070ba",light:"#b1e2fc",ultraLight:"#e0f4fe",dark:"#035098"},secondary:{main:"#003087",light:"#96a3d2",ultraLight:"#e6e9f4",dark:"#001e72"},error:{main:"#df341c",light:"#fac8ca"},success:{main:"#56b652",light:"#bfe3be"},alert:{main:"#ffc032",light:"#ffebb7"},info:{main:"#37aad5",light:"#b6e5f0"},gray:{main:"#6c7378",light:"#dedede",ultraLight:"#ececec",megaLight:"#f5f7fa",dark:"#2c2e2f"},black:"#000",white:"#fff"},typography:{fontWeight:{light:200,normal:300,semibold:400,bold:600}},components:{Chip:Td.createThemeChipComponent,Dialog:Ed.createThemeDialogComponent,Link:$d.createThemeLinkComponent,Button:Pd.createThemeButtonComponent},defaultFontFamily:"PayPal Sans Small, sans-serif",fontFaces:[{family:"PayPal Sans Small",source:["$cdnUrl/brand/paypal/fonts/PayPalSans-Small-Web/Light.woff"],descriptors:{weight:"200",style:"normal"}},{family:"PayPal Sans Small",source:["$cdnUrl/brand/paypal/fonts/PayPalSans-Small-Web/Regular.woff"],descriptors:{weight:"300",style:"normal"}},{family:"PayPal Sans Small",source:["$cdnUrl/brand/paypal/fonts/PayPalSans-Small-Web/Medium.woff"],descriptors:{weight:"400",style:"normal"}},{family:"PayPal Sans Small",source:["$cdnUrl/brand/paypal/fonts/PayPalSans-Small-Web/Bold.woff"],descriptors:{weight:"600",style:"normal"}}]};Bc.paypal=Fd;var Xc={},Hc={};const Dd=e=>{const t={fontSize:e.typography.fontSize.S,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.S,letterSpacing:e.typography.letterSpacing.M};return{heading1:{fontSize:e.typography.fontSize.XXXXL,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.XXXL,letterSpacing:e.typography.letterSpacing.S},heading2:{fontSize:e.typography.fontSize.XXXL,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.XXL,letterSpacing:e.typography.letterSpacing.M},heading3:{fontSize:e.typography.fontSize.XXL,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.XXL,letterSpacing:e.typography.letterSpacing.L},heading4:{fontSize:e.typography.fontSize.XL,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.XL,letterSpacing:e.typography.letterSpacing.L},heading5:{fontSize:e.typography.fontSize.L,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.L,letterSpacing:e.typography.letterSpacing.L},heading6:{fontSize:e.typography.fontSize.M,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.M,letterSpacing:e.typography.letterSpacing.L},subtitle1:{fontSize:e.typography.fontSize.M,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.M,letterSpacing:e.typography.letterSpacing.L},subtitle2:{fontSize:e.typography.fontSize.S,fontWeight:e.typography.fontWeight.semibold,lineHeight:e.typography.lineHeight.S,letterSpacing:e.typography.letterSpacing.XL},body1:t,body2:t,small:{fontSize:e.typography.fontSize.XS,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.S,letterSpacing:e.typography.letterSpacing.XL}}};Hc.createThemeTypographyComponent=Dd;var Mc={};const kd=e=>({fontWeight:e.typography.fontWeight.normal,color:e.palette.black});Mc.createThemeFieldComponent=kd;var Bd=Hc,Wd=Mc;const jd={palette:{primary:{main:"#297768",light:"#69ccb8",ultraLight:"#ecf9f6",dark:"#1d5449"},secondary:{main:"#006fbb",light:"#47b6ff",ultraLight:"#e8f6ff",dark:"#005187"},error:{main:"#c22828",light:"#FFF0F1"},success:{main:"#297768",light:"#d4e4e1"},alert:{main:"#d67500",light:"#fef1d3"},gray:{dark:"#45505b",main:"#637381",light:"#dfe4e8",ultraLight:"#f4f6f8"}},typography:{fontWeight:{light:300,normal:400,semibold:500,bold:700}},components:{Typography:Bd.createThemeTypographyComponent,Field:Wd.createThemeFieldComponent},defaultFontFamily:"Roboto, sans-serif",fontFaces:[{family:"Roboto",source:["$cdnUrl/brand/paypal_shipcenter/fonts/Roboto/Roboto-Regular.ttf"],descriptors:{weight:"400",style:"normal"}},{family:"Roboto",source:["$cdnUrl/brand/paypal_shipcenter/fonts/Roboto/Roboto-Medium.ttf"],descriptors:{weight:"500",style:"normal"}},{family:"Roboto",source:["$cdnUrl/brand/paypal_shipcenter/fonts/Roboto/Roboto-Bold.ttf"],descriptors:{weight:"700",style:"normal"}}]};Xc.paypal_shipcenter=jd;var zc={},Uc={};const Nd=e=>({heading1:{fontSize:e.typography.fontSize.XXXXL,fontWeight:e.typography.fontWeight.light,lineHeight:e.typography.lineHeight.XXXL,letterSpacing:e.typography.letterSpacing.S},heading2:{fontSize:e.typography.fontSize.XXXL,fontWeight:e.typography.fontWeight.light,lineHeight:e.typography.lineHeight.XXL,letterSpacing:e.typography.letterSpacing.M},heading3:{fontSize:e.typography.fontSize.XXL,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.XL,letterSpacing:e.typography.letterSpacing.L},heading4:{fontSize:e.typography.fontSize.XL,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.M,letterSpacing:e.typography.letterSpacing.L},heading5:{fontSize:e.typography.fontSize.XL,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.L,letterSpacing:e.typography.letterSpacing.L},heading6:{fontSize:e.typography.fontSize.XL,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.L,letterSpacing:e.typography.letterSpacing.L},subtitle1:{fontSize:e.typography.fontSize.M,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.M,letterSpacing:e.typography.letterSpacing.L},subtitle2:{fontSize:e.typography.fontSize.M,fontWeight:e.typography.fontWeight.semibold,lineHeight:e.typography.lineHeight.M,letterSpacing:e.typography.letterSpacing.XL},body1:{fontSize:e.typography.fontSize.M,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.M,letterSpacing:e.typography.letterSpacing.M},body2:{fontSize:e.typography.fontSize.S,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.S,letterSpacing:e.typography.letterSpacing.L},small:{fontSize:e.typography.fontSize.S,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.S,letterSpacing:e.typography.letterSpacing.XL}});Uc.createThemeTypographyComponent=Nd;var Gd=Uc;const Xd={palette:{primary:{main:"#3C64F4",light:"#DBE3FE",ultraLight:"#F0F3FF",dark:"#0024A6"},secondary:{main:"#3C64F4",light:"#DBE3FE",ultraLight:"#F0F3FF",dark:"#0024A6"},error:{main:"#80000B",light:"#FFF0F1"},success:{main:"#004D0D",light:"#EEFCF0"},alert:{main:"#CC720A",light:"#FFF9E5"},info:{main:"#0024A6",light:"#F0F3FF"},gray:{dark:"#313440",main:"#5E637A",light:"#D9DCED",ultraLight:"#F6F7FC"}},typography:{fontWeight:{light:200,normal:400,semibold:600,bold:700},lineHeight:{S:"20px",M:"24px",L:"28px",XL:"32px",XXL:"40px",XXXL:"60px"}},elevations:{flat1:{boxShadow:"0px 0px 0px rgba(32, 36, 44, 0.25)",zIndex:1},flat2:{boxShadow:"0px 0px 0px rgba(32, 36, 44, 0.25)",zIndex:1e3},above:{boxShadow:"0px 1px 6px rgba(49, 52, 64, 0.2)",zIndex:1e3},raised:{boxShadow:"0px 1px 6px rgba(49, 52, 64, 0.2)",zIndex:1002},raisedInverted1:{boxShadow:"0px -1px 6px rgba(49, 52, 64, 0.2)",zIndex:1002},raisedInverted2:{boxShadow:"0px -1px 6px rgba(49, 52, 64, 0.2)",zIndex:1003},popout1:{boxShadow:"0px 2px 12px rgba(49, 52, 64, 0.2)",zIndex:1004},popout2:{boxShadow:"0px 2px 12px rgba(49, 52, 64, 0.2)",zIndex:1005},overlay1:{boxShadow:"0px 2px 12px rgba(49, 52, 64, 0.2)",zIndex:1006},overlay2:{boxShadow:"0px 2px 12px rgba(49, 52, 64, 0.2)",zIndex:1008}},components:{Typography:Gd.createThemeTypographyComponent},defaultFontFamily:"SourceSansPro, sans-serif",fontFaces:[{family:"SourceSansPro",source:["$cdnUrl/brand/bigcommerce/fonts/SourceSansPro/SourceSansPro-ExtraLight.ttf"],descriptors:{weight:"200",style:"normal"}},{family:"SourceSansPro",source:["$cdnUrl/brand/bigcommerce/fonts/SourceSansPro/SourceSansPro-Regular.ttf"],descriptors:{weight:"400",style:"normal"}},{family:"SourceSansPro",source:["$cdnUrl/brand/bigcommerce/fonts/SourceSansPro/SourceSansPro-SemiBold.ttf"],descriptors:{weight:"600",style:"normal"}},{family:"SourceSansPro",source:["$cdnUrl/brand/bigcommerce/fonts/SourceSansPro/SourceSansPro-Bold.ttf"],descriptors:{weight:"700",style:"normal"}}]};zc.bigcommerce=Xd;var Vc={},Zc={};const Hd=e=>({heading1:{fontSize:e.typography.fontSize.XXXL,fontWeight:e.typography.fontWeight.bold,lineHeight:e.typography.lineHeight.XXXL,letterSpacing:e.typography.letterSpacing.M},heading2:{fontSize:e.typography.fontSize.XXL,fontWeight:e.typography.fontWeight.semibold,lineHeight:e.typography.lineHeight.XXL,letterSpacing:e.typography.letterSpacing.L},heading3:{fontSize:e.typography.fontSize.XL,fontWeight:e.typography.fontWeight.semibold,lineHeight:e.typography.lineHeight.XL,letterSpacing:e.typography.letterSpacing.L},heading4:{fontSize:e.typography.fontSize.L,fontWeight:e.typography.fontWeight.bold,lineHeight:e.typography.lineHeight.L,letterSpacing:e.typography.letterSpacing.L},heading5:{fontSize:"",fontWeight:0,lineHeight:"",letterSpacing:0},heading6:{fontSize:"",fontWeight:0,lineHeight:"",letterSpacing:0},subtitle1:{fontSize:e.typography.fontSize.M,fontWeight:e.typography.fontWeight.semibold,lineHeight:e.typography.lineHeight.M,letterSpacing:e.typography.letterSpacing.L},subtitle2:{fontSize:e.typography.fontSize.S,fontWeight:e.typography.fontWeight.semibold,lineHeight:e.typography.lineHeight.S,letterSpacing:e.typography.letterSpacing.XL},body1:{fontSize:e.typography.fontSize.M,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.M,letterSpacing:e.typography.letterSpacing.S},body2:{fontSize:e.typography.fontSize.S,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.S,letterSpacing:e.typography.letterSpacing.L},small:{fontSize:e.typography.fontSize.XS,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.S,letterSpacing:e.typography.letterSpacing.XL}});Zc.createThemeTypographyComponent=Hd;var Md=Zc;const zd={palette:{primary:{main:"#5f27cd",light:"#d0Bff3",ultraLight:"#f0eafb",dark:"#451d96"},secondary:{main:"#352beb",light:"#e9f0fb",ultraLight:"#f8fcff",dark:"#152947"},error:{main:"#b20000",light:"#ffe5e6"},success:{main:"#136c50",light:"#e1faf2"},alert:{main:"#7c5a04",light:"#fef0cd"},info:{main:"#0c66a7",light:"#e7f4fd"},gray:{dark:"#44546c",main:"#707c8f",light:"#9ba4b0",ultraLight:"#d4d8dd"}},typography:{fontWeight:{light:300,normal:400,semibold:500,bold:700},lineHeight:{S:"20px",M:"24px",L:"28px",XL:"32px",XXL:"36px",XXXL:"48px"}},components:{Typography:Md.createThemeTypographyComponent},defaultFontFamily:"Roboto, sans-serif",fontFaces:[{family:"Roboto",source:["$cdnUrl/brand/shipengine_dashboard/fonts/Roboto/Roboto-Regular.woff2"],descriptors:{weight:"400",style:"normal"}},{family:"Roboto",source:["$cdnUrl/brand/shipengine_dashboard/fonts/Roboto/Roboto-Medium.woff2"],descriptors:{weight:"500",style:"normal"}},{family:"Roboto",source:["$cdnUrl/brand/shipengine_dashboard/fonts/Roboto/Roboto-Bold.woff2"],descriptors:{weight:"700",style:"normal"}}]};Vc.shipengine_dashboard=zd;var ri={},qc={};const Ud=e=>({backgroundColor:e.palette.gray.ultraLight,border:"none",borderRadius:e.borderRadius.L,color:e.palette.gray.main,fontWeight:e.typography.fontWeight.semibold,padding:`${e.spacing(.5)}px ${e.spacing(2)}px`,isSelected:{backgroundColor:e.palette.primary.ultraLight,color:e.palette.primary.main}});qc.createThemeChipComponent=Ud;var Yc={};const Vd=e=>({defaultColor:e.palette.secondary.main,visitedColor:e.palette.secondary.dark,hoverColor:e.palette.secondary.dark,activeColor:e.palette.secondary.light,isDark:{defaultColor:e.palette.white,visitedColor:e.palette.white,hoverColor:e.palette.white,activeColor:e.palette.secondary.light}});Yc.createThemeLinkComponent=Vd;var Jc={};const Zd=e=>({borderRadius:e.borderRadius.S});Jc.createThemeButtonComponent=Zd;var Kc={};const qd=e=>({heading1:{fontSize:e.typography.fontSize.XXXXL,fontWeight:e.typography.fontWeight.bold,lineHeight:e.typography.lineHeight.XXXL,letterSpacing:e.typography.letterSpacing.S},heading2:{fontSize:e.typography.fontSize.XXXL,fontWeight:e.typography.fontWeight.bold,lineHeight:e.typography.lineHeight.XXL,letterSpacing:e.typography.letterSpacing.M},heading3:{fontSize:e.typography.fontSize.XXL,fontWeight:e.typography.fontWeight.bold,lineHeight:e.typography.lineHeight.XXL,letterSpacing:e.typography.letterSpacing.L},heading4:{fontSize:e.typography.fontSize.XL,fontWeight:e.typography.fontWeight.bold,lineHeight:e.typography.lineHeight.XL,letterSpacing:e.typography.letterSpacing.L},heading5:{fontSize:e.typography.fontSize.L,fontWeight:e.typography.fontWeight.bold,lineHeight:e.typography.lineHeight.L,letterSpacing:e.typography.letterSpacing.L},heading6:{fontSize:e.typography.fontSize.M,fontWeight:e.typography.fontWeight.bold,lineHeight:e.typography.lineHeight.M,letterSpacing:e.typography.letterSpacing.L},subtitle1:{fontSize:e.typography.fontSize.M,fontWeight:e.typography.fontWeight.semibold,lineHeight:e.typography.lineHeight.M,letterSpacing:e.typography.letterSpacing.L},subtitle2:{fontSize:e.typography.fontSize.S,fontWeight:e.typography.fontWeight.semibold,lineHeight:e.typography.lineHeight.S,letterSpacing:e.typography.letterSpacing.XL},body1:{fontSize:e.typography.fontSize.M,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.M,letterSpacing:e.typography.letterSpacing.S},body2:{fontSize:e.typography.fontSize.S,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.S,letterSpacing:e.typography.letterSpacing.L},small:{fontSize:e.typography.fontSize.XS,fontWeight:e.typography.fontWeight.normal,lineHeight:e.typography.lineHeight.S,letterSpacing:e.typography.letterSpacing.XL}});Kc.createThemeTypographyComponent=qd;var Qc={};const Yd=e=>({action:{justifyContent:"center"},content:{textAlign:"center",padding:e.spacing(3)},dialog:{backgroundColor:e.toRGBA(e.palette.black,.26),borderRadius:e.borderRadius.S},header:{borderBottom:`2px solid ${e.palette.gray.ultraLight}`,padding:e.spacing(3),titleColor:e.palette.secondary.main}});Qc.createThemeDialogComponent=Yd;var el={};const Jd=e=>({borderRadius:e.borderRadius.XS,square:!1});el.createThemeCheckboxComponent=Jd;var tl={};const Kd=e=>({fontWeight:e.typography.fontWeight.bold,color:e.palette.gray.dark});tl.createThemeFieldComponent=Kd;var rl={};const Qd=e=>({borderRadius:e.borderRadius.S});rl.createThemeFieldContainerComponent=Qd;var eh=qc,th=Yc,rh=Jc,nh=Kc,ah=Qc,ih=el,oh=tl,sh=rl;const uh={palette:{primary:{ultraLight:"#EDEDED",light:"#D6D6D6",main:"#7A7A7A",dark:"#626262"},secondary:{ultraLight:"#F4F4F4",light:"#787878",main:"#616161",dark:"#303030"},error:{main:"#a72514",light:"#fee5e4"},success:{main:"#286327",light:"#dcfddb"},alert:{main:"#725200",light:"#ffe7ca"},info:{main:"#195f7f",light:"#dbedfd"},gray:{main:"#706f6f",light:"#d3d3d3",ultraLight:"#f4f4f4",megaLight:"#fafafa",dark:"#373737"},black:"#000",white:"#fff",dataVisualization:{highContrast:{blueDark:"#002039",coral:"#F95D6A",purpleDark:"#665191",orange:"#FFA600",purple:"#A05195",orangeDark:"#FF7C43",blue:"#3970C1",cyan:"#45CEE0",pink:"#D12771",green:"#B3D849"},lowContrast:{blueDark:"#5283AB",coral:"#FCA6AD",purpleDark:"#B1A2D0",orange:"#FDDFA5",purple:"#D4BBFF",orangeDark:"#FCC2A9",blue:"#96B3DE",cyan:"#BAE6FF",pink:"#E995BA",green:"#DEF895"}}},spacingBase:8,borderRadius:{XS:"2px",S:"4px",M:"8px",L:"16px",XL:"32px"},breakPoints:{mobileLarge:480,tablet:768,tabletLarge:960,desktop:1280},typography:{fontWeight:{light:200,normal:400,semibold:600,bold:700},fontSize:{XXS:"10px",XS:"12px",S:"14px",M:"16px",L:"18px",XL:"20px",XXL:"24px",XXXL:"32px",XXXXL:"48px"},lineHeight:{S:"20px",M:"24px",L:"28px",XL:"32px",XXL:"48px",XXXL:"72px"},letterSpacing:{S:0,M:1,L:3,XL:5,XXL:8,XXXL:12}},card:{borderRadius:{mobile:"4px",tablet:"8px",desktop:"8px"}},elevations:{flat1:{boxShadow:"0 2px 2px rgba(0, 0, 0, 0.1)",zIndex:1},flat2:{boxShadow:"0 2px 2px rgba(0, 0, 0, 0.1)",zIndex:1e3},above:{boxShadow:"0 0 12px rgba(0, 0, 0, 0.1)",zIndex:1e3},sticky:{boxShadow:"none",zIndex:1001},raised:{boxShadow:"0 8px 8px rgba(0, 0, 0, 0.1)",zIndex:1002},raisedInverted1:{boxShadow:"0 -8px 8px rgba(0, 0, 0, 0.1)",zIndex:1002},raisedInverted2:{boxShadow:"0 -8px 8px rgba(0, 0, 0, 0.1)",zIndex:1003},popout1:{boxShadow:"0 4px 16px rgba(0, 0, 0, 0.1)",zIndex:1004},popout2:{boxShadow:"0 4px 16px rgba(0, 0, 0, 0.1)",zIndex:1005},overlay1:{boxShadow:"0 0 24px rgba(0, 0, 0, 0.1)",zIndex:1006},backdrop:{boxShadow:"none",zIndex:1007},overlay2:{boxShadow:"0 0 24px rgba(0, 0, 0, 0.1)",zIndex:1008}},grid:{mobile:{columns:4,horizontalSpace:16,verticalSpace:16,gutter:16},mobileLarge:{columns:4,horizontalSpace:16,verticalSpace:16,gutter:16},tablet:{columns:12,horizontalSpace:16,verticalSpace:24,gutter:24},tabletLarge:{columns:12,horizontalSpace:16,verticalSpace:24,gutter:24},desktop:{columns:12,horizontalSpace:16,verticalSpace:24,gutter:24},desktopLarge:{columns:12,horizontalSpace:16,verticalSpace:24,gutter:24}},components:{Chip:eh.createThemeChipComponent,Link:th.createThemeLinkComponent,Button:rh.createThemeButtonComponent,Dialog:ah.createThemeDialogComponent,Typography:nh.createThemeTypographyComponent,Checkbox:ih.createThemeCheckboxComponent,Field:oh.createThemeFieldComponent,FieldContainer:sh.createThemeFieldContainerComponent},defaultFontFamily:"Arial",fontFaces:[],iconSize:{small:"16px",medium:"20px",regular:"24px",large:"32px"}};ri.fallback=uh;var ch=wc,lh=Rc,fh=Tc,gh=ti,ph=kc,dh=Bc,hh=Xc,yh=zc,vh=Vc,Ch=ri;Le.packlink_cons=ch.packlink_cons;Le.packlink_pro=lh.packlink_pro;Le.dpd=fh.dpd;Le.ebay=gh.ebay;Le.ebay_it=ph.ebay_it;Le.paypal=dh.paypal;Le.paypal_shipcenter=hh.paypal_shipcenter;Le.bigcommerce=yh.bigcommerce;Le.shipengine_dashboard=vh.shipengine_dashboard;Le.fallback=Ch.fallback;function Re(e){return Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(e)}function Ah(e,t){if(Re(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Re(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nl(e){var t=Ah(e,"string");return Re(t)==="symbol"?t:String(t)}function te(e,t,r){return t=nl(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var al={};(function(e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,r=e.aliasToReal,n={};for(var a in r){var i=r[a];t.call(n,i)?n[i].push(a):n[i]=[a]}return n}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}})(al);var un,uo;function il(){return uo||(uo=1,un={}),un}var ie=al,bh=il(),co=Array.prototype.push;function mh(e,t){return t==2?function(r,n){return e.apply(void 0,arguments)}:function(r){return e.apply(void 0,arguments)}}function cn(e,t){return t==2?function(r,n){return e(r,n)}:function(r){return e(r)}}function lo(e){for(var t=e?e.length:0,r=Array(t);t--;)r[t]=e[t];return r}function Ih(e){return function(t){return e({},t)}}function Sh(e,t){return function(){for(var r=arguments.length,n=r-1,a=Array(r);r--;)a[r]=arguments[r];var i=a[t],o=a.slice(0,t);return i&&co.apply(o,i),t!=n&&co.apply(o,a.slice(t+1)),e.apply(this,o)}}function ln(e,t){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var a=n[0]=t.apply(void 0,n);return e.apply(void 0,n),a}}}function ka(e,t,r,n){var a=typeof t=="function",i=t===Object(t);if(i&&(n=r,r=t,t=void 0),r==null)throw new TypeError;n||(n={});var o={cap:"cap"in n?n.cap:!0,curry:"curry"in n?n.curry:!0,fixed:"fixed"in n?n.fixed:!0,immutable:"immutable"in n?n.immutable:!0,rearg:"rearg"in n?n.rearg:!0},s=a?r:bh,u="curry"in n&&n.curry,f="fixed"in n&&n.fixed,g="rearg"in n&&n.rearg,c=a?r.runInContext():void 0,p=a?r:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},h=p.ary,v=p.assign,m=p.clone,b=p.curry,y=p.forEach,A=p.isArray,x=p.isError,I=p.isFunction,S=p.isWeakMap,D=p.keys,$=p.rearg,N=p.toInteger,ne=p.toPath,W=D(ie.aryMethod),F={castArray:function(E){return function(){var _=arguments[0];return A(_)?E(lo(_)):E.apply(void 0,arguments)}},iteratee:function(E){return function(){var _=arguments[0],w=arguments[1],P=E(_,w),B=P.length;return o.cap&&typeof w=="number"?(w=w>2?w-2:1,B&&B<=w?P:cn(P,w)):P}},mixin:function(E){return function(_){var w=this;if(!I(w))return E(w,Object(_));var P=[];return y(D(_),function(B){I(_[B])&&P.push([B,w.prototype[B]])}),E(w,Object(_)),y(P,function(B){var V=B[1];I(V)?w.prototype[B[0]]=V:delete w.prototype[B[0]]}),w}},nthArg:function(E){return function(_){var w=_<0?1:N(_)+1;return b(E(_),w)}},rearg:function(E){return function(_,w){var P=w?w.length:0;return b(E(_,w),P)}},runInContext:function(E){return function(_){return ka(e,E(_),n)}}};function q(E,_){if(o.cap){var w=ie.iterateeRearg[E];if(w)return Ye(_,w);var P=!a&&ie.iterateeAry[E];if(P)return Xe(_,P)}return _}function oe(E,_,w){return u||o.curry&&w>1?b(_,w):_}function ee(E,_,w){if(o.fixed&&(f||!ie.skipFixed[E])){var P=ie.methodSpread[E],B=P&&P.start;return B===void 0?h(_,w):Sh(_,B)}return _}function Ge(E,_,w){return o.rearg&&w>1&&(g||!ie.skipRearg[E])?$(_,ie.methodRearg[E]||ie.aryRearg[w]):_}function Pe(E,_){_=ne(_);for(var w=-1,P=_.length,B=P-1,V=m(Object(E)),K=V;K!=null&&++w<P;){var O=_[w],ae=K[O];ae!=null&&!(I(ae)||x(ae)||S(ae))&&(K[O]=m(w==B?ae:Object(ae))),K=K[O]}return V}function _e(E){return k.runInContext.convert(E)(void 0)}function Fe(E,_){var w=ie.aliasToReal[E]||E,P=ie.remap[w]||w,B=n;return function(V){var K=a?c:p,O=a?c[P]:_,ae=v(v({},B),V);return ka(K,w,O,ae)}}function Xe(E,_){return Ae(E,function(w){return typeof w=="function"?cn(w,_):w})}function Ye(E,_){return Ae(E,function(w){var P=_.length;return mh($(cn(w,P),_),P)})}function Ae(E,_){return function(){var w=arguments.length;if(!w)return E();for(var P=Array(w);w--;)P[w]=arguments[w];var B=o.rearg?0:w-1;return P[B]=_(P[B]),E.apply(void 0,P)}}function Je(E,_,w){var P,B=ie.aliasToReal[E]||E,V=_,K=F[B];return K?V=K(_):o.immutable&&(ie.mutate.array[B]?V=ln(_,lo):ie.mutate.object[B]?V=ln(_,Ih(_)):ie.mutate.set[B]&&(V=ln(_,Pe))),y(W,function(O){return y(ie.aryMethod[O],function(ae){if(B==ae){var be=ie.methodSpread[B],ft=be&&be.afterRearg;return P=ft?ee(B,Ge(B,V,O),O):Ge(B,ee(B,V,O),O),P=q(B,P),P=oe(B,P,O),!1}}),!P}),P||(P=V),P==_&&(P=u?b(P,1):function(){return _.apply(this,arguments)}),P.convert=Fe(B,_),P.placeholder=_.placeholder=w,P}if(!i)return Je(t,r,s);var k=r,ue=[];return y(W,function(E){y(ie.aryMethod[E],function(_){var w=k[ie.remap[_]||_];w&&ue.push([_,Je(_,w,k)])})}),y(D(k),function(E){var _=k[E];if(typeof _=="function"){for(var w=ue.length;w--;)if(ue[w][0]==E)return;_.convert=Fe(E,_),ue.push([E,_])}}),y(ue,function(E){k[E[0]]=E[1]}),k.convert=_e,k.placeholder=k,y(D(k),function(E){y(ie.realToAlias[E]||[],function(_){k[_]=k[E]})}),k}var _h=ka;function xh(e){return e}var Tr=xh,Oh=typeof Qe=="object"&&Qe&&Qe.Object===Object&&Qe,ol=Oh,wh=ol,Rh=typeof self=="object"&&self&&self.Object===Object&&self,Lh=wh||Rh||Function("return this")(),ge=Lh,Th=ge,Eh=Th.Symbol,St=Eh,fo=St,sl=Object.prototype,$h=sl.hasOwnProperty,Ph=sl.toString,Rt=fo?fo.toStringTag:void 0;function Fh(e){var t=$h.call(e,Rt),r=e[Rt];try{e[Rt]=void 0;var n=!0}catch{}var a=Ph.call(e);return n&&(t?e[Rt]=r:delete e[Rt]),a}var Dh=Fh,kh=Object.prototype,Bh=kh.toString;function Wh(e){return Bh.call(e)}var jh=Wh,go=St,Nh=Dh,Gh=jh,Xh="[object Null]",Hh="[object Undefined]",po=go?go.toStringTag:void 0;function Mh(e){return e==null?e===void 0?Hh:Xh:po&&po in Object(e)?Nh(e):Gh(e)}var ct=Mh;function zh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Te=zh,Uh=ct,Vh=Te,Zh="[object AsyncFunction]",qh="[object Function]",Yh="[object GeneratorFunction]",Jh="[object Proxy]";function Kh(e){if(!Vh(e))return!1;var t=Uh(e);return t==qh||t==Yh||t==Zh||t==Jh}var Er=Kh,Qh=ge,ey=Qh["__core-js_shared__"],ty=ey,fn=ty,ho=function(){var e=/[^.]+$/.exec(fn&&fn.keys&&fn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ry(e){return!!ho&&ho in e}var ny=ry,ay=Function.prototype,iy=ay.toString;function oy(e){if(e!=null){try{return iy.call(e)}catch{}try{return e+""}catch{}}return""}var ul=oy,sy=Er,uy=ny,cy=Te,ly=ul,fy=/[\\^$.*+?()[\]{}|]/g,gy=/^\[object .+?Constructor\]$/,py=Function.prototype,dy=Object.prototype,hy=py.toString,yy=dy.hasOwnProperty,vy=RegExp("^"+hy.call(yy).replace(fy,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Cy(e){if(!cy(e)||uy(e))return!1;var t=sy(e)?vy:gy;return t.test(ly(e))}var Ay=Cy;function by(e,t){return e?.[t]}var my=by,Iy=Ay,Sy=my;function _y(e,t){var r=Sy(e,t);return Iy(r)?r:void 0}var lt=_y,xy=lt,Oy=ge,wy=xy(Oy,"WeakMap"),cl=wy,yo=cl,Ry=yo&&new yo,ll=Ry,Ly=Tr,vo=ll,Ty=vo?function(e,t){return vo.set(e,t),e}:Ly,fl=Ty,Ey=Te,Co=Object.create,$y=function(){function e(){}return function(t){if(!Ey(t))return{};if(Co)return Co(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),$r=$y,Py=$r,Fy=Te;function Dy(e){return function(){var t=arguments;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]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Py(e.prototype),n=e.apply(r,t);return Fy(n)?n:r}}var Pr=Dy,ky=Pr,By=ge,Wy=1;function jy(e,t,r){var n=t&Wy,a=ky(e);function i(){var o=this&&this!==By&&this instanceof i?a:e;return o.apply(n?r:this,arguments)}return i}var Ny=jy;function Gy(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var ni=Gy,Xy=Math.max;function Hy(e,t,r,n){for(var a=-1,i=e.length,o=r.length,s=-1,u=t.length,f=Xy(i-o,0),g=Array(u+f),c=!n;++s<u;)g[s]=t[s];for(;++a<o;)(c||a<i)&&(g[r[a]]=e[a]);for(;f--;)g[s++]=e[a++];return g}var gl=Hy,My=Math.max;function zy(e,t,r,n){for(var a=-1,i=e.length,o=-1,s=r.length,u=-1,f=t.length,g=My(i-s,0),c=Array(g+f),p=!n;++a<g;)c[a]=e[a];for(var h=a;++u<f;)c[h+u]=t[u];for(;++o<s;)(p||a<i)&&(c[h+r[o]]=e[a++]);return c}var pl=zy;function Uy(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Vy=Uy;function Zy(){}var ai=Zy,qy=$r,Yy=ai,Jy=4294967295;function dr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Jy,this.__views__=[]}dr.prototype=qy(Yy.prototype);dr.prototype.constructor=dr;var ii=dr;function Ky(){}var Qy=Ky,Ao=ll,ev=Qy,tv=Ao?function(e){return Ao.get(e)}:ev,dl=tv,rv={},nv=rv,bo=nv,av=Object.prototype,iv=av.hasOwnProperty;function ov(e){for(var t=e.name+"",r=bo[t],n=iv.call(bo,t)?r.length:0;n--;){var a=r[n],i=a.func;if(i==null||i==e)return a.name}return t}var sv=ov,uv=$r,cv=ai;function hr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}hr.prototype=uv(cv.prototype);hr.prototype.constructor=hr;var hl=hr,lv=Array.isArray,pe=lv;function fv(e){return e!=null&&typeof e=="object"}var Se=fv;function gv(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var jt=gv,pv=ii,dv=hl,hv=jt;function yv(e){if(e instanceof pv)return e.clone();var t=new dv(e.__wrapped__,e.__chain__);return t.__actions__=hv(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var vv=yv,Cv=ii,mo=hl,Av=ai,bv=pe,mv=Se,Iv=vv,Sv=Object.prototype,_v=Sv.hasOwnProperty;function yr(e){if(mv(e)&&!bv(e)&&!(e instanceof Cv)){if(e instanceof mo)return e;if(_v.call(e,"__wrapped__"))return Iv(e)}return new mo(e)}yr.prototype=Av.prototype;yr.prototype.constructor=yr;var xv=yr,Ov=ii,wv=dl,Rv=sv,Lv=xv;function Tv(e){var t=Rv(e),r=Lv[t];if(typeof r!="function"||!(t in Ov.prototype))return!1;if(e===r)return!0;var n=wv(r);return!!n&&e===n[0]}var Ev=Tv,$v=800,Pv=16,Fv=Date.now;function Dv(e){var t=0,r=0;return function(){var n=Fv(),a=Pv-(n-r);if(r=n,a>0){if(++t>=$v)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var yl=Dv,kv=fl,Bv=yl,Wv=Bv(kv),vl=Wv,jv=/\{\n\/\* \[wrapped with (.+)\] \*/,Nv=/,? & /;function Gv(e){var t=e.match(jv);return t?t[1].split(Nv):[]}var Xv=Gv,Hv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Mv(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(Hv,`{
|
|
27
|
-
/* [wrapped with `+t+`] */
|
|
28
|
-
`)}var zv=Mv;function Uv(e){return function(){return e}}var Vv=Uv,Zv=lt,qv=function(){try{var e=Zv(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Cl=qv,Yv=Vv,Io=Cl,Jv=Tr,Kv=Io?function(e,t){return Io(e,"toString",{configurable:!0,enumerable:!1,value:Yv(t),writable:!0})}:Jv,Qv=Kv,eC=Qv,tC=yl,rC=tC(eC),oi=rC;function nC(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var si=nC;function aC(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var iC=aC;function oC(e){return e!==e}var sC=oC;function uC(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}var cC=uC,lC=iC,fC=sC,gC=cC;function pC(e,t,r){return t===t?gC(e,t,r):lC(e,fC,r)}var dC=pC,hC=dC;function yC(e,t){var r=e==null?0:e.length;return!!r&&hC(e,t,0)>-1}var vC=yC,CC=si,AC=vC,bC=1,mC=2,IC=8,SC=16,_C=32,xC=64,OC=128,wC=256,RC=512,LC=[["ary",OC],["bind",bC],["bindKey",mC],["curry",IC],["curryRight",SC],["flip",RC],["partial",_C],["partialRight",xC],["rearg",wC]];function TC(e,t){return CC(LC,function(r){var n="_."+r[0];t&r[1]&&!AC(e,n)&&e.push(n)}),e.sort()}var EC=TC,$C=Xv,PC=zv,FC=oi,DC=EC;function kC(e,t,r){var n=t+"";return FC(e,PC(n,DC($C(n),r)))}var Al=kC,BC=Ev,WC=vl,jC=Al,NC=1,GC=2,XC=4,HC=8,So=32,_o=64;function MC(e,t,r,n,a,i,o,s,u,f){var g=t&HC,c=g?o:void 0,p=g?void 0:o,h=g?i:void 0,v=g?void 0:i;t|=g?So:_o,t&=~(g?_o:So),t&XC||(t&=~(NC|GC));var m=[e,t,a,h,c,v,p,s,u,f],b=r.apply(void 0,m);return BC(e)&&WC(b,m),b.placeholder=n,jC(b,e,t)}var bl=MC;function zC(e){var t=e;return t.placeholder}var ml=zC,UC=9007199254740991,VC=/^(?:0|[1-9]\d*)$/;function ZC(e,t){var r=typeof e;return t=t??UC,!!t&&(r=="number"||r!="symbol"&&VC.test(e))&&e>-1&&e%1==0&&e<t}var Fr=ZC,qC=jt,YC=Fr,JC=Math.min;function KC(e,t){for(var r=e.length,n=JC(t.length,r),a=qC(e);n--;){var i=t[n];e[n]=YC(i,r)?a[i]:void 0}return e}var QC=KC,xo="__lodash_placeholder__";function eA(e,t){for(var r=-1,n=e.length,a=0,i=[];++r<n;){var o=e[r];(o===t||o===xo)&&(e[r]=xo,i[a++]=r)}return i}var ui=eA,tA=gl,rA=pl,nA=Vy,Oo=Pr,aA=bl,iA=ml,oA=QC,sA=ui,uA=ge,cA=1,lA=2,fA=8,gA=16,pA=128,dA=512;function Il(e,t,r,n,a,i,o,s,u,f){var g=t&pA,c=t&cA,p=t&lA,h=t&(fA|gA),v=t&dA,m=p?void 0:Oo(e);function b(){for(var y=arguments.length,A=Array(y),x=y;x--;)A[x]=arguments[x];if(h)var I=iA(b),S=nA(A,I);if(n&&(A=tA(A,n,a,h)),i&&(A=rA(A,i,o,h)),y-=S,h&&y<f){var D=sA(A,I);return aA(e,t,Il,b.placeholder,r,A,D,s,u,f-y)}var $=c?r:this,N=p?$[e]:e;return y=A.length,s?A=oA(A,s):v&&y>1&&A.reverse(),g&&u<y&&(A.length=u),this&&this!==uA&&this instanceof b&&(N=m||Oo(N)),N.apply($,A)}return b}var Sl=Il,hA=ni,yA=Pr,vA=Sl,CA=bl,AA=ml,bA=ui,mA=ge;function IA(e,t,r){var n=yA(e);function a(){for(var i=arguments.length,o=Array(i),s=i,u=AA(a);s--;)o[s]=arguments[s];var f=i<3&&o[0]!==u&&o[i-1]!==u?[]:bA(o,u);if(i-=f.length,i<r)return CA(e,t,vA,a.placeholder,void 0,o,f,void 0,void 0,r-i);var g=this&&this!==mA&&this instanceof a?n:e;return hA(g,this,o)}return a}var SA=IA,_A=ni,xA=Pr,OA=ge,wA=1;function RA(e,t,r,n){var a=t&wA,i=xA(e);function o(){for(var s=-1,u=arguments.length,f=-1,g=n.length,c=Array(g+u),p=this&&this!==OA&&this instanceof o?i:e;++f<g;)c[f]=n[f];for(;u--;)c[f++]=arguments[++s];return _A(p,a?r:this,c)}return o}var LA=RA,TA=gl,EA=pl,wo=ui,Ro="__lodash_placeholder__",gn=1,$A=2,PA=4,Lo=8,Lt=128,To=256,FA=Math.min;function DA(e,t){var r=e[1],n=t[1],a=r|n,i=a<(gn|$A|Lt),o=n==Lt&&r==Lo||n==Lt&&r==To&&e[7].length<=t[8]||n==(Lt|To)&&t[7].length<=t[8]&&r==Lo;if(!(i||o))return e;n&gn&&(e[2]=t[2],a|=r&gn?0:PA);var s=t[3];if(s){var u=e[3];e[3]=u?TA(u,s,t[4]):s,e[4]=u?wo(e[3],Ro):t[4]}return s=t[5],s&&(u=e[5],e[5]=u?EA(u,s,t[6]):s,e[6]=u?wo(e[5],Ro):t[6]),s=t[7],s&&(e[7]=s),n&Lt&&(e[8]=e[8]==null?t[8]:FA(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}var kA=DA,BA=/\s/;function WA(e){for(var t=e.length;t--&&BA.test(e.charAt(t)););return t}var jA=WA,NA=jA,GA=/^\s+/;function XA(e){return e&&e.slice(0,NA(e)+1).replace(GA,"")}var HA=XA,MA=ct,zA=Se,UA="[object Symbol]";function VA(e){return typeof e=="symbol"||zA(e)&&MA(e)==UA}var Nt=VA,ZA=HA,Eo=Te,qA=Nt,$o=0/0,YA=/^[-+]0x[0-9a-f]+$/i,JA=/^0b[01]+$/i,KA=/^0o[0-7]+$/i,QA=parseInt;function eb(e){if(typeof e=="number")return e;if(qA(e))return $o;if(Eo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Eo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ZA(e);var r=JA.test(e);return r||KA.test(e)?QA(e.slice(2),r?2:8):YA.test(e)?$o:+e}var tb=eb,rb=tb,Po=1/0,nb=17976931348623157e292;function ab(e){if(!e)return e===0?e:0;if(e=rb(e),e===Po||e===-Po){var t=e<0?-1:1;return t*nb}return e===e?e:0}var ib=ab,ob=ib;function sb(e){var t=ob(e),r=t%1;return t===t?r?t-r:t:0}var _l=sb,ub=fl,cb=Ny,lb=SA,fb=Sl,gb=LA,pb=dl,db=kA,hb=vl,yb=Al,Fo=_l,vb="Expected a function",Do=1,Cb=2,pn=8,dn=16,hn=32,ko=64,Bo=Math.max;function Ab(e,t,r,n,a,i,o,s){var u=t&Cb;if(!u&&typeof e!="function")throw new TypeError(vb);var f=n?n.length:0;if(f||(t&=~(hn|ko),n=a=void 0),o=o===void 0?o:Bo(Fo(o),0),s=s===void 0?s:Fo(s),f-=a?a.length:0,t&ko){var g=n,c=a;n=a=void 0}var p=u?void 0:pb(e),h=[e,t,r,n,a,g,c,i,o,s];if(p&&db(h,p),e=h[0],t=h[1],r=h[2],n=h[3],a=h[4],s=h[9]=h[9]===void 0?u?0:e.length:Bo(h[9]-f,0),!s&&t&(pn|dn)&&(t&=~(pn|dn)),!t||t==Do)var v=cb(e,t,r);else t==pn||t==dn?v=lb(e,t,s):(t==hn||t==(Do|hn))&&!a.length?v=gb(e,t,r,n):v=fb.apply(void 0,h);var m=p?ub:hb;return yb(m(v,h),e,t)}var ci=Ab,bb=ci,mb=128;function Ib(e,t,r){return t=r?void 0:t,t=e&&t==null?e.length:t,bb(e,mb,void 0,void 0,void 0,void 0,t)}var Sb=Ib,Wo=Cl;function _b(e,t,r){t=="__proto__"&&Wo?Wo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var li=_b,yn,jo;function Gt(){if(jo)return yn;jo=1;function e(t,r){return t===r||t!==t&&r!==r}return yn=e,yn}var xb=li,Ob=Gt(),wb=Object.prototype,Rb=wb.hasOwnProperty;function Lb(e,t,r){var n=e[t];(!(Rb.call(e,t)&&Ob(n,r))||r===void 0&&!(t in e))&&xb(e,t,r)}var xl=Lb,Tb=xl,Eb=li;function $b(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),a?Eb(r,s,u):Tb(r,s,u)}return r}var Xt=$b;function Pb(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Fb=Pb,vn,No;function Db(){if(No)return vn;No=1;var e=ct,t=Se,r="[object Arguments]";function n(a){return t(a)&&e(a)==r}return vn=n,vn}var Cn,Go;function Dr(){if(Go)return Cn;Go=1;var e=Db(),t=Se,r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(o){return t(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return Cn=i,Cn}var ut={},kb={get exports(){return ut},set exports(e){ut=e}};function Bb(){return!1}var Wb=Bb;(function(e,t){var r=ge,n=Wb,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,f=u||n;e.exports=f})(kb,ut);var jb=9007199254740991;function Nb(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=jb}var fi=Nb,An,Xo;function Gb(){if(Xo)return An;Xo=1;var e=ct,t=fi,r=Se,n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",s="[object Error]",u="[object Function]",f="[object Map]",g="[object Number]",c="[object Object]",p="[object RegExp]",h="[object Set]",v="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",A="[object Float32Array]",x="[object Float64Array]",I="[object Int8Array]",S="[object Int16Array]",D="[object Int32Array]",$="[object Uint8Array]",N="[object Uint8ClampedArray]",ne="[object Uint16Array]",W="[object Uint32Array]",F={};F[A]=F[x]=F[I]=F[S]=F[D]=F[$]=F[N]=F[ne]=F[W]=!0,F[n]=F[a]=F[b]=F[i]=F[y]=F[o]=F[s]=F[u]=F[f]=F[g]=F[c]=F[p]=F[h]=F[v]=F[m]=!1;function q(oe){return r(oe)&&t(oe.length)&&!!F[e(oe)]}return An=q,An}function Xb(e){return function(t){return e(t)}}var gi=Xb,mt={},Hb={get exports(){return mt},set exports(e){mt=e}};(function(e,t){var r=ol,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Hb,mt);var bn,Ho;function pi(){if(Ho)return bn;Ho=1;var e=Gb(),t=gi,r=mt,n=r&&r.isTypedArray,a=n?t(n):e;return bn=a,bn}var Mb=Fb,zb=Dr(),Ub=pe,Vb=ut,Zb=Fr,qb=pi(),Yb=Object.prototype,Jb=Yb.hasOwnProperty;function Kb(e,t){var r=Ub(e),n=!r&&zb(e),a=!r&&!n&&Vb(e),i=!r&&!n&&!a&&qb(e),o=r||n||a||i,s=o?Mb(e.length,String):[],u=s.length;for(var f in e)(t||Jb.call(e,f))&&!(o&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Zb(f,u)))&&s.push(f);return s}var Ol=Kb,Qb=Object.prototype;function em(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Qb;return e===r}var di=em;function tm(e,t){return function(r){return e(t(r))}}var wl=tm,rm=wl,nm=rm(Object.keys,Object),am=nm,im=di,om=am,sm=Object.prototype,um=sm.hasOwnProperty;function cm(e){if(!im(e))return om(e);var t=[];for(var r in Object(e))um.call(e,r)&&r!="constructor"&&t.push(r);return t}var Rl=cm,lm=Er,fm=fi;function gm(e){return e!=null&&fm(e.length)&&!lm(e)}var kr=gm,pm=Ol,dm=Rl,hm=kr;function ym(e){return hm(e)?pm(e):dm(e)}var Br=ym,vm=Xt,Cm=Br;function Am(e,t){return e&&vm(t,Cm(t),e)}var Ll=Am,mn,Mo;function bm(){if(Mo)return mn;Mo=1;function e(){this.__data__=[],this.size=0}return mn=e,mn}var In,zo;function Wr(){if(zo)return In;zo=1;var e=Gt();function t(r,n){for(var a=r.length;a--;)if(e(r[a][0],n))return a;return-1}return In=t,In}var Sn,Uo;function mm(){if(Uo)return Sn;Uo=1;var e=Wr(),t=Array.prototype,r=t.splice;function n(a){var i=this.__data__,o=e(i,a);if(o<0)return!1;var s=i.length-1;return o==s?i.pop():r.call(i,o,1),--this.size,!0}return Sn=n,Sn}var _n,Vo;function Im(){if(Vo)return _n;Vo=1;var e=Wr();function t(r){var n=this.__data__,a=e(n,r);return a<0?void 0:n[a][1]}return _n=t,_n}var xn,Zo;function Sm(){if(Zo)return xn;Zo=1;var e=Wr();function t(r){return e(this.__data__,r)>-1}return xn=t,xn}var On,qo;function _m(){if(qo)return On;qo=1;var e=Wr();function t(r,n){var a=this.__data__,i=e(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return On=t,On}var wn,Yo;function jr(){if(Yo)return wn;Yo=1;var e=bm(),t=mm(),r=Im(),n=Sm(),a=_m();function i(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var f=o[s];this.set(f[0],f[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,wn=i,wn}var Rn,Jo;function xm(){if(Jo)return Rn;Jo=1;var e=jr();function t(){this.__data__=new e,this.size=0}return Rn=t,Rn}var Ln,Ko;function Om(){if(Ko)return Ln;Ko=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Ln=e,Ln}var Tn,Qo;function wm(){if(Qo)return Tn;Qo=1;function e(t){return this.__data__.get(t)}return Tn=e,Tn}var En,es;function Rm(){if(es)return En;es=1;function e(t){return this.__data__.has(t)}return En=e,En}var Lm=lt,Tm=ge,Em=Lm(Tm,"Map"),hi=Em,$n,ts;function Nr(){if(ts)return $n;ts=1;var e=lt,t=e(Object,"create");return $n=t,$n}var Pn,rs;function $m(){if(rs)return Pn;rs=1;var e=Nr();function t(){this.__data__=e?e(null):{},this.size=0}return Pn=t,Pn}var Fn,ns;function Pm(){if(ns)return Fn;ns=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Fn=e,Fn}var Dn,as;function Fm(){if(as)return Dn;as=1;var e=Nr(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(i){var o=this.__data__;if(e){var s=o[i];return s===t?void 0:s}return n.call(o,i)?o[i]:void 0}return Dn=a,Dn}var kn,is;function Dm(){if(is)return kn;is=1;var e=Nr(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:r.call(i,a)}return kn=n,kn}var Bn,os;function km(){if(os)return Bn;os=1;var e=Nr(),t="__lodash_hash_undefined__";function r(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?t:a,this}return Bn=r,Bn}var Wn,ss;function Bm(){if(ss)return Wn;ss=1;var e=$m(),t=Pm(),r=Fm(),n=Dm(),a=km();function i(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var f=o[s];this.set(f[0],f[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,Wn=i,Wn}var jn,us;function Wm(){if(us)return jn;us=1;var e=Bm(),t=jr(),r=hi;function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return jn=n,jn}var Nn,cs;function jm(){if(cs)return Nn;cs=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Nn=e,Nn}var Gn,ls;function Gr(){if(ls)return Gn;ls=1;var e=jm();function t(r,n){var a=r.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return Gn=t,Gn}var Xn,fs;function Nm(){if(fs)return Xn;fs=1;var e=Gr();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Xn=t,Xn}var Hn,gs;function Gm(){if(gs)return Hn;gs=1;var e=Gr();function t(r){return e(this,r).get(r)}return Hn=t,Hn}var Mn,ps;function Xm(){if(ps)return Mn;ps=1;var e=Gr();function t(r){return e(this,r).has(r)}return Mn=t,Mn}var zn,ds;function Hm(){if(ds)return zn;ds=1;var e=Gr();function t(r,n){var a=e(this,r),i=a.size;return a.set(r,n),this.size+=a.size==i?0:1,this}return zn=t,zn}var Un,hs;function yi(){if(hs)return Un;hs=1;var e=Wm(),t=Nm(),r=Gm(),n=Xm(),a=Hm();function i(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var f=o[s];this.set(f[0],f[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,Un=i,Un}var Vn,ys;function Mm(){if(ys)return Vn;ys=1;var e=jr(),t=hi,r=yi(),n=200;function a(i,o){var s=this.__data__;if(s instanceof e){var u=s.__data__;if(!t||u.length<n-1)return u.push([i,o]),this.size=++s.size,this;s=this.__data__=new r(u)}return s.set(i,o),this.size=s.size,this}return Vn=a,Vn}var Zn,vs;function Xr(){if(vs)return Zn;vs=1;var e=jr(),t=xm(),r=Om(),n=wm(),a=Rm(),i=Mm();function o(s){var u=this.__data__=new e(s);this.size=u.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,Zn=o,Zn}var qn,Cs;function zm(){if(Cs)return qn;Cs=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return qn=e,qn}var Yn,As;function Um(){if(As)return Yn;As=1;var e=Te,t=di,r=zm(),n=Object.prototype,a=n.hasOwnProperty;function i(o){if(!e(o))return r(o);var s=t(o),u=[];for(var f in o)f=="constructor"&&(s||!a.call(o,f))||u.push(f);return u}return Yn=i,Yn}var Jn,bs;function Ht(){if(bs)return Jn;bs=1;var e=Ol,t=Um(),r=kr;function n(a){return r(a)?e(a,!0):t(a)}return Jn=n,Jn}var Vm=Xt,Zm=Ht();function qm(e,t){return e&&Vm(t,Zm(t),e)}var Ym=qm,Bt={},Jm={get exports(){return Bt},set exports(e){Bt=e}};(function(e,t){var r=ge,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(f,g){if(g)return f.slice();var c=f.length,p=s?s(c):new f.constructor(c);return f.copy(p),p}e.exports=u})(Jm,Bt);function Km(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var Qm=Km;function eI(){return[]}var Tl=eI,tI=Qm,rI=Tl,nI=Object.prototype,aI=nI.propertyIsEnumerable,ms=Object.getOwnPropertySymbols,iI=ms?function(e){return e==null?[]:(e=Object(e),tI(ms(e),function(t){return aI.call(e,t)}))}:rI,vi=iI,oI=Xt,sI=vi;function uI(e,t){return oI(e,sI(e),t)}var cI=uI;function lI(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Ci=lI,fI=wl,gI=fI(Object.getPrototypeOf,Object),Ai=gI,pI=Ci,dI=Ai,hI=vi,yI=Tl,vI=Object.getOwnPropertySymbols,CI=vI?function(e){for(var t=[];e;)pI(t,hI(e)),e=dI(e);return t}:yI,El=CI,AI=Xt,bI=El;function mI(e,t){return AI(e,bI(e),t)}var II=mI,SI=Ci,_I=pe;function xI(e,t,r){var n=t(e);return _I(e)?n:SI(n,r(e))}var $l=xI,OI=$l,wI=vi,RI=Br;function LI(e){return OI(e,RI,wI)}var Pl=LI,TI=$l,EI=El,$I=Ht();function PI(e){return TI(e,$I,EI)}var FI=PI,DI=lt,kI=ge,BI=DI(kI,"DataView"),WI=BI,jI=lt,NI=ge,GI=jI(NI,"Promise"),XI=GI,HI=lt,MI=ge,zI=HI(MI,"Set"),UI=zI,Ba=WI,Wa=hi,ja=XI,Na=UI,Ga=cl,Fl=ct,_t=ul,Is="[object Map]",VI="[object Object]",Ss="[object Promise]",_s="[object Set]",xs="[object WeakMap]",Os="[object DataView]",ZI=_t(Ba),qI=_t(Wa),YI=_t(ja),JI=_t(Na),KI=_t(Ga),ot=Fl;(Ba&&ot(new Ba(new ArrayBuffer(1)))!=Os||Wa&&ot(new Wa)!=Is||ja&&ot(ja.resolve())!=Ss||Na&&ot(new Na)!=_s||Ga&&ot(new Ga)!=xs)&&(ot=function(e){var t=Fl(e),r=t==VI?e.constructor:void 0,n=r?_t(r):"";if(n)switch(n){case ZI:return Os;case qI:return Is;case YI:return Ss;case JI:return _s;case KI:return xs}return t});var Mt=ot,QI=Object.prototype,e1=QI.hasOwnProperty;function t1(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&e1.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var r1=t1,n1=ge,a1=n1.Uint8Array,Dl=a1,ws=Dl;function i1(e){var t=new e.constructor(e.byteLength);return new ws(t).set(new ws(e)),t}var bi=i1,o1=bi;function s1(e,t){var r=t?o1(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var u1=s1,c1=/\w*$/;function l1(e){var t=new e.constructor(e.source,c1.exec(e));return t.lastIndex=e.lastIndex,t}var f1=l1,Rs=St,Ls=Rs?Rs.prototype:void 0,Ts=Ls?Ls.valueOf:void 0;function g1(e){return Ts?Object(Ts.call(e)):{}}var p1=g1,Kn,Es;function kl(){if(Es)return Kn;Es=1;var e=bi;function t(r,n){var a=n?e(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.length)}return Kn=t,Kn}var d1=bi,h1=u1,y1=f1,v1=p1,C1=kl(),A1="[object Boolean]",b1="[object Date]",m1="[object Map]",I1="[object Number]",S1="[object RegExp]",_1="[object Set]",x1="[object String]",O1="[object Symbol]",w1="[object ArrayBuffer]",R1="[object DataView]",L1="[object Float32Array]",T1="[object Float64Array]",E1="[object Int8Array]",$1="[object Int16Array]",P1="[object Int32Array]",F1="[object Uint8Array]",D1="[object Uint8ClampedArray]",k1="[object Uint16Array]",B1="[object Uint32Array]";function W1(e,t,r){var n=e.constructor;switch(t){case w1:return d1(e);case A1:case b1:return new n(+e);case R1:return h1(e,r);case L1:case T1:case E1:case $1:case P1:case F1:case D1:case k1:case B1:return C1(e,r);case m1:return new n;case I1:case x1:return new n(e);case S1:return y1(e);case _1:return new n;case O1:return v1(e)}}var j1=W1,N1=$r,G1=Ai,X1=di;function H1(e){return typeof e.constructor=="function"&&!X1(e)?N1(G1(e)):{}}var Bl=H1,M1=Mt,z1=Se,U1="[object Map]";function V1(e){return z1(e)&&M1(e)==U1}var Z1=V1,q1=Z1,Y1=gi,$s=mt,Ps=$s&&$s.isMap,J1=Ps?Y1(Ps):q1,K1=J1,Q1=Mt,e0=Se,t0="[object Set]";function r0(e){return e0(e)&&Q1(e)==t0}var n0=r0,a0=n0,i0=gi,Fs=mt,Ds=Fs&&Fs.isSet,o0=Ds?i0(Ds):a0,s0=o0,u0=Xr(),c0=si,l0=xl,f0=Ll,g0=Ym,p0=Bt,d0=jt,h0=cI,y0=II,v0=Pl,C0=FI,A0=Mt,b0=r1,m0=j1,I0=Bl,S0=pe,_0=ut,x0=K1,O0=Te,w0=s0,R0=Br,L0=Ht(),T0=1,E0=2,$0=4,Wl="[object Arguments]",P0="[object Array]",F0="[object Boolean]",D0="[object Date]",k0="[object Error]",jl="[object Function]",B0="[object GeneratorFunction]",W0="[object Map]",j0="[object Number]",Nl="[object Object]",N0="[object RegExp]",G0="[object Set]",X0="[object String]",H0="[object Symbol]",M0="[object WeakMap]",z0="[object ArrayBuffer]",U0="[object DataView]",V0="[object Float32Array]",Z0="[object Float64Array]",q0="[object Int8Array]",Y0="[object Int16Array]",J0="[object Int32Array]",K0="[object Uint8Array]",Q0="[object Uint8ClampedArray]",eS="[object Uint16Array]",tS="[object Uint32Array]",U={};U[Wl]=U[P0]=U[z0]=U[U0]=U[F0]=U[D0]=U[V0]=U[Z0]=U[q0]=U[Y0]=U[J0]=U[W0]=U[j0]=U[Nl]=U[N0]=U[G0]=U[X0]=U[H0]=U[K0]=U[Q0]=U[eS]=U[tS]=!0;U[k0]=U[jl]=U[M0]=!1;function cr(e,t,r,n,a,i){var o,s=t&T0,u=t&E0,f=t&$0;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!O0(e))return e;var g=S0(e);if(g){if(o=b0(e),!s)return d0(e,o)}else{var c=A0(e),p=c==jl||c==B0;if(_0(e))return p0(e,s);if(c==Nl||c==Wl||p&&!a){if(o=u||p?{}:I0(e),!s)return u?y0(e,g0(o,e)):h0(e,f0(o,e))}else{if(!U[c])return a?e:{};o=m0(e,c,s)}}i||(i=new u0);var h=i.get(e);if(h)return h;i.set(e,o),w0(e)?e.forEach(function(b){o.add(cr(b,t,r,b,e,i))}):x0(e)&&e.forEach(function(b,y){o.set(y,cr(b,t,r,y,e,i))});var v=f?u?C0:v0:u?L0:R0,m=g?void 0:v(e);return c0(m||e,function(b,y){m&&(y=b,b=e[y]),l0(o,y,cr(b,t,r,y,e,i))}),o}var Gl=cr,rS=Gl,nS=4;function aS(e){return rS(e,nS)}var iS=aS,oS=ci,sS=8;function mi(e,t,r){t=r?void 0:t;var n=oS(e,sS,void 0,void 0,void 0,void 0,void 0,t);return n.placeholder=mi.placeholder,n}mi.placeholder={};var uS=mi,cS=ct,lS=Ai,fS=Se,gS="[object Object]",pS=Function.prototype,dS=Object.prototype,Xl=pS.toString,hS=dS.hasOwnProperty,yS=Xl.call(Object);function vS(e){if(!fS(e)||cS(e)!=gS)return!1;var t=lS(e);if(t===null)return!0;var r=hS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Xl.call(r)==yS}var Hl=vS,CS=ct,AS=Se,bS=Hl,mS="[object DOMException]",IS="[object Error]";function SS(e){if(!AS(e))return!1;var t=CS(e);return t==IS||t==mS||typeof e.message=="string"&&typeof e.name=="string"&&!bS(e)}var _S=SS,xS=Mt,OS=Se,wS="[object WeakMap]";function RS(e){return OS(e)&&xS(e)==wS}var LS=RS,TS="__lodash_hash_undefined__";function ES(e){return this.__data__.set(e,TS),this}var $S=ES;function PS(e){return this.__data__.has(e)}var FS=PS,DS=yi(),kS=$S,BS=FS;function vr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new DS;++t<r;)this.add(e[t])}vr.prototype.add=vr.prototype.push=kS;vr.prototype.has=BS;var WS=vr;function jS(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var NS=jS;function GS(e,t){return e.has(t)}var XS=GS,HS=WS,MS=NS,zS=XS,US=1,VS=2;function ZS(e,t,r,n,a,i){var o=r&US,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var f=i.get(e),g=i.get(t);if(f&&g)return f==t&&g==e;var c=-1,p=!0,h=r&VS?new HS:void 0;for(i.set(e,t),i.set(t,e);++c<s;){var v=e[c],m=t[c];if(n)var b=o?n(m,v,c,t,e,i):n(v,m,c,e,t,i);if(b!==void 0){if(b)continue;p=!1;break}if(h){if(!MS(t,function(y,A){if(!zS(h,A)&&(v===y||a(v,y,r,n,i)))return h.push(A)})){p=!1;break}}else if(!(v===m||a(v,m,r,n,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var Ml=ZS;function qS(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var YS=qS;function JS(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var KS=JS,ks=St,Bs=Dl,QS=Gt(),e_=Ml,t_=YS,r_=KS,n_=1,a_=2,i_="[object Boolean]",o_="[object Date]",s_="[object Error]",u_="[object Map]",c_="[object Number]",l_="[object RegExp]",f_="[object Set]",g_="[object String]",p_="[object Symbol]",d_="[object ArrayBuffer]",h_="[object DataView]",Ws=ks?ks.prototype:void 0,Qn=Ws?Ws.valueOf:void 0;function y_(e,t,r,n,a,i,o){switch(r){case h_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case d_:return!(e.byteLength!=t.byteLength||!i(new Bs(e),new Bs(t)));case i_:case o_:case c_:return QS(+e,+t);case s_:return e.name==t.name&&e.message==t.message;case l_:case g_:return e==t+"";case u_:var s=t_;case f_:var u=n&n_;if(s||(s=r_),e.size!=t.size&&!u)return!1;var f=o.get(e);if(f)return f==t;n|=a_,o.set(e,t);var g=e_(s(e),s(t),n,a,i,o);return o.delete(e),g;case p_:if(Qn)return Qn.call(e)==Qn.call(t)}return!1}var v_=y_,js=Pl,C_=1,A_=Object.prototype,b_=A_.hasOwnProperty;function m_(e,t,r,n,a,i){var o=r&C_,s=js(e),u=s.length,f=js(t),g=f.length;if(u!=g&&!o)return!1;for(var c=u;c--;){var p=s[c];if(!(o?p in t:b_.call(t,p)))return!1}var h=i.get(e),v=i.get(t);if(h&&v)return h==t&&v==e;var m=!0;i.set(e,t),i.set(t,e);for(var b=o;++c<u;){p=s[c];var y=e[p],A=t[p];if(n)var x=o?n(A,y,p,t,e,i):n(y,A,p,e,t,i);if(!(x===void 0?y===A||a(y,A,r,n,i):x)){m=!1;break}b||(b=p=="constructor")}if(m&&!b){var I=e.constructor,S=t.constructor;I!=S&&"constructor"in e&&"constructor"in t&&!(typeof I=="function"&&I instanceof I&&typeof S=="function"&&S instanceof S)&&(m=!1)}return i.delete(e),i.delete(t),m}var I_=m_,ea=Xr(),S_=Ml,__=v_,x_=I_,Ns=Mt,Gs=pe,Xs=ut,O_=pi(),w_=1,Hs="[object Arguments]",Ms="[object Array]",nr="[object Object]",R_=Object.prototype,zs=R_.hasOwnProperty;function L_(e,t,r,n,a,i){var o=Gs(e),s=Gs(t),u=o?Ms:Ns(e),f=s?Ms:Ns(t);u=u==Hs?nr:u,f=f==Hs?nr:f;var g=u==nr,c=f==nr,p=u==f;if(p&&Xs(e)){if(!Xs(t))return!1;o=!0,g=!1}if(p&&!g)return i||(i=new ea),o||O_(e)?S_(e,t,r,n,a,i):__(e,t,u,r,n,a,i);if(!(r&w_)){var h=g&&zs.call(e,"__wrapped__"),v=c&&zs.call(t,"__wrapped__");if(h||v){var m=h?e.value():e,b=v?t.value():t;return i||(i=new ea),a(m,b,r,n,i)}}return p?(i||(i=new ea),x_(e,t,r,n,a,i)):!1}var T_=L_,E_=T_,Us=Se;function zl(e,t,r,n,a){return e===t?!0:e==null||t==null||!Us(e)&&!Us(t)?e!==e&&t!==t:E_(e,t,r,n,zl,a)}var Ul=zl,$_=Xr(),P_=Ul,F_=1,D_=2;function k_(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var u=s[0],f=e[u],g=s[1];if(o&&s[2]){if(f===void 0&&!(u in e))return!1}else{var c=new $_;if(n)var p=n(f,g,u,e,t,c);if(!(p===void 0?P_(g,f,F_|D_,n,c):p))return!1}}return!0}var B_=k_,W_=Te;function j_(e){return e===e&&!W_(e)}var Vl=j_,N_=Vl,G_=Br;function X_(e){for(var t=G_(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,N_(a)]}return t}var H_=X_;function M_(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Zl=M_,z_=B_,U_=H_,V_=Zl;function Z_(e){var t=U_(e);return t.length==1&&t[0][2]?V_(t[0][0],t[0][1]):function(r){return r===e||z_(r,e,t)}}var q_=Z_,Y_=pe,J_=Nt,K_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q_=/^\w*$/;function ex(e,t){if(Y_(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||J_(e)?!0:Q_.test(e)||!K_.test(e)||t!=null&&e in Object(t)}var Ii=ex,ql=yi(),tx="Expected a function";function Si(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tx);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(Si.Cache||ql),r}Si.Cache=ql;var rx=Si,nx=rx,ax=500;function ix(e){var t=nx(e,function(n){return r.size===ax&&r.clear(),n}),r=t.cache;return t}var ox=ix,sx=ox,ux=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cx=/\\(\\)?/g,lx=sx(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ux,function(r,n,a,i){t.push(a?i.replace(cx,"$1"):n||r)}),t}),Yl=lx;function fx(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var Jl=fx,Vs=St,gx=Jl,px=pe,dx=Nt,hx=1/0,Zs=Vs?Vs.prototype:void 0,qs=Zs?Zs.toString:void 0;function Kl(e){if(typeof e=="string")return e;if(px(e))return gx(e,Kl)+"";if(dx(e))return qs?qs.call(e):"";var t=e+"";return t=="0"&&1/e==-hx?"-0":t}var yx=Kl,vx=yx;function Cx(e){return e==null?"":vx(e)}var Ql=Cx,Ax=pe,bx=Ii,mx=Yl,Ix=Ql;function Sx(e,t){return Ax(e)?e:bx(e,t)?[e]:mx(Ix(e))}var ef=Sx,_x=Nt,xx=1/0;function Ox(e){if(typeof e=="string"||_x(e))return e;var t=e+"";return t=="0"&&1/e==-xx?"-0":t}var zt=Ox,wx=ef,Rx=zt;function Lx(e,t){t=wx(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Rx(t[r++])];return r&&r==n?e:void 0}var tf=Lx,Tx=tf;function Ex(e,t,r){var n=e==null?void 0:Tx(e,t);return n===void 0?r:n}var $x=Ex;function Px(e,t){return e!=null&&t in Object(e)}var Fx=Px,Dx=ef,kx=Dr(),Bx=pe,Wx=Fr,jx=fi,Nx=zt;function Gx(e,t,r){t=Dx(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=Nx(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&jx(a)&&Wx(o,a)&&(Bx(e)||kx(e)))}var Xx=Gx,Hx=Fx,Mx=Xx;function zx(e,t){return e!=null&&Mx(e,t,Hx)}var Ux=zx,Vx=Ul,Zx=$x,qx=Ux,Yx=Ii,Jx=Vl,Kx=Zl,Qx=zt,eO=1,tO=2;function rO(e,t){return Yx(e)&&Jx(t)?Kx(Qx(e),t):function(r){var n=Zx(r,e);return n===void 0&&n===t?qx(r,e):Vx(t,n,eO|tO)}}var nO=rO;function aO(e){return function(t){return t?.[e]}}var iO=aO,oO=tf;function sO(e){return function(t){return oO(t,e)}}var uO=sO,cO=iO,lO=uO,fO=Ii,gO=zt;function pO(e){return fO(e)?cO(gO(e)):lO(e)}var dO=pO,hO=q_,yO=nO,vO=Tr,CO=pe,AO=dO;function bO(e){return typeof e=="function"?e:e==null?vO:typeof e=="object"?CO(e)?yO(e[0],e[1]):hO(e):AO(e)}var mO=bO,IO=Gl,SO=mO,_O=1;function xO(e){return SO(typeof e=="function"?e:IO(e,_O))}var OO=xO,Ys=St,wO=Dr(),RO=pe,Js=Ys?Ys.isConcatSpreadable:void 0;function LO(e){return RO(e)||wO(e)||!!(Js&&e&&e[Js])}var TO=LO,EO=Ci,$O=TO;function rf(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=$O),a||(a=[]);++i<o;){var s=e[i];t>0&&r(s)?t>1?rf(s,t-1,r,n,a):EO(a,s):n||(a[a.length]=s)}return a}var PO=rf,FO=PO;function DO(e){var t=e==null?0:e.length;return t?FO(e,1):[]}var kO=DO,BO=ni,Ks=Math.max;function WO(e,t,r){return t=Ks(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=Ks(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),BO(e,this,s)}}var nf=WO,jO=kO,NO=nf,GO=oi;function XO(e){return GO(NO(e,void 0,jO),e+"")}var HO=XO,MO=ci,zO=HO,UO=256,VO=zO(function(e,t){return MO(e,UO,void 0,void 0,void 0,t)}),ZO=VO,qO=Jl,YO=jt,JO=pe,KO=Nt,QO=Yl,ew=zt,tw=Ql;function rw(e){return JO(e)?qO(e,ew):KO(e)?[e]:YO(QO(tw(e)))}var nw=rw,aw={ary:Sb,assign:Ll,clone:iS,curry:uS,forEach:si,isArray:pe,isError:_S,isFunction:Er,isWeakMap:LS,iteratee:OO,keys:Rl,rearg:ZO,toInteger:_l,toPath:nw},iw=_h,ow=aw;function sw(e,t,r){return iw(ow,e,t,r)}var uw=sw,ta,Qs;function af(){if(Qs)return ta;Qs=1;var e=li,t=Gt();function r(n,a,i){(i!==void 0&&!t(n[a],i)||i===void 0&&!(a in n))&&e(n,a,i)}return ta=r,ta}var ra,eu;function cw(){if(eu)return ra;eu=1;function e(t){return function(r,n,a){for(var i=-1,o=Object(r),s=a(r),u=s.length;u--;){var f=s[t?u:++i];if(n(o[f],f,o)===!1)break}return r}}return ra=e,ra}var na,tu;function lw(){if(tu)return na;tu=1;var e=cw(),t=e();return na=t,na}var aa,ru;function fw(){if(ru)return aa;ru=1;var e=kr,t=Se;function r(n){return t(n)&&e(n)}return aa=r,aa}var ia,nu;function of(){if(nu)return ia;nu=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return ia=e,ia}var oa,au;function gw(){if(au)return oa;au=1;var e=Xt,t=Ht();function r(n){return e(n,t(n))}return oa=r,oa}var sa,iu;function pw(){if(iu)return sa;iu=1;var e=af(),t=Bt,r=kl(),n=jt,a=Bl,i=Dr(),o=pe,s=fw(),u=ut,f=Er,g=Te,c=Hl,p=pi(),h=of(),v=gw();function m(b,y,A,x,I,S,D){var $=h(b,A),N=h(y,A),ne=D.get(N);if(ne){e(b,A,ne);return}var W=S?S($,N,A+"",b,y,D):void 0,F=W===void 0;if(F){var q=o(N),oe=!q&&u(N),ee=!q&&!oe&&p(N);W=N,q||oe||ee?o($)?W=$:s($)?W=n($):oe?(F=!1,W=t(N,!0)):ee?(F=!1,W=r(N,!0)):W=[]:c(N)||i(N)?(W=$,i($)?W=v($):(!g($)||f($))&&(W=a(N))):F=!1}F&&(D.set(N,W),I(W,N,x,S,D),D.delete(N)),e(b,A,W)}return sa=m,sa}var ua,ou;function dw(){if(ou)return ua;ou=1;var e=Xr(),t=af(),r=lw(),n=pw(),a=Te,i=Ht(),o=of();function s(u,f,g,c,p){u!==f&&r(f,function(h,v){if(p||(p=new e),a(h))n(u,f,v,g,s,c,p);else{var m=c?c(o(u,v),h,v+"",u,f,p):void 0;m===void 0&&(m=h),t(u,v,m)}},i)}return ua=s,ua}var ca,su;function hw(){if(su)return ca;su=1;var e=Tr,t=nf,r=oi;function n(a,i){return r(t(a,i,e),a+"")}return ca=n,ca}var la,uu;function yw(){if(uu)return la;uu=1;var e=Gt(),t=kr,r=Fr,n=Te;function a(i,o,s){if(!n(s))return!1;var u=typeof o;return(u=="number"?t(s)&&r(o,s.length):u=="string"&&o in s)?e(s[o],i):!1}return la=a,la}var fa,cu;function vw(){if(cu)return fa;cu=1;var e=hw(),t=yw();function r(n){return e(function(a,i){var o=-1,s=i.length,u=s>1?i[s-1]:void 0,f=s>2?i[2]:void 0;for(u=n.length>3&&typeof u=="function"?(s--,u):void 0,f&&t(i[0],i[1],f)&&(u=s<3?void 0:u,s=1),a=Object(a);++o<s;){var g=i[o];g&&n(a,g,o,u)}return a})}return fa=r,fa}var ga,lu;function Cw(){if(lu)return ga;lu=1;var e=dw(),t=vw(),r=t(function(n,a,i){e(n,a,i)});return ga=r,ga}var Aw=uw,sf=Aw("merge",Cw());sf.placeholder=il();var Ke=sf;const Ie={palette:{primary:{ultraLight:"#EDEDED",light:"#D6D6D6",main:"#7A7A7A",dark:"#626262"},secondary:{ultraLight:"#F4F4F4",light:"#787878",main:"#616161",dark:"#303030"},error:{main:"#a72514",light:"#fee5e4"},success:{main:"#286327",light:"#dcfddb"},alert:{main:"#725200",light:"#ffe7ca"},info:{main:"#195f7f",light:"#dbedfd"},gray:{main:"#706f6f",light:"#d3d3d3",ultraLight:"#f4f4f4",megaLight:"#fafafa",dark:"#373737"},black:"#000",white:"#fff",dataVisualization:{highContrast:{blueDark:"#002039",coral:"#F95D6A",purpleDark:"#665191",orange:"#FFA600",purple:"#A05195",orangeDark:"#FF7C43",blue:"#3970C1",cyan:"#45CEE0",pink:"#D12771",green:"#B3D849"},lowContrast:{blueDark:"#5283AB",coral:"#FCA6AD",purpleDark:"#B1A2D0",orange:"#FDDFA5",purple:"#D4BBFF",orangeDark:"#FCC2A9",blue:"#96B3DE",cyan:"#BAE6FF",pink:"#E995BA",green:"#DEF895"}}},spacingBase:8,borderRadius:{XS:"2px",S:"4px",M:"8px",L:"16px",XL:"32px"},breakPoints:{mobileLarge:480,tablet:768,tabletLarge:960,desktop:1280},typography:{fontWeight:{light:200,normal:400,semibold:600,bold:700},fontSize:{XXS:"10px",XS:"12px",S:"14px",M:"16px",L:"18px",XL:"20px",XXL:"24px",XXXL:"32px",XXXXL:"48px"},lineHeight:{S:"20px",M:"24px",L:"28px",XL:"32px",XXL:"48px",XXXL:"72px"},letterSpacing:{S:0,M:1,L:3,XL:5,XXL:8,XXXL:12}},card:{borderRadius:{mobile:"4px",tablet:"8px",desktop:"8px"}},elevations:{flat1:{boxShadow:"0 2px 2px rgba(0, 0, 0, 0.1)",zIndex:1},flat2:{boxShadow:"0 2px 2px rgba(0, 0, 0, 0.1)",zIndex:1e3},above:{boxShadow:"0 0 12px rgba(0, 0, 0, 0.1)",zIndex:1e3},sticky:{boxShadow:"none",zIndex:1001},raised:{boxShadow:"0 8px 8px rgba(0, 0, 0, 0.1)",zIndex:1002},raisedInverted1:{boxShadow:"0 -8px 8px rgba(0, 0, 0, 0.1)",zIndex:1002},raisedInverted2:{boxShadow:"0 -8px 8px rgba(0, 0, 0, 0.1)",zIndex:1003},popout1:{boxShadow:"0 4px 16px rgba(0, 0, 0, 0.1)",zIndex:1004},popout2:{boxShadow:"0 4px 16px rgba(0, 0, 0, 0.1)",zIndex:1005},overlay1:{boxShadow:"0 0 24px rgba(0, 0, 0, 0.1)",zIndex:1006},backdrop:{boxShadow:"none",zIndex:1007},overlay2:{boxShadow:"0 0 24px rgba(0, 0, 0, 0.1)",zIndex:1008}},grid:{mobile:{columns:4,horizontalSpace:16,verticalSpace:16,gutter:16},mobileLarge:{columns:4,horizontalSpace:16,verticalSpace:16,gutter:16},tablet:{columns:12,horizontalSpace:16,verticalSpace:24,gutter:24},tabletLarge:{columns:12,horizontalSpace:16,verticalSpace:24,gutter:24},desktop:{columns:12,horizontalSpace:16,verticalSpace:24,gutter:24},desktopLarge:{columns:12,horizontalSpace:16,verticalSpace:24,gutter:24}},defaultFontFamily:"Arial",fontFaces:[],iconSize:{small:"16px",medium:"20px",regular:"24px",large:"32px"}};class bw{constructor(){var t=this;let{borderRadius:r={},breakPoints:n={},iconSize:a={},palette:i={},spacingBase:o,typography:s={},card:u={},elevations:f={},grid:g={},fontFaces:c,defaultFontFamily:p,components:h={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};te(this,"removePx",v=>parseInt(v.substring(0,v.indexOf("px")))),te(this,"mediaQuery",v=>`@media (min-width: ${this.breakPoints[v]}px)`),te(this,"getComponent",v=>this.components[v]||{}),te(this,"getComponentOverride",v=>this.components[v]||{}),te(this,"spacing",function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;return t.spacingBase*v}),te(this,"getElevation",v=>({boxShadow:this.elevations[v].boxShadow,zIndex:this.elevations[v].zIndex})),te(this,"getCardStyle",()=>({backgroundColor:this.palette.white,borderRadius:this.card.borderRadius.mobile,[this.mediaQuery("tablet")]:{borderRadius:this.card.borderRadius.tablet},[this.mediaQuery("desktop")]:{borderRadius:this.card.borderRadius.desktop}})),te(this,"toRem",function(v){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.typography.fontSize.M;return`${t.removePx(v)/t.removePx(m)}rem`}),te(this,"toEm",v=>`${v/100}em`),te(this,"toPercentage",v=>`${v*100}%`),te(this,"toRGBA",(v,m)=>{let b=v.replace("#","");b.length===3&&(b=b[0]+b[0]+b[1]+b[1]+b[2]+b[2]);const y=parseInt(b.substring(0,2),16),A=parseInt(b.substring(2,4),16),x=parseInt(b.substring(4,6),16);return`rgba(${y}, ${A}, ${x}, ${m})`}),te(this,"getLineHeight",(v,m)=>this.removePx(m)/this.removePx(v)),this.borderRadius=Ke(Ie.borderRadius,r),this.breakPoints=Ke(Ie.breakPoints,n),this.iconSize=Ke(Ie.iconSize,a),this.palette=Ke(Ie.palette,i),this.spacingBase=o||Ie.spacingBase,this.typography=Ke(Ie.typography,s),this.card=Ke(Ie.card,u),this.elevations=Ke(Ie.elevations,f),this.grid=Ke(Ie.grid,g),this.fontFaces=c||Ie.fontFaces,this.defaultFontFamily=p||Ie.defaultFontFamily,this.components=h}}let Xa;(function(e){e.ADD_FILLED="ADD_FILLED",e.ADD="ADD",e.AGENT="AGENT",e.ALERT="ALERT",e.ANALYTICS="ANALYTICS",e.CONVERSATION="CONVERSATION",e.ARROW_BOTTOM="ARROW_BOTTOM",e.ARROW_LEFT="ARROW_LEFT",e.ARROW_RIGHT="ARROW_RIGHT",e.ARROW_TOP="ARROW_TOP",e.ATTACH="ATTACH",e.AUTOMATION="AUTOMATION",e.BELL="BELL",e.BOAT="BOAT",e.BUCKET="BUCKET",e.BUFFER="BUFFER",e.CALENDAR="CALENDAR",e.CANCEL_FILLED="CANCEL_FILLED",e.CANCEL="CANCEL",e.CAR="CAR",e.CARDBOARD_BOX_CHECK="CARDBOARD_BOX_CHECK",e.CARDBOARD_BOX_SHIELD="CARDBOARD_BOX_SHIELD",e.CARDBOARD_BOX="CARDBOARD_BOX",e.CARET_BOTTOM="CARET_BOTTOM",e.CARET_TOP="CARET_TOP",e.CARGO="CARGO",e.CART="CART",e.CASH_DISABLED="CASH_DISABLED",e.CASH="CASH",e.CHART_UPWARDS="CHART_UPWARDS",e.CHECK_FILLED="CHECK_FILLED",e.CHECK_MARK="CHECK_MARK",e.CHECK="CHECK",e.CHEVRON_BOTTOM="CHEVRON_BOTTOM",e.CHEVRON_LEFT="CHEVRON_LEFT",e.CHEVRON_RIGHT="CHEVRON_RIGHT",e.CHEVRON_TOP="CHEVRON_TOP",e.CIRCLE="CIRCLE",e.CIRCULAR_ARROW="CIRCULAR_ARROW",e.CLOCK="CLOCK",e.CLOSE="CLOSE",e.COINS="COINS",e.CONTRACT="CONTRACT",e.COPY="COPY",e.CREDIT_CARD="CREDIT_CARD",e.DASH="DASH",e.DESKTOP="DESKTOP",e.DOOR_DELIVERY="DOOR_DELIVERY",e.DOTS="DOTS",e.DOWNLOAD="DOWNLOAD",e.DUPLICATE="DUPLICATE",e.ECOMMERCE="ECOMMERCE",e.EDIT="EDIT",e.EYE_DISABLED="EYE_DISABLED",e.EYE="EYE",e.FAST_DELIVERY="FAST_DELIVERY",e.FILE_LIST="FILE_LIST",e.FILE_PDF="FILE_PDF",e.FILE="FILE",e.FILTER="FILTER",e.FORKLIFT="FORKLIFT",e.FOUR="FOUR",e.FRAGILE="FRAGILE",e.GIFT="GIFT",e.GROUP="GROUP",e.HAND_BOX="HAND_BOX",e.HARD_BOX="HARD_BOX",e.HELP="HELP",e.HOURGLASS="HOURGLASS",e.HOUSE="HOUSE",e.IMPORT="IMPORT",e.INBOX="INBOX",e.INFO_FILLED="INFO_FILLED",e.INFO="INFO",e.KEY="KEY",e.LABEL="LABEL",e.LIST="LIST",e.LOGOUT_BOLD="LOGOUT_BOLD",e.LOGOUT="LOGOUT",e.MAIL="MAIL",e.MAP="MAP",e.MARGIN_PROFILE="MARGIN_PROFILE",e.MARKER_FILLED="MARKER_FILLED",e.MARKER="MARKER",e.MENU="MENU",e.MOBILE="MOBILE",e.MONEY="MONEY",e.ONE="ONE",e.OPEN_BOX="OPEN_BOX",e.PADLOCK_OPEN="PADLOCK_OPEN",e.PADLOCK="PADLOCK",e.PAGINATION_LEFT="PAGINATION_LEFT",e.PAGINATION_RIGHT="PAGINATION_RIGHT",e.PALLET="PALLET",e.PANTONE="PANTONE",e.PERCENTAGE="PERCENTAGE",e.PLANE="PLANE",e.PLUG="PLUG",e.PLUS="PLUS",e.PRINTER_DISABLED="PRINTER_DISABLED",e.PRINTER="PRINTER",e.REMOVE_FILLED="REMOVE_FILLED",e.REMOVE="REMOVE",e.ROCKET="ROCKET",e.SAVINGS="SAVINGS",e.SCAN_BARCODE="SCAN_BARCODE",e.SEARCH="SEARCH",e.SETTINGS="SETTINGS",e.SHIELD_DISABLED="SHIELD_DISABLED",e.SHIELD="SHIELD",e.SINGLE_COLLECTION="SINGLE_COLLECTION",e.SORT_ALPHA_ASC="SORT_ALPHA_ASC",e.SORT_ALPHA_DESC="SORT_ALPHA_DESC",e.SORT="SORT",e.SPEED_TRUCK="SPEED_TRUCK",e.SPINNER="SPINNER",e.STORE="STORE",e.SUBSCRIPTION="SUBSCRIPTION",e.TABLET="TABLET",e.THREE="THREE",e.TIMER="TIMER",e.TRACKING="TRACKING",e.TRAIN="TRAIN",e.TRASH="TRASH",e.TROLLEY="TROLLEY",e.TRUCK="TRUCK",e.TWO="TWO",e.USER_FILLED="USER_FILLED",e.USER="USER",e.VAN="VAN",e.WAREHOUSE="WAREHOUSE",e.WEIGHT="WEIGHT",e.WORLD_SHIPPING="WORLD_SHIPPING",e.WORLD="WORLD"})(Xa||(Xa={}));const mw=Object.freeze(Object.defineProperty({__proto__:null,get IconNames(){return Xa},Theme:bw,fallbackTheme:Ie},Symbol.toStringTag,{value:"Module"})),uf=$p(mw);var _i={},Iw=kt;const Sw=(e,t,r)=>({Chip:Ue(e,t.Chip,r?.Chip),Link:Ue(e,t.Link,r?.Link),Button:Ue(e,t.Button,r?.Button),Dialog:Ue(e,t.Dialog,r?.Dialog),Typography:Ue(e,t.Typography,r?.Typography),Checkbox:Ue(e,t.Checkbox,r?.Checkbox),Field:Ue(e,t.Field,r?.Field),FieldContainer:Ue(e,t.FieldContainer,r?.FieldContainer)});function Ue(e,t,r){const n=t(e),a=r?.(e);return Iw({},n,a)}_i.createThemeComponents=Sw;_i.createThemedComponent=Ue;var _w=kt,xw=Le,cf=uf,Ow=_i,ww=ri;const Rw=(e,t)=>Array.isArray(t)?t:void 0;function lf(e){const{components:t,...r}=ww.fallback,{components:n,...a}=e,i=_w({},r,a,Rw),o=new cf.Theme(i);return o.components=Ow.createThemeComponents(o,t,n),o}function Lw(e){const t=xw[e];return lf(t)}function Tw(e){return new cf.Theme(e)}Lr.buildTheme=lf;Lr.createTheme=Lw;Lr.deserialize=Tw;var ff={};(function(e){e.BrandName=void 0,function(t){t.DPD="dpd",t.EBAY="ebay",t.EBAY_IT="ebay_it",t.PACKLINK_CONS="packlink_cons",t.PAYPAL="paypal",t.PACKLINK_PRO="packlink_pro",t.PAYPAL_SHIPCENTER="paypal_shipcenter",t.BIGCOMMERCE="bigcommerce",t.SHIPENGINE_DASHBOARD="shipengine_dashboard",t.FALLBACK="fallback"}(e.BrandName||(e.BrandName={}))})(ff);(function(e){var t=Lr,r=ff,n=uf;e.buildTheme=t.buildTheme,e.createTheme=t.createTheme,e.deserialize=t.deserialize,Object.defineProperty(e,"BrandName",{enumerable:!0,get:function(){return r.BrandName}}),Object.defineProperty(e,"BorderRadiusVariables",{enumerable:!0,get:function(){return n.BorderRadiusVariables}}),Object.defineProperty(e,"BreakpointsVariables",{enumerable:!0,get:function(){return n.BreakpointsVariables}}),Object.defineProperty(e,"CardVariables",{enumerable:!0,get:function(){return n.CardVariables}}),Object.defineProperty(e,"ComponentsVariables",{enumerable:!0,get:function(){return n.ComponentsVariables}}),Object.defineProperty(e,"CustomThemeData",{enumerable:!0,get:function(){return n.CustomThemeData}}),Object.defineProperty(e,"ElevationBase",{enumerable:!0,get:function(){return n.ElevationBase}}),Object.defineProperty(e,"ElevationsVariables",{enumerable:!0,get:function(){return n.ElevationsVariables}}),Object.defineProperty(e,"FontFacesVariables",{enumerable:!0,get:function(){return n.FontFacesVariables}}),Object.defineProperty(e,"FontSizeVariables",{enumerable:!0,get:function(){return n.FontSizeVariables}}),Object.defineProperty(e,"FontWeightVariables",{enumerable:!0,get:function(){return n.FontWeightVariables}}),Object.defineProperty(e,"GridBase",{enumerable:!0,get:function(){return n.GridBase}}),Object.defineProperty(e,"GridVariables",{enumerable:!0,get:function(){return n.GridVariables}}),Object.defineProperty(e,"IconNames",{enumerable:!0,get:function(){return n.IconNames}}),Object.defineProperty(e,"IconsVariables",{enumerable:!0,get:function(){return n.IconsVariables}}),Object.defineProperty(e,"LetterSpacingVariables",{enumerable:!0,get:function(){return n.LetterSpacingVariables}}),Object.defineProperty(e,"LineHeightVariables",{enumerable:!0,get:function(){return n.LineHeightVariables}}),Object.defineProperty(e,"PaletteVariables",{enumerable:!0,get:function(){return n.PaletteVariables}}),Object.defineProperty(e,"Theme",{enumerable:!0,get:function(){return n.Theme}}),Object.defineProperty(e,"ThemeCardBorderRadius",{enumerable:!0,get:function(){return n.ThemeCardBorderRadius}}),Object.defineProperty(e,"ThemeData",{enumerable:!0,get:function(){return n.ThemeData}}),Object.defineProperty(e,"ThemePaletteColorBase",{enumerable:!0,get:function(){return n.ThemePaletteColorBase}}),Object.defineProperty(e,"ThemePaletteColorExpanded",{enumerable:!0,get:function(){return n.ThemePaletteColorExpanded}}),Object.defineProperty(e,"ThemePaletteColorGray",{enumerable:!0,get:function(){return n.ThemePaletteColorGray}}),Object.defineProperty(e,"ThemePaletteColorStandard",{enumerable:!0,get:function(){return n.ThemePaletteColorStandard}}),Object.defineProperty(e,"ThemePaletteDataVisualization",{enumerable:!0,get:function(){return n.ThemePaletteDataVisualization}}),Object.defineProperty(e,"ThemePaletteDataVisualizationColors",{enumerable:!0,get:function(){return n.ThemePaletteDataVisualizationColors}}),Object.defineProperty(e,"TypographyVariables",{enumerable:!0,get:function(){return n.TypographyVariables}})})(Rr);function gf(){let e={};return{get:a=>e[a],set:(a,i)=>{e[a]=i},reset:()=>{e={}}}}const Ew=Q.createContext({resolveIcon:()=>Promise.resolve(""),iconCache:gf()}),$w=e=>{let{children:t,resolveIcon:r,iconCache:n=gf()}=e;return Q.useEffect(()=>{n.reset()},[n,r]),ve(Ew.Provider,{value:{resolveIcon:r,iconCache:n},children:t})},Pw=e=>t=>{const r=e?`.${e}`:"html";return Pt.css({[r]:{boxSizing:"border-box",color:t.palette.gray.dark,fontWeight:t.typography.fontWeight.normal,fontSize:t.typography.fontSize.M,lineHeight:1.15,WebkitTextSizeAdjust:"100%",...r==="html"&&{body:{margin:0}},main:{display:"block"},"*, *::before, *::after":{boxSizing:"inherit"},"h1, h2, h3, h4, h5, h6":{marginTop:0,marginBottom:t.spacing(3)},"abbr[title]":{borderBottom:"none",textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},code:{fontFamily:"monospace, monospace",fontSize:"1em"},"ul, ol":{margin:0,padding:0},"button, input, optgroup, select, textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},'button, [type="button"], [type="reset"], [type="submit"]':{WebkitAppearance:"button"},'button::-moz-focus-inner,[type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner':{borderStyle:"none",padding:0},'button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring':{outline:"1px dotted ButtonText"},button:{border:0},"input[type=number]":{MozAppearance:"textfield"},"input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"input[type=search]::-webkit-search-decoration, input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-results-button, input[type=search]::-webkit-search-results-decoration":{display:"none"},'input[type="time"]::-webkit-calendar-picker-indicator':{display:"none"},textarea:{resize:"vertical"},small:{fontSize:"80%"},fieldset:{padding:`${t.spacing(.7)}px ${t.spacing(1.5)}px ${t.spacing(1.25)}px`},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},'[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button':{height:"auto"},'[type="search"]':{WebkitAppearance:"textfield",outlineOffset:"-2px"},'[type="search"]::-webkit-search-decoration':{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},details:{display:"block"},template:{display:"none"},"[hidden]":{display:"none"}}},process.env.NODE_ENV==="production"?"":";label:getEmotionResetStyles;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkVtb3Rpb25SZXNldFN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFTZSIsImZpbGUiOiJFbW90aW9uUmVzZXRTdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MsIFNlcmlhbGl6ZWRTdHlsZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnQHBhY2tsaW5rL2dpZ2VyLXRoZW1lJztcblxuZXhwb3J0IGNvbnN0IGdldEVtb3Rpb25SZXNldFN0eWxlcyA9XG4gICAgKGNsYXNzTmFtZT86IHN0cmluZykgPT5cbiAgICAodGhlbWU6IFRoZW1lKTogU2VyaWFsaXplZFN0eWxlcyA9PiB7XG4gICAgICAgIGNvbnN0IHBhcmVudFNlbGVjdG9yID0gY2xhc3NOYW1lID8gYC4ke2NsYXNzTmFtZX1gIDogJ2h0bWwnO1xuXG4gICAgICAgIHJldHVybiBjc3Moe1xuICAgICAgICAgICAgW3BhcmVudFNlbGVjdG9yXToge1xuICAgICAgICAgICAgICAgIGJveFNpemluZzogJ2JvcmRlci1ib3gnLFxuICAgICAgICAgICAgICAgIGNvbG9yOiB0aGVtZS5wYWxldHRlLmdyYXkuZGFyayxcbiAgICAgICAgICAgICAgICBmb250V2VpZ2h0OiB0aGVtZS50eXBvZ3JhcGh5LmZvbnRXZWlnaHQubm9ybWFsLFxuICAgICAgICAgICAgICAgIGZvbnRTaXplOiB0aGVtZS50eXBvZ3JhcGh5LmZvbnRTaXplLk0sXG5cbiAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgKiAxLiBDb3JyZWN0IHRoZSBsaW5lIGhlaWdodCBpbiBhbGwgYnJvd3NlcnMuXG4gICAgICAgICAgICAgICAgICogMi4gUHJldmVudCBhZGp1c3RtZW50cyBvZiBmb250IHNpemUgYWZ0ZXIgb3JpZW50YXRpb24gY2hhbmdlcyBpbiBpT1MuXG4gICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgbGluZUhlaWdodDogMS4xNSxcbiAgICAgICAgICAgICAgICBXZWJraXRUZXh0U2l6ZUFkanVzdDogJzEwMCUnLFxuXG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogUmVtb3ZlIHRoZSBtYXJnaW4gaW4gYWxsIGJyb3dzZXJzLlxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgIC4uLihwYXJlbnRTZWxlY3RvciA9PT0gJ2h0bWwnICYmIHtcbiAgICAgICAgICAgICAgICAgICAgYm9keToge1xuICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiAwLFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0pLFxuXG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogUmVuZGVyIHRoZSBgbWFpbmAgZWxlbWVudCBjb25zaXN0ZW50bHkgaW4gSUUuXG4gICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgbWFpbjoge1xuICAgICAgICAgICAgICAgICAgICBkaXNwbGF5OiAnYmxvY2snLFxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICAnKiwgKjo6YmVmb3JlLCAqOjphZnRlcic6IHtcbiAgICAgICAgICAgICAgICAgICAgYm94U2l6aW5nOiAnaW5oZXJpdCcsXG4gICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgICdoMSwgaDIsIGgzLCBoNCwgaDUsIGg2Jzoge1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW5Ub3A6IDAsXG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbkJvdHRvbTogdGhlbWUuc3BhY2luZygzKSxcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogMS4gUmVtb3ZlIHRoZSBib3R0b20gYm9yZGVyIGluIENocm9tZSA1Ny1cbiAgICAgICAgICAgICAgICAgKiAyLiBBZGQgdGhlIGNvcnJlY3QgdGV4dCBkZWNvcmF0aW9uIGluIENocm9tZSwgRWRnZSwgSUUsIE9wZXJhLCBhbmQgU2FmYXJpLlxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICdhYmJyW3RpdGxlXSc6IHtcbiAgICAgICAgICAgICAgICAgICAgYm9yZGVyQm90dG9tOiAnbm9uZScsXG4gICAgICAgICAgICAgICAgICAgIHRleHREZWNvcmF0aW9uOiAndW5kZXJsaW5lIGRvdHRlZCcsXG4gICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAqIEFkZCB0aGUgY29ycmVjdCBmb250IHdlaWdodCBpbiBDaHJvbWUsIEVkZ2UsIGFuZCBTYWZhcmkuXG4gICAgICAgICAgICAgICAgICovXG5cbiAgICAgICAgICAgICAgICAnYiwgc3Ryb25nJzoge1xuICAgICAgICAgICAgICAgICAgICBmb250V2VpZ2h0OiAnYm9sZGVyJyxcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgY29kZToge1xuICAgICAgICAgICAgICAgICAgICBmb250RmFtaWx5OiAnbW9ub3NwYWNlLCBtb25vc3BhY2UnLFxuICAgICAgICAgICAgICAgICAgICBmb250U2l6ZTogJzFlbScsXG4gICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgICd1bCwgb2wnOiB7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbjogMCxcbiAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogMS4gQ2hhbmdlIHRoZSBmb250IHN0eWxlcyBpbiBhbGwgYnJvd3NlcnMuXG4gICAgICAgICAgICAgICAgICogMi4gUmVtb3ZlIHRoZSBtYXJnaW4gaW4gRmlyZWZveCBhbmQgU2FmYXJpLlxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICdidXR0b24sIGlucHV0LCBvcHRncm91cCwgc2VsZWN0LCB0ZXh0YXJlYSc6IHtcbiAgICAgICAgICAgICAgICAgICAgZm9udEZhbWlseTogJ2luaGVyaXQnLFxuICAgICAgICAgICAgICAgICAgICBmb250U2l6ZTogJzEwMCUnLFxuICAgICAgICAgICAgICAgICAgICBsaW5lSGVpZ2h0OiAnMS4xNScsXG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbjogMCxcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogU2hvdyB0aGUgb3ZlcmZsb3cgaW4gSUUuXG4gICAgICAgICAgICAgICAgICogMS4gU2hvdyB0aGUgb3ZlcmZsb3cgaW4gRWRnZS5cbiAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICAnYnV0dG9uLCBpbnB1dCc6IHtcbiAgICAgICAgICAgICAgICAgICAgb3ZlcmZsb3c6ICd2aXNpYmxlJyxcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogUmVtb3ZlIHRoZSBpbmhlcml0YW5jZSBvZiB0ZXh0IHRyYW5zZm9ybSBpbiBFZGdlLCBGaXJlZm94LCBhbmQgSUUuXG4gICAgICAgICAgICAgICAgICogMS4gUmVtb3ZlIHRoZSBpbmhlcml0YW5jZSBvZiB0ZXh0IHRyYW5zZm9ybSBpbiBGaXJlZm94LlxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICdidXR0b24sIHNlbGVjdCc6IHtcbiAgICAgICAgICAgICAgICAgICAgdGV4dFRyYW5zZm9ybTogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICAnYnV0dG9uLCBbdHlwZT1cImJ1dHRvblwiXSwgW3R5cGU9XCJyZXNldFwiXSwgW3R5cGU9XCJzdWJtaXRcIl0nOiB7XG4gICAgICAgICAgICAgICAgICAgIFdlYmtpdEFwcGVhcmFuY2U6ICdidXR0b24nLFxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgKiBSZW1vdmUgdGhlIGlubmVyIGJvcmRlciBhbmQgcGFkZGluZyBpbiBGaXJlZm94LlxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICdidXR0b246Oi1tb3otZm9jdXMtaW5uZXIsW3R5cGU9XCJidXR0b25cIl06Oi1tb3otZm9jdXMtaW5uZXIsIFt0eXBlPVwicmVzZXRcIl06Oi1tb3otZm9jdXMtaW5uZXIsIFt0eXBlPVwic3VibWl0XCJdOjotbW96LWZvY3VzLWlubmVyJzpcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgYm9yZGVyU3R5bGU6ICdub25lJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgKiBSZXN0b3JlIHRoZSBmb2N1cyBzdHlsZXMgdW5zZXQgYnkgdGhlIHByZXZpb3VzIHJ1bGUuXG4gICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgJ2J1dHRvbjotbW96LWZvY3VzcmluZywgW3R5cGU9XCJidXR0b25cIl06LW1vei1mb2N1c3JpbmcsIFt0eXBlPVwicmVzZXRcIl06LW1vei1mb2N1c3JpbmcsIFt0eXBlPVwic3VibWl0XCJdOi1tb3otZm9jdXNyaW5nJzpcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgb3V0bGluZTogJzFweCBkb3R0ZWQgQnV0dG9uVGV4dCcsXG4gICAgICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICBidXR0b246IHtcbiAgICAgICAgICAgICAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICAnaW5wdXRbdHlwZT1udW1iZXJdJzoge1xuICAgICAgICAgICAgICAgICAgICBNb3pBcHBlYXJhbmNlOiAndGV4dGZpZWxkJyxcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgJ2lucHV0W3R5cGU9bnVtYmVyXTo6LXdlYmtpdC1pbm5lci1zcGluLWJ1dHRvbiwgaW5wdXRbdHlwZT1udW1iZXJdOjotd2Via2l0LW91dGVyLXNwaW4tYnV0dG9uJzoge1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDAsXG4gICAgICAgICAgICAgICAgICAgIFdlYmtpdEFwcGVhcmFuY2U6ICdub25lJyxcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgJ2lucHV0W3R5cGU9c2VhcmNoXTo6LXdlYmtpdC1zZWFyY2gtZGVjb3JhdGlvbiwgaW5wdXRbdHlwZT1zZWFyY2hdOjotd2Via2l0LXNlYXJjaC1jYW5jZWwtYnV0dG9uLCBpbnB1dFt0eXBlPXNlYXJjaF06Oi13ZWJraXQtc2VhcmNoLXJlc3VsdHMtYnV0dG9uLCBpbnB1dFt0eXBlPXNlYXJjaF06Oi13ZWJraXQtc2VhcmNoLXJlc3VsdHMtZGVjb3JhdGlvbic6XG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRpc3BsYXk6ICdub25lJyxcbiAgICAgICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgICdpbnB1dFt0eXBlPVwidGltZVwiXTo6LXdlYmtpdC1jYWxlbmRhci1waWNrZXItaW5kaWNhdG9yJzoge1xuICAgICAgICAgICAgICAgICAgICBkaXNwbGF5OiAnbm9uZScsXG4gICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAqIFJlbW92ZSB0aGUgZGVmYXVsdCB2ZXJ0aWNhbCBzY3JvbGxiYXIgaW4gSUUgMTArLlxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgIHRleHRhcmVhOiB7XG4gICAgICAgICAgICAgICAgICAgIHJlc2l6ZTogJ3ZlcnRpY2FsJyxcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogQWRkIHRoZSBjb3JyZWN0IGZvbnQgc2l6ZSBpbiBhbGwgYnJvd3NlcnMuXG4gICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgc21hbGw6IHtcbiAgICAgICAgICAgICAgICAgICAgZm9udFNpemU6ICc4MCUnLFxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgKiBDb3JyZWN0IHRoZSBwYWRkaW5nIGluIEZpcmVmb3guXG4gICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgZmllbGRzZXQ6IHtcbiAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogYCR7dGhlbWUuc3BhY2luZygwLjcpfXB4ICR7dGhlbWUuc3BhY2luZygxLjUpfXB4ICR7dGhlbWUuc3BhY2luZygxLjI1KX1weGAsXG4gICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAqIDEuIENvcnJlY3QgdGhlIHRleHQgd3JhcHBpbmcgaW4gRWRnZSBhbmQgSUUuXG4gICAgICAgICAgICAgICAgICogMi4gQ29ycmVjdCB0aGUgY29sb3IgaW5oZXJpdGFuY2UgZnJvbSBgZmllbGRzZXRgIGVsZW1lbnRzIGluIElFLlxuICAgICAgICAgICAgICAgICAqIDMuIFJlbW92ZSB0aGUgcGFkZGluZyBzbyBkZXZlbG9wZXJzIGFyZSBub3QgY2F1Z2h0IG91dCB3aGVuIHRoZXkgemVybyBvdXRcbiAgICAgICAgICAgICAgICAgKiAgICBgZmllbGRzZXRgIGVsZW1lbnRzIGluIGFsbCBicm93c2Vycy5cbiAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICBsZWdlbmQ6IHtcbiAgICAgICAgICAgICAgICAgICAgYm94U2l6aW5nOiAnYm9yZGVyLWJveCcsXG4gICAgICAgICAgICAgICAgICAgIGNvbG9yOiAnaW5oZXJpdCcsXG4gICAgICAgICAgICAgICAgICAgIGRpc3BsYXk6ICd0YWJsZScsXG4gICAgICAgICAgICAgICAgICAgIG1heFdpZHRoOiAnMTAwJScsXG4gICAgICAgICAgICAgICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgICAgICAgICAgICAgIHdoaXRlU3BhY2U6ICdub3JtYWwnLFxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgKiBDb3JyZWN0IHRoZSBjdXJzb3Igc3R5bGUgb2YgaW5jcmVtZW50IGFuZCBkZWNyZW1lbnQgYnV0dG9ucyBpbiBDaHJvbWUuXG4gICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgJ1t0eXBlPVwibnVtYmVyXCJdOjotd2Via2l0LWlubmVyLXNwaW4tYnV0dG9uLCBbdHlwZT1cIm51bWJlclwiXTo6LXdlYmtpdC1vdXRlci1zcGluLWJ1dHRvbic6IHtcbiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiAnYXV0bycsXG4gICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAqIDEuIENvcnJlY3QgdGhlIG9kZCBhcHBlYXJhbmNlIGluIENocm9tZSBhbmQgU2FmYXJpLlxuICAgICAgICAgICAgICAgICAqIDIuIENvcnJlY3QgdGhlIG91dGxpbmUgc3R5bGUgaW4gU2FmYXJpLlxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICdbdHlwZT1cInNlYXJjaFwiXSc6IHtcbiAgICAgICAgICAgICAgICAgICAgV2Via2l0QXBwZWFyYW5jZTogJ3RleHRmaWVsZCcsXG4gICAgICAgICAgICAgICAgICAgIG91dGxpbmVPZmZzZXQ6ICctMnB4JyxcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogUmVtb3ZlIHRoZSBpbm5lciBwYWRkaW5nIGluIENocm9tZSBhbmQgU2FmYXJpIG9uIG1hY09TLlxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICdbdHlwZT1cInNlYXJjaFwiXTo6LXdlYmtpdC1zZWFyY2gtZGVjb3JhdGlvbic6IHtcbiAgICAgICAgICAgICAgICAgICAgV2Via2l0QXBwZWFyYW5jZTogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgKiAxLiBDb3JyZWN0IHRoZSBpbmFiaWxpdHkgdG8gc3R5bGUgY2xpY2thYmxlIHR5cGVzIGluIGlPUyBhbmQgU2FmYXJpLlxuICAgICAgICAgICAgICAgICAqIDIuIENoYW5nZSBmb250IHByb3BlcnRpZXMgdG8gYGluaGVyaXRgIGluIFNhZmFyaS5cbiAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICAnOjotd2Via2l0LWZpbGUtdXBsb2FkLWJ1dHRvbic6IHtcbiAgICAgICAgICAgICAgICAgICAgV2Via2l0QXBwZWFyYW5jZTogJ2J1dHRvbicsXG4gICAgICAgICAgICAgICAgICAgIGZvbnQ6ICdpbmhlcml0JyxcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgLypcbiAgICAgICAgICAgICAgICAgKiBBZGQgdGhlIGNvcnJlY3QgZGlzcGxheSBpbiBFZGdlLCBJRSAxMCssIGFuZCBGaXJlZm94LlxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgIGRldGFpbHM6IHtcbiAgICAgICAgICAgICAgICAgICAgZGlzcGxheTogJ2Jsb2NrJyxcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogQWRkIHRoZSBjb3JyZWN0IGRpc3BsYXkgaW4gSUUgMTArLlxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgIHRlbXBsYXRlOiB7XG4gICAgICAgICAgICAgICAgICAgIGRpc3BsYXk6ICdub25lJyxcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogQWRkIHRoZSBjb3JyZWN0IGRpc3BsYXkgaW4gSUUgMTArLlxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICdbaGlkZGVuXSc6IHtcbiAgICAgICAgICAgICAgICAgICAgZGlzcGxheTogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICB9KTtcbiAgICB9O1xuIl19 */")};var pf={};Object.defineProperty(pf,"__esModule",{value:!0});var Fw=pf.default=function(){},fu=(e,t,r)=>new Promise((n,a)=>{var i=u=>{try{s(r.next(u))}catch(f){a(f)}},o=u=>{try{s(r.throw(u))}catch(f){a(f)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});const df=({cdnURL:e="/",scope:t,theme:r})=>{const[n,a]=Q.useState();return Q.useEffect(()=>{fu(void 0,null,function*(){var i;try{const o=(i=r?.fontFaces)!=null?i:[];yield Promise.all(o.map(s=>fu(void 0,[s],function*({family:u,source:f,descriptors:g}){const c=f.map(p=>`url(${p.replace("$cdnUrl",e)})`).join(", ");try{const h=yield new FontFace(u,c,g).load();document.fonts.add(h)}catch(p){console.error(p)}}))),a(r?.defaultFontFamily)}catch(o){st.logger.error({error:o},"Error loading fonts")}})},[e,r]),Pt.css({[`.${t}`]:{fontFamily:n}})};var Ha={},Dw={get exports(){return Ha},set exports(e){Ha=e}},Cr={},kw={get exports(){return Cr},set exports(e){Cr=e}},hf=function(t,r){return function(){for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];return t.apply(r,a)}},Bw=hf,rt=Object.prototype.toString;function xi(e){return Array.isArray(e)}function Ma(e){return typeof e>"u"}function Ww(e){return e!==null&&!Ma(e)&&e.constructor!==null&&!Ma(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function yf(e){return rt.call(e)==="[object ArrayBuffer]"}function jw(e){return rt.call(e)==="[object FormData]"}function Nw(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&yf(e.buffer),t}function Gw(e){return typeof e=="string"}function Xw(e){return typeof e=="number"}function vf(e){return e!==null&&typeof e=="object"}function lr(e){if(rt.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Hw(e){return rt.call(e)==="[object Date]"}function Mw(e){return rt.call(e)==="[object File]"}function zw(e){return rt.call(e)==="[object Blob]"}function Cf(e){return rt.call(e)==="[object Function]"}function Uw(e){return vf(e)&&Cf(e.pipe)}function Vw(e){return rt.call(e)==="[object URLSearchParams]"}function Zw(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function qw(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Oi(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),xi(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}function za(){var e={};function t(a,i){lr(e[i])&&lr(a)?e[i]=za(e[i],a):lr(a)?e[i]=za({},a):xi(a)?e[i]=a.slice():e[i]=a}for(var r=0,n=arguments.length;r<n;r++)Oi(arguments[r],t);return e}function Yw(e,t,r){return Oi(t,function(a,i){r&&typeof a=="function"?e[i]=Bw(a,r):e[i]=a}),e}function Jw(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var de={isArray:xi,isArrayBuffer:yf,isBuffer:Ww,isFormData:jw,isArrayBufferView:Nw,isString:Gw,isNumber:Xw,isObject:vf,isPlainObject:lr,isUndefined:Ma,isDate:Hw,isFile:Mw,isBlob:zw,isFunction:Cf,isStream:Uw,isURLSearchParams:Vw,isStandardBrowserEnv:qw,forEach:Oi,merge:za,extend:Yw,trim:Zw,stripBOM:Jw},dt=de;function gu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Af=function(t,r,n){if(!r)return t;var a;if(n)a=n(r);else if(dt.isURLSearchParams(r))a=r.toString();else{var i=[];dt.forEach(r,function(u,f){u===null||typeof u>"u"||(dt.isArray(u)?f=f+"[]":u=[u],dt.forEach(u,function(c){dt.isDate(c)?c=c.toISOString():dt.isObject(c)&&(c=JSON.stringify(c)),i.push(gu(f)+"="+gu(c))}))}),a=i.join("&")}if(a){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t},Kw=de;function Hr(){this.handlers=[]}Hr.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Hr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Hr.prototype.forEach=function(t){Kw.forEach(this.handlers,function(n){n!==null&&t(n)})};var Qw=Hr,eR=de,tR=function(t,r){eR.forEach(t,function(a,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=a,delete t[i])})},bf=function(t,r,n,a,i){return t.config=r,n&&(t.code=n),t.request=a,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},mf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pa,pu;function If(){if(pu)return pa;pu=1;var e=bf;return pa=function(r,n,a,i,o){var s=new Error(r);return e(s,n,a,i,o)},pa}var da,du;function rR(){if(du)return da;du=1;var e=If();return da=function(r,n,a){var i=a.config.validateStatus;!a.status||!i||i(a.status)?r(a):n(e("Request failed with status code "+a.status,a.config,null,a.request,a))},da}var ha,hu;function nR(){if(hu)return ha;hu=1;var e=de;return ha=e.isStandardBrowserEnv()?function(){return{write:function(n,a,i,o,s,u){var f=[];f.push(n+"="+encodeURIComponent(a)),e.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),e.isString(o)&&f.push("path="+o),e.isString(s)&&f.push("domain="+s),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){var a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ha}var ya,yu;function aR(){return yu||(yu=1,ya=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),ya}var va,vu;function iR(){return vu||(vu=1,va=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),va}var Ca,Cu;function oR(){if(Cu)return Ca;Cu=1;var e=aR(),t=iR();return Ca=function(n,a){return n&&!e(a)?t(n,a):a},Ca}var Aa,Au;function sR(){if(Au)return Aa;Au=1;var e=de,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Aa=function(n){var a={},i,o,s;return n&&e.forEach(n.split(`
|
|
29
|
-
`),function(f){if(s=f.indexOf(":"),i=e.trim(f.substr(0,s)).toLowerCase(),o=e.trim(f.substr(s+1)),i){if(a[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?a[i]=(a[i]?a[i]:[]).concat([o]):a[i]=a[i]?a[i]+", "+o:o}}),a},Aa}var ba,bu;function uR(){if(bu)return ba;bu=1;var e=de;return ba=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),a;function i(o){var s=o;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=i(window.location.href),function(s){var u=e.isString(s)?i(s):s;return u.protocol===a.protocol&&u.host===a.host}}():function(){return function(){return!0}}(),ba}var ma,mu;function Mr(){if(mu)return ma;mu=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,ma=e,ma}var Ia,Iu;function Su(){if(Iu)return Ia;Iu=1;var e=de,t=rR(),r=nR(),n=Af,a=oR(),i=sR(),o=uR(),s=If(),u=mf,f=Mr();return Ia=function(c){return new Promise(function(h,v){var m=c.data,b=c.headers,y=c.responseType,A;function x(){c.cancelToken&&c.cancelToken.unsubscribe(A),c.signal&&c.signal.removeEventListener("abort",A)}e.isFormData(m)&&delete b["Content-Type"];var I=new XMLHttpRequest;if(c.auth){var S=c.auth.username||"",D=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";b.Authorization="Basic "+btoa(S+":"+D)}var $=a(c.baseURL,c.url);I.open(c.method.toUpperCase(),n($,c.params,c.paramsSerializer),!0),I.timeout=c.timeout;function N(){if(I){var W="getAllResponseHeaders"in I?i(I.getAllResponseHeaders()):null,F=!y||y==="text"||y==="json"?I.responseText:I.response,q={data:F,status:I.status,statusText:I.statusText,headers:W,config:c,request:I};t(function(ee){h(ee),x()},function(ee){v(ee),x()},q),I=null}}if("onloadend"in I?I.onloadend=N:I.onreadystatechange=function(){!I||I.readyState!==4||I.status===0&&!(I.responseURL&&I.responseURL.indexOf("file:")===0)||setTimeout(N)},I.onabort=function(){I&&(v(s("Request aborted",c,"ECONNABORTED",I)),I=null)},I.onerror=function(){v(s("Network Error",c,null,I)),I=null},I.ontimeout=function(){var F=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",q=c.transitional||u;c.timeoutErrorMessage&&(F=c.timeoutErrorMessage),v(s(F,c,q.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",I)),I=null},e.isStandardBrowserEnv()){var ne=(c.withCredentials||o($))&&c.xsrfCookieName?r.read(c.xsrfCookieName):void 0;ne&&(b[c.xsrfHeaderName]=ne)}"setRequestHeader"in I&&e.forEach(b,function(F,q){typeof m>"u"&&q.toLowerCase()==="content-type"?delete b[q]:I.setRequestHeader(q,F)}),e.isUndefined(c.withCredentials)||(I.withCredentials=!!c.withCredentials),y&&y!=="json"&&(I.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&I.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&I.upload&&I.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(A=function(W){I&&(v(!W||W&&W.type?new f("canceled"):W),I.abort(),I=null)},c.cancelToken&&c.cancelToken.subscribe(A),c.signal&&(c.signal.aborted?A():c.signal.addEventListener("abort",A))),m||(m=null),I.send(m)})},Ia}var se=de,_u=tR,cR=bf,lR=mf,fR={"Content-Type":"application/x-www-form-urlencoded"};function xu(e,t){!se.isUndefined(e)&&se.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function gR(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Su()),e}function pR(e,t,r){if(se.isString(e))try{return(t||JSON.parse)(e),se.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var zr={transitional:lR,adapter:gR(),transformRequest:[function(t,r){return _u(r,"Accept"),_u(r,"Content-Type"),se.isFormData(t)||se.isArrayBuffer(t)||se.isBuffer(t)||se.isStream(t)||se.isFile(t)||se.isBlob(t)?t:se.isArrayBufferView(t)?t.buffer:se.isURLSearchParams(t)?(xu(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):se.isObject(t)||r&&r["Content-Type"]==="application/json"?(xu(r,"application/json"),pR(t)):t}],transformResponse:[function(t){var r=this.transitional||zr.transitional,n=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||a&&se.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i)throw o.name==="SyntaxError"?cR(o,this,"E_JSON_PARSE"):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};se.forEach(["delete","get","head"],function(t){zr.headers[t]={}});se.forEach(["post","put","patch"],function(t){zr.headers[t]=se.merge(fR)});var wi=zr,dR=de,hR=wi,yR=function(t,r,n){var a=this||hR;return dR.forEach(n,function(o){t=o.call(a,t,r)}),t},Sa,Ou;function Sf(){return Ou||(Ou=1,Sa=function(t){return!!(t&&t.__CANCEL__)}),Sa}var wu=de,_a=yR,vR=Sf(),CR=wi,AR=Mr();function xa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new AR("canceled")}var bR=function(t){xa(t),t.headers=t.headers||{},t.data=_a.call(t,t.data,t.headers,t.transformRequest),t.headers=wu.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),wu.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]});var r=t.adapter||CR.adapter;return r(t).then(function(a){return xa(t),a.data=_a.call(t,a.data,a.headers,t.transformResponse),a},function(a){return vR(a)||(xa(t),a&&a.response&&(a.response.data=_a.call(t,a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})},ye=de,_f=function(t,r){r=r||{};var n={};function a(g,c){return ye.isPlainObject(g)&&ye.isPlainObject(c)?ye.merge(g,c):ye.isPlainObject(c)?ye.merge({},c):ye.isArray(c)?c.slice():c}function i(g){if(ye.isUndefined(r[g])){if(!ye.isUndefined(t[g]))return a(void 0,t[g])}else return a(t[g],r[g])}function o(g){if(!ye.isUndefined(r[g]))return a(void 0,r[g])}function s(g){if(ye.isUndefined(r[g])){if(!ye.isUndefined(t[g]))return a(void 0,t[g])}else return a(void 0,r[g])}function u(g){if(g in r)return a(t[g],r[g]);if(g in t)return a(void 0,t[g])}var f={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return ye.forEach(Object.keys(t).concat(Object.keys(r)),function(c){var p=f[c]||i,h=p(c);ye.isUndefined(h)&&p!==u||(n[c]=h)}),n},Oa,Ru;function xf(){return Ru||(Ru=1,Oa={version:"0.26.1"}),Oa}var mR=xf().version,Ri={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Ri[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Lu={};Ri.transitional=function(t,r,n){function a(i,o){return"[Axios v"+mR+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return function(i,o,s){if(t===!1)throw new Error(a(o," has been removed"+(r?" in "+r:"")));return r&&!Lu[o]&&(Lu[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};function IR(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),a=n.length;a-- >0;){var i=n[a],o=t[i];if(o){var s=e[i],u=s===void 0||o(s,i,e);if(u!==!0)throw new TypeError("option "+i+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+i)}}var SR={assertOptions:IR,validators:Ri},Of=de,_R=Af,Tu=Qw,Eu=bR,Ur=_f,wf=SR,ht=wf.validators;function Ut(e){this.defaults=e,this.interceptors={request:new Tu,response:new Tu}}Ut.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ur(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&wf.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1);var a=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(i=i&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});var o=[];this.interceptors.response.forEach(function(h){o.push(h.fulfilled,h.rejected)});var s;if(!i){var u=[Eu,void 0];for(Array.prototype.unshift.apply(u,a),u=u.concat(o),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var f=r;a.length;){var g=a.shift(),c=a.shift();try{f=g(f)}catch(p){c(p);break}}try{s=Eu(f)}catch(p){return Promise.reject(p)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};Ut.prototype.getUri=function(t){return t=Ur(this.defaults,t),_R(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Of.forEach(["delete","get","head","options"],function(t){Ut.prototype[t]=function(r,n){return this.request(Ur(n||{},{method:t,url:r,data:(n||{}).data}))}});Of.forEach(["post","put","patch"],function(t){Ut.prototype[t]=function(r,n,a){return this.request(Ur(a||{},{method:t,url:r,data:n}))}});var xR=Ut,wa,$u;function OR(){if($u)return wa;$u=1;var e=Mr();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(o){n=o});var a=this;this.promise.then(function(i){if(a._listeners){var o,s=a._listeners.length;for(o=0;o<s;o++)a._listeners[o](i);a._listeners=null}}),this.promise.then=function(i){var o,s=new Promise(function(u){a.subscribe(u),o=u}).then(i);return s.cancel=function(){a.unsubscribe(o)},s},r(function(o){a.reason||(a.reason=new e(o),n(a.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},t.prototype.unsubscribe=function(n){if(this._listeners){var a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}},t.source=function(){var n,a=new t(function(o){n=o});return{token:a,cancel:n}},wa=t,wa}var Ra,Pu;function wR(){return Pu||(Pu=1,Ra=function(t){return function(n){return t.apply(null,n)}}),Ra}var La,Fu;function RR(){if(Fu)return La;Fu=1;var e=de;return La=function(r){return e.isObject(r)&&r.isAxiosError===!0},La}var Du=de,LR=hf,fr=xR,TR=_f,ER=wi;function Rf(e){var t=new fr(e),r=LR(fr.prototype.request,t);return Du.extend(r,fr.prototype,t),Du.extend(r,t),r.create=function(a){return Rf(TR(e,a))},r}var Ne=Rf(ER);Ne.Axios=fr;Ne.Cancel=Mr();Ne.CancelToken=OR();Ne.isCancel=Sf();Ne.VERSION=xf().version;Ne.all=function(t){return Promise.all(t)};Ne.spread=wR();Ne.isAxiosError=RR();kw.exports=Ne;Cr.default=Ne;(function(e){e.exports=Cr})(Dw);const Ua=Ep(Ha);var ku=(e,t,r)=>new Promise((n,a)=>{var i=u=>{try{s(r.next(u))}catch(f){a(f)}},o=u=>{try{s(r.throw(u))}catch(f){a(f)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});const Lf=({brandName:e,cdnURL:t="/"})=>{const[r,n]=Q.useState();return Q.useEffect(()=>{ku(void 0,null,function*(){try{const a=yield Ua.get("/brand/iconIndex.json",{baseURL:t});n(a.data)}catch(a){st.logger.error({error:a},`Error loading icon index for brand ${e}`)}})},[e,t]),a=>ku(void 0,null,function*(){if(r){const i=(r[a.toLowerCase()]||[]).includes(e)?e:Rr.BrandName.FALLBACK;return(yield Ua.get(`/brand/${i}/icons/${a.toLowerCase()}.svg`,{baseURL:t,responseType:"text"})).data}})};var $R=(e,t,r)=>new Promise((n,a)=>{var i=u=>{try{s(r.next(u))}catch(f){a(f)}},o=u=>{try{s(r.throw(u))}catch(f){a(f)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});const Tf=({cdnURL:e="/",brandName:t})=>{const[r,n]=Q.useState();return Q.useEffect(()=>{$R(void 0,null,function*(){try{const a=yield Ua.get(`/brand/${t}/theme.json`,{baseURL:e}),i=new Rr.Theme(a.data);n(i)}catch(a){st.logger.error({error:a},`Error loading theme for brand ${t}`)}})},[t,e]),r},Li=Q.createContext(void 0),PR=({baseURL:e="https://api.shipengine.com",brandName:t=Rr.BrandName.FALLBACK,cdnURL:r="/",children:n,getToken:a,onError:i,scope:o="lmnt"})=>{const s=Tf({brandName:t,cdnURL:r}),u=df({cdnURL:r,scope:o,theme:s}),f=Lf({brandName:t,cdnURL:r});return s?(i=i??Fw,ve(Li.Provider,{value:{baseURL:e,brandName:t,cdnURL:r,getToken:a,onError:i,scope:o,theme:s},children:od(Pt.ThemeProvider,{theme:s,children:[ve(Pt.Global,{styles:[Pw(o),u]}),ve($w,{resolveIcon:f,children:ve(st.ShipEngine,{baseURL:e,getToken:a,children:n})})]})})):null},Ef=()=>{const e=Q.useContext(Li);if(!e)throw new Error("useAlchemy must be called from within the scope of <Alchemy />");return e};class $f extends Ea.Component{constructor(t){super(t),this.state={error:void 0}}componentDidCatch(t,r){t.stack=r.componentStack,this.props.onError(t),st.logger.error({error:t},t.message),this.setState({error:t})}render(){const{fallback:t,children:r}=this.props,{error:n}=this.state;return n?ve("div",{role:"alert",children:ve(t,{error:n})}):r}}function Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bu(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,nl(n.key),n)}}function $e(e,t,r){return t&&Bu(e.prototype,t),r&&Bu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function et(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Va(e,t){return Va=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Va(e,t)}function Vr(e,t){if(typeof t!="function"&&t!==null)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&&Va(e,t)}function Vt(e,t){if(t&&(Re(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return et(e)}function je(e){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},je(e)}function FR(e){if(Array.isArray(e))return e}function DR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kR(e,t){if(e){if(typeof e=="string")return Wu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wu(e,t)}}function BR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
30
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WR(e){return FR(e)||DR(e)||kR(e)||BR()}function ju(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Nu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ju(Object(r),!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ju(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var jR={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,r){console&&console[t]&&console[t].apply(console,r)}},NR=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ee(this,e),this.init(t,r)}return $e(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||jR,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(r,n,a,i){return i&&!this.debug?null:(typeof r[0]=="string"&&(r[0]="".concat(a).concat(this.prefix," ").concat(r[0])),this.logger[n](r))}},{key:"create",value:function(r){return new e(this.logger,Nu(Nu({},{prefix:"".concat(this.prefix,":").concat(r,":")}),this.options))}},{key:"clone",value:function(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new e(this.logger,r)}}]),e}(),Be=new NR,tt=function(){function e(){Ee(this,e),this.observers={}}return $e(e,[{key:"on",value:function(r,n){var a=this;return r.split(" ").forEach(function(i){a.observers[i]=a.observers[i]||[],a.observers[i].push(n)}),this}},{key:"off",value:function(r,n){if(this.observers[r]){if(!n){delete this.observers[r];return}this.observers[r]=this.observers[r].filter(function(a){return a!==n})}}},{key:"emit",value:function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];if(this.observers[r]){var o=[].concat(this.observers[r]);o.forEach(function(u){u.apply(void 0,a)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(u){u.apply(u,[r].concat(a))})}}}]),e}();function Tt(){var e,t,r=new Promise(function(n,a){e=n,t=a});return r.resolve=e,r.reject=t,r}function Gu(e){return e==null?"":""+e}function GR(e,t,r){e.forEach(function(n){t[n]&&(r[n]=t[n])})}function Ti(e,t,r){function n(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function a(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(a())return{};var o=n(i.shift());!e[o]&&r&&(e[o]=new r),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return a()?{}:{obj:e,k:n(i.shift())}}function Xu(e,t,r){var n=Ti(e,t,Object),a=n.obj,i=n.k;a[i]=r}function XR(e,t,r,n){var a=Ti(e,t,Object),i=a.obj,o=a.k;i[o]=i[o]||[],n&&(i[o]=i[o].concat(r)),n||i[o].push(r)}function Ar(e,t){var r=Ti(e,t),n=r.obj,a=r.k;if(n)return n[a]}function Hu(e,t,r){var n=Ar(e,r);return n!==void 0?n:Ar(t,r)}function Pf(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):Pf(e[n],t[n],r):e[n]=t[n]);return e}function yt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var HR={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function MR(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return HR[t]}):e}var Zr=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,zR=[" ",",","?","!",";"];function UR(e,t,r){t=t||"",r=r||"";var n=zR.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var a=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),i=!a.test(e);if(!i){var o=e.indexOf(r);o>0&&!a.test(e.substring(0,o))&&(i=!0)}return i}function Mu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mu(Object(r),!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VR(e){var t=ZR();return function(){var n=je(e),a;if(t){var i=je(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return Vt(this,a)}}function ZR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ff(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),a=e,i=0;i<n.length;++i){if(!a||typeof a[n[i]]=="string"&&i+1<n.length)return;if(a[n[i]]===void 0){for(var o=2,s=n.slice(i,i+o).join(r),u=a[s];u===void 0&&n.length>i+o;)o++,s=n.slice(i,i+o).join(r),u=a[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var f=n.slice(i+o).join(r);return f?Ff(u,f,r):void 0}a=a[n[i]]}return a}}var qR=function(e){Vr(r,e);var t=VR(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ee(this,r),a=t.call(this),Zr&&tt.call(et(a)),a.data=n||{},a.options=i,a.options.keySeparator===void 0&&(a.options.keySeparator="."),a.options.ignoreJSONStructure===void 0&&(a.options.ignoreJSONStructure=!0),a}return $e(r,[{key:"addNamespaces",value:function(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}},{key:"removeNamespaces",value:function(a){var i=this.options.ns.indexOf(a);i>-1&&this.options.ns.splice(i,1)}},{key:"getResource",value:function(a,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,f=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,g=[a,i];o&&typeof o!="string"&&(g=g.concat(o)),o&&typeof o=="string"&&(g=g.concat(u?o.split(u):o)),a.indexOf(".")>-1&&(g=a.split("."));var c=Ar(this.data,g);return c||!f||typeof o!="string"?c:Ff(this.data&&this.data[a]&&this.data[a][i],o,u)}},{key:"addResource",value:function(a,i,o,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},f=this.options.keySeparator;f===void 0&&(f=".");var g=[a,i];o&&(g=g.concat(f?o.split(f):o)),a.indexOf(".")>-1&&(g=a.split("."),s=i,i=g[1]),this.addNamespaces(i),Xu(this.data,g,s),u.silent||this.emit("added",a,i,o,s)}},{key:"addResources",value:function(a,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in o)(typeof o[u]=="string"||Object.prototype.toString.apply(o[u])==="[object Array]")&&this.addResource(a,i,u,o[u],{silent:!0});s.silent||this.emit("added",a,i,o)}},{key:"addResourceBundle",value:function(a,i,o,s,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},g=[a,i];a.indexOf(".")>-1&&(g=a.split("."),s=o,o=i,i=g[1]),this.addNamespaces(i);var c=Ar(this.data,g)||{};s?Pf(c,o,u):c=ar(ar({},c),o),Xu(this.data,g,c),f.silent||this.emit("added",a,i,o)}},{key:"removeResourceBundle",value:function(a,i){this.hasResourceBundle(a,i)&&delete this.data[a][i],this.removeNamespaces(i),this.emit("removed",a,i)}},{key:"hasResourceBundle",value:function(a,i){return this.getResource(a,i)!==void 0}},{key:"getResourceBundle",value:function(a,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ar(ar({},{}),this.getResource(a,i)):this.getResource(a,i)}},{key:"getDataByLanguage",value:function(a){return this.data[a]}},{key:"hasLanguageSomeTranslations",value:function(a){var i=this.getDataByLanguage(a),o=i&&Object.keys(i)||[];return!!o.find(function(s){return i[s]&&Object.keys(i[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(tt),Df={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,a,i){var o=this;return t.forEach(function(s){o.processors[s]&&(r=o.processors[s].process(r,n,a,i))}),r}};function zu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zu(Object(r),!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YR(e){var t=JR();return function(){var n=je(e),a;if(t){var i=je(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return Vt(this,a)}}function JR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Uu={},Vu=function(e){Vr(r,e);var t=YR(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ee(this,r),a=t.call(this),Zr&&tt.call(et(a)),GR(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,et(a)),a.options=i,a.options.keySeparator===void 0&&(a.options.keySeparator="."),a.logger=Be.create("translator"),a}return $e(r,[{key:"changeLanguage",value:function(a){a&&(this.language=a)}},{key:"exists",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(a==null)return!1;var o=this.resolve(a,i);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(a,i){var o=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ns||this.options.defaultNS||[],f=o&&a.indexOf(o)>-1,g=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!UR(a,o,s);if(f&&!g){var c=a.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:a,namespaces:u};var p=a.split(o);(o!==s||o===s&&this.options.ns.indexOf(p[0])>-1)&&(u=p.shift()),a=p.join(s)}return typeof u=="string"&&(u=[u]),{key:a,namespaces:u}}},{key:"translate",value:function(a,i,o){var s=this;if(Re(i)!=="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),i||(i={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);var u=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,f=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,g=this.extractFromKey(a[a.length-1],i),c=g.key,p=g.namespaces,h=p[p.length-1],v=i.lng||this.language,m=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v&&v.toLowerCase()==="cimode"){if(m){var b=i.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(h).concat(b).concat(c),usedKey:c,exactUsedKey:c,usedLng:v,usedNS:h}:"".concat(h).concat(b).concat(c)}return u?{res:c,usedKey:c,exactUsedKey:c,usedLng:v,usedNS:h}:c}var y=this.resolve(a,i),A=y&&y.res,x=y&&y.usedKey||c,I=y&&y.exactUsedKey||c,S=Object.prototype.toString.apply(A),D=["[object Number]","[object Function]","[object RegExp]"],$=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,N=!this.i18nFormat||this.i18nFormat.handleAsObject,ne=typeof A!="string"&&typeof A!="boolean"&&typeof A!="number";if(N&&A&&ne&&D.indexOf(S)<0&&!(typeof $=="string"&&S==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var W=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,A,le(le({},i),{},{ns:p})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return u?(y.res=W,y):W}if(f){var F=S==="[object Array]",q=F?[]:{},oe=F?I:x;for(var ee in A)if(Object.prototype.hasOwnProperty.call(A,ee)){var Ge="".concat(oe).concat(f).concat(ee);q[ee]=this.translate(Ge,le(le({},i),{joinArrays:!1,ns:p})),q[ee]===Ge&&(q[ee]=A[ee])}A=q}}else if(N&&typeof $=="string"&&S==="[object Array]")A=A.join($),A&&(A=this.extendTranslation(A,a,i,o));else{var Pe=!1,_e=!1,Fe=i.count!==void 0&&typeof i.count!="string",Xe=r.hasDefaultValue(i),Ye=Fe?this.pluralResolver.getSuffix(v,i.count,i):"",Ae=i["defaultValue".concat(Ye)]||i.defaultValue;!this.isValidLookup(A)&&Xe&&(Pe=!0,A=Ae),this.isValidLookup(A)||(_e=!0,A=c);var Je=i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,k=Je&&_e?void 0:A,ue=Xe&&Ae!==A&&this.options.updateMissing;if(_e||Pe||ue){if(this.logger.log(ue?"updateKey":"missingKey",v,h,c,ue?Ae:A),f){var E=this.resolve(c,le(le({},i),{},{keySeparator:!1}));E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var _=[],w=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&w&&w[0])for(var P=0;P<w.length;P++)_.push(w[P]);else this.options.saveMissingTo==="all"?_=this.languageUtils.toResolveHierarchy(i.lng||this.language):_.push(i.lng||this.language);var B=function(K,O,ae){var be=Xe&&ae!==A?ae:k;s.options.missingKeyHandler?s.options.missingKeyHandler(K,h,O,be,ue,i):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(K,h,O,be,ue,i),s.emit("missingKey",K,h,O,A)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Fe?_.forEach(function(V){s.pluralResolver.getSuffixes(V,i).forEach(function(K){B([V],c+K,i["defaultValue".concat(K)]||Ae)})}):B(_,c,Ae))}A=this.extendTranslation(A,a,i,y,o),_e&&A===c&&this.options.appendNamespaceToMissingKey&&(A="".concat(h,":").concat(c)),(_e||Pe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?A=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(h,":").concat(c):c,Pe?A:void 0):A=this.options.parseMissingKeyHandler(A))}return u?(y.res=A,y):A}},{key:"extendTranslation",value:function(a,i,o,s,u){var f=this;if(this.i18nFormat&&this.i18nFormat.parse)a=this.i18nFormat.parse(a,le(le({},this.options.interpolation.defaultVariables),o),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(le(le({},o),{interpolation:le(le({},this.options.interpolation),o.interpolation)}));var g=typeof a=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),c;if(g){var p=a.match(this.interpolator.nestingRegexp);c=p&&p.length}var h=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(h=le(le({},this.options.interpolation.defaultVariables),h)),a=this.interpolator.interpolate(a,h,o.lng||this.language,o),g){var v=a.match(this.interpolator.nestingRegexp),m=v&&v.length;c<m&&(o.nest=!1)}o.nest!==!1&&(a=this.interpolator.nest(a,function(){for(var A=arguments.length,x=new Array(A),I=0;I<A;I++)x[I]=arguments[I];return u&&u[0]===x[0]&&!o.context?(f.logger.warn("It seems you are nesting recursively key: ".concat(x[0]," in key: ").concat(i[0])),null):f.translate.apply(f,x.concat([i]))},o)),o.interpolation&&this.interpolator.reset()}var b=o.postProcess||this.options.postProcess,y=typeof b=="string"?[b]:b;return a!=null&&y&&y.length&&o.applyPostProcessor!==!1&&(a=Df.handle(y,a,i,this.options&&this.options.postProcessPassResolved?le({i18nResolved:s},o):o,this)),a}},{key:"resolve",value:function(a){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,u,f,g,c;return typeof a=="string"&&(a=[a]),a.forEach(function(p){if(!i.isValidLookup(s)){var h=i.extractFromKey(p,o),v=h.key;u=v;var m=h.namespaces;i.options.fallbackNS&&(m=m.concat(i.options.fallbackNS));var b=o.count!==void 0&&typeof o.count!="string",y=b&&!o.ordinal&&o.count===0&&i.pluralResolver.shouldUseIntlApi(),A=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",x=o.lngs?o.lngs:i.languageUtils.toResolveHierarchy(o.lng||i.language,o.fallbackLng);m.forEach(function(I){i.isValidLookup(s)||(c=I,!Uu["".concat(x[0],"-").concat(I)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(c)&&(Uu["".concat(x[0],"-").concat(I)]=!0,i.logger.warn('key "'.concat(u,'" for languages "').concat(x.join(", "),`" won't get resolved as namespace "`).concat(c,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(function(S){if(!i.isValidLookup(s)){g=S;var D=[v];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(D,v,S,I,o);else{var $;b&&($=i.pluralResolver.getSuffix(S,o.count,o));var N="".concat(i.options.pluralSeparator,"zero");if(b&&(D.push(v+$),y&&D.push(v+N)),A){var ne="".concat(v).concat(i.options.contextSeparator).concat(o.context);D.push(ne),b&&(D.push(ne+$),y&&D.push(ne+N))}}for(var W;W=D.pop();)i.isValidLookup(s)||(f=W,s=i.getResource(S,I,W,o))}}))})}}),{res:s,usedKey:u,exactUsedKey:f,usedLng:g,usedNS:c}}},{key:"isValidLookup",value:function(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}},{key:"getResource",value:function(a,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(a,i,o,s):this.resourceStore.getResource(a,i,o,s)}}],[{key:"hasDefaultValue",value:function(a){var i="defaultValue";for(var o in a)if(Object.prototype.hasOwnProperty.call(a,o)&&i===o.substring(0,i.length)&&a[o]!==void 0)return!0;return!1}}]),r}(tt);function Ta(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Zu=function(){function e(t){Ee(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Be.create("languageUtils")}return $e(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],a=r.split("-");return this.options.lowerCaseLng?a=a.map(function(i){return i.toLowerCase()}):a.length===2?(a[0]=a[0].toLowerCase(),a[1]=a[1].toUpperCase(),n.indexOf(a[1].toLowerCase())>-1&&(a[1]=Ta(a[1].toLowerCase()))):a.length===3&&(a[0]=a[0].toLowerCase(),a[1].length===2&&(a[1]=a[1].toUpperCase()),a[0]!=="sgn"&&a[2].length===2&&(a[2]=a[2].toUpperCase()),n.indexOf(a[1].toLowerCase())>-1&&(a[1]=Ta(a[1].toLowerCase())),n.indexOf(a[2].toLowerCase())>-1&&(a[2]=Ta(a[2].toLowerCase()))),a.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var a;return r.forEach(function(i){if(!a){var o=n.formatLanguageCode(i);(!n.options.supportedLngs||n.isSupportedCode(o))&&(a=o)}}),!a&&this.options.supportedLngs&&r.forEach(function(i){if(!a){var o=n.getLanguagePartFromCode(i);if(n.isSupportedCode(o))return a=o;a=n.options.supportedLngs.find(function(s){if(s.indexOf(o)===0)return s})}}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var a=r[n];return a||(a=r[this.getScriptPartFromCode(n)]),a||(a=r[this.formatLanguageCode(n)]),a||(a=r[this.getLanguagePartFromCode(n)]),a||(a=r.default),a||[]}},{key:"toResolveHierarchy",value:function(r,n){var a=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],r),o=[],s=function(f){f&&(a.isSupportedCode(f)?o.push(f):a.logger.warn("rejecting language code not found in supportedLngs: ".concat(f)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),i.forEach(function(u){o.indexOf(u)<0&&s(a.formatLanguageCode(u))}),o}}]),e}(),KR=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],QR={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},eL=["v1","v2","v3"],qu={zero:0,one:1,two:2,few:3,many:4,other:5};function tL(){var e={};return KR.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:QR[t.fc]}})}),e}var rL=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ee(this,e),this.languageUtils=t,this.options=r,this.logger=Be.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=tL()}return $e(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(r,n);return this.shouldUseIntlApi()?a&&a.resolvedOptions().pluralCategories.length>1:a&&a.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,a).map(function(i){return"".concat(n).concat(i)})}},{key:"getSuffixes",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,a);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(o,s){return qu[o]-qu[s]}).map(function(o){return"".concat(n.options.prepend).concat(o)}):i.numbers.map(function(o){return n.getSuffix(r,o,a)}):[]}},{key:"getSuffix",value:function(r,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(r,a);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(n)):this.getSuffixRetroCompatible(i,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var a=this,i=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),o=r.numbers[i];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return a.options.prepend&&o.toString()?a.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!eL.includes(this.options.compatibilityJSON)}}]),e}();function Yu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yu(Object(r),!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var nL=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ee(this,e),this.logger=Be.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return $e(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:MR,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?yt(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?yt(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?yt(n.nestingPrefix):n.nestingPrefixEscaped||yt("$t("),this.nestingSuffix=n.nestingSuffix?yt(n.nestingSuffix):n.nestingSuffixEscaped||yt(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var a="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(a,"g")}},{key:"interpolate",value:function(r,n,a,i){var o=this,s,u,f,g=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(b){return b.replace(/\$/g,"$$$$")}var p=function(y){if(y.indexOf(o.formatSeparator)<0){var A=Hu(n,g,y);return o.alwaysFormat?o.format(A,void 0,a,xe(xe(xe({},i),n),{},{interpolationkey:y})):A}var x=y.split(o.formatSeparator),I=x.shift().trim(),S=x.join(o.formatSeparator).trim();return o.format(Hu(n,g,I),S,a,xe(xe(xe({},i),n),{},{interpolationkey:I}))};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,v=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,m=[{regex:this.regexpUnescape,safeValue:function(y){return c(y)}},{regex:this.regexp,safeValue:function(y){return o.escapeValue?c(o.escape(y)):c(y)}}];return m.forEach(function(b){for(f=0;s=b.regex.exec(r);){var y=s[1].trim();if(u=p(y),u===void 0)if(typeof h=="function"){var A=h(r,s,i);u=typeof A=="string"?A:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))u="";else if(v){u=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(y," for interpolating ").concat(r)),u="";else typeof u!="string"&&!o.useRawValueToEscape&&(u=Gu(u));var x=b.safeValue(u);if(r=r.replace(s[0],x),v?(b.regex.lastIndex+=u.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,f++,f>=o.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var a=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,u;function f(h,v){var m=this.nestingOptionsSeparator;if(h.indexOf(m)<0)return h;var b=h.split(new RegExp("".concat(m,"[ ]*{"))),y="{".concat(b[1]);h=b[0],y=this.interpolate(y,u);var A=y.match(/'/g),x=y.match(/"/g);(A&&A.length%2===0&&!x||x.length%2!==0)&&(y=y.replace(/'/g,'"'));try{u=JSON.parse(y),v&&(u=xe(xe({},v),u))}catch(I){return this.logger.warn("failed parsing options string in nesting for key ".concat(h),I),"".concat(h).concat(m).concat(y)}return delete u.defaultValue,h}for(;o=this.nestingRegexp.exec(r);){var g=[];u=xe({},i),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var p=o[1].split(this.formatSeparator).map(function(h){return h.trim()});o[1]=p.shift(),g=p,c=!0}if(s=n(f.call(this,o[1].trim(),u),u),s&&o[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=Gu(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(r)),s=""),c&&(s=g.reduce(function(h,v){return a.format(h,v,i.lng,xe(xe({},i),{},{interpolationkey:o[1].trim()}))},s.trim())),r=r.replace(o[0],s),this.regexp.lastIndex=0}return r}}]),e}();function Ju(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ju(Object(r),!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ju(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aL(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var a=n[1].substring(0,n[1].length-1);if(t==="currency"&&a.indexOf(":")<0)r.currency||(r.currency=a.trim());else if(t==="relativetime"&&a.indexOf(":")<0)r.range||(r.range=a.trim());else{var i=a.split(";");i.forEach(function(o){if(o){var s=o.split(":"),u=WR(s),f=u[0],g=u.slice(1),c=g.join(":").trim().replace(/^'+|'+$/g,"");r[f.trim()]||(r[f.trim()]=c),c==="false"&&(r[f.trim()]=!1),c==="true"&&(r[f.trim()]=!0),isNaN(c)||(r[f.trim()]=parseInt(c,10))}})}}return{formatName:t,formatOptions:r}}function vt(e){var t={};return function(n,a,i){var o=a+JSON.stringify(i),s=t[o];return s||(s=e(a,i),t[o]=s),s(n)}}var iL=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ee(this,e),this.logger=Be.create("formatter"),this.options=t,this.formats={number:vt(function(r,n){var a=new Intl.NumberFormat(r,ze({},n));return function(i){return a.format(i)}}),currency:vt(function(r,n){var a=new Intl.NumberFormat(r,ze(ze({},n),{},{style:"currency"}));return function(i){return a.format(i)}}),datetime:vt(function(r,n){var a=new Intl.DateTimeFormat(r,ze({},n));return function(i){return a.format(i)}}),relativetime:vt(function(r,n){var a=new Intl.RelativeTimeFormat(r,ze({},n));return function(i){return a.format(i,n.range||"day")}}),list:vt(function(r,n){var a=new Intl.ListFormat(r,ze({},n));return function(i){return a.format(i)}})},this.init(t)}return $e(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},a=n.interpolation;this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=vt(n)}},{key:"format",value:function(r,n,a){var i=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=n.split(this.formatSeparator),u=s.reduce(function(f,g){var c=aL(g),p=c.formatName,h=c.formatOptions;if(i.formats[p]){var v=f;try{var m=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=m.locale||m.lng||o.locale||o.lng||a;v=i.formats[p](f,b,ze(ze(ze({},h),o),m))}catch(y){i.logger.warn(y)}return v}else i.logger.warn("there was no format function for ".concat(p));return f},r);return u}}]),e}();function Ku(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ku(Object(r),!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ku(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oL(e){var t=sL();return function(){var n=je(e),a;if(t){var i=je(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return Vt(this,a)}}function sL(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uL(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var cL=function(e){Vr(r,e);var t=oL(r);function r(n,a,i){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ee(this,r),o=t.call(this),Zr&&tt.call(et(o)),o.backend=n,o.store=a,o.services=i,o.languageUtils=i.languageUtils,o.options=s,o.logger=Be.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,s.backend,s),o}return $e(r,[{key:"queueLoad",value:function(a,i,o,s){var u=this,f={},g={},c={},p={};return a.forEach(function(h){var v=!0;i.forEach(function(m){var b="".concat(h,"|").concat(m);!o.reload&&u.store.hasResourceBundle(h,m)?u.state[b]=2:u.state[b]<0||(u.state[b]===1?g[b]===void 0&&(g[b]=!0):(u.state[b]=1,v=!1,g[b]===void 0&&(g[b]=!0),f[b]===void 0&&(f[b]=!0),p[m]===void 0&&(p[m]=!0)))}),v||(c[h]=!0)}),(Object.keys(f).length||Object.keys(g).length)&&this.queue.push({pending:g,pendingCount:Object.keys(g).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(f),pending:Object.keys(g),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(p)}}},{key:"loaded",value:function(a,i,o){var s=a.split("|"),u=s[0],f=s[1];i&&this.emit("failedLoading",u,f,i),o&&this.store.addResourceBundle(u,f,o),this.state[a]=i?-1:2;var g={};this.queue.forEach(function(c){XR(c.loaded,[u],f),uL(c,a),i&&c.errors.push(i),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(function(p){g[p]||(g[p]={});var h=c.loaded[p];h.length&&h.forEach(function(v){g[p][v]===void 0&&(g[p][v]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(function(c){return!c.done})}},{key:"read",value:function(a,i,o){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,g=arguments.length>5?arguments[5]:void 0;if(!a.length)return g(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:i,fcName:o,tried:u,wait:f,callback:g});return}this.readingCalls++;var c=function(m,b){if(s.readingCalls--,s.waitingReads.length>0){var y=s.waitingReads.shift();s.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(m&&b&&u<s.maxRetries){setTimeout(function(){s.read.call(s,a,i,o,u+1,f*2,g)},f);return}g(m,b)},p=this.backend[o].bind(this.backend);if(p.length===2){try{var h=p(a,i);h&&typeof h.then=="function"?h.then(function(v){return c(null,v)}).catch(c):c(null,h)}catch(v){c(v)}return}return p(a,i,c)}},{key:"prepareLoading",value:function(a,i){var o=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof a=="string"&&(a=this.languageUtils.toResolveHierarchy(a)),typeof i=="string"&&(i=[i]);var f=this.queueLoad(a,i,s,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(function(g){o.loadOne(g)})}},{key:"load",value:function(a,i,o){this.prepareLoading(a,i,{},o)}},{key:"reload",value:function(a,i,o){this.prepareLoading(a,i,{reload:!0},o)}},{key:"loadOne",value:function(a){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=a.split("|"),u=s[0],f=s[1];this.read(u,f,"read",void 0,void 0,function(g,c){g&&i.logger.warn("".concat(o,"loading namespace ").concat(f," for language ").concat(u," failed"),g),!g&&c&&i.logger.log("".concat(o,"loaded namespace ").concat(f," for language ").concat(u),c),i.loaded(a,g,c)})}},{key:"saveMissing",value:function(a,i,o,s,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},g=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){var c=Qu(Qu({},f),{},{isUpdate:u}),p=this.backend.create.bind(this.backend);if(p.length<6)try{var h;p.length===5?h=p(a,i,o,s,c):h=p(a,i,o,s),h&&typeof h.then=="function"?h.then(function(v){return g(null,v)}).catch(g):g(null,h)}catch(v){g(v)}else p(a,i,o,s,g,c)}!a||!a[0]||this.store.addResource(a[0],i,o,s)}}}]),r}(tt);function ec(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if(Re(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),Re(t[2])==="object"||Re(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(a){r[a]=n[a]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,a){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function tc(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function rc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rc(Object(r),!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lL(e){var t=fL();return function(){var n=je(e),a;if(t){var i=je(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return Vt(this,a)}}function fL(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ir(){}function gL(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var br=function(e){Vr(r,e);var t=lL(r);function r(){var n,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Ee(this,r),n=t.call(this),Zr&&tt.call(et(n)),n.options=tc(a),n.services={},n.logger=Be,n.modules={external:[]},gL(et(n)),i&&!n.isInitialized&&!a.isClone){if(!n.options.initImmediate)return n.init(a,i),Vt(n,et(n));setTimeout(function(){n.init(a,i)},0)}return n}return $e(r,[{key:"init",value:function(){var a=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(o=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));var s=ec();this.options=De(De(De({},s),this.options),tc(i)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=De(De({},s.interpolation),this.options.interpolation)),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function u(y){return y?typeof y=="function"?new y:y:null}if(!this.options.isClone){this.modules.logger?Be.init(u(this.modules.logger),this.options):Be.init(null,this.options);var f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=iL);var g=new Zu(this.options);this.store=new qR(this.options.resources,this.options);var c=this.services;c.logger=Be,c.resourceStore=this.store,c.languageUtils=g,c.pluralResolver=new rL(g,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=u(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new nL(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new cL(u(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(y){for(var A=arguments.length,x=new Array(A>1?A-1:0),I=1;I<A;I++)x[I-1]=arguments[I];a.emit.apply(a,[y].concat(x))}),this.modules.languageDetector&&(c.languageDetector=u(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=u(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new Vu(this.services,this.options),this.translator.on("*",function(y){for(var A=arguments.length,x=new Array(A>1?A-1:0),I=1;I<A;I++)x[I-1]=arguments[I];a.emit.apply(a,[y].concat(x))}),this.modules.external.forEach(function(y){y.init&&y.init(a)})}if(this.format=this.options.interpolation.format,o||(o=ir),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var h=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];h.forEach(function(y){a[y]=function(){var A;return(A=a.store)[y].apply(A,arguments)}});var v=["addResource","addResources","addResourceBundle","removeResourceBundle"];v.forEach(function(y){a[y]=function(){var A;return(A=a.store)[y].apply(A,arguments),a}});var m=Tt(),b=function(){var A=function(I,S){a.isInitialized&&!a.initializedStoreOnce&&a.logger.warn("init: i18next is already initialized. You should call init just once!"),a.isInitialized=!0,a.options.isClone||a.logger.log("initialized",a.options),a.emit("initialized",a.options),m.resolve(S),o(I,S)};if(a.languages&&a.options.compatibilityAPI!=="v1"&&!a.isInitialized)return A(null,a.t.bind(a));a.changeLanguage(a.options.lng,A)};return this.options.resources||!this.options.initImmediate?b():setTimeout(b,0),m}},{key:"loadResources",value:function(a){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ir,s=o,u=typeof a=="string"?a:this.language;if(typeof a=="function"&&(s=a),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var f=[],g=function(h){if(h){var v=i.services.languageUtils.toResolveHierarchy(h);v.forEach(function(m){f.indexOf(m)<0&&f.push(m)})}};if(u)g(u);else{var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.forEach(function(p){return g(p)})}this.options.preload&&this.options.preload.forEach(function(p){return g(p)}),this.services.backendConnector.load(f,this.options.ns,function(p){!p&&!i.resolvedLanguage&&i.language&&i.setResolvedLanguage(i.language),s(p)})}else s(null)}},{key:"reloadResources",value:function(a,i,o){var s=Tt();return a||(a=this.languages),i||(i=this.options.ns),o||(o=ir),this.services.backendConnector.reload(a,i,function(u){s.resolve(),o(u)}),s}},{key:"use",value:function(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&Df.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}},{key:"setResolvedLanguage",value:function(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1))for(var i=0;i<this.languages.length;i++){var o=this.languages[i];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(a,i){var o=this;this.isLanguageChangingTo=a;var s=Tt();this.emit("languageChanging",a);var u=function(p){o.language=p,o.languages=o.services.languageUtils.toResolveHierarchy(p),o.resolvedLanguage=void 0,o.setResolvedLanguage(p)},f=function(p,h){h?(u(h),o.translator.changeLanguage(h),o.isLanguageChangingTo=void 0,o.emit("languageChanged",h),o.logger.log("languageChanged",h)):o.isLanguageChangingTo=void 0,s.resolve(function(){return o.t.apply(o,arguments)}),i&&i(p,function(){return o.t.apply(o,arguments)})},g=function(p){!a&&!p&&o.services.languageDetector&&(p=[]);var h=typeof p=="string"?p:o.services.languageUtils.getBestMatchFromCodes(p);h&&(o.language||u(h),o.translator.language||o.translator.changeLanguage(h),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(h)),o.loadResources(h,function(v){f(v,h)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?g(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(g):this.services.languageDetector.detect(g):g(a),s}},{key:"getFixedT",value:function(a,i,o){var s=this,u=function f(g,c){var p;if(Re(c)!=="object"){for(var h=arguments.length,v=new Array(h>2?h-2:0),m=2;m<h;m++)v[m-2]=arguments[m];p=s.options.overloadTranslationOptionHandler([g,c].concat(v))}else p=De({},c);p.lng=p.lng||f.lng,p.lngs=p.lngs||f.lngs,p.ns=p.ns||f.ns,p.keyPrefix=p.keyPrefix||o||f.keyPrefix;var b=s.options.keySeparator||".",y;return p.keyPrefix&&Array.isArray(g)?y=g.map(function(A){return"".concat(p.keyPrefix).concat(b).concat(A)}):y=p.keyPrefix?"".concat(p.keyPrefix).concat(b).concat(g):g,s.t(y,p)};return typeof a=="string"?u.lng=a:u.lngs=a,u.ns=i,u.keyPrefix=o,u}},{key:"t",value:function(){var a;return this.translator&&(a=this.translator).translate.apply(a,arguments)}},{key:"exists",value:function(){var a;return this.translator&&(a=this.translator).exists.apply(a,arguments)}},{key:"setDefaultNamespace",value:function(a){this.options.defaultNS=a}},{key:"hasLoadedNamespace",value:function(a){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var g=function(h,v){var m=i.services.backendConnector.state["".concat(h,"|").concat(v)];return m===-1||m===2};if(o.precheck){var c=o.precheck(this,g);if(c!==void 0)return c}return!!(this.hasResourceBundle(s,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||g(s,a)&&(!u||g(f,a)))}},{key:"loadNamespaces",value:function(a,i){var o=this,s=Tt();return this.options.ns?(typeof a=="string"&&(a=[a]),a.forEach(function(u){o.options.ns.indexOf(u)<0&&o.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),i&&i(u)}),s):(i&&i(),Promise.resolve())}},{key:"loadLanguages",value:function(a,i){var o=Tt();typeof a=="string"&&(a=[a]);var s=this.options.preload||[],u=a.filter(function(f){return s.indexOf(f)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(f){o.resolve(),i&&i(f)}),o):(i&&i(),Promise.resolve())}},{key:"dir",value:function(a){if(a||(a=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!a)return"rtl";var i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new Zu(ec());return i.indexOf(o.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var a=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ir,s=De(De(De({},this.options),i),{isClone:!0}),u=new r(s);(i.debug!==void 0||i.prefix!==void 0)&&(u.logger=u.logger.clone(i));var f=["store","services","language"];return f.forEach(function(g){u[g]=a[g]}),u.services=De({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new Vu(u.services,u.options),u.translator.on("*",function(g){for(var c=arguments.length,p=new Array(c>1?c-1:0),h=1;h<c;h++)p[h-1]=arguments[h];u.emit.apply(u,[g].concat(p))}),u.init(s,o),u.translator.options=u.options,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(tt);te(br,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new br(e,t)});var ce=br.createInstance();ce.createInstance=br.createInstance;ce.createInstance;ce.dir;ce.init;ce.loadResources;ce.reloadResources;ce.use;ce.changeLanguage;ce.getFixedT;ce.t;ce.exists;ce.setDefaultNamespace;ce.hasLoadedNamespace;ce.loadNamespaces;ce.loadLanguages;var kf=[],pL=kf.forEach,dL=kf.slice;function hL(e){return pL.call(dL.call(arguments,1),function(t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r])}),e}var nc=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,yL=function(t,r,n){var a=n||{};a.path=a.path||"/";var i=encodeURIComponent(r),o="".concat(t,"=").concat(i);if(a.maxAge>0){var s=a.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(a.domain){if(!nc.test(a.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(a.domain)}if(a.path){if(!nc.test(a.path))throw new TypeError("option path is invalid");o+="; Path=".concat(a.path)}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(a.expires.toUTCString())}if(a.httpOnly&&(o+="; HttpOnly"),a.secure&&(o+="; Secure"),a.sameSite){var u=typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite;switch(u){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},ac={create:function(t,r,n,a){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),a&&(i.domain=a),document.cookie=yL(t,encodeURIComponent(r),i)},read:function(t){for(var r="".concat(t,"="),n=document.cookie.split(";"),a=0;a<n.length;a++){for(var i=n[a];i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(r)===0)return i.substring(r.length,i.length)}return null},remove:function(t){this.create(t,"",-1)}},vL={name:"cookie",lookup:function(t){var r;if(t.lookupCookie&&typeof document<"u"){var n=ac.read(t.lookupCookie);n&&(r=n)}return r},cacheUserLanguage:function(t,r){r.lookupCookie&&typeof document<"u"&&ac.create(r.lookupCookie,t,r.cookieMinutes,r.cookieDomain,r.cookieOptions)}},CL={name:"querystring",lookup:function(t){var r;if(typeof window<"u"){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var a=n.substring(1),i=a.split("&"),o=0;o<i.length;o++){var s=i[o].indexOf("=");if(s>0){var u=i[o].substring(0,s);u===t.lookupQuerystring&&(r=i[o].substring(s+1))}}}return r}},Et=null,ic=function(){if(Et!==null)return Et;try{Et=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Et=!1}return Et},AL={name:"localStorage",lookup:function(t){var r;if(t.lookupLocalStorage&&ic()){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(r=n)}return r},cacheUserLanguage:function(t,r){r.lookupLocalStorage&&ic()&&window.localStorage.setItem(r.lookupLocalStorage,t)}},$t=null,oc=function(){if($t!==null)return $t;try{$t=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{$t=!1}return $t},bL={name:"sessionStorage",lookup:function(t){var r;if(t.lookupSessionStorage&&oc()){var n=window.sessionStorage.getItem(t.lookupSessionStorage);n&&(r=n)}return r},cacheUserLanguage:function(t,r){r.lookupSessionStorage&&oc()&&window.sessionStorage.setItem(r.lookupSessionStorage,t)}},mL={name:"navigator",lookup:function(t){var r=[];if(typeof navigator<"u"){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)r.push(navigator.languages[n]);navigator.userLanguage&&r.push(navigator.userLanguage),navigator.language&&r.push(navigator.language)}return r.length>0?r:void 0}},IL={name:"htmlTag",lookup:function(t){var r,n=t.htmlTag||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},SL={name:"path",lookup:function(t){var r;if(typeof window<"u"){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof n[t.lookupFromPathIndex]!="string")return;r=n[t.lookupFromPathIndex].replace("/","")}else r=n[0].replace("/","")}return r}},_L={name:"subdomain",lookup:function(t){var r=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,n=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[r]}};function xL(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var Bf=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ee(this,e),this.type="languageDetector",this.detectors={},this.init(t,r)}return $e(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r,this.options=hL(n,this.options||{},xL()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(vL),this.addDetector(CL),this.addDetector(AL),this.addDetector(bL),this.addDetector(mL),this.addDetector(IL),this.addDetector(SL),this.addDetector(_L)}},{key:"addDetector",value:function(r){this.detectors[r.name]=r}},{key:"detect",value:function(r){var n=this;r||(r=this.options.order);var a=[];return r.forEach(function(i){if(n.detectors[i]){var o=n.detectors[i].lookup(n.options);o&&typeof o=="string"&&(o=[o]),o&&(a=a.concat(o))}}),this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}},{key:"cacheUserLanguage",value:function(r,n){var a=this;n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(r)>-1||n.forEach(function(i){a.detectors[i]&&a.detectors[i].cacheUserLanguage(r,a.options)}))}}]),e}();Bf.type="languageDetector";const Wf=({resources:e})=>Q.useMemo(()=>ce.createInstance({defaultNS:"common",fallbackLng:"en",fallbackNS:"common",load:"languageOnly",ns:["common"],overloadTranslationOptionHandler:t=>({defaultValue:t[1]}),react:{useSuspense:!1},resources:e,supportedLngs:e?Object.keys(e):[]},t=>{if(t)return console.error(t)}).use(Bf),[e]),jf=hc(e=>{const t=`.${e}`;return Cc({key:"css",stylisPlugins:[n=>{n?.type==="rule"&&n?.value.startsWith(".css")&&(n.props=[n.props].flat().map(a=>a.includes(t)?a:`${t} ${a}`))},Cp]})}),Nf=({children:e,css:t,fallback:r,resources:n})=>{const{scope:a,onError:i}=Ef(),o=Wf({resources:n});return ve("div",{className:a,css:t,"data-testid":a,children:ve(Pt.CacheProvider,{value:jf(a),children:ve(Qg.I18nextProvider,{i18n:o,children:ve($f,{fallback:r,onError:i,children:e})})})})};var OL=Object.defineProperty,mr=Object.getOwnPropertySymbols,Gf=Object.prototype.hasOwnProperty,Xf=Object.prototype.propertyIsEnumerable,sc=(e,t,r)=>t in e?OL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Za=(e,t)=>{for(var r in t||(t={}))Gf.call(t,r)&&sc(e,r,t[r]);if(mr)for(var r of mr(t))Xf.call(t,r)&&sc(e,r,t[r]);return e},wL=(e,t)=>{var r={};for(var n in e)Gf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&mr)for(var n of mr(e))t.indexOf(n)<0&&Xf.call(e,n)&&(r[n]=e[n]);return r};const RL=(e,t)=>{if(!e)return;const r=e;return e&&t&&Object.entries(e).forEach(([n,a])=>{Object.keys(a).forEach(i=>{var o;r[n][i]=Za(Za({},r[n][i]),(o=t[n])==null?void 0:o[i])})}),r},LL=(e,t,r)=>n=>{var a=n,{resources:i}=a,o=wL(a,["resources"]);return ve(Nf,{resources:RL(r?.resources,i),fallback:t,children:ve(e,Za({},o))})},TL={createElement:LL};exports.Alchemy=PR;exports.AlchemyContext=Li;exports.Element=Nf;exports.ErrorBoundary=$f;exports.default=TL;exports.memoizedCreateCache=jf;exports.useAlchemy=Ef;exports.useI18n=Wf;exports.useLoadFonts=df;exports.useLoadIcons=Lf;exports.useLoadTheme=Tf;Object.keys(st).forEach(e=>{e!=="default"&&!exports.hasOwnProperty(e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>st[e]})});
|
|
25
|
+
`+("css`"+u+"`"))}break}if(t==null)return r;var f=t[r];return f!==void 0?f:r}function mi(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=Me(e,t,r[n])+";";else for(var i in r){var o=r[i];if(typeof o!="object")t!=null&&t[o]!==void 0?a+=i+"{"+t[o]+"}":Sr(o)&&(a+=xt(i)+":"+at(i,o)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Un);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)Sr(o[s])&&(a+=xt(i)+":"+at(i,o[s])+";");else{var u=Me(e,t,o);switch(i){case"animation":case"animationName":{a+=xt(i)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(ci),a+=i+"{"+u+"}"}}}}return a}var xr=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Mn;process.env.NODE_ENV!=="production"&&(Mn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var J,Er=function(t,r,a){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,i="";J=void 0;var o=t[0];o==null||o.raw===void 0?(n=!1,i+=Me(a,r,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(wr),i+=o[0]);for(var s=1;s<t.length;s++)i+=Me(a,r,t[s]),n&&(process.env.NODE_ENV!=="production"&&o[s]===void 0&&console.error(wr),i+=o[s]);var u;process.env.NODE_ENV!=="production"&&(i=i.replace(Mn,function(d){return u=d,""})),xr.lastIndex=0;for(var f="",l;(l=xr.exec(i))!==null;)f+="-"+l[1];var c=si(i)+f;return process.env.NODE_ENV!=="production"?{name:c,styles:i,map:u,next:J,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:c,styles:i,next:J}},vi=function(t){return t()},yi=Vt["useInsertionEffect"]?Vt["useInsertionEffect"]:!1,bi=yi||vi,ht={}.hasOwnProperty,ar=T.createContext(typeof HTMLElement<"u"?jn({key:"css"}):null);process.env.NODE_ENV!=="production"&&(ar.displayName="EmotionCacheContext");ar.Provider;var wi=function(t){return T.forwardRef(function(r,a){var n=T.useContext(ar);return t(r,n,a)})},Bn=T.createContext({});process.env.NODE_ENV!=="production"&&(Bn.displayName="EmotionThemeContext");var Pr=function(t){var r=t.split(".");return r[r.length-1]},Si=function(t){var r=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(r||(r=/^([A-Za-z0-9$.]+)@/.exec(t),r))return Pr(r[1])},Oi=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),xi=function(t){return t.replace(/\$/g,"-")},Ei=function(t){if(t)for(var r=t.split(`
|
|
26
|
+
`),a=0;a<r.length;a++){var n=Si(r[a]);if(n){if(Oi.has(n))break;if(/^[A-Z]/.test(n))return xi(n)}}},Ht="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Kt="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Vn=function(t,r){if(process.env.NODE_ENV!=="production"&&typeof r.css=="string"&&r.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+r.css+"`");var a={};for(var n in r)ht.call(r,n)&&(a[n]=r[n]);if(a[Ht]=t,process.env.NODE_ENV!=="production"&&r.css&&(typeof r.css!="object"||typeof r.css.name!="string"||r.css.name.indexOf("-")===-1)){var i=Ei(new Error().stack);i&&(a[Kt]=i)}return a},Pi=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return Dn(r,a,n),bi(function(){return oi(r,a,n)}),null},ir=wi(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var n=e[Ht],i=[a],o="";typeof e.className=="string"?o=ii(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Er(i,void 0,T.useContext(Bn));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var u=e[Kt];u&&(s=Er([s,"label:"+u+";"]))}o+=t.key+"-"+s.name;var f={};for(var l in e)ht.call(e,l)&&l!=="css"&&l!==Ht&&(process.env.NODE_ENV==="production"||l!==Kt)&&(f[l]=e[l]);return f.ref=r,f.className=o,T.createElement(T.Fragment,null,T.createElement(Pi,{cache:t,serialized:s,isStringTag:typeof n=="string"}),T.createElement(n,f))});process.env.NODE_ENV!=="production"&&(ir.displayName="EmotionCssPropInternal");function q(e,t,r){return ht.call(t,"css")?rt.jsx(ir,Vn(e,t),r):rt.jsx(e,t,r)}function Ci(e,t,r){return ht.call(t,"css")?rt.jsxs(ir,Vn(e,t),r):rt.jsxs(e,t,r)}var qn={};Object.defineProperty(qn,"__esModule",{value:!0});var Ri=qn.default=function(){},Cr=(e,t,r)=>new Promise((a,n)=>{var i=u=>{try{s(r.next(u))}catch(f){n(f)}},o=u=>{try{s(r.throw(u))}catch(f){n(f)}},s=u=>u.done?a(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});const zn=({cdnURL:e="/",scope:t,theme:r})=>{const[a,n]=T.useState();return T.useEffect(()=>{Cr(void 0,null,function*(){var i;try{const o=(i=r?.fontFaces)!=null?i:[];yield Promise.all(o.map(s=>Cr(void 0,[s],function*({family:u,source:f,descriptors:l}){const c=f.map(d=>`url(${d.replace("$cdnUrl",e)})`).join(", ");try{const p=yield new FontFace(u,c,l).load();document.fonts.add(p)}catch(d){console.error(d)}}))),n(r?.defaultFontFamily)}catch(o){be.logger.error({error:o},"Error loading fonts")}})},[e,r]),nt.css({[`.${t}`]:{fontFamily:a}})};var Jt={},ki={get exports(){return Jt},set exports(e){Jt=e}},it={},Ni={get exports(){return it},set exports(e){it=e}},Hn=function(t,r){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(r,n)}},Li=Hn,de=Object.prototype.toString;function or(e){return Array.isArray(e)}function Yt(e){return typeof e>"u"}function _i(e){return e!==null&&!Yt(e)&&e.constructor!==null&&!Yt(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Kn(e){return de.call(e)==="[object ArrayBuffer]"}function Ai(e){return de.call(e)==="[object FormData]"}function Ti(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kn(e.buffer),t}function ji(e){return typeof e=="string"}function $i(e){return typeof e=="number"}function Jn(e){return e!==null&&typeof e=="object"}function et(e){if(de.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ii(e){return de.call(e)==="[object Date]"}function Di(e){return de.call(e)==="[object File]"}function Fi(e){return de.call(e)==="[object Blob]"}function Yn(e){return de.call(e)==="[object Function]"}function Ui(e){return Jn(e)&&Yn(e.pipe)}function Mi(e){return de.call(e)==="[object URLSearchParams]"}function Bi(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Vi(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function sr(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),or(e))for(var r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}function Wt(){var e={};function t(n,i){et(e[i])&&et(n)?e[i]=Wt(e[i],n):et(n)?e[i]=Wt({},n):or(n)?e[i]=n.slice():e[i]=n}for(var r=0,a=arguments.length;r<a;r++)sr(arguments[r],t);return e}function qi(e,t,r){return sr(t,function(n,i){r&&typeof n=="function"?e[i]=Li(n,r):e[i]=n}),e}function zi(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var U={isArray:or,isArrayBuffer:Kn,isBuffer:_i,isFormData:Ai,isArrayBufferView:Ti,isString:ji,isNumber:$i,isObject:Jn,isPlainObject:et,isUndefined:Yt,isDate:Ii,isFile:Di,isBlob:Fi,isFunction:Yn,isStream:Ui,isURLSearchParams:Mi,isStandardBrowserEnv:Vi,forEach:sr,merge:Wt,extend:qi,trim:Bi,stripBOM:zi},xe=U;function Rr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Wn=function(t,r,a){if(!r)return t;var n;if(a)n=a(r);else if(xe.isURLSearchParams(r))n=r.toString();else{var i=[];xe.forEach(r,function(u,f){u===null||typeof u>"u"||(xe.isArray(u)?f=f+"[]":u=[u],xe.forEach(u,function(c){xe.isDate(c)?c=c.toISOString():xe.isObject(c)&&(c=JSON.stringify(c)),i.push(Rr(f)+"="+Rr(c))}))}),n=i.join("&")}if(n){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+n}return t},Hi=U;function gt(){this.handlers=[]}gt.prototype.use=function(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1};gt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};gt.prototype.forEach=function(t){Hi.forEach(this.handlers,function(a){a!==null&&t(a)})};var Ki=gt,Ji=U,Yi=function(t,r){Ji.forEach(t,function(n,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=n,delete t[i])})},Gn=function(t,r,a,n,i){return t.config=r,a&&(t.code=a),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Xn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Et,kr;function Zn(){if(kr)return Et;kr=1;var e=Gn;return Et=function(r,a,n,i,o){var s=new Error(r);return e(s,a,n,i,o)},Et}var Pt,Nr;function Wi(){if(Nr)return Pt;Nr=1;var e=Zn();return Pt=function(r,a,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?r(n):a(e("Request failed with status code "+n.status,n.config,null,n.request,n))},Pt}var Ct,Lr;function Gi(){if(Lr)return Ct;Lr=1;var e=U;return Ct=e.isStandardBrowserEnv()?function(){return{write:function(a,n,i,o,s,u){var f=[];f.push(a+"="+encodeURIComponent(n)),e.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),e.isString(o)&&f.push("path="+o),e.isString(s)&&f.push("domain="+s),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(a){var n=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ct}var Rt,_r;function Xi(){return _r||(_r=1,Rt=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Rt}var kt,Ar;function Zi(){return Ar||(Ar=1,kt=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),kt}var Nt,Tr;function Qi(){if(Tr)return Nt;Tr=1;var e=Xi(),t=Zi();return Nt=function(a,n){return a&&!e(n)?t(a,n):n},Nt}var Lt,jr;function eo(){if(jr)return Lt;jr=1;var e=U,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Lt=function(a){var n={},i,o,s;return a&&e.forEach(a.split(`
|
|
27
|
+
`),function(f){if(s=f.indexOf(":"),i=e.trim(f.substr(0,s)).toLowerCase(),o=e.trim(f.substr(s+1)),i){if(n[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?n[i]=(n[i]?n[i]:[]).concat([o]):n[i]=n[i]?n[i]+", "+o:o}}),n},Lt}var _t,$r;function to(){if($r)return _t;$r=1;var e=U;return _t=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),n;function i(o){var s=o;return r&&(a.setAttribute("href",s),s=a.href),a.setAttribute("href",s),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return n=i(window.location.href),function(s){var u=e.isString(s)?i(s):s;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}(),_t}var At,Ir;function mt(){if(Ir)return At;Ir=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,At=e,At}var Tt,Dr;function Fr(){if(Dr)return Tt;Dr=1;var e=U,t=Wi(),r=Gi(),a=Wn,n=Qi(),i=eo(),o=to(),s=Zn(),u=Xn,f=mt();return Tt=function(c){return new Promise(function(p,y){var b=c.data,w=c.headers,h=c.responseType,g;function x(){c.cancelToken&&c.cancelToken.unsubscribe(g),c.signal&&c.signal.removeEventListener("abort",g)}e.isFormData(b)&&delete w["Content-Type"];var m=new XMLHttpRequest;if(c.auth){var v=c.auth.username||"",N=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";w.Authorization="Basic "+btoa(v+":"+N)}var C=n(c.baseURL,c.url);m.open(c.method.toUpperCase(),a(C,c.params,c.paramsSerializer),!0),m.timeout=c.timeout;function X(){if(m){var _="getAllResponseHeaders"in m?i(m.getAllResponseHeaders()):null,z=!h||h==="text"||h==="json"?m.responseText:m.response,D={data:z,status:m.status,statusText:m.statusText,headers:_,config:c,request:m};t(function(V){p(V),x()},function(V){y(V),x()},D),m=null}}if("onloadend"in m?m.onloadend=X:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(X)},m.onabort=function(){m&&(y(s("Request aborted",c,"ECONNABORTED",m)),m=null)},m.onerror=function(){y(s("Network Error",c,null,m)),m=null},m.ontimeout=function(){var z=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",D=c.transitional||u;c.timeoutErrorMessage&&(z=c.timeoutErrorMessage),y(s(z,c,D.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},e.isStandardBrowserEnv()){var Z=(c.withCredentials||o(C))&&c.xsrfCookieName?r.read(c.xsrfCookieName):void 0;Z&&(w[c.xsrfHeaderName]=Z)}"setRequestHeader"in m&&e.forEach(w,function(z,D){typeof b>"u"&&D.toLowerCase()==="content-type"?delete w[D]:m.setRequestHeader(D,z)}),e.isUndefined(c.withCredentials)||(m.withCredentials=!!c.withCredentials),h&&h!=="json"&&(m.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&m.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(g=function(_){m&&(y(!_||_&&_.type?new f("canceled"):_),m.abort(),m=null)},c.cancelToken&&c.cancelToken.subscribe(g),c.signal&&(c.signal.aborted?g():c.signal.addEventListener("abort",g))),b||(b=null),m.send(b)})},Tt}var j=U,Ur=Yi,ro=Gn,no=Xn,ao={"Content-Type":"application/x-www-form-urlencoded"};function Mr(e,t){!j.isUndefined(e)&&j.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function io(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Fr()),e}function oo(e,t,r){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}var vt={transitional:no,adapter:io(),transformRequest:[function(t,r){return Ur(r,"Accept"),Ur(r,"Content-Type"),j.isFormData(t)||j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)?t:j.isArrayBufferView(t)?t.buffer:j.isURLSearchParams(t)?(Mr(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):j.isObject(t)||r&&r["Content-Type"]==="application/json"?(Mr(r,"application/json"),oo(t)):t}],transformResponse:[function(t){var r=this.transitional||vt.transitional,a=r&&r.silentJSONParsing,n=r&&r.forcedJSONParsing,i=!a&&this.responseType==="json";if(i||n&&j.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i)throw o.name==="SyntaxError"?ro(o,this,"E_JSON_PARSE"):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};j.forEach(["delete","get","head"],function(t){vt.headers[t]={}});j.forEach(["post","put","patch"],function(t){vt.headers[t]=j.merge(ao)});var ur=vt,so=U,uo=ur,co=function(t,r,a){var n=this||uo;return so.forEach(a,function(o){t=o.call(n,t,r)}),t},jt,Br;function Qn(){return Br||(Br=1,jt=function(t){return!!(t&&t.__CANCEL__)}),jt}var Vr=U,$t=co,fo=Qn(),lo=ur,po=mt();function It(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new po("canceled")}var ho=function(t){It(t),t.headers=t.headers||{},t.data=$t.call(t,t.data,t.headers,t.transformRequest),t.headers=Vr.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Vr.forEach(["delete","get","head","post","put","patch","common"],function(n){delete t.headers[n]});var r=t.adapter||lo.adapter;return r(t).then(function(n){return It(t),n.data=$t.call(t,n.data,n.headers,t.transformResponse),n},function(n){return fo(n)||(It(t),n&&n.response&&(n.response.data=$t.call(t,n.response.data,n.response.headers,t.transformResponse))),Promise.reject(n)})},M=U,ea=function(t,r){r=r||{};var a={};function n(l,c){return M.isPlainObject(l)&&M.isPlainObject(c)?M.merge(l,c):M.isPlainObject(c)?M.merge({},c):M.isArray(c)?c.slice():c}function i(l){if(M.isUndefined(r[l])){if(!M.isUndefined(t[l]))return n(void 0,t[l])}else return n(t[l],r[l])}function o(l){if(!M.isUndefined(r[l]))return n(void 0,r[l])}function s(l){if(M.isUndefined(r[l])){if(!M.isUndefined(t[l]))return n(void 0,t[l])}else return n(void 0,r[l])}function u(l){if(l in r)return n(t[l],r[l]);if(l in t)return n(void 0,t[l])}var f={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return M.forEach(Object.keys(t).concat(Object.keys(r)),function(c){var d=f[c]||i,p=d(c);M.isUndefined(p)&&d!==u||(a[c]=p)}),a},Dt,qr;function ta(){return qr||(qr=1,Dt={version:"0.26.1"}),Dt}var go=ta().version,cr={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){cr[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});var zr={};cr.transitional=function(t,r,a){function n(i,o){return"[Axios v"+go+"] Transitional option '"+i+"'"+o+(a?". "+a:"")}return function(i,o,s){if(t===!1)throw new Error(n(o," has been removed"+(r?" in "+r:"")));return r&&!zr[o]&&(zr[o]=!0,console.warn(n(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};function mo(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var a=Object.keys(e),n=a.length;n-- >0;){var i=a[n],o=t[i];if(o){var s=e[i],u=s===void 0||o(s,i,e);if(u!==!0)throw new TypeError("option "+i+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+i)}}var vo={assertOptions:mo,validators:cr},ra=U,yo=Wn,Hr=Ki,Kr=ho,yt=ea,na=vo,Ee=na.validators;function Ve(e){this.defaults=e,this.interceptors={request:new Hr,response:new Hr}}Ve.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=yt(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var a=r.transitional;a!==void 0&&na.assertOptions(a,{silentJSONParsing:Ee.transitional(Ee.boolean),forcedJSONParsing:Ee.transitional(Ee.boolean),clarifyTimeoutError:Ee.transitional(Ee.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(i=i&&p.synchronous,n.unshift(p.fulfilled,p.rejected))});var o=[];this.interceptors.response.forEach(function(p){o.push(p.fulfilled,p.rejected)});var s;if(!i){var u=[Kr,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var f=r;n.length;){var l=n.shift(),c=n.shift();try{f=l(f)}catch(d){c(d);break}}try{s=Kr(f)}catch(d){return Promise.reject(d)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};Ve.prototype.getUri=function(t){return t=yt(this.defaults,t),yo(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};ra.forEach(["delete","get","head","options"],function(t){Ve.prototype[t]=function(r,a){return this.request(yt(a||{},{method:t,url:r,data:(a||{}).data}))}});ra.forEach(["post","put","patch"],function(t){Ve.prototype[t]=function(r,a,n){return this.request(yt(n||{},{method:t,url:r,data:a}))}});var bo=Ve,Ft,Jr;function wo(){if(Jr)return Ft;Jr=1;var e=mt();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(o){a=o});var n=this;this.promise.then(function(i){if(n._listeners){var o,s=n._listeners.length;for(o=0;o<s;o++)n._listeners[o](i);n._listeners=null}}),this.promise.then=function(i){var o,s=new Promise(function(u){n.subscribe(u),o=u}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},r(function(o){n.reason||(n.reason=new e(o),a(n.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]},t.prototype.unsubscribe=function(a){if(this._listeners){var n=this._listeners.indexOf(a);n!==-1&&this._listeners.splice(n,1)}},t.source=function(){var a,n=new t(function(o){a=o});return{token:n,cancel:a}},Ft=t,Ft}var Ut,Yr;function So(){return Yr||(Yr=1,Ut=function(t){return function(a){return t.apply(null,a)}}),Ut}var Mt,Wr;function Oo(){if(Wr)return Mt;Wr=1;var e=U;return Mt=function(r){return e.isObject(r)&&r.isAxiosError===!0},Mt}var Gr=U,xo=Hn,tt=bo,Eo=ea,Po=ur;function aa(e){var t=new tt(e),r=xo(tt.prototype.request,t);return Gr.extend(r,tt.prototype,t),Gr.extend(r,t),r.create=function(n){return aa(Eo(e,n))},r}var ae=aa(Po);ae.Axios=tt;ae.Cancel=mt();ae.CancelToken=wo();ae.isCancel=Qn();ae.VERSION=ta().version;ae.all=function(t){return Promise.all(t)};ae.spread=So();ae.isAxiosError=Oo();Ni.exports=ae;it.default=ae;(function(e){e.exports=it})(ki);const Gt=Za(Jt);var Xr=(e,t,r)=>new Promise((a,n)=>{var i=u=>{try{s(r.next(u))}catch(f){n(f)}},o=u=>{try{s(r.throw(u))}catch(f){n(f)}},s=u=>u.done?a(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});const ia=({brandName:e,cdnURL:t="/"})=>{const[r,a]=T.useState();return T.useEffect(()=>{Xr(void 0,null,function*(){try{const n=yield Gt.get("/brand/iconIndex.json",{baseURL:t});a(n.data)}catch(n){be.logger.error({error:n},`Error loading icon index for brand ${e}`)}})},[e,t]),n=>Xr(void 0,null,function*(){if(r){const i=(r[n.toLowerCase()]||[]).includes(e)?e:Qt.BrandName.FALLBACK;return(yield Gt.get(`/brand/${i}/icons/${n.toLowerCase()}.svg`,{baseURL:t,responseType:"text"})).data}})};var Co=(e,t,r)=>new Promise((a,n)=>{var i=u=>{try{s(r.next(u))}catch(f){n(f)}},o=u=>{try{s(r.throw(u))}catch(f){n(f)}},s=u=>u.done?a(u.value):Promise.resolve(u.value).then(i,o);s((r=r.apply(e,t)).next())});const oa=({cdnURL:e="/",brandName:t})=>{const[r,a]=T.useState();return T.useEffect(()=>{Co(void 0,null,function*(){try{const n=yield Gt.get(`/brand/${t}/theme.json`,{baseURL:e}),i=new Qt.Theme(n.data);a(i)}catch(n){be.logger.error({error:n},`Error loading theme for brand ${t}`)}})},[t,e]),r},fr=T.createContext(void 0),Ro=({baseURL:e="https://api.shipengine.com",brandName:t=Qt.BrandName.FALLBACK,cdnURL:r="/",children:a,getToken:n,onError:i,scope:o="lmnt"})=>{const s=oa({brandName:t,cdnURL:r}),u=zn({cdnURL:r,scope:o,theme:s}),f=ia({brandName:t,cdnURL:r});return s?(i=i??Ri,q(fr.Provider,{value:{baseURL:e,brandName:t,cdnURL:r,getToken:n,onError:i,scope:o,theme:s},children:Ci(nt.ThemeProvider,{theme:s,children:[q(nt.Global,{styles:[pr.getEmotionResetStyles(o),u]}),q(pr.GigerConfigProvider,{resolveIcon:f,children:q(be.ShipEngine,{baseURL:e,getToken:n,children:a})})]})})):null},sa=()=>{const e=T.useContext(fr);if(!e)throw new Error("useAlchemy must be called from within the scope of <Alchemy />");return e};class ua extends Vt.Component{constructor(t){super(t),this.state={error:void 0}}componentDidCatch(t,r){t.stack=r.componentStack,this.props.onError(t),be.logger.error({error:t},t.message),this.setState({error:t})}render(){const{fallback:t,children:r}=this.props,{error:a}=this.state;return a?q("div",{role:"alert",children:q(t,{error:a})}):r}}function Y(e){return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(e)}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ko(e,t){if(Y(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Y(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ca(e){var t=ko(e,"string");return Y(t)==="symbol"?t:String(t)}function Zr(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,ca(a.key),a)}}function G(e,t,r){return t&&Zr(e.prototype,t),r&&Zr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xt(e,t){return Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Xt(e,t)}function bt(e,t){if(typeof t!="function"&&t!==null)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&&Xt(e,t)}function qe(e,t){if(t&&(Y(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fe(e)}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ne(e)}function pe(e,t,r){return t=ca(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function No(e){if(Array.isArray(e))return e}function Lo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function _o(e,t){if(e){if(typeof e=="string")return Qr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qr(e,t)}}function Ao(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
28
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function To(e){return No(e)||Lo(e)||_o(e)||Ao()}function en(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function tn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?en(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):en(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var jo={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,r){console&&console[t]&&console[t].apply(console,r)}},$o=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};W(this,e),this.init(t,r)}return G(e,[{key:"init",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=r||jo,this.options=a,this.debug=a.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return this.forward(a,"log","",!0)}},{key:"warn",value:function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return this.forward(a,"warn","",!0)}},{key:"error",value:function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return this.forward(a,"error","")}},{key:"deprecate",value:function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(r,a,n,i){return i&&!this.debug?null:(typeof r[0]=="string"&&(r[0]="".concat(n).concat(this.prefix," ").concat(r[0])),this.logger[a](r))}},{key:"create",value:function(r){return new e(this.logger,tn(tn({},{prefix:"".concat(this.prefix,":").concat(r,":")}),this.options))}},{key:"clone",value:function(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new e(this.logger,r)}}]),e}(),te=new $o,le=function(){function e(){W(this,e),this.observers={}}return G(e,[{key:"on",value:function(r,a){var n=this;return r.split(" ").forEach(function(i){n.observers[i]=n.observers[i]||[],n.observers[i].push(a)}),this}},{key:"off",value:function(r,a){if(this.observers[r]){if(!a){delete this.observers[r];return}this.observers[r]=this.observers[r].filter(function(n){return n!==a})}}},{key:"emit",value:function(r){for(var a=arguments.length,n=new Array(a>1?a-1:0),i=1;i<a;i++)n[i-1]=arguments[i];if(this.observers[r]){var o=[].concat(this.observers[r]);o.forEach(function(u){u.apply(void 0,n)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(u){u.apply(u,[r].concat(n))})}}}]),e}();function Ie(){var e,t,r=new Promise(function(a,n){e=a,t=n});return r.resolve=e,r.reject=t,r}function rn(e){return e==null?"":""+e}function Io(e,t,r){e.forEach(function(a){t[a]&&(r[a]=t[a])})}function lr(e,t,r){function a(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function n(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(n())return{};var o=a(i.shift());!e[o]&&r&&(e[o]=new r),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return n()?{}:{obj:e,k:a(i.shift())}}function nn(e,t,r){var a=lr(e,t,Object),n=a.obj,i=a.k;n[i]=r}function Do(e,t,r,a){var n=lr(e,t,Object),i=n.obj,o=n.k;i[o]=i[o]||[],a&&(i[o]=i[o].concat(r)),a||i[o].push(r)}function ot(e,t){var r=lr(e,t),a=r.obj,n=r.k;if(a)return a[n]}function an(e,t,r){var a=ot(e,r);return a!==void 0?a:ot(t,r)}function fa(e,t,r){for(var a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?typeof e[a]=="string"||e[a]instanceof String||typeof t[a]=="string"||t[a]instanceof String?r&&(e[a]=t[a]):fa(e[a],t[a],r):e[a]=t[a]);return e}function Pe(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Fo={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Uo(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Fo[t]}):e}var wt=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Mo=[" ",",","?","!",";"];function Bo(e,t,r){t=t||"",r=r||"";var a=Mo.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(a.length===0)return!0;var n=new RegExp("(".concat(a.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),i=!n.test(e);if(!i){var o=e.indexOf(r);o>0&&!n.test(e.substring(0,o))&&(i=!0)}return i}function on(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?on(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):on(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Vo(e){var t=qo();return function(){var a=ne(e),n;if(t){var i=ne(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function qo(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function la(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var a=t.split(r),n=e,i=0;i<a.length;++i){if(!n||typeof n[a[i]]=="string"&&i+1<a.length)return;if(n[a[i]]===void 0){for(var o=2,s=a.slice(i,i+o).join(r),u=n[s];u===void 0&&a.length>i+o;)o++,s=a.slice(i,i+o).join(r),u=n[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var f=a.slice(i+o).join(r);return f?la(u,f,r):void 0}n=n[a[i]]}return n}}var zo=function(e){bt(r,e);var t=Vo(r);function r(a){var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return W(this,r),n=t.call(this),wt&&le.call(fe(n)),n.data=a||{},n.options=i,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return G(r,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var i=this.options.ns.indexOf(n);i>-1&&this.options.ns.splice(i,1)}},{key:"getResource",value:function(n,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,f=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[n,i];o&&typeof o!="string"&&(l=l.concat(o)),o&&typeof o=="string"&&(l=l.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(l=n.split("."));var c=ot(this.data,l);return c||!f||typeof o!="string"?c:la(this.data&&this.data[n]&&this.data[n][i],o,u)}},{key:"addResource",value:function(n,i,o,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},f=this.options.keySeparator;f===void 0&&(f=".");var l=[n,i];o&&(l=l.concat(f?o.split(f):o)),n.indexOf(".")>-1&&(l=n.split("."),s=i,i=l[1]),this.addNamespaces(i),nn(this.data,l,s),u.silent||this.emit("added",n,i,o,s)}},{key:"addResources",value:function(n,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in o)(typeof o[u]=="string"||Object.prototype.toString.apply(o[u])==="[object Array]")&&this.addResource(n,i,u,o[u],{silent:!0});s.silent||this.emit("added",n,i,o)}},{key:"addResourceBundle",value:function(n,i,o,s,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[n,i];n.indexOf(".")>-1&&(l=n.split("."),s=o,o=i,i=l[1]),this.addNamespaces(i);var c=ot(this.data,l)||{};s?fa(c,o,u):c=We(We({},c),o),nn(this.data,l,c),f.silent||this.emit("added",n,i,o)}},{key:"removeResourceBundle",value:function(n,i){this.hasResourceBundle(n,i)&&delete this.data[n][i],this.removeNamespaces(i),this.emit("removed",n,i)}},{key:"hasResourceBundle",value:function(n,i){return this.getResource(n,i)!==void 0}},{key:"getResourceBundle",value:function(n,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?We(We({},{}),this.getResource(n,i)):this.getResource(n,i)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"hasLanguageSomeTranslations",value:function(n){var i=this.getDataByLanguage(n),o=i&&Object.keys(i)||[];return!!o.find(function(s){return i[s]&&Object.keys(i[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(le),da={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,a,n,i){var o=this;return t.forEach(function(s){o.processors[s]&&(r=o.processors[s].process(r,a,n,i))}),r}};function sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Ho(e){var t=Ko();return function(){var a=ne(e),n;if(t){var i=ne(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function Ko(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var un={},cn=function(e){bt(r,e);var t=Ho(r);function r(a){var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return W(this,r),n=t.call(this),wt&&le.call(fe(n)),Io(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,fe(n)),n.options=i,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=te.create("translator"),n}return G(r,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,i);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,i){var o=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ns||this.options.defaultNS||[],f=o&&n.indexOf(o)>-1,l=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!Bo(n,o,s);if(f&&!l){var c=n.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:n,namespaces:u};var d=n.split(o);(o!==s||o===s&&this.options.ns.indexOf(d[0])>-1)&&(u=d.shift()),n=d.join(s)}return typeof u=="string"&&(u=[u]),{key:n,namespaces:u}}},{key:"translate",value:function(n,i,o){var s=this;if(Y(i)!=="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),i||(i={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var u=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,f=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=this.extractFromKey(n[n.length-1],i),c=l.key,d=l.namespaces,p=d[d.length-1],y=i.lng||this.language,b=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(y&&y.toLowerCase()==="cimode"){if(b){var w=i.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(p).concat(w).concat(c),usedKey:c,exactUsedKey:c,usedLng:y,usedNS:p}:"".concat(p).concat(w).concat(c)}return u?{res:c,usedKey:c,exactUsedKey:c,usedLng:y,usedNS:p}:c}var h=this.resolve(n,i),g=h&&h.res,x=h&&h.usedKey||c,m=h&&h.exactUsedKey||c,v=Object.prototype.toString.apply(g),N=["[object Number]","[object Function]","[object RegExp]"],C=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,Z=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(X&&g&&Z&&N.indexOf(v)<0&&!(typeof C=="string"&&v==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,g,I(I({},i),{},{ns:d})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return u?(h.res=_,h):_}if(f){var z=v==="[object Array]",D=z?[]:{},_e=z?m:x;for(var V in g)if(Object.prototype.hasOwnProperty.call(g,V)){var ze="".concat(_e).concat(f).concat(V);D[V]=this.translate(ze,I(I({},i),{joinArrays:!1,ns:d})),D[V]===ze&&(D[V]=g[V])}g=D}}else if(X&&typeof C=="string"&&v==="[object Array]")g=g.join(C),g&&(g=this.extendTranslation(g,n,i,o));else{var we=!1,he=!1,Ae=i.count!==void 0&&typeof i.count!="string",Te=r.hasDefaultValue(i),He=Ae?this.pluralResolver.getSuffix(y,i.count,i):"",ge=i["defaultValue".concat(He)]||i.defaultValue;!this.isValidLookup(g)&&Te&&(we=!0,g=ge),this.isValidLookup(g)||(he=!0,g=c);var St=i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ot=St&&he?void 0:g,me=Te&&ge!==g&&this.options.updateMissing;if(he||we||me){if(this.logger.log(me?"updateKey":"missingKey",y,p,c,me?ge:g),f){var Ke=this.resolve(c,I(I({},i),{},{keySeparator:!1}));Ke&&Ke.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var ve=[],Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(var je=0;je<Se.length;je++)ve.push(Se[je]);else this.options.saveMissingTo==="all"?ve=this.languageUtils.toResolveHierarchy(i.lng||this.language):ve.push(i.lng||this.language);var Je=function(ce,E,Oe){var ye=Te&&Oe!==g?Oe:Ot;s.options.missingKeyHandler?s.options.missingKeyHandler(ce,p,E,ye,me,i):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(ce,p,E,ye,me,i),s.emit("missingKey",ce,p,E,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ae?ve.forEach(function($e){s.pluralResolver.getSuffixes($e,i).forEach(function(ce){Je([$e],c+ce,i["defaultValue".concat(ce)]||ge)})}):Je(ve,c,ge))}g=this.extendTranslation(g,n,i,h,o),he&&g===c&&this.options.appendNamespaceToMissingKey&&(g="".concat(p,":").concat(c)),(he||we)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(c):c,we?g:void 0):g=this.options.parseMissingKeyHandler(g))}return u?(h.res=g,h):g}},{key:"extendTranslation",value:function(n,i,o,s,u){var f=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,I(I({},this.options.interpolation.defaultVariables),o),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(I(I({},o),{interpolation:I(I({},this.options.interpolation),o.interpolation)}));var l=typeof n=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),c;if(l){var d=n.match(this.interpolator.nestingRegexp);c=d&&d.length}var p=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(p=I(I({},this.options.interpolation.defaultVariables),p)),n=this.interpolator.interpolate(n,p,o.lng||this.language,o),l){var y=n.match(this.interpolator.nestingRegexp),b=y&&y.length;c<b&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var g=arguments.length,x=new Array(g),m=0;m<g;m++)x[m]=arguments[m];return u&&u[0]===x[0]&&!o.context?(f.logger.warn("It seems you are nesting recursively key: ".concat(x[0]," in key: ").concat(i[0])),null):f.translate.apply(f,x.concat([i]))},o)),o.interpolation&&this.interpolator.reset()}var w=o.postProcess||this.options.postProcess,h=typeof w=="string"?[w]:w;return n!=null&&h&&h.length&&o.applyPostProcessor!==!1&&(n=da.handle(h,n,i,this.options&&this.options.postProcessPassResolved?I({i18nResolved:s},o):o,this)),n}},{key:"resolve",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,u,f,l,c;return typeof n=="string"&&(n=[n]),n.forEach(function(d){if(!i.isValidLookup(s)){var p=i.extractFromKey(d,o),y=p.key;u=y;var b=p.namespaces;i.options.fallbackNS&&(b=b.concat(i.options.fallbackNS));var w=o.count!==void 0&&typeof o.count!="string",h=w&&!o.ordinal&&o.count===0&&i.pluralResolver.shouldUseIntlApi(),g=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",x=o.lngs?o.lngs:i.languageUtils.toResolveHierarchy(o.lng||i.language,o.fallbackLng);b.forEach(function(m){i.isValidLookup(s)||(c=m,!un["".concat(x[0],"-").concat(m)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(c)&&(un["".concat(x[0],"-").concat(m)]=!0,i.logger.warn('key "'.concat(u,'" for languages "').concat(x.join(", "),`" won't get resolved as namespace "`).concat(c,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(function(v){if(!i.isValidLookup(s)){l=v;var N=[y];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(N,y,v,m,o);else{var C;w&&(C=i.pluralResolver.getSuffix(v,o.count,o));var X="".concat(i.options.pluralSeparator,"zero");if(w&&(N.push(y+C),h&&N.push(y+X)),g){var Z="".concat(y).concat(i.options.contextSeparator).concat(o.context);N.push(Z),w&&(N.push(Z+C),h&&N.push(Z+X))}}for(var _;_=N.pop();)i.isValidLookup(s)||(f=_,s=i.getResource(v,m,_,o))}}))})}}),{res:s,usedKey:u,exactUsedKey:f,usedLng:l,usedNS:c}}},{key:"isValidLookup",value:function(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,i,o,s):this.resourceStore.getResource(n,i,o,s)}}],[{key:"hasDefaultValue",value:function(n){var i="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&i===o.substring(0,i.length)&&n[o]!==void 0)return!0;return!1}}]),r}(le);function Bt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var fn=function(){function e(t){W(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=te.create("languageUtils")}return G(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var a=r.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var a=r.split("-");return this.formatLanguageCode(a[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var a=["hans","hant","latn","cyrl","cans","mong","arab"],n=r.split("-");return this.options.lowerCaseLng?n=n.map(function(i){return i.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),a.indexOf(n[1].toLowerCase())>-1&&(n[1]=Bt(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),a.indexOf(n[1].toLowerCase())>-1&&(n[1]=Bt(n[1].toLowerCase())),a.indexOf(n[2].toLowerCase())>-1&&(n[2]=Bt(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var a=this;if(!r)return null;var n;return r.forEach(function(i){if(!n){var o=a.formatLanguageCode(i);(!a.options.supportedLngs||a.isSupportedCode(o))&&(n=o)}}),!n&&this.options.supportedLngs&&r.forEach(function(i){if(!n){var o=a.getLanguagePartFromCode(i);if(a.isSupportedCode(o))return n=o;n=a.options.supportedLngs.find(function(s){if(s.indexOf(o)===0)return s})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}},{key:"getFallbackCodes",value:function(r,a){if(!r)return[];if(typeof r=="function"&&(r=r(a)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!a)return r.default||[];var n=r[a];return n||(n=r[this.getScriptPartFromCode(a)]),n||(n=r[this.formatLanguageCode(a)]),n||(n=r[this.getLanguagePartFromCode(a)]),n||(n=r.default),n||[]}},{key:"toResolveHierarchy",value:function(r,a){var n=this,i=this.getFallbackCodes(a||this.options.fallbackLng||[],r),o=[],s=function(f){f&&(n.isSupportedCode(f)?o.push(f):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(f)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),i.forEach(function(u){o.indexOf(u)<0&&s(n.formatLanguageCode(u))}),o}}]),e}(),Jo=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Yo={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},Wo=["v1","v2","v3"],ln={zero:0,one:1,two:2,few:3,many:4,other:5};function Go(){var e={};return Jo.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:Yo[t.fc]}})}),e}var Xo=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};W(this,e),this.languageUtils=t,this.options=r,this.logger=te.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Go()}return G(e,[{key:"addRule",value:function(r,a){this.rules[r]=a}},{key:"getRule",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:a.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(r,a);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,n).map(function(i){return"".concat(a).concat(i)})}},{key:"getSuffixes",value:function(r){var a=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(o,s){return ln[o]-ln[s]}).map(function(o){return"".concat(a.options.prepend).concat(o)}):i.numbers.map(function(o){return a.getSuffix(r,o,n)}):[]}},{key:"getSuffix",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(r,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(a)):this.getSuffixRetroCompatible(i,a):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,a){var n=this,i=r.noAbs?r.plurals(a):r.plurals(Math.abs(a)),o=r.numbers[i];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!Wo.includes(this.options.compatibilityJSON)}}]),e}();function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var Zo=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};W(this,e),this.logger=te.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return G(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var a=r.interpolation;this.escape=a.escape!==void 0?a.escape:Uo,this.escapeValue=a.escapeValue!==void 0?a.escapeValue:!0,this.useRawValueToEscape=a.useRawValueToEscape!==void 0?a.useRawValueToEscape:!1,this.prefix=a.prefix?Pe(a.prefix):a.prefixEscaped||"{{",this.suffix=a.suffix?Pe(a.suffix):a.suffixEscaped||"}}",this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||",",this.unescapePrefix=a.unescapeSuffix?"":a.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":a.unescapeSuffix||"",this.nestingPrefix=a.nestingPrefix?Pe(a.nestingPrefix):a.nestingPrefixEscaped||Pe("$t("),this.nestingSuffix=a.nestingSuffix?Pe(a.nestingSuffix):a.nestingSuffixEscaped||Pe(")"),this.nestingOptionsSeparator=a.nestingOptionsSeparator?a.nestingOptionsSeparator:a.nestingOptionsSeparator||",",this.maxReplaces=a.maxReplaces?a.maxReplaces:1e3,this.alwaysFormat=a.alwaysFormat!==void 0?a.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var a="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(a,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(r,a,n,i){var o=this,s,u,f,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(w){return w.replace(/\$/g,"$$$$")}var d=function(h){if(h.indexOf(o.formatSeparator)<0){var g=an(a,l,h);return o.alwaysFormat?o.format(g,void 0,n,H(H(H({},i),a),{},{interpolationkey:h})):g}var x=h.split(o.formatSeparator),m=x.shift().trim(),v=x.join(o.formatSeparator).trim();return o.format(an(a,l,m),v,n,H(H(H({},i),a),{},{interpolationkey:m}))};this.resetRegExp();var p=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,y=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,b=[{regex:this.regexpUnescape,safeValue:function(h){return c(h)}},{regex:this.regexp,safeValue:function(h){return o.escapeValue?c(o.escape(h)):c(h)}}];return b.forEach(function(w){for(f=0;s=w.regex.exec(r);){var h=s[1].trim();if(u=d(h),u===void 0)if(typeof p=="function"){var g=p(r,s,i);u=typeof g=="string"?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,h))u="";else if(y){u=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(h," for interpolating ").concat(r)),u="";else typeof u!="string"&&!o.useRawValueToEscape&&(u=rn(u));var x=w.safeValue(u);if(r=r.replace(s[0],x),y?(w.regex.lastIndex+=u.length,w.regex.lastIndex-=s[0].length):w.regex.lastIndex=0,f++,f>=o.maxReplaces)break}}),r}},{key:"nest",value:function(r,a){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,u;function f(p,y){var b=this.nestingOptionsSeparator;if(p.indexOf(b)<0)return p;var w=p.split(new RegExp("".concat(b,"[ ]*{"))),h="{".concat(w[1]);p=w[0],h=this.interpolate(h,u);var g=h.match(/'/g),x=h.match(/"/g);(g&&g.length%2===0&&!x||x.length%2!==0)&&(h=h.replace(/'/g,'"'));try{u=JSON.parse(h),y&&(u=H(H({},y),u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),m),"".concat(p).concat(b).concat(h)}return delete u.defaultValue,p}for(;o=this.nestingRegexp.exec(r);){var l=[];u=H({},i),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(p){return p.trim()});o[1]=d.shift(),l=d,c=!0}if(s=a(f.call(this,o[1].trim(),u),u),s&&o[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=rn(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(r)),s=""),c&&(s=l.reduce(function(p,y){return n.format(p,y,i.lng,H(H({},i),{},{interpolationkey:o[1].trim()}))},s.trim())),r=r.replace(o[0],s),this.regexp.lastIndex=0}return r}}]),e}();function pn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Qo(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var a=e.split("(");t=a[0].toLowerCase().trim();var n=a[1].substring(0,a[1].length-1);if(t==="currency"&&n.indexOf(":")<0)r.currency||(r.currency=n.trim());else if(t==="relativetime"&&n.indexOf(":")<0)r.range||(r.range=n.trim());else{var i=n.split(";");i.forEach(function(o){if(o){var s=o.split(":"),u=To(s),f=u[0],l=u.slice(1),c=l.join(":").trim().replace(/^'+|'+$/g,"");r[f.trim()]||(r[f.trim()]=c),c==="false"&&(r[f.trim()]=!1),c==="true"&&(r[f.trim()]=!0),isNaN(c)||(r[f.trim()]=parseInt(c,10))}})}}return{formatName:t,formatOptions:r}}function Ce(e){var t={};return function(a,n,i){var o=n+JSON.stringify(i),s=t[o];return s||(s=e(n,i),t[o]=s),s(a)}}var es=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};W(this,e),this.logger=te.create("formatter"),this.options=t,this.formats={number:Ce(function(r,a){var n=new Intl.NumberFormat(r,ie({},a));return function(i){return n.format(i)}}),currency:Ce(function(r,a){var n=new Intl.NumberFormat(r,ie(ie({},a),{},{style:"currency"}));return function(i){return n.format(i)}}),datetime:Ce(function(r,a){var n=new Intl.DateTimeFormat(r,ie({},a));return function(i){return n.format(i)}}),relativetime:Ce(function(r,a){var n=new Intl.RelativeTimeFormat(r,ie({},a));return function(i){return n.format(i,a.range||"day")}}),list:Ce(function(r,a){var n=new Intl.ListFormat(r,ie({},a));return function(i){return n.format(i)}})},this.init(t)}return G(e,[{key:"init",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},n=a.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(r,a){this.formats[r.toLowerCase().trim()]=a}},{key:"addCached",value:function(r,a){this.formats[r.toLowerCase().trim()]=Ce(a)}},{key:"format",value:function(r,a,n){var i=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.split(this.formatSeparator),u=s.reduce(function(f,l){var c=Qo(l),d=c.formatName,p=c.formatOptions;if(i.formats[d]){var y=f;try{var b=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},w=b.locale||b.lng||o.locale||o.lng||n;y=i.formats[d](f,w,ie(ie(ie({},p),o),b))}catch(h){i.logger.warn(h)}return y}else i.logger.warn("there was no format function for ".concat(d));return f},r);return u}}]),e}();function hn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function gn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function ts(e){var t=rs();return function(){var a=ne(e),n;if(t){var i=ne(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function rs(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ns(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var as=function(e){bt(r,e);var t=ts(r);function r(a,n,i){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return W(this,r),o=t.call(this),wt&&le.call(fe(o)),o.backend=a,o.store=n,o.services=i,o.languageUtils=i.languageUtils,o.options=s,o.logger=te.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,s.backend,s),o}return G(r,[{key:"queueLoad",value:function(n,i,o,s){var u=this,f={},l={},c={},d={};return n.forEach(function(p){var y=!0;i.forEach(function(b){var w="".concat(p,"|").concat(b);!o.reload&&u.store.hasResourceBundle(p,b)?u.state[w]=2:u.state[w]<0||(u.state[w]===1?l[w]===void 0&&(l[w]=!0):(u.state[w]=1,y=!1,l[w]===void 0&&(l[w]=!0),f[w]===void 0&&(f[w]=!0),d[b]===void 0&&(d[b]=!0)))}),y||(c[p]=!0)}),(Object.keys(f).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(f),pending:Object.keys(l),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(d)}}},{key:"loaded",value:function(n,i,o){var s=n.split("|"),u=s[0],f=s[1];i&&this.emit("failedLoading",u,f,i),o&&this.store.addResourceBundle(u,f,o),this.state[n]=i?-1:2;var l={};this.queue.forEach(function(c){Do(c.loaded,[u],f),ns(c,n),i&&c.errors.push(i),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(function(d){l[d]||(l[d]={});var p=c.loaded[d];p.length&&p.forEach(function(y){l[d][y]===void 0&&(l[d][y]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(function(c){return!c.done})}},{key:"read",value:function(n,i,o){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!n.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:i,fcName:o,tried:u,wait:f,callback:l});return}this.readingCalls++;var c=function(b,w){if(s.readingCalls--,s.waitingReads.length>0){var h=s.waitingReads.shift();s.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(b&&w&&u<s.maxRetries){setTimeout(function(){s.read.call(s,n,i,o,u+1,f*2,l)},f);return}l(b,w)},d=this.backend[o].bind(this.backend);if(d.length===2){try{var p=d(n,i);p&&typeof p.then=="function"?p.then(function(y){return c(null,y)}).catch(c):c(null,p)}catch(y){c(y)}return}return d(n,i,c)}},{key:"prepareLoading",value:function(n,i){var o=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof i=="string"&&(i=[i]);var f=this.queueLoad(n,i,s,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(function(l){o.loadOne(l)})}},{key:"load",value:function(n,i,o){this.prepareLoading(n,i,{},o)}},{key:"reload",value:function(n,i,o){this.prepareLoading(n,i,{reload:!0},o)}},{key:"loadOne",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=n.split("|"),u=s[0],f=s[1];this.read(u,f,"read",void 0,void 0,function(l,c){l&&i.logger.warn("".concat(o,"loading namespace ").concat(f," for language ").concat(u," failed"),l),!l&&c&&i.logger.log("".concat(o,"loaded namespace ").concat(f," for language ").concat(u),c),i.loaded(n,l,c)})}},{key:"saveMissing",value:function(n,i,o,s,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){var c=gn(gn({},f),{},{isUpdate:u}),d=this.backend.create.bind(this.backend);if(d.length<6)try{var p;d.length===5?p=d(n,i,o,s,c):p=d(n,i,o,s),p&&typeof p.then=="function"?p.then(function(y){return l(null,y)}).catch(l):l(null,p)}catch(y){l(y)}else d(n,i,o,s,l,c)}!n||!n[0]||this.store.addResource(n[0],i,o,s)}}}]),r}(le);function mn(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if(Y(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),Y(t[2])==="object"||Y(t[3])==="object"){var a=t[3]||t[2];Object.keys(a).forEach(function(n){r[n]=a[n]})}return r},interpolation:{escapeValue:!0,format:function(t,r,a,n){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function vn(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function is(e){var t=os();return function(){var a=ne(e),n;if(t){var i=ne(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function os(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ge(){}function ss(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var st=function(e){bt(r,e);var t=is(r);function r(){var a,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(W(this,r),a=t.call(this),wt&&le.call(fe(a)),a.options=vn(n),a.services={},a.logger=te,a.modules={external:[]},ss(fe(a)),i&&!a.isInitialized&&!n.isClone){if(!a.options.initImmediate)return a.init(n,i),qe(a,fe(a));setTimeout(function(){a.init(n,i)},0)}return a}return G(r,[{key:"init",value:function(){var n=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(o=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));var s=mn();this.options=Q(Q(Q({},s),this.options),vn(i)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Q(Q({},s.interpolation),this.options.interpolation)),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function u(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?te.init(u(this.modules.logger),this.options):te.init(null,this.options);var f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=es);var l=new fn(this.options);this.store=new zo(this.options.resources,this.options);var c=this.services;c.logger=te,c.resourceStore=this.store,c.languageUtils=l,c.pluralResolver=new Xo(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=u(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new Zo(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new as(u(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(h){for(var g=arguments.length,x=new Array(g>1?g-1:0),m=1;m<g;m++)x[m-1]=arguments[m];n.emit.apply(n,[h].concat(x))}),this.modules.languageDetector&&(c.languageDetector=u(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=u(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new cn(this.services,this.options),this.translator.on("*",function(h){for(var g=arguments.length,x=new Array(g>1?g-1:0),m=1;m<g;m++)x[m-1]=arguments[m];n.emit.apply(n,[h].concat(x))}),this.modules.external.forEach(function(h){h.init&&h.init(n)})}if(this.format=this.options.interpolation.format,o||(o=Ge),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var p=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];p.forEach(function(h){n[h]=function(){var g;return(g=n.store)[h].apply(g,arguments)}});var y=["addResource","addResources","addResourceBundle","removeResourceBundle"];y.forEach(function(h){n[h]=function(){var g;return(g=n.store)[h].apply(g,arguments),n}});var b=Ie(),w=function(){var g=function(m,v){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),b.resolve(v),o(m,v)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return g(null,n.t.bind(n));n.changeLanguage(n.options.lng,g)};return this.options.resources||!this.options.initImmediate?w():setTimeout(w,0),b}},{key:"loadResources",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,s=o,u=typeof n=="string"?n:this.language;if(typeof n=="function"&&(s=n),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var f=[],l=function(p){if(p){var y=i.services.languageUtils.toResolveHierarchy(p);y.forEach(function(b){f.indexOf(b)<0&&f.push(b)})}};if(u)l(u);else{var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.forEach(function(d){return l(d)})}this.options.preload&&this.options.preload.forEach(function(d){return l(d)}),this.services.backendConnector.load(f,this.options.ns,function(d){!d&&!i.resolvedLanguage&&i.language&&i.setResolvedLanguage(i.language),s(d)})}else s(null)}},{key:"reloadResources",value:function(n,i,o){var s=Ie();return n||(n=this.languages),i||(i=this.options.ns),o||(o=Ge),this.services.backendConnector.reload(n,i,function(u){s.resolve(),o(u)}),s}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&da.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"setResolvedLanguage",value:function(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1))for(var i=0;i<this.languages.length;i++){var o=this.languages[i];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(n,i){var o=this;this.isLanguageChangingTo=n;var s=Ie();this.emit("languageChanging",n);var u=function(d){o.language=d,o.languages=o.services.languageUtils.toResolveHierarchy(d),o.resolvedLanguage=void 0,o.setResolvedLanguage(d)},f=function(d,p){p?(u(p),o.translator.changeLanguage(p),o.isLanguageChangingTo=void 0,o.emit("languageChanged",p),o.logger.log("languageChanged",p)):o.isLanguageChangingTo=void 0,s.resolve(function(){return o.t.apply(o,arguments)}),i&&i(d,function(){return o.t.apply(o,arguments)})},l=function(d){!n&&!d&&o.services.languageDetector&&(d=[]);var p=typeof d=="string"?d:o.services.languageUtils.getBestMatchFromCodes(d);p&&(o.language||u(p),o.translator.language||o.translator.changeLanguage(p),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(p)),o.loadResources(p,function(y){f(y,p)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(n),s}},{key:"getFixedT",value:function(n,i,o){var s=this,u=function f(l,c){var d;if(Y(c)!=="object"){for(var p=arguments.length,y=new Array(p>2?p-2:0),b=2;b<p;b++)y[b-2]=arguments[b];d=s.options.overloadTranslationOptionHandler([l,c].concat(y))}else d=Q({},c);d.lng=d.lng||f.lng,d.lngs=d.lngs||f.lngs,d.ns=d.ns||f.ns,d.keyPrefix=d.keyPrefix||o||f.keyPrefix;var w=s.options.keySeparator||".",h;return d.keyPrefix&&Array.isArray(l)?h=l.map(function(g){return"".concat(d.keyPrefix).concat(w).concat(g)}):h=d.keyPrefix?"".concat(d.keyPrefix).concat(w).concat(l):l,s.t(h,d)};return typeof n=="string"?u.lng=n:u.lngs=n,u.ns=i,u.keyPrefix=o,u}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var l=function(p,y){var b=i.services.backendConnector.state["".concat(p,"|").concat(y)];return b===-1||b===2};if(o.precheck){var c=o.precheck(this,l);if(c!==void 0)return c}return!!(this.hasResourceBundle(s,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(s,n)&&(!u||l(f,n)))}},{key:"loadNamespaces",value:function(n,i){var o=this,s=Ie();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(u){o.options.ns.indexOf(u)<0&&o.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),i&&i(u)}),s):(i&&i(),Promise.resolve())}},{key:"loadLanguages",value:function(n,i){var o=Ie();typeof n=="string"&&(n=[n]);var s=this.options.preload||[],u=n.filter(function(f){return s.indexOf(f)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(f){o.resolve(),i&&i(f)}),o):(i&&i(),Promise.resolve())}},{key:"dir",value:function(n){if(n||(n=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!n)return"rtl";var i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new fn(mn());return i.indexOf(o.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var n=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,s=Q(Q(Q({},this.options),i),{isClone:!0}),u=new r(s);(i.debug!==void 0||i.prefix!==void 0)&&(u.logger=u.logger.clone(i));var f=["store","services","language"];return f.forEach(function(l){u[l]=n[l]}),u.services=Q({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new cn(u.services,u.options),u.translator.on("*",function(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];u.emit.apply(u,[l].concat(d))}),u.init(s,o),u.translator.options=u.options,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(le);pe(st,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new st(e,t)});var $=st.createInstance();$.createInstance=st.createInstance;$.createInstance;$.dir;$.init;$.loadResources;$.reloadResources;$.use;$.changeLanguage;$.getFixedT;$.t;$.exists;$.setDefaultNamespace;$.hasLoadedNamespace;$.loadNamespaces;$.loadLanguages;var pa=[],us=pa.forEach,cs=pa.slice;function fs(e){return us.call(cs.call(arguments,1),function(t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r])}),e}var bn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,ls=function(t,r,a){var n=a||{};n.path=n.path||"/";var i=encodeURIComponent(r),o="".concat(t,"=").concat(i);if(n.maxAge>0){var s=n.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(n.domain){if(!bn.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(n.domain)}if(n.path){if(!bn.test(n.path))throw new TypeError("option path is invalid");o+="; Path=".concat(n.path)}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},wn={create:function(t,r,a,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};a&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+a*60*1e3)),n&&(i.domain=n),document.cookie=ls(t,encodeURIComponent(r),i)},read:function(t){for(var r="".concat(t,"="),a=document.cookie.split(";"),n=0;n<a.length;n++){for(var i=a[n];i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(r)===0)return i.substring(r.length,i.length)}return null},remove:function(t){this.create(t,"",-1)}},ds={name:"cookie",lookup:function(t){var r;if(t.lookupCookie&&typeof document<"u"){var a=wn.read(t.lookupCookie);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupCookie&&typeof document<"u"&&wn.create(r.lookupCookie,t,r.cookieMinutes,r.cookieDomain,r.cookieOptions)}},ps={name:"querystring",lookup:function(t){var r;if(typeof window<"u"){var a=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=a.substring(1),i=n.split("&"),o=0;o<i.length;o++){var s=i[o].indexOf("=");if(s>0){var u=i[o].substring(0,s);u===t.lookupQuerystring&&(r=i[o].substring(s+1))}}}return r}},De=null,Sn=function(){if(De!==null)return De;try{De=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{De=!1}return De},hs={name:"localStorage",lookup:function(t){var r;if(t.lookupLocalStorage&&Sn()){var a=window.localStorage.getItem(t.lookupLocalStorage);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupLocalStorage&&Sn()&&window.localStorage.setItem(r.lookupLocalStorage,t)}},Fe=null,On=function(){if(Fe!==null)return Fe;try{Fe=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Fe=!1}return Fe},gs={name:"sessionStorage",lookup:function(t){var r;if(t.lookupSessionStorage&&On()){var a=window.sessionStorage.getItem(t.lookupSessionStorage);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupSessionStorage&&On()&&window.sessionStorage.setItem(r.lookupSessionStorage,t)}},ms={name:"navigator",lookup:function(t){var r=[];if(typeof navigator<"u"){if(navigator.languages)for(var a=0;a<navigator.languages.length;a++)r.push(navigator.languages[a]);navigator.userLanguage&&r.push(navigator.userLanguage),navigator.language&&r.push(navigator.language)}return r.length>0?r:void 0}},vs={name:"htmlTag",lookup:function(t){var r,a=t.htmlTag||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(r=a.getAttribute("lang")),r}},ys={name:"path",lookup:function(t){var r;if(typeof window<"u"){var a=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(a instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof a[t.lookupFromPathIndex]!="string")return;r=a[t.lookupFromPathIndex].replace("/","")}else r=a[0].replace("/","")}return r}},bs={name:"subdomain",lookup:function(t){var r=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,a=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(a)return a[r]}};function ws(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var ha=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};W(this,e),this.type="languageDetector",this.detectors={},this.init(t,r)}return G(e,[{key:"init",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r,this.options=fs(a,this.options||{},ws()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(ds),this.addDetector(ps),this.addDetector(hs),this.addDetector(gs),this.addDetector(ms),this.addDetector(vs),this.addDetector(ys),this.addDetector(bs)}},{key:"addDetector",value:function(r){this.detectors[r.name]=r}},{key:"detect",value:function(r){var a=this;r||(r=this.options.order);var n=[];return r.forEach(function(i){if(a.detectors[i]){var o=a.detectors[i].lookup(a.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(r,a){var n=this;a||(a=this.options.caches),a&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(r)>-1||a.forEach(function(i){n.detectors[i]&&n.detectors[i].cacheUserLanguage(r,n.options)}))}}]),e}();ha.type="languageDetector";const ga=({resources:e})=>T.useMemo(()=>$.createInstance({defaultNS:"common",fallbackLng:"en",fallbackNS:"common",load:"languageOnly",ns:["common"],overloadTranslationOptionHandler:t=>({defaultValue:t[1]}),react:{useSuspense:!1},resources:e,supportedLngs:e?Object.keys(e):[]},t=>{if(t)return console.error(t)}).use(ha),[e]),ma=_n(e=>{const t=`.${e}`;return jn({key:"css",stylisPlugins:[a=>{a?.type==="rule"&&a?.value.startsWith(".css")&&(a.props=[a.props].flat().map(n=>n.includes(t)?n:`${t} ${n}`))},Ua]})}),va=({children:e,css:t,fallback:r,resources:a})=>{const{scope:n,onError:i}=sa(),o=ga({resources:a});return q("div",{className:n,css:t,"data-testid":n,children:q(nt.CacheProvider,{value:ma(n),children:q(wa.I18nextProvider,{i18n:o,children:q(ua,{fallback:r,onError:i,children:e})})})})};var Ss=Object.defineProperty,ut=Object.getOwnPropertySymbols,ya=Object.prototype.hasOwnProperty,ba=Object.prototype.propertyIsEnumerable,xn=(e,t,r)=>t in e?Ss(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zt=(e,t)=>{for(var r in t||(t={}))ya.call(t,r)&&xn(e,r,t[r]);if(ut)for(var r of ut(t))ba.call(t,r)&&xn(e,r,t[r]);return e},Os=(e,t)=>{var r={};for(var a in e)ya.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&ut)for(var a of ut(e))t.indexOf(a)<0&&ba.call(e,a)&&(r[a]=e[a]);return r};const xs=(e,t)=>{if(!e)return;const r=e;return e&&t&&Object.entries(e).forEach(([a,n])=>{Object.keys(n).forEach(i=>{var o;r[a][i]=Zt(Zt({},r[a][i]),(o=t[a])==null?void 0:o[i])})}),r},Es=(e,t,r)=>a=>{var n=a,{resources:i}=n,o=Os(n,["resources"]);return q(va,{resources:xs(r?.resources,i),fallback:t,children:q(e,Zt({},o))})},Ps={createElement:Es};exports.Alchemy=Ro;exports.AlchemyContext=fr;exports.Element=va;exports.ErrorBoundary=ua;exports.default=Ps;exports.memoizedCreateCache=ma;exports.useAlchemy=sa;exports.useI18n=ga;exports.useLoadFonts=zn;exports.useLoadIcons=ia;exports.useLoadTheme=oa;Object.keys(be).forEach(e=>{e!=="default"&&!exports.hasOwnProperty(e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>be[e]})});
|