@shipengine/alchemy 0.4.5 → 0.4.6
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 +8 -8
- package/index.mjs +48 -48
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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"),er=require("@packlink/brands"),hr=require("@packlink/giger"),be=require("@shipengine/react-api"),Sa=require("react-i18next");function xa(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=xa(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 Ea(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 Pa=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(Ea(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-",x="-webkit-",tr="comm",ct="rule",ft="decl",Ca="@import",rr="@keyframes",Ra=Math.abs,lt=String.fromCharCode,ka=Object.assign;function Pn(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 Cn(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 nr(e){return e.length}function Ye(e,t){return t.push(e),e}function Rn(e,t){return e.map(t).join("")}var dt=1,Ne=1,kn=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 ka(pt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Na(){return A}function La(){return A=F>0?L(Le,--F):0,Ne--,A===10&&(Ne=1,dt--),A}function B(){return A=F<kn?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 Nn(e){return dt=Ne=1,kn=K(Le=e),F=0,[]}function Ln(e){return Le="",e}function Ze(e){return Cn(Be(F-1,qt(e===91?e+2:e===40?e+1:e)))}function _a(e){for(;(A=re())&&A<33;)B();return Ue(e)>2||Ue(A)>3?"":" "}function Aa(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 Ta(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 ja(e){for(;!Ue(re());)B();return Be(e,F)}function $a(e){return Ln(Qe("",null,null,null,[""],e=Nn(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,O="",m=n,v=i,N=a,C=O;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+=_a(y);break;case 92:C+=Aa(Xe()-1,7);continue;case 47:switch(re()){case 42:case 47:Ye(Ia(Ta(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?mr(C+";",a,r,c-1):mr(S(C," ","")+";",a,r,c-2),u);break;case 59:C+=";";default:if(Ye(N=gr(C,t,r,f,l,n,s,O,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(gr(e,N,N,0,0,n,s,O,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,O=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&&La()==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(O=C+=ja(Xe())),g++;break;case 45:y===45&&K(C)==2&&(b=0)}}return i}function gr(e,t,r,a,n,i,o,s,u,f,l){for(var c=n-1,d=n===0?i:[""],p=nr(d),y=0,b=0,w=0;y<a;++y)for(var h=0,g=ke(e,c+1,c=Ra(b=o[y])),O=e;h<p;++h)(O=Cn(b>0?d[h]+" "+g:S(g,/&\f/g,d[h])))&&(u[w++]=O);return pt(e,t,r,n===0?ct:s,u,f,l)}function Ia(e,t,r){return pt(e,t,r,tr,lt(Na()),ke(e,2,-2),0)}function mr(e,t,r,a){return pt(e,t,r,ft,ke(e,0,a),ke(e,a+1,-1),a)}function _n(e,t,r){switch(Pn(e,t)){case 5103:return x+"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 x+e+e;case 4789:return se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return x+e+se+e+P+e+e;case 5936:switch(L(e,t+11)){case 114:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return x+e+P+e+e;case 6165:return x+e+P+"flex-"+e+e;case 5187:return x+e+S(e,/(\w+).+(:[^]+)/,x+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return x+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 x+e+P+"flex-line-pack"+S(e,/align-content|flex-|-self/g,"")+e;case 5548:return x+e+P+S(e,"shrink","negative")+e;case 5292:return x+e+P+S(e,"basis","preferred-size")+e;case 6060:return x+"box-"+S(e,"-grow","")+x+e+P+S(e,"grow","positive")+e;case 4554:return x+S(e,/([^-])(transform)/g,"$1"+x+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,x+"$1"),/(image-set)/,x+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,x+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,x+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+x+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(.+)/,x+"$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"+x+"$2-$3$1"+se+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Re(e,"stretch")?_n(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,":",":"+x)+e;break;case 6444:switch(L(e,L(e,14)===45?18:11)){case 120:return S(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+x+(L(e,14)===45?"inline-":"")+"box$3$1"+x+"$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=nr(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function Da(e,t,r,a){switch(e.type){case Ca:case ft:return e.return=e.return||e.value;case tr:return"";case rr: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 Fa(e){var t=nr(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 Ua(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ma(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case ft:e.return=_n(e.value,e.length,r);return;case rr:return ue([ee(e,{value:S(e.value,"@","@"+x)})],a);case ct:if(e.length)return Rn(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+)/,":"+x+"input-$1")]}),ee(e,{props:[S(n,/:(plac\w+)/,":"+se+"$1")]}),ee(e,{props:[S(n,/:(plac\w+)/,P+"input-$1")]})],a)}return""})}}function An(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ba=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)},Va=function(t,r){var a=-1,n=44;do switch(Ue(n)){case 0:n===38&&re()===12&&(r[a]=1),t[a]+=Ba(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},qa=function(t,r){return Ln(Va(Nn(t),r))},vr=new WeakMap,za=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&&!vr.get(a))&&!n){vr.set(t,!0);for(var i=[],o=qa(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]}}},Ha=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},Ka="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Ja=function(t){return t.type==="comm"&&t.children.indexOf(Ka)>-1},Ya=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(Ja(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".')})}}}},Tn=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Wa=function(t,r){for(var a=t-1;a>=0;a--)if(!Tn(r[a]))return!0;return!1},yr=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Ga=function(t,r,a){Tn(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."),yr(t)):Wa(r,a)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),yr(t)))};function jn(e,t){switch(Pn(e,t)){case 5103:return x+"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 x+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return x+e+se+e+P+e+e;case 6828:case 4268:return x+e+P+e+e;case 6165:return x+e+P+"flex-"+e+e;case 5187:return x+e+S(e,/(\w+).+(:[^]+)/,x+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return x+e+P+"flex-item-"+S(e,/flex-|-self/,"")+e;case 4675:return x+e+P+"flex-line-pack"+S(e,/align-content|flex-|-self/,"")+e;case 5548:return x+e+P+S(e,"shrink","negative")+e;case 5292:return x+e+P+S(e,"basis","preferred-size")+e;case 6060:return x+"box-"+S(e,"-grow","")+x+e+P+S(e,"grow","positive")+e;case 4554:return x+S(e,/([^-])(transform)/g,"$1"+x+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,x+"$1"),/(image-set)/,x+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,x+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,x+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+x+e+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,x+"$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"+x+"$2-$3$1"+se+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Re(e,"stretch")?jn(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,":",":"+x)+e;case 101:return S(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+x+(L(e,14)===45?"inline-":"")+"box$3$1"+x+"$2$3$1"+P+"$2box$3")+e}break;case 5936:switch(L(e,t+11)){case 114:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return x+e+P+e+e}return e}var Xa=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case ft:t.return=jn(t.value,t.length);break;case rr:return ue([ee(t,{value:S(t.value,"@","@"+x)})],n);case ct:if(t.length)return Rn(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+)/,":"+x+"input-$1")]}),ee(t,{props:[S(i,/:(plac\w+)/,":"+se+"$1")]}),ee(t,{props:[S(i,/:(plac\w+)/,P+"input-$1")]})],n)}return""})}},Za=[Xa],$n=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.
|
|
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-",x="-webkit-",tr="comm",ct="rule",ft="decl",Ca="@import",rr="@keyframes",Ra=Math.abs,lt=String.fromCharCode,ka=Object.assign;function Pn(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 Cn(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 H(e){return e.length}function nr(e){return e.length}function Ye(e,t){return t.push(e),e}function Rn(e,t){return e.map(t).join("")}var dt=1,Ne=1,kn=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 ka(pt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Na(){return A}function La(){return A=F>0?L(Le,--F):0,Ne--,A===10&&(Ne=1,dt--),A}function B(){return A=F<kn?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 Nn(e){return dt=Ne=1,kn=H(Le=e),F=0,[]}function Ln(e){return Le="",e}function Ze(e){return Cn(Be(F-1,qt(e===91?e+2:e===40?e+1:e)))}function _a(e){for(;(A=re())&&A<33;)B();return Ue(e)>2||Ue(A)>3?"":" "}function Aa(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 Ta(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 ja(e){for(;!Ue(re());)B();return Be(e,F)}function $a(e){return Ln(Qe("",null,null,null,[""],e=Nn(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,O="",m=n,v=i,N=a,C=O;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+=_a(y);break;case 92:C+=Aa(Xe()-1,7);continue;case 47:switch(re()){case 42:case 47:Ye(Ia(Ta(B(),Xe()),t,r),u);break;default:C+="/"}break;case 123*b:s[f++]=H(C)*h;case 125*b:case 59:case 0:switch(g){case 0:case 125:w=0;case 59+l:p>0&&H(C)-c&&Ye(p>32?mr(C+";",a,r,c-1):mr(S(C," ","")+";",a,r,c-2),u);break;case 59:C+=";";default:if(Ye(N=gr(C,t,r,f,l,n,s,O,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(gr(e,N,N,0,0,n,s,O,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,O=C="",c=o;break;case 58:c=1+H(C),p=y;default:if(b<1){if(g==123)--b;else if(g==125&&b++==0&&La()==125)continue}switch(C+=lt(g),g*b){case 38:h=l>0?1:(C+="\f",-1);break;case 44:s[f++]=(H(C)-1)*h,h=1;break;case 64:re()===45&&(C+=Ze(B())),d=re(),l=c=H(O=C+=ja(Xe())),g++;break;case 45:y===45&&H(C)==2&&(b=0)}}return i}function gr(e,t,r,a,n,i,o,s,u,f,l){for(var c=n-1,d=n===0?i:[""],p=nr(d),y=0,b=0,w=0;y<a;++y)for(var h=0,g=ke(e,c+1,c=Ra(b=o[y])),O=e;h<p;++h)(O=Cn(b>0?d[h]+" "+g:S(g,/&\f/g,d[h])))&&(u[w++]=O);return pt(e,t,r,n===0?ct:s,u,f,l)}function Ia(e,t,r){return pt(e,t,r,tr,lt(Na()),ke(e,2,-2),0)}function mr(e,t,r,a){return pt(e,t,r,ft,ke(e,0,a),ke(e,a+1,-1),a)}function _n(e,t,r){switch(Pn(e,t)){case 5103:return x+"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 x+e+e;case 4789:return se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return x+e+se+e+P+e+e;case 5936:switch(L(e,t+11)){case 114:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return x+e+P+e+e;case 6165:return x+e+P+"flex-"+e+e;case 5187:return x+e+S(e,/(\w+).+(:[^]+)/,x+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return x+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 x+e+P+"flex-line-pack"+S(e,/align-content|flex-|-self/g,"")+e;case 5548:return x+e+P+S(e,"shrink","negative")+e;case 5292:return x+e+P+S(e,"basis","preferred-size")+e;case 6060:return x+"box-"+S(e,"-grow","")+x+e+P+S(e,"grow","positive")+e;case 4554:return x+S(e,/([^-])(transform)/g,"$1"+x+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,x+"$1"),/(image-set)/,x+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,x+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,x+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+x+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(.+)/,x+"$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(H(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+x+"$2-$3$1"+se+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Re(e,"stretch")?_n(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,":",":"+x)+e;break;case 6444:switch(L(e,L(e,14)===45?18:11)){case 120:return S(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+x+(L(e,14)===45?"inline-":"")+"box$3$1"+x+"$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=nr(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function Da(e,t,r,a){switch(e.type){case Ca:case ft:return e.return=e.return||e.value;case tr:return"";case rr:return e.return=e.value+"{"+ue(e.children,a)+"}";case ct:e.value=e.props.join(",")}return H(r=ue(e.children,a))?e.return=e.value+"{"+r+"}":""}function Fa(e){var t=nr(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 Ua(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ma(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case ft:e.return=_n(e.value,e.length,r);return;case rr:return ue([ee(e,{value:S(e.value,"@","@"+x)})],a);case ct:if(e.length)return Rn(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+)/,":"+x+"input-$1")]}),ee(e,{props:[S(n,/:(plac\w+)/,":"+se+"$1")]}),ee(e,{props:[S(n,/:(plac\w+)/,P+"input-$1")]})],a)}return""})}}function An(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ba=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)},Va=function(t,r){var a=-1,n=44;do switch(Ue(n)){case 0:n===38&&re()===12&&(r[a]=1),t[a]+=Ba(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},qa=function(t,r){return Ln(Va(Nn(t),r))},vr=new WeakMap,za=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&&!vr.get(a))&&!n){vr.set(t,!0);for(var i=[],o=qa(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]}}},Ha=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},Ka="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Ja=function(t){return t.type==="comm"&&t.children.indexOf(Ka)>-1},Ya=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(Ja(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".')})}}}},Tn=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Wa=function(t,r){for(var a=t-1;a>=0;a--)if(!Tn(r[a]))return!0;return!1},yr=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Ga=function(t,r,a){Tn(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."),yr(t)):Wa(r,a)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),yr(t)))};function jn(e,t){switch(Pn(e,t)){case 5103:return x+"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 x+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return x+e+se+e+P+e+e;case 6828:case 4268:return x+e+P+e+e;case 6165:return x+e+P+"flex-"+e+e;case 5187:return x+e+S(e,/(\w+).+(:[^]+)/,x+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return x+e+P+"flex-item-"+S(e,/flex-|-self/,"")+e;case 4675:return x+e+P+"flex-line-pack"+S(e,/align-content|flex-|-self/,"")+e;case 5548:return x+e+P+S(e,"shrink","negative")+e;case 5292:return x+e+P+S(e,"basis","preferred-size")+e;case 6060:return x+"box-"+S(e,"-grow","")+x+e+P+S(e,"grow","positive")+e;case 4554:return x+S(e,/([^-])(transform)/g,"$1"+x+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,x+"$1"),/(image-set)/,x+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,x+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,x+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+x+e+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,x+"$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(H(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+x+"$2-$3$1"+se+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Re(e,"stretch")?jn(S(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(L(e,t+1)!==115)break;case 6444:switch(L(e,H(e)-3-(~Re(e,"!important")&&10))){case 107:return S(e,":",":"+x)+e;case 101:return S(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+x+(L(e,14)===45?"inline-":"")+"box$3$1"+x+"$2$3$1"+P+"$2box$3")+e}break;case 5936:switch(L(e,t+11)){case 114:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return x+e+P+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return x+e+P+e+e}return e}var Xa=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case ft:t.return=jn(t.value,t.length);break;case rr:return ue([ee(t,{value:S(t.value,"@","@"+x)})],n);case ct:if(t.length)return Rn(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+)/,":"+x+"input-$1")]}),ee(t,{props:[S(i,/:(plac\w+)/,":"+se+"$1")]}),ee(t,{props:[S(i,/:(plac\w+)/,P+"input-$1")]})],n)}return""})}},Za=[Xa],$n=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
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||Za;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=[za,Ha];process.env.NODE_ENV!=="production"&&f.push(Ya({get compat(){return y.compat}}),Ga);{var l,c=[Da,process.env.NODE_ENV!=="production"?function(b){b.root||(b.return?l.insert(b.return):b.value&&b.type!==tr&&l.insert(b.value+"{}"))}:Ua(function(b){l.insert(b)})],d=Fa(f.concat(n,c)),p=function(w){return ue($a(w),d)};u=function(w,h,g,O){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),O&&(y.inserted[h.name]=!0)}}var y={key:r,sheet:new Pa({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 Qa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zt={},ei={get exports(){return zt},set exports(e){zt=e}},R={};/** @license React v16.13.1
|
|
4
4
|
* react-is.production.min.js
|
|
5
5
|
*
|
|
@@ -14,19 +14,19 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
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 wr;function ri(){return wr||(wr=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 O(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 xe=E.$$typeof;switch(xe){case t:var ye=E.type;switch(ye){case u:case f:case a:case i:case n:case c:return ye;default:var pr=ye&&ye.$$typeof;switch(pr){case s:case l:case y:case p:case o:return pr;default:return xe}}case r:return xe}}}var v=u,N=f,C=s,X=o,Z=t,_=l,
|
|
17
|
+
*/var wr;function ri(){return wr||(wr=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 O(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 xe=E.$$typeof;switch(xe){case t:var ye=E.type;switch(ye){case u:case f:case a:case i:case n:case c:return ye;default:var pr=ye&&ye.$$typeof;switch(pr){case s:case l:case y:case p:case o:return pr;default:return xe}}case r:return xe}}}var v=u,N=f,C=s,X=o,Z=t,_=l,q=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 xt(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=q,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=xt,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=O,k.typeOf=m}()),k}(function(e){process.env.NODE_ENV==="production"?e.exports=ti():e.exports=ri()})(ei);var In=zt,ni={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ai={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Dn={};Dn[In.ForwardRef]=ni;Dn[In.Memo]=ai;var ii=!0;function oi(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):a+=n+" "}),a}var Fn=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||ii===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},si=function(t,r,a){Fn(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 ui(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 ci={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},Sr=`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`,fi="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",li=/[A-Z]|^ms/g,Un=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ar=function(t){return t.charCodeAt(1)===45},xr=function(t){return t!=null&&typeof t!="boolean"},Ot=An(function(e){return ar(e)?e:e.replace(li,"-$&").toLowerCase()}),at=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Un,function(a,n,i){return
|
|
20
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,fi="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",li=/[A-Z]|^ms/g,Un=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ar=function(t){return t.charCodeAt(1)===45},xr=function(t){return t!=null&&typeof t!="boolean"},Ot=An(function(e){return ar(e)?e:e.replace(li,"-$&").toLowerCase()}),at=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Un,function(a,n,i){return K={name:n,styles:i,next:K},n})}return ci[t]!==1&&!ar(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var di=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,pi=["normal","none","initial","inherit","unset"],hi=at,gi=/^-ms-/,mi=/-(.)/g,Or={};at=function(t,r){if(t==="content"&&(typeof r!="string"||pi.indexOf(r)===-1&&!di.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=hi(t,r);return a!==""&&!ar(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(gi,"ms-").replace(mi,function(n,i){return i.toUpperCase()})+"?")),a}}var Mn="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(Mn);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return K={name:r.name,styles:r.styles,next:K},r.name;if(r.styles!==void 0){var a=r.next;if(a!==void 0)for(;a!==void 0;)K={name:a.name,styles:a.styles,next:K},a=a.next;var n=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(n+=r.map),n}return vi(e,t,r)}case"function":{if(e!==void 0){var i=K,o=r(e);return K=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(Un,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 vi(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]+"}":xr(o)&&(a+=Ot(i)+":"+at(i,o)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Mn);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)xr(o[s])&&(a+=Ot(i)+":"+at(i,o[s])+";");else{var u=Me(e,t,o);switch(i){case"animation":case"animationName":{a+=Ot(i)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(fi),a+=i+"{"+u+"}"}}}}return a}var Er=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Bn;process.env.NODE_ENV!=="production"&&(Bn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var
|
|
26
|
-
`),a=0;a<r.length;a++){var n=xi(r[a]);if(n){if(Oi.has(n))break;if(/^[A-Z]/.test(n))return Ei(n)}}},Ht="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Kt="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",qn=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=Pi(new Error().stack);i&&(a[Kt]=i)}return a},Ci=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return Fn(r,a,n),wi(function(){return si(r,a,n)}),null},or=Si(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=oi(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Pr(i,void 0,T.useContext(Vn));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var u=e[Kt];u&&(s=Pr([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(Ci,{cache:t,serialized:s,isStringTag:typeof n=="string"}),T.createElement(n,f))});process.env.NODE_ENV!=="production"&&(or.displayName="EmotionCssPropInternal");function
|
|
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,Ir;function ro(){if(Ir)return _t;Ir=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,Dr;function mt(){if(Dr)return At;Dr=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,Fr;function Ur(){if(Fr)return Tt;Fr=1;var e=U,t=Gi(),r=Xi(),a=Gn,n=eo(),i=to(),o=ro(),s=Qn(),u=Zn,f=mt();return Tt=function(c){return new Promise(function(p,y){var b=c.data,w=c.headers,h=c.responseType,g;function O(){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),O()},function(V){y(V),O()},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,Mr=Wi,no=Xn,ao=Zn,io={"Content-Type":"application/x-www-form-urlencoded"};function Br(e,t){!j.isUndefined(e)&&j.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function oo(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ur()),e}function so(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:ao,adapter:oo(),transformRequest:[function(t,r){return Mr(r,"Accept"),Mr(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)?(Br(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):j.isObject(t)||r&&r["Content-Type"]==="application/json"?(Br(r,"application/json"),so(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"?no(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(io)});var cr=vt,uo=U,co=cr,fo=function(t,r,a){var n=this||co;return uo.forEach(a,function(o){t=o.call(n,t,r)}),t},jt,Vr;function ea(){return Vr||(Vr=1,jt=function(t){return!!(t&&t.__CANCEL__)}),jt}var qr=U,$t=fo,lo=ea(),po=cr,ho=mt();function It(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ho("canceled")}var go=function(t){It(t),t.headers=t.headers||{},t.data=$t.call(t,t.data,t.headers,t.transformRequest),t.headers=qr.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),qr.forEach(["delete","get","head","post","put","patch","common"],function(n){delete t.headers[n]});var r=t.adapter||po.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 lo(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,ta=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,zr;function ra(){return zr||(zr=1,Dt={version:"0.26.1"}),Dt}var mo=ra().version,fr={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){fr[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});var Hr={};fr.transitional=function(t,r,a){function n(i,o){return"[Axios v"+mo+"] 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&&!Hr[o]&&(Hr[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 vo(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 yo={assertOptions:vo,validators:fr},na=U,bo=Gn,Kr=Ji,Jr=go,yt=ta,aa=yo,Ee=aa.validators;function Ve(e){this.defaults=e,this.interceptors={request:new Kr,response:new Kr}}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&&aa.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=[Jr,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=Jr(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),bo(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};na.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}))}});na.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 wo=Ve,Ft,Yr;function So(){if(Yr)return Ft;Yr=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,Wr;function xo(){return Wr||(Wr=1,Ut=function(t){return function(a){return t.apply(null,a)}}),Ut}var Mt,Gr;function Oo(){if(Gr)return Mt;Gr=1;var e=U;return Mt=function(r){return e.isObject(r)&&r.isAxiosError===!0},Mt}var Xr=U,Eo=Kn,tt=wo,Po=ta,Co=cr;function ia(e){var t=new tt(e),r=Eo(tt.prototype.request,t);return Xr.extend(r,tt.prototype,t),Xr.extend(r,t),r.create=function(n){return ia(Po(e,n))},r}var ae=ia(Co);ae.Axios=tt;ae.Cancel=mt();ae.CancelToken=So();ae.isCancel=ea();ae.VERSION=ra().version;ae.all=function(t){return Promise.all(t)};ae.spread=xo();ae.isAxiosError=Oo();Li.exports=ae;it.default=ae;(function(e){e.exports=it})(Ni);const Gt=Qa(Jt);var Zr=(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=({brandName:e,cdnURL:t="/"})=>{const[r,a]=T.useState();return T.useEffect(()=>{Zr(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=>Zr(void 0,null,function*(){if(r){const i=(r[n.toLowerCase()]||[]).includes(e)?e:er.BrandName.FALLBACK;return(yield Gt.get(`/brand/${i}/icons/${n.toLowerCase()}.svg`,{baseURL:t,responseType:"text"})).data}})};var Ro=(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 sa=({cdnURL:e="/",brandName:t})=>{const[r,a]=T.useState();return T.useEffect(()=>{Ro(void 0,null,function*(){try{const n=yield Gt.get(`/brand/${t}/theme.json`,{baseURL:e}),i=new er.Theme(n.data);a(i)}catch(n){be.logger.error({error:n},`Error loading theme for brand ${t}`)}})},[t,e]),r},lr=T.createContext(void 0),ko=({baseURL:e="https://api.shipengine.com",brandName:t=er.BrandName.FALLBACK,cdnURL:r="/",children:a,getToken:n,onError:i,scope:o="lmnt"})=>{const s=sa({brandName:t,cdnURL:r}),u=Hn({cdnURL:r,scope:o,theme:s}),f=oa({brandName:t,cdnURL:r});return s?(i=i??ki,q(lr.Provider,{value:{baseURL:e,brandName:t,cdnURL:r,getToken:n,onError:i,scope:o,theme:s},children:Ri(nt.ThemeProvider,{theme:s,children:[q(nt.Global,{styles:[hr.getEmotionResetStyles(o),u]}),q(hr.GigerConfigProvider,{resolveIcon:f,children:q(be.ShipEngine,{baseURL:e,getToken:n,children:a})})]})})):null},ua=()=>{const e=T.useContext(lr);if(!e)throw new Error("useAlchemy must be called from within the scope of <Alchemy />");return e};var Xt={},No={get exports(){return Xt},set exports(e){Xt=e}};/*!
|
|
25
|
+
`+("css`"+u+"`"))}break}if(t==null)return r;var f=t[r];return f!==void 0?f:r}function vi(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]+"}":xr(o)&&(a+=Ot(i)+":"+at(i,o)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Mn);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)xr(o[s])&&(a+=Ot(i)+":"+at(i,o[s])+";");else{var u=Me(e,t,o);switch(i){case"animation":case"animationName":{a+=Ot(i)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(fi),a+=i+"{"+u+"}"}}}}return a}var Er=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Bn;process.env.NODE_ENV!=="production"&&(Bn=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var K,Pr=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="";K=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(Sr),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(Sr),i+=o[s]);var u;process.env.NODE_ENV!=="production"&&(i=i.replace(Bn,function(d){return u=d,""})),Er.lastIndex=0;for(var f="",l;(l=Er.exec(i))!==null;)f+="-"+l[1];var c=ui(i)+f;return process.env.NODE_ENV!=="production"?{name:c,styles:i,map:u,next:K,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:K}},yi=function(t){return t()},bi=Vt["useInsertionEffect"]?Vt["useInsertionEffect"]:!1,wi=bi||yi,ht={}.hasOwnProperty,ir=T.createContext(typeof HTMLElement<"u"?$n({key:"css"}):null);process.env.NODE_ENV!=="production"&&(ir.displayName="EmotionCacheContext");ir.Provider;var Si=function(t){return T.forwardRef(function(r,a){var n=T.useContext(ir);return t(r,n,a)})},Vn=T.createContext({});process.env.NODE_ENV!=="production"&&(Vn.displayName="EmotionThemeContext");var Cr=function(t){var r=t.split(".");return r[r.length-1]},xi=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 Cr(r[1])},Oi=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Ei=function(t){return t.replace(/\$/g,"-")},Pi=function(t){if(t)for(var r=t.split(`
|
|
26
|
+
`),a=0;a<r.length;a++){var n=xi(r[a]);if(n){if(Oi.has(n))break;if(/^[A-Z]/.test(n))return Ei(n)}}},Ht="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Kt="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",qn=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=Pi(new Error().stack);i&&(a[Kt]=i)}return a},Ci=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return Fn(r,a,n),wi(function(){return si(r,a,n)}),null},or=Si(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=oi(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Pr(i,void 0,T.useContext(Vn));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var u=e[Kt];u&&(s=Pr([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(Ci,{cache:t,serialized:s,isStringTag:typeof n=="string"}),T.createElement(n,f))});process.env.NODE_ENV!=="production"&&(or.displayName="EmotionCssPropInternal");function J(e,t,r){return ht.call(t,"css")?rt.jsx(or,qn(e,t),r):rt.jsx(e,t,r)}function Ri(e,t,r){return ht.call(t,"css")?rt.jsxs(or,qn(e,t),r):rt.jsxs(e,t,r)}var zn={};Object.defineProperty(zn,"__esModule",{value:!0});var ki=zn.default=function(){},Rr=(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 Hn=({cdnURL:e="/",scope:t,theme:r})=>{const[a,n]=T.useState();return T.useEffect(()=>{Rr(void 0,null,function*(){var i;try{const o=(i=r?.fontFaces)!=null?i:[];yield Promise.all(o.map(s=>Rr(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={},Ni={get exports(){return Jt},set exports(e){Jt=e}},it={},Li={get exports(){return it},set exports(e){it=e}},Kn=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)}},_i=Kn,de=Object.prototype.toString;function sr(e){return Array.isArray(e)}function Yt(e){return typeof e>"u"}function Ai(e){return e!==null&&!Yt(e)&&e.constructor!==null&&!Yt(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Jn(e){return de.call(e)==="[object ArrayBuffer]"}function Ti(e){return de.call(e)==="[object FormData]"}function ji(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jn(e.buffer),t}function $i(e){return typeof e=="string"}function Ii(e){return typeof e=="number"}function Yn(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 Di(e){return de.call(e)==="[object Date]"}function Fi(e){return de.call(e)==="[object File]"}function Ui(e){return de.call(e)==="[object Blob]"}function Wn(e){return de.call(e)==="[object Function]"}function Mi(e){return Yn(e)&&Wn(e.pipe)}function Bi(e){return de.call(e)==="[object URLSearchParams]"}function Vi(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function qi(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ur(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),sr(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):sr(n)?e[i]=n.slice():e[i]=n}for(var r=0,a=arguments.length;r<a;r++)ur(arguments[r],t);return e}function zi(e,t,r){return ur(t,function(n,i){r&&typeof n=="function"?e[i]=_i(n,r):e[i]=n}),e}function Hi(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var U={isArray:sr,isArrayBuffer:Jn,isBuffer:Ai,isFormData:Ti,isArrayBufferView:ji,isString:$i,isNumber:Ii,isObject:Yn,isPlainObject:et,isUndefined:Yt,isDate:Di,isFile:Fi,isBlob:Ui,isFunction:Wn,isStream:Mi,isURLSearchParams:Bi,isStandardBrowserEnv:qi,forEach:ur,merge:Wt,extend:zi,trim:Vi,stripBOM:Hi},Oe=U;function kr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Gn=function(t,r,a){if(!r)return t;var n;if(a)n=a(r);else if(Oe.isURLSearchParams(r))n=r.toString();else{var i=[];Oe.forEach(r,function(u,f){u===null||typeof u>"u"||(Oe.isArray(u)?f=f+"[]":u=[u],Oe.forEach(u,function(c){Oe.isDate(c)?c=c.toISOString():Oe.isObject(c)&&(c=JSON.stringify(c)),i.push(kr(f)+"="+kr(c))}))}),n=i.join("&")}if(n){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+n}return t},Ki=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){Ki.forEach(this.handlers,function(a){a!==null&&t(a)})};var Ji=gt,Yi=U,Wi=function(t,r){Yi.forEach(t,function(n,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=n,delete t[i])})},Xn=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},Zn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Et,Nr;function Qn(){if(Nr)return Et;Nr=1;var e=Xn;return Et=function(r,a,n,i,o){var s=new Error(r);return e(s,a,n,i,o)},Et}var Pt,Lr;function Gi(){if(Lr)return Pt;Lr=1;var e=Qn();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,_r;function Xi(){if(_r)return Ct;_r=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,Ar;function Zi(){return Ar||(Ar=1,Rt=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Rt}var kt,Tr;function Qi(){return Tr||(Tr=1,kt=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),kt}var Nt,jr;function eo(){if(jr)return Nt;jr=1;var e=Zi(),t=Qi();return Nt=function(a,n){return a&&!e(n)?t(a,n):n},Nt}var Lt,$r;function to(){if($r)return Lt;$r=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,Ir;function ro(){if(Ir)return _t;Ir=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,Dr;function mt(){if(Dr)return At;Dr=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,Fr;function Ur(){if(Fr)return Tt;Fr=1;var e=U,t=Gi(),r=Xi(),a=Gn,n=eo(),i=to(),o=ro(),s=Qn(),u=Zn,f=mt();return Tt=function(c){return new Promise(function(p,y){var b=c.data,w=c.headers,h=c.responseType,g;function O(){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,q=!h||h==="text"||h==="json"?m.responseText:m.response,D={data:q,status:m.status,statusText:m.statusText,headers:_,config:c,request:m};t(function(V){p(V),O()},function(V){y(V),O()},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 q=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",D=c.transitional||u;c.timeoutErrorMessage&&(q=c.timeoutErrorMessage),y(s(q,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(q,D){typeof b>"u"&&D.toLowerCase()==="content-type"?delete w[D]:m.setRequestHeader(D,q)}),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,Mr=Wi,no=Xn,ao=Zn,io={"Content-Type":"application/x-www-form-urlencoded"};function Br(e,t){!j.isUndefined(e)&&j.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function oo(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ur()),e}function so(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:ao,adapter:oo(),transformRequest:[function(t,r){return Mr(r,"Accept"),Mr(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)?(Br(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):j.isObject(t)||r&&r["Content-Type"]==="application/json"?(Br(r,"application/json"),so(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"?no(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(io)});var cr=vt,uo=U,co=cr,fo=function(t,r,a){var n=this||co;return uo.forEach(a,function(o){t=o.call(n,t,r)}),t},jt,Vr;function ea(){return Vr||(Vr=1,jt=function(t){return!!(t&&t.__CANCEL__)}),jt}var qr=U,$t=fo,lo=ea(),po=cr,ho=mt();function It(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ho("canceled")}var go=function(t){It(t),t.headers=t.headers||{},t.data=$t.call(t,t.data,t.headers,t.transformRequest),t.headers=qr.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),qr.forEach(["delete","get","head","post","put","patch","common"],function(n){delete t.headers[n]});var r=t.adapter||po.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 lo(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,ta=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,zr;function ra(){return zr||(zr=1,Dt={version:"0.26.1"}),Dt}var mo=ra().version,fr={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){fr[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});var Hr={};fr.transitional=function(t,r,a){function n(i,o){return"[Axios v"+mo+"] 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&&!Hr[o]&&(Hr[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 vo(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 yo={assertOptions:vo,validators:fr},na=U,bo=Gn,Kr=Ji,Jr=go,yt=ta,aa=yo,Ee=aa.validators;function Ve(e){this.defaults=e,this.interceptors={request:new Kr,response:new Kr}}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&&aa.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=[Jr,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=Jr(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),bo(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};na.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}))}});na.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 wo=Ve,Ft,Yr;function So(){if(Yr)return Ft;Yr=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,Wr;function xo(){return Wr||(Wr=1,Ut=function(t){return function(a){return t.apply(null,a)}}),Ut}var Mt,Gr;function Oo(){if(Gr)return Mt;Gr=1;var e=U;return Mt=function(r){return e.isObject(r)&&r.isAxiosError===!0},Mt}var Xr=U,Eo=Kn,tt=wo,Po=ta,Co=cr;function ia(e){var t=new tt(e),r=Eo(tt.prototype.request,t);return Xr.extend(r,tt.prototype,t),Xr.extend(r,t),r.create=function(n){return ia(Po(e,n))},r}var ae=ia(Co);ae.Axios=tt;ae.Cancel=mt();ae.CancelToken=So();ae.isCancel=ea();ae.VERSION=ra().version;ae.all=function(t){return Promise.all(t)};ae.spread=xo();ae.isAxiosError=Oo();Li.exports=ae;it.default=ae;(function(e){e.exports=it})(Ni);const Gt=Qa(Jt);var Zr=(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=({brandName:e,cdnURL:t="/"})=>{const[r,a]=T.useState();return T.useEffect(()=>{Zr(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=>Zr(void 0,null,function*(){if(r){const i=(r[n.toLowerCase()]||[]).includes(e)?e:er.BrandName.FALLBACK;return(yield Gt.get(`/brand/${i}/icons/${n.toLowerCase()}.svg`,{baseURL:t,responseType:"text"})).data}})};var Ro=(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 sa=({cdnURL:e="/",brandName:t})=>{const[r,a]=T.useState();return T.useEffect(()=>{Ro(void 0,null,function*(){try{const n=yield Gt.get(`/brand/${t}/theme.json`,{baseURL:e}),i=new er.Theme(n.data);a(i)}catch(n){be.logger.error({error:n},`Error loading theme for brand ${t}`)}})},[t,e]),r},lr=T.createContext(void 0),ko=({baseURL:e="https://api.shipengine.com",brandName:t=er.BrandName.FALLBACK,cdnURL:r="/",children:a,getToken:n,onError:i,scope:o="lmnt"})=>{const s=sa({brandName:t,cdnURL:r}),u=Hn({cdnURL:r,scope:o,theme:s}),f=oa({brandName:t,cdnURL:r});return s?(i=i??ki,J(lr.Provider,{value:{baseURL:e,brandName:t,cdnURL:r,getToken:n,onError:i,scope:o,theme:s},children:Ri(nt.ThemeProvider,{theme:s,children:[J(nt.Global,{styles:[hr.getEmotionResetStyles(o),u]}),J(hr.GigerConfigProvider,{resolveIcon:f,children:J(be.ShipEngine,{baseURL:e,getToken:n,children:a})})]})})):null},ua=()=>{const e=T.useContext(lr);if(!e)throw new Error("useAlchemy must be called from within the scope of <Alchemy />");return e};var Xt={},No={get exports(){return Xt},set exports(e){Xt=e}};/*!
|
|
28
28
|
Copyright (c) 2018 Jed Watson.
|
|
29
29
|
Licensed under the MIT License (MIT), see
|
|
30
30
|
http://jedwatson.github.io/classnames
|
|
31
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a=[],n=0;n<arguments.length;n++){var i=arguments[n];if(i){var o=typeof i;if(o==="string"||o==="number")a.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&a.push(s)}}else if(o==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){a.push(i.toString());continue}for(var u in i)t.call(i,u)&&i[u]&&a.push(u)}}}return a.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(No);const Lo=Xt;class ca 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?
|
|
32
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Io(e){return Ao(e)||To(e)||jo(e)||$o()}function tn(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 rn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var Do={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)}},Fo=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||Do,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,rn(rn({},{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 Fo,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 nn(e){return e==null?"":""+e}function Uo(e,t,r){e.forEach(function(a){t[a]&&(r[a]=t[a])})}function dr(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 an(e,t,r){var a=dr(e,t,Object),n=a.obj,i=a.k;n[i]=r}function Mo(e,t,r,a){var n=dr(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=dr(e,t),a=r.obj,n=r.k;if(a)return a[n]}function on(e,t,r){var a=ot(e,r);return a!==void 0?a:ot(t,r)}function la(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]):la(e[a],t[a],r):e[a]=t[a]);return e}function Pe(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Bo={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Vo(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Bo[t]}):e}var wt=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,qo=[" ",",","?","!",";"];function zo(e,t,r){t=t||"",r=r||"";var a=qo.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 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 We(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}}function da(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?da(u,f,r):void 0}n=n[a[i]]}return n}}var Jo=function(e){bt(r,e);var t=Ho(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:da(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),an(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?la(c,o,u):c=We(We({},c),o),an(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),pa={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 un(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?un(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Yo(e){var t=Wo();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 Wo(){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 cn={},fn=function(e){bt(r,e);var t=Yo(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)),Uo(["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&&!zo(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,O=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(O,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:O;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,xt=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,xe){var ye=Te&&xe!==g?xe:xt;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,O=new Array(g),m=0;m<g;m++)O[m]=arguments[m];return u&&u[0]===O[0]&&!o.context?(f.logger.warn("It seems you are nesting recursively key: ".concat(O[0]," in key: ").concat(i[0])),null):f.translate.apply(f,O.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=pa.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!=="",O=o.lngs?o.lngs:i.languageUtils.toResolveHierarchy(o.lng||i.language,o.fallbackLng);b.forEach(function(m){i.isValidLookup(s)||(c=m,!cn["".concat(O[0],"-").concat(m)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(c)&&(cn["".concat(O[0],"-").concat(m)]=!0,i.logger.warn('key "'.concat(u,'" for languages "').concat(O.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!!!")),O.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 ln=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}(),Go=[{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}],Xo={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)}},Zo=["v1","v2","v3"],dn={zero:0,one:1,two:2,few:3,many:4,other:5};function Qo(){var e={};return Go.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:Xo[t.fc]}})}),e}var es=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=Qo()}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 dn[o]-dn[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!Zo.includes(this.options.compatibilityJSON)}}]),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 H(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}var ts=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:Vo,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=on(a,l,h);return o.alwaysFormat?o.format(g,void 0,n,H(H(H({},i),a),{},{interpolationkey:h})):g}var O=h.split(o.formatSeparator),m=O.shift().trim(),v=O.join(o.formatSeparator).trim();return o.format(on(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=nn(u));var O=w.safeValue(u);if(r=r.replace(s[0],O),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),O=h.match(/"/g);(g&&g.length%2===0&&!O||O.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=nn(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 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 ie(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 rs(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=Io(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 ns=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=rs(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 gn(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 mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function as(e){var t=is();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 is(){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 os(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var ss=function(e){bt(r,e);var t=as(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){Mo(c.loaded,[u],f),os(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=mn(mn({},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 vn(){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 yn(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 bn(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?bn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function us(e){var t=cs();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 cs(){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 fs(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=us(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=yn(n),a.services={},a.logger=te,a.modules={external:[]},fs(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=vn();this.options=Q(Q(Q({},s),this.options),yn(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=ns);var l=new ln(this.options);this.store=new Jo(this.options.resources,this.options);var c=this.services;c.logger=te,c.resourceStore=this.store,c.languageUtils=l,c.pluralResolver=new es(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 ts(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new ss(u(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(h){for(var g=arguments.length,O=new Array(g>1?g-1:0),m=1;m<g;m++)O[m-1]=arguments[m];n.emit.apply(n,[h].concat(O))}),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 fn(this.services,this.options),this.translator.on("*",function(h){for(var g=arguments.length,O=new Array(g>1?g-1:0),m=1;m<g;m++)O[m-1]=arguments[m];n.emit.apply(n,[h].concat(O))}),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"&&pa.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 ln(vn());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 fn(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 ha=[],ls=ha.forEach,ds=ha.slice;function ps(e){return ls.call(ds.call(arguments,1),function(t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r])}),e}var wn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,hs=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(!wn.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(n.domain)}if(n.path){if(!wn.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},Sn={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=hs(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)}},gs={name:"cookie",lookup:function(t){var r;if(t.lookupCookie&&typeof document<"u"){var a=Sn.read(t.lookupCookie);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupCookie&&typeof document<"u"&&Sn.create(r.lookupCookie,t,r.cookieMinutes,r.cookieDomain,r.cookieOptions)}},ms={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,xn=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},vs={name:"localStorage",lookup:function(t){var r;if(t.lookupLocalStorage&&xn()){var a=window.localStorage.getItem(t.lookupLocalStorage);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupLocalStorage&&xn()&&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},ys={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)}},bs={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}},ws={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}},Ss={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}},xs={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 Os(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var ga=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=ps(a,this.options||{},Os()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(gs),this.addDetector(ms),this.addDetector(vs),this.addDetector(ys),this.addDetector(bs),this.addDetector(ws),this.addDetector(Ss),this.addDetector(xs)}},{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}();ga.type="languageDetector";const ma=({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(ga),[e]),va=An(e=>{const t=`.${e}`;return $n({key:"css",stylisPlugins:[a=>{a?.type==="rule"&&a?.value.startsWith(".css")&&(a.props=[a.props].flat().map(n=>n.includes(t)?n:`${t} ${n}`))},Ma]})}),ya=({children:e,className:t,fallback:r,resources:a})=>{const{scope:n,onError:i}=ua(),o=ma({resources:a});return q("div",{className:Lo(n,t),"data-testid":n,children:q(nt.CacheProvider,{value:va(n),children:q(Sa.I18nextProvider,{i18n:o,children:q(ca,{fallback:r,onError:i,children:e})})})})};var Es=Object.defineProperty,ut=Object.getOwnPropertySymbols,ba=Object.prototype.hasOwnProperty,wa=Object.prototype.propertyIsEnumerable,En=(e,t,r)=>t in e?Es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qt=(e,t)=>{for(var r in t||(t={}))ba.call(t,r)&&En(e,r,t[r]);if(ut)for(var r of ut(t))wa.call(t,r)&&En(e,r,t[r]);return e},Ps=(e,t)=>{var r={};for(var a in e)ba.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&&wa.call(e,a)&&(r[a]=e[a]);return r};const Cs=(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]=Qt(Qt({},r[a][i]),(o=t[a])==null?void 0:o[i])})}),r},Rs=(e,t,r)=>a=>{var n=a,{resources:i}=n,o=Ps(n,["resources"]);return q(ya,{resources:Cs(r?.resources,i),fallback:t,css:r?.css,children:q(e,Qt({},o))})},ks={createElement:Rs};exports.Alchemy=ko;exports.AlchemyContext=lr;exports.Element=ya;exports.ErrorBoundary=ca;exports.default=ks;exports.memoizedCreateCache=va;exports.useAlchemy=ua;exports.useI18n=ma;exports.useLoadFonts=Hn;exports.useLoadIcons=oa;exports.useLoadTheme=sa;Object.keys(be).forEach(e=>{e!=="default"&&!exports.hasOwnProperty(e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>be[e]})});
|
|
31
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a=[],n=0;n<arguments.length;n++){var i=arguments[n];if(i){var o=typeof i;if(o==="string"||o==="number")a.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&a.push(s)}}else if(o==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){a.push(i.toString());continue}for(var u in i)t.call(i,u)&&i[u]&&a.push(u)}}}return a.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(No);const Lo=Xt;class ca 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?J(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 _o(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 fa(e){var t=_o(e,"string");return Y(t)==="symbol"?t:String(t)}function Qr(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,fa(a.key),a)}}function G(e,t,r){return t&&Qr(e.prototype,t),r&&Qr(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 Zt(e,t){return Zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Zt(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&&Zt(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=fa(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ao(e){if(Array.isArray(e))return e}function To(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function en(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 jo(e,t){if(e){if(typeof e=="string")return en(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 en(e,t)}}function $o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
32
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Io(e){return Ao(e)||To(e)||jo(e)||$o()}function tn(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 rn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var Do={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)}},Fo=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||Do,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,rn(rn({},{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 Fo,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 nn(e){return e==null?"":""+e}function Uo(e,t,r){e.forEach(function(a){t[a]&&(r[a]=t[a])})}function dr(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 an(e,t,r){var a=dr(e,t,Object),n=a.obj,i=a.k;n[i]=r}function Mo(e,t,r,a){var n=dr(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=dr(e,t),a=r.obj,n=r.k;if(a)return a[n]}function on(e,t,r){var a=ot(e,r);return a!==void 0?a:ot(t,r)}function la(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]):la(e[a],t[a],r):e[a]=t[a]);return e}function Pe(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Bo={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Vo(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Bo[t]}):e}var wt=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,qo=[" ",",","?","!",";"];function zo(e,t,r){t=t||"",r=r||"";var a=qo.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 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 We(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}}function da(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?da(u,f,r):void 0}n=n[a[i]]}return n}}var Jo=function(e){bt(r,e);var t=Ho(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:da(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),an(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?la(c,o,u):c=We(We({},c),o),an(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),pa={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 un(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?un(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Yo(e){var t=Wo();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 Wo(){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 cn={},fn=function(e){bt(r,e);var t=Yo(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)),Uo(["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&&!zo(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,O=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(O,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 q=v==="[object Array]",D=q?[]:{},_e=q?m:O;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,xt=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,xe){var ye=Te&&xe!==g?xe:xt;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,O=new Array(g),m=0;m<g;m++)O[m]=arguments[m];return u&&u[0]===O[0]&&!o.context?(f.logger.warn("It seems you are nesting recursively key: ".concat(O[0]," in key: ").concat(i[0])),null):f.translate.apply(f,O.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=pa.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!=="",O=o.lngs?o.lngs:i.languageUtils.toResolveHierarchy(o.lng||i.language,o.fallbackLng);b.forEach(function(m){i.isValidLookup(s)||(c=m,!cn["".concat(O[0],"-").concat(m)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(c)&&(cn["".concat(O[0],"-").concat(m)]=!0,i.logger.warn('key "'.concat(u,'" for languages "').concat(O.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!!!")),O.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 ln=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}(),Go=[{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}],Xo={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)}},Zo=["v1","v2","v3"],dn={zero:0,one:1,two:2,few:3,many:4,other:5};function Qo(){var e={};return Go.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:Xo[t.fc]}})}),e}var es=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=Qo()}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 dn[o]-dn[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!Zo.includes(this.options.compatibilityJSON)}}]),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 z(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}var ts=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:Vo,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=on(a,l,h);return o.alwaysFormat?o.format(g,void 0,n,z(z(z({},i),a),{},{interpolationkey:h})):g}var O=h.split(o.formatSeparator),m=O.shift().trim(),v=O.join(o.formatSeparator).trim();return o.format(on(a,l,m),v,n,z(z(z({},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=nn(u));var O=w.safeValue(u);if(r=r.replace(s[0],O),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),O=h.match(/"/g);(g&&g.length%2===0&&!O||O.length%2!==0)&&(h=h.replace(/'/g,'"'));try{u=JSON.parse(h),y&&(u=z(z({},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=z({},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=nn(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,z(z({},i),{},{interpolationkey:o[1].trim()}))},s.trim())),r=r.replace(o[0],s),this.regexp.lastIndex=0}return r}}]),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 ie(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 rs(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=Io(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 ns=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=rs(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 gn(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 mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function as(e){var t=is();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 is(){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 os(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var ss=function(e){bt(r,e);var t=as(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){Mo(c.loaded,[u],f),os(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=mn(mn({},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 vn(){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 yn(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 bn(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?bn(Object(r),!0).forEach(function(a){pe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function us(e){var t=cs();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 cs(){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 fs(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=us(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=yn(n),a.services={},a.logger=te,a.modules={external:[]},fs(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=vn();this.options=Q(Q(Q({},s),this.options),yn(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=ns);var l=new ln(this.options);this.store=new Jo(this.options.resources,this.options);var c=this.services;c.logger=te,c.resourceStore=this.store,c.languageUtils=l,c.pluralResolver=new es(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 ts(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new ss(u(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(h){for(var g=arguments.length,O=new Array(g>1?g-1:0),m=1;m<g;m++)O[m-1]=arguments[m];n.emit.apply(n,[h].concat(O))}),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 fn(this.services,this.options),this.translator.on("*",function(h){for(var g=arguments.length,O=new Array(g>1?g-1:0),m=1;m<g;m++)O[m-1]=arguments[m];n.emit.apply(n,[h].concat(O))}),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"&&pa.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 ln(vn());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 fn(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 ha=[],ls=ha.forEach,ds=ha.slice;function ps(e){return ls.call(ds.call(arguments,1),function(t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r])}),e}var wn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,hs=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(!wn.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(n.domain)}if(n.path){if(!wn.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},Sn={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=hs(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)}},gs={name:"cookie",lookup:function(t){var r;if(t.lookupCookie&&typeof document<"u"){var a=Sn.read(t.lookupCookie);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupCookie&&typeof document<"u"&&Sn.create(r.lookupCookie,t,r.cookieMinutes,r.cookieDomain,r.cookieOptions)}},ms={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,xn=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},vs={name:"localStorage",lookup:function(t){var r;if(t.lookupLocalStorage&&xn()){var a=window.localStorage.getItem(t.lookupLocalStorage);a&&(r=a)}return r},cacheUserLanguage:function(t,r){r.lookupLocalStorage&&xn()&&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},ys={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)}},bs={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}},ws={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}},Ss={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}},xs={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 Os(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var ga=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=ps(a,this.options||{},Os()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(gs),this.addDetector(ms),this.addDetector(vs),this.addDetector(ys),this.addDetector(bs),this.addDetector(ws),this.addDetector(Ss),this.addDetector(xs)}},{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}();ga.type="languageDetector";const ma=({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(ga),[e]),va=An(e=>{const t=`.${e}`;return $n({key:"css",stylisPlugins:[a=>{a?.type==="rule"&&a?.value.startsWith(".css")&&(a.props=[a.props].flat().map(n=>n.includes(t)?n:`${t} ${n}`))},Ma]})}),ya=({children:e,className:t,fallback:r,resources:a})=>{const{scope:n,onError:i}=ua(),o=ma({resources:a});return J("div",{className:Lo(n,t),"data-testid":n,children:J(nt.CacheProvider,{value:va(n),children:J(Sa.I18nextProvider,{i18n:o,children:J(ca,{fallback:r,onError:i,children:e})})})})};var Es=Object.defineProperty,ut=Object.getOwnPropertySymbols,ba=Object.prototype.hasOwnProperty,wa=Object.prototype.propertyIsEnumerable,En=(e,t,r)=>t in e?Es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qt=(e,t)=>{for(var r in t||(t={}))ba.call(t,r)&&En(e,r,t[r]);if(ut)for(var r of ut(t))wa.call(t,r)&&En(e,r,t[r]);return e},Ps=(e,t)=>{var r={};for(var a in e)ba.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&&wa.call(e,a)&&(r[a]=e[a]);return r};const Cs=(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]=Qt(Qt({},r[a][i]),(o=t[a])==null?void 0:o[i])})}),r},Rs=(e,t,r)=>a=>{var n=a,{resources:i}=n,o=Ps(n,["resources"]);return J(ya,{resources:Cs(r?.resources,i),fallback:t,css:r?.css,children:J(e,Qt({},o))})},ks={createElement:Rs};exports.Alchemy=ko;exports.AlchemyContext=lr;exports.Element=ya;exports.ErrorBoundary=ca;exports.default=ks;exports.memoizedCreateCache=va;exports.useAlchemy=ua;exports.useI18n=ma;exports.useLoadFonts=Hn;exports.useLoadIcons=oa;exports.useLoadTheme=sa;Object.keys(be).forEach(e=>{e!=="default"&&!exports.hasOwnProperty(e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>be[e]})});
|
package/index.mjs
CHANGED
|
@@ -74,7 +74,7 @@ function L(e, t) {
|
|
|
74
74
|
function Ce(e, t, r) {
|
|
75
75
|
return e.slice(t, r);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function z(e) {
|
|
78
78
|
return e.length;
|
|
79
79
|
}
|
|
80
80
|
function ar(e) {
|
|
@@ -144,7 +144,7 @@ function De(e) {
|
|
|
144
144
|
return 0;
|
|
145
145
|
}
|
|
146
146
|
function _n(e) {
|
|
147
|
-
return ct = Re = 1, Ln =
|
|
147
|
+
return ct = Re = 1, Ln = z(ke = e), D = 0, [];
|
|
148
148
|
}
|
|
149
149
|
function An(e) {
|
|
150
150
|
return ke = "", e;
|
|
@@ -227,7 +227,7 @@ function Xe(e, t, r, a, n, i, o, s, u) {
|
|
|
227
227
|
}
|
|
228
228
|
break;
|
|
229
229
|
case 123 * b:
|
|
230
|
-
s[f++] =
|
|
230
|
+
s[f++] = z(C) * h;
|
|
231
231
|
case 125 * b:
|
|
232
232
|
case 59:
|
|
233
233
|
case 0:
|
|
@@ -236,7 +236,7 @@ function Xe(e, t, r, a, n, i, o, s, u) {
|
|
|
236
236
|
case 125:
|
|
237
237
|
w = 0;
|
|
238
238
|
case 59 + l:
|
|
239
|
-
p > 0 &&
|
|
239
|
+
p > 0 && z(C) - c && Ke(p > 32 ? vr(C + ";", a, r, c - 1) : vr(S(C, " ", "") + ";", a, r, c - 2), u);
|
|
240
240
|
break;
|
|
241
241
|
case 59:
|
|
242
242
|
C += ";";
|
|
@@ -258,7 +258,7 @@ function Xe(e, t, r, a, n, i, o, s, u) {
|
|
|
258
258
|
f = l = p = 0, b = h = 1, O = C = "", c = o;
|
|
259
259
|
break;
|
|
260
260
|
case 58:
|
|
261
|
-
c = 1 +
|
|
261
|
+
c = 1 + z(C), p = y;
|
|
262
262
|
default:
|
|
263
263
|
if (b < 1) {
|
|
264
264
|
if (g == 123)
|
|
@@ -271,13 +271,13 @@ function Xe(e, t, r, a, n, i, o, s, u) {
|
|
|
271
271
|
h = l > 0 ? 1 : (C += "\f", -1);
|
|
272
272
|
break;
|
|
273
273
|
case 44:
|
|
274
|
-
s[f++] = (
|
|
274
|
+
s[f++] = (z(C) - 1) * h, h = 1;
|
|
275
275
|
break;
|
|
276
276
|
case 64:
|
|
277
|
-
te() === 45 && (C += Ge(M())), d = te(), l = c =
|
|
277
|
+
te() === 45 && (C += Ge(M())), d = te(), l = c = z(O = C += Ua(We())), g++;
|
|
278
278
|
break;
|
|
279
279
|
case 45:
|
|
280
|
-
y === 45 &&
|
|
280
|
+
y === 45 && z(C) == 2 && (b = 0);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
return i;
|
|
@@ -402,7 +402,7 @@ function Tn(e, t, r) {
|
|
|
402
402
|
case 5789:
|
|
403
403
|
case 5021:
|
|
404
404
|
case 4765:
|
|
405
|
-
if (
|
|
405
|
+
if (z(e) - 1 - t > 6)
|
|
406
406
|
switch (L(e, t + 1)) {
|
|
407
407
|
case 109:
|
|
408
408
|
if (L(e, t + 4) !== 45)
|
|
@@ -456,7 +456,7 @@ function Va(e, t, r, a) {
|
|
|
456
456
|
case ot:
|
|
457
457
|
e.value = e.props.join(",");
|
|
458
458
|
}
|
|
459
|
-
return
|
|
459
|
+
return z(r = se(e.children, a)) ? e.return = e.value + "{" + r + "}" : "";
|
|
460
460
|
}
|
|
461
461
|
function qa(e) {
|
|
462
462
|
var t = ar(e);
|
|
@@ -667,7 +667,7 @@ function In(e, t) {
|
|
|
667
667
|
case 5789:
|
|
668
668
|
case 5021:
|
|
669
669
|
case 4765:
|
|
670
|
-
if (
|
|
670
|
+
if (z(e) - 1 - t > 6)
|
|
671
671
|
switch (L(e, t + 1)) {
|
|
672
672
|
case 109:
|
|
673
673
|
if (L(e, t + 4) !== 45)
|
|
@@ -682,7 +682,7 @@ function In(e, t) {
|
|
|
682
682
|
if (L(e, t + 1) !== 115)
|
|
683
683
|
break;
|
|
684
684
|
case 6444:
|
|
685
|
-
switch (L(e,
|
|
685
|
+
switch (L(e, z(e) - 3 - (~Pe(e, "!important") && 10))) {
|
|
686
686
|
case 107:
|
|
687
687
|
return S(e, ":", ":" + x) + e;
|
|
688
688
|
case 101:
|
|
@@ -933,7 +933,7 @@ function si() {
|
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
|
-
var v = u, N = f, C = s, G = o, X = t, _ = l,
|
|
936
|
+
var v = u, N = f, C = s, G = o, X = t, _ = l, V = a, I = y, Ne = p, B = r, Ve = i, ye = n, pe = c, Le = !1;
|
|
937
937
|
function _e(E) {
|
|
938
938
|
return Le || (Le = !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.")), qe(E) || m(E) === u;
|
|
939
939
|
}
|
|
@@ -973,7 +973,7 @@ function si() {
|
|
|
973
973
|
function ue(E) {
|
|
974
974
|
return m(E) === c;
|
|
975
975
|
}
|
|
976
|
-
k.AsyncMode = v, k.ConcurrentMode = N, k.ContextConsumer = C, k.ContextProvider = G, k.Element = X, k.ForwardRef = _, k.Fragment =
|
|
976
|
+
k.AsyncMode = v, k.ConcurrentMode = N, k.ContextConsumer = C, k.ContextProvider = G, k.Element = X, k.ForwardRef = _, k.Fragment = V, k.Lazy = I, k.Memo = Ne, k.Portal = B, k.Profiler = Ve, k.StrictMode = ye, k.Suspense = pe, k.isAsyncMode = _e, k.isConcurrentMode = qe, k.isContextConsumer = he, k.isContextProvider = yt, k.isElement = bt, k.isForwardRef = ge, k.isFragment = ze, k.isLazy = me, k.isMemo = be, k.isPortal = Ae, k.isProfiler = He, k.isStrictMode = Te, k.isSuspense = ue, k.isValidElementType = O, k.typeOf = m;
|
|
977
977
|
}()), k;
|
|
978
978
|
}
|
|
979
979
|
(function(e) {
|
|
@@ -1105,10 +1105,10 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
1105
1105
|
case "animationName":
|
|
1106
1106
|
if (typeof r == "string")
|
|
1107
1107
|
return r.replace(Bn, function(a, n, i) {
|
|
1108
|
-
return
|
|
1108
|
+
return H = {
|
|
1109
1109
|
name: n,
|
|
1110
1110
|
styles: i,
|
|
1111
|
-
next:
|
|
1111
|
+
next: H
|
|
1112
1112
|
}, n;
|
|
1113
1113
|
});
|
|
1114
1114
|
}
|
|
@@ -1139,19 +1139,19 @@ function Fe(e, t, r) {
|
|
|
1139
1139
|
return "";
|
|
1140
1140
|
case "object": {
|
|
1141
1141
|
if (r.anim === 1)
|
|
1142
|
-
return
|
|
1142
|
+
return H = {
|
|
1143
1143
|
name: r.name,
|
|
1144
1144
|
styles: r.styles,
|
|
1145
|
-
next:
|
|
1145
|
+
next: H
|
|
1146
1146
|
}, r.name;
|
|
1147
1147
|
if (r.styles !== void 0) {
|
|
1148
1148
|
var a = r.next;
|
|
1149
1149
|
if (a !== void 0)
|
|
1150
1150
|
for (; a !== void 0; )
|
|
1151
|
-
|
|
1151
|
+
H = {
|
|
1152
1152
|
name: a.name,
|
|
1153
1153
|
styles: a.styles,
|
|
1154
|
-
next:
|
|
1154
|
+
next: H
|
|
1155
1155
|
}, a = a.next;
|
|
1156
1156
|
var n = r.styles + ";";
|
|
1157
1157
|
return process.env.NODE_ENV !== "production" && r.map !== void 0 && (n += r.map), n;
|
|
@@ -1160,8 +1160,8 @@ function Fe(e, t, r) {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
case "function": {
|
|
1162
1162
|
if (e !== void 0) {
|
|
1163
|
-
var i =
|
|
1164
|
-
return
|
|
1163
|
+
var i = H, o = r(e);
|
|
1164
|
+
return H = i, Fe(e, t, o);
|
|
1165
1165
|
} else
|
|
1166
1166
|
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}`");
|
|
1167
1167
|
break;
|
|
@@ -1220,11 +1220,11 @@ function xi(e, t, r) {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
var Pr = /label:\s*([^\s;\n{]+)\s*(;|$)/g, qn;
|
|
1222
1222
|
process.env.NODE_ENV !== "production" && (qn = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
|
|
1223
|
-
var
|
|
1223
|
+
var H, Cr = function(t, r, a) {
|
|
1224
1224
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1225
1225
|
return t[0];
|
|
1226
1226
|
var n = !0, i = "";
|
|
1227
|
-
|
|
1227
|
+
H = void 0;
|
|
1228
1228
|
var o = t[0];
|
|
1229
1229
|
o == null || o.raw === void 0 ? (n = !1, i += Fe(a, r, o)) : (process.env.NODE_ENV !== "production" && o[0] === void 0 && console.error(xr), i += o[0]);
|
|
1230
1230
|
for (var s = 1; s < t.length; s++)
|
|
@@ -1241,14 +1241,14 @@ var K, Cr = function(t, r, a) {
|
|
|
1241
1241
|
name: c,
|
|
1242
1242
|
styles: i,
|
|
1243
1243
|
map: u,
|
|
1244
|
-
next:
|
|
1244
|
+
next: H,
|
|
1245
1245
|
toString: function() {
|
|
1246
1246
|
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).";
|
|
1247
1247
|
}
|
|
1248
1248
|
} : {
|
|
1249
1249
|
name: c,
|
|
1250
1250
|
styles: i,
|
|
1251
|
-
next:
|
|
1251
|
+
next: H
|
|
1252
1252
|
};
|
|
1253
1253
|
}, Oi = function(t) {
|
|
1254
1254
|
return t();
|
|
@@ -1331,7 +1331,7 @@ var Rr = function(t) {
|
|
|
1331
1331
|
}), /* @__PURE__ */ wt(n, f));
|
|
1332
1332
|
});
|
|
1333
1333
|
process.env.NODE_ENV !== "production" && (sr.displayName = "EmotionCssPropInternal");
|
|
1334
|
-
function
|
|
1334
|
+
function K(e, t, r) {
|
|
1335
1335
|
return lt.call(t, "css") ? hr(sr, Hn(e, t), r) : hr(e, t, r);
|
|
1336
1336
|
}
|
|
1337
1337
|
function Ai(e, t, r) {
|
|
@@ -1779,8 +1779,8 @@ function Mr() {
|
|
|
1779
1779
|
m.open(c.method.toUpperCase(), a(C, c.params, c.paramsSerializer), !0), m.timeout = c.timeout;
|
|
1780
1780
|
function G() {
|
|
1781
1781
|
if (m) {
|
|
1782
|
-
var _ = "getAllResponseHeaders" in m ? i(m.getAllResponseHeaders()) : null,
|
|
1783
|
-
data:
|
|
1782
|
+
var _ = "getAllResponseHeaders" in m ? i(m.getAllResponseHeaders()) : null, V = !h || h === "text" || h === "json" ? m.responseText : m.response, I = {
|
|
1783
|
+
data: V,
|
|
1784
1784
|
status: m.status,
|
|
1785
1785
|
statusText: m.statusText,
|
|
1786
1786
|
headers: _,
|
|
@@ -1801,9 +1801,9 @@ function Mr() {
|
|
|
1801
1801
|
}, m.onerror = function() {
|
|
1802
1802
|
y(s("Network Error", c, null, m)), m = null;
|
|
1803
1803
|
}, m.ontimeout = function() {
|
|
1804
|
-
var
|
|
1805
|
-
c.timeoutErrorMessage && (
|
|
1806
|
-
|
|
1804
|
+
var V = c.timeout ? "timeout of " + c.timeout + "ms exceeded" : "timeout exceeded", I = c.transitional || u;
|
|
1805
|
+
c.timeoutErrorMessage && (V = c.timeoutErrorMessage), y(s(
|
|
1806
|
+
V,
|
|
1807
1807
|
c,
|
|
1808
1808
|
I.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
1809
1809
|
m
|
|
@@ -1812,8 +1812,8 @@ function Mr() {
|
|
|
1812
1812
|
var X = (c.withCredentials || o(C)) && c.xsrfCookieName ? r.read(c.xsrfCookieName) : void 0;
|
|
1813
1813
|
X && (w[c.xsrfHeaderName] = X);
|
|
1814
1814
|
}
|
|
1815
|
-
"setRequestHeader" in m && e.forEach(w, function(
|
|
1816
|
-
typeof b > "u" && I.toLowerCase() === "content-type" ? delete w[I] : m.setRequestHeader(I,
|
|
1815
|
+
"setRequestHeader" in m && e.forEach(w, function(V, I) {
|
|
1816
|
+
typeof b > "u" && I.toLowerCase() === "content-type" ? delete w[I] : m.setRequestHeader(I, V);
|
|
1817
1817
|
}), 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(_) {
|
|
1818
1818
|
m && (y(!_ || _ && _.type ? new f("canceled") : _), m.abort(), m = null);
|
|
1819
1819
|
}, c.cancelToken && c.cancelToken.subscribe(g), c.signal && (c.signal.aborted ? g() : c.signal.addEventListener("abort", g))), b || (b = null), m.send(b);
|
|
@@ -2279,13 +2279,13 @@ const jo = ({ cdnURL: e = "/", brandName: t }) => {
|
|
|
2279
2279
|
scope: o = "lmnt"
|
|
2280
2280
|
}) => {
|
|
2281
2281
|
const s = jo({ brandName: t, cdnURL: r }), u = $i({ cdnURL: r, scope: o, theme: s }), f = To({ brandName: t, cdnURL: r });
|
|
2282
|
-
return s ? (i = i ?? Ti, /* @__PURE__ */
|
|
2282
|
+
return s ? (i = i ?? Ti, /* @__PURE__ */ K(
|
|
2283
2283
|
sa.Provider,
|
|
2284
2284
|
{
|
|
2285
2285
|
value: { baseURL: e, brandName: t, cdnURL: r, getToken: n, onError: i, scope: o, theme: s },
|
|
2286
2286
|
children: /* @__PURE__ */ Ai(Sa, { theme: s, children: [
|
|
2287
|
-
/* @__PURE__ */
|
|
2288
|
-
/* @__PURE__ */
|
|
2287
|
+
/* @__PURE__ */ K(wa, { styles: [Ea(o), u] }),
|
|
2288
|
+
/* @__PURE__ */ K(Pa, { resolveIcon: f, children: /* @__PURE__ */ K(Ca, { baseURL: e, getToken: n, children: a }) })
|
|
2289
2289
|
] })
|
|
2290
2290
|
}
|
|
2291
2291
|
)) : null;
|
|
@@ -2350,7 +2350,7 @@ class Uo extends Mt.Component {
|
|
|
2350
2350
|
}
|
|
2351
2351
|
render() {
|
|
2352
2352
|
const { fallback: t, children: r } = this.props, { error: a } = this.state;
|
|
2353
|
-
return a ? /* @__PURE__ */
|
|
2353
|
+
return a ? /* @__PURE__ */ K(t, { error: a }) : r;
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
2356
|
function J(e) {
|
|
@@ -3002,7 +3002,7 @@ var fn = {}, ln = function(e) {
|
|
|
3002
3002
|
return u ? (h.res = _, h) : _;
|
|
3003
3003
|
}
|
|
3004
3004
|
if (f) {
|
|
3005
|
-
var
|
|
3005
|
+
var V = v === "[object Array]", I = V ? [] : {}, Ne = V ? m : O;
|
|
3006
3006
|
for (var B in g)
|
|
3007
3007
|
if (Object.prototype.hasOwnProperty.call(g, B)) {
|
|
3008
3008
|
var Ve = "".concat(Ne).concat(f).concat(B);
|
|
@@ -3489,7 +3489,7 @@ function hn(e, t) {
|
|
|
3489
3489
|
}
|
|
3490
3490
|
return r;
|
|
3491
3491
|
}
|
|
3492
|
-
function
|
|
3492
|
+
function q(e) {
|
|
3493
3493
|
for (var t = 1; t < arguments.length; t++) {
|
|
3494
3494
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3495
3495
|
t % 2 ? hn(Object(r), !0).forEach(function(a) {
|
|
@@ -3542,12 +3542,12 @@ var fs = function() {
|
|
|
3542
3542
|
var d = function(h) {
|
|
3543
3543
|
if (h.indexOf(o.formatSeparator) < 0) {
|
|
3544
3544
|
var g = sn(a, l, h);
|
|
3545
|
-
return o.alwaysFormat ? o.format(g, void 0, n,
|
|
3545
|
+
return o.alwaysFormat ? o.format(g, void 0, n, q(q(q({}, i), a), {}, {
|
|
3546
3546
|
interpolationkey: h
|
|
3547
3547
|
})) : g;
|
|
3548
3548
|
}
|
|
3549
3549
|
var O = h.split(o.formatSeparator), m = O.shift().trim(), v = O.join(o.formatSeparator).trim();
|
|
3550
|
-
return o.format(sn(a, l, m), v, n,
|
|
3550
|
+
return o.format(sn(a, l, m), v, n, q(q(q({}, i), a), {}, {
|
|
3551
3551
|
interpolationkey: m
|
|
3552
3552
|
}));
|
|
3553
3553
|
};
|
|
@@ -3598,7 +3598,7 @@ var fs = function() {
|
|
|
3598
3598
|
var g = h.match(/'/g), O = h.match(/"/g);
|
|
3599
3599
|
(g && g.length % 2 === 0 && !O || O.length % 2 !== 0) && (h = h.replace(/'/g, '"'));
|
|
3600
3600
|
try {
|
|
3601
|
-
u = JSON.parse(h), y && (u =
|
|
3601
|
+
u = JSON.parse(h), y && (u = q(q({}, y), u));
|
|
3602
3602
|
} catch (m) {
|
|
3603
3603
|
return this.logger.warn("failed parsing options string in nesting for key ".concat(p), m), "".concat(p).concat(b).concat(h);
|
|
3604
3604
|
}
|
|
@@ -3606,7 +3606,7 @@ var fs = function() {
|
|
|
3606
3606
|
}
|
|
3607
3607
|
for (; o = this.nestingRegexp.exec(r); ) {
|
|
3608
3608
|
var l = [];
|
|
3609
|
-
u =
|
|
3609
|
+
u = q({}, i), u = u.replace && typeof u.replace != "string" ? u.replace : u, u.applyPostProcessor = !1, delete u.defaultValue;
|
|
3610
3610
|
var c = !1;
|
|
3611
3611
|
if (o[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(o[1])) {
|
|
3612
3612
|
var d = o[1].split(this.formatSeparator).map(function(p) {
|
|
@@ -3617,7 +3617,7 @@ var fs = function() {
|
|
|
3617
3617
|
if (s = a(f.call(this, o[1].trim(), u), u), s && o[0] === r && typeof s != "string")
|
|
3618
3618
|
return s;
|
|
3619
3619
|
typeof s != "string" && (s = an(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(r)), s = ""), c && (s = l.reduce(function(p, y) {
|
|
3620
|
-
return n.format(p, y, i.lng,
|
|
3620
|
+
return n.format(p, y, i.lng, q(q({}, i), {}, {
|
|
3621
3621
|
interpolationkey: o[1].trim()
|
|
3622
3622
|
}));
|
|
3623
3623
|
}, s.trim())), r = r.replace(o[0], s), this.regexp.lastIndex = 0;
|
|
@@ -4664,7 +4664,7 @@ const Ts = ({ resources: e }) => ya(() => $.createInstance(
|
|
|
4664
4664
|
resources: a
|
|
4665
4665
|
}) => {
|
|
4666
4666
|
const { scope: n, onError: i } = Io(), o = Ts({ resources: a });
|
|
4667
|
-
return /* @__PURE__ */
|
|
4667
|
+
return /* @__PURE__ */ K("div", { className: Fo(n, t), "data-testid": n, children: /* @__PURE__ */ K(xa, { value: $s(n), children: /* @__PURE__ */ K(Ra, { i18n: o, children: /* @__PURE__ */ K(Uo, { fallback: r, onError: i, children: e }) }) }) });
|
|
4668
4668
|
};
|
|
4669
4669
|
var Is = Object.defineProperty, at = Object.getOwnPropertySymbols, ha = Object.prototype.hasOwnProperty, ga = Object.prototype.propertyIsEnumerable, Pn = (e, t, r) => t in e ? Is(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xt = (e, t) => {
|
|
4670
4670
|
for (var r in t || (t = {}))
|
|
@@ -4694,13 +4694,13 @@ const Fs = (e, t) => {
|
|
|
4694
4694
|
}), r;
|
|
4695
4695
|
}, Us = (e, t, r) => (a) => {
|
|
4696
4696
|
var n = a, { resources: i } = n, o = Ds(n, ["resources"]);
|
|
4697
|
-
return /* @__PURE__ */
|
|
4697
|
+
return /* @__PURE__ */ K(
|
|
4698
4698
|
js,
|
|
4699
4699
|
{
|
|
4700
4700
|
resources: Fs(r?.resources, i),
|
|
4701
4701
|
fallback: t,
|
|
4702
4702
|
css: r?.css,
|
|
4703
|
-
children: /* @__PURE__ */
|
|
4703
|
+
children: /* @__PURE__ */ K(e, Xt({}, o))
|
|
4704
4704
|
}
|
|
4705
4705
|
);
|
|
4706
4706
|
}, Ys = {
|