You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
93 KiB
23 lines
93 KiB
function Dn(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Ti=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Un(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Qt={exports:{}},w={};/**
|
|
* @license React
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var me=Symbol.for("react.element"),Bn=Symbol.for("react.portal"),Hn=Symbol.for("react.fragment"),Mn=Symbol.for("react.strict_mode"),Vn=Symbol.for("react.profiler"),Kn=Symbol.for("react.provider"),zn=Symbol.for("react.context"),qn=Symbol.for("react.forward_ref"),Jn=Symbol.for("react.suspense"),Wn=Symbol.for("react.memo"),Gn=Symbol.for("react.lazy"),pt=Symbol.iterator;function Xn(t){return t===null||typeof t!="object"?null:(t=pt&&t[pt]||t["@@iterator"],typeof t=="function"?t:null)}var Zt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},en=Object.assign,tn={};function le(t,e,n){this.props=t,this.context=e,this.refs=tn,this.updater=n||Zt}le.prototype.isReactComponent={};le.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};le.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function nn(){}nn.prototype=le.prototype;function st(t,e,n){this.props=t,this.context=e,this.refs=tn,this.updater=n||Zt}var it=st.prototype=new nn;it.constructor=st;en(it,le.prototype);it.isPureReactComponent=!0;var gt=Array.isArray,rn=Object.prototype.hasOwnProperty,ot={current:null},sn={key:!0,ref:!0,__self:!0,__source:!0};function on(t,e,n){var r,s={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)rn.call(e,r)&&!sn.hasOwnProperty(r)&&(s[r]=e[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+2];s.children=u}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:me,type:t,key:i,ref:o,props:s,_owner:ot.current}}function Yn(t,e){return{$$typeof:me,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function at(t){return typeof t=="object"&&t!==null&&t.$$typeof===me}function Qn(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var mt=/\/+/g;function He(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Qn(""+t.key):e.toString(36)}function Ce(t,e,n,r,s){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case me:case Bn:o=!0}}if(o)return o=t,s=s(o),t=r===""?"."+He(o,0):r,gt(s)?(n="",t!=null&&(n=t.replace(mt,"$&/")+"/"),Ce(s,e,n,"",function(l){return l})):s!=null&&(at(s)&&(s=Yn(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(mt,"$&/")+"/")+t)),e.push(s)),1;if(o=0,r=r===""?".":r+":",gt(t))for(var a=0;a<t.length;a++){i=t[a];var u=r+He(i,a);o+=Ce(i,e,n,u,s)}else if(u=Xn(t),typeof u=="function")for(t=u.call(t),a=0;!(i=t.next()).done;)i=i.value,u=r+He(i,a++),o+=Ce(i,e,n,u,s);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function Re(t,e,n){if(t==null)return t;var r=[],s=0;return Ce(t,r,"","",function(i){return e.call(n,i,s++)}),r}function Zn(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var U={current:null},Le={transition:null},er={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:Le,ReactCurrentOwner:ot};function an(){throw Error("act(...) is not supported in production builds of React.")}w.Children={map:Re,forEach:function(t,e,n){Re(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Re(t,function(){e++}),e},toArray:function(t){return Re(t,function(e){return e})||[]},only:function(t){if(!at(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};w.Component=le;w.Fragment=Hn;w.Profiler=Vn;w.PureComponent=st;w.StrictMode=Mn;w.Suspense=Jn;w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=er;w.act=an;w.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=en({},t.props),s=t.key,i=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,o=ot.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(u in e)rn.call(e,u)&&!sn.hasOwnProperty(u)&&(r[u]=e[u]===void 0&&a!==void 0?a[u]:e[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var l=0;l<u;l++)a[l]=arguments[l+2];r.children=a}return{$$typeof:me,type:t.type,key:s,ref:i,props:r,_owner:o}};w.createContext=function(t){return t={$$typeof:zn,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:Kn,_context:t},t.Consumer=t};w.createElement=on;w.createFactory=function(t){var e=on.bind(null,t);return e.type=t,e};w.createRef=function(){return{current:null}};w.forwardRef=function(t){return{$$typeof:qn,render:t}};w.isValidElement=at;w.lazy=function(t){return{$$typeof:Gn,_payload:{_status:-1,_result:t},_init:Zn}};w.memo=function(t,e){return{$$typeof:Wn,type:t,compare:e===void 0?null:e}};w.startTransition=function(t){var e=Le.transition;Le.transition={};try{t()}finally{Le.transition=e}};w.unstable_act=an;w.useCallback=function(t,e){return U.current.useCallback(t,e)};w.useContext=function(t){return U.current.useContext(t)};w.useDebugValue=function(){};w.useDeferredValue=function(t){return U.current.useDeferredValue(t)};w.useEffect=function(t,e){return U.current.useEffect(t,e)};w.useId=function(){return U.current.useId()};w.useImperativeHandle=function(t,e,n){return U.current.useImperativeHandle(t,e,n)};w.useInsertionEffect=function(t,e){return U.current.useInsertionEffect(t,e)};w.useLayoutEffect=function(t,e){return U.current.useLayoutEffect(t,e)};w.useMemo=function(t,e){return U.current.useMemo(t,e)};w.useReducer=function(t,e,n){return U.current.useReducer(t,e,n)};w.useRef=function(t){return U.current.useRef(t)};w.useState=function(t){return U.current.useState(t)};w.useSyncExternalStore=function(t,e,n){return U.current.useSyncExternalStore(t,e,n)};w.useTransition=function(){return U.current.useTransition()};w.version="18.3.1";Qt.exports=w;var I=Qt.exports;const de=Un(I),Ai=Dn({__proto__:null,default:de},[I]);var yt={};const S=t=>typeof t=="string",ce=()=>{let t,e;const n=new Promise((r,s)=>{t=r,e=s});return n.resolve=t,n.reject=e,n},bt=t=>t==null?"":""+t,tr=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},nr=/###/g,St=t=>t&&t.indexOf("###")>-1?t.replace(nr,"."):t,wt=t=>!t||S(t),he=(t,e,n)=>{const r=S(e)?e.split("."):e;let s=0;for(;s<r.length-1;){if(wt(t))return{};const i=St(r[s]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++s}return wt(t)?{}:{obj:t,k:St(r[s])}},xt=(t,e,n)=>{const{obj:r,k:s}=he(t,e,Object);if(r!==void 0||e.length===1){r[s]=n;return}let i=e[e.length-1],o=e.slice(0,e.length-1),a=he(t,o,Object);for(;a.obj===void 0&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),a=he(t,o,Object),a?.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},rr=(t,e,n,r)=>{const{obj:s,k:i}=he(t,e,Object);s[i]=s[i]||[],s[i].push(n)},Ae=(t,e)=>{const{obj:n,k:r}=he(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},sr=(t,e,n)=>{const r=Ae(t,n);return r!==void 0?r:Ae(e,n)},ln=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?S(t[r])||t[r]instanceof String||S(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):ln(t[r],e[r],n):t[r]=e[r]);return t},ee=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ir={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const or=t=>S(t)?t.replace(/[&<>"'\/]/g,e=>ir[e]):t;class ar{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const lr=[" ",",","?","!",";"],ur=new ar(20),cr=(t,e,n)=>{e=e||"",n=n||"";const r=lr.filter(o=>e.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=ur.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(t);if(!i){const o=t.indexOf(n);o>0&&!s.test(t.substring(0,o))&&(i=!0)}return i},Xe=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let s=t;for(let i=0;i<r.length;){if(!s||typeof s!="object")return;let o,a="";for(let u=i;u<r.length;++u)if(u!==i&&(a+=n),a+=r[u],o=s[a],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&u<r.length-1)continue;i+=u-i+1;break}s=o}return s},ge=t=>t?.replace(/_/g,"-"),fr={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class _e{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||fr,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,s){return s&&!this.debug?null:(S(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new _e(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new _e(this.logger,e)}}var W=new _e;class $e{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([s,i])=>{for(let o=0;o<i;o++)s(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,i])=>{for(let o=0;o<i;o++)s.apply(s,[e,...n])})}}class Ot extends $e{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r,s={}){const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],r&&(Array.isArray(r)?a.push(...r):S(r)&&i?a.push(...r.split(i)):a.push(r)));const u=Ae(this.data,a);return!u&&!n&&!r&&e.indexOf(".")>-1&&(e=a[0],n=a[1],r=a.slice(2).join(".")),u||!o||!S(r)?u:Xe(this.data?.[e]?.[n],r,i)}addResource(e,n,r,s,i={silent:!1}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[e,n];r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."),s=n,n=a[1]),this.addNamespaces(n),xt(this.data,a,s),i.silent||this.emit("added",e,n,r,s)}addResources(e,n,r,s={silent:!1}){for(const i in r)(S(r[i])||Array.isArray(r[i]))&&this.addResource(e,n,i,r[i],{silent:!0});s.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,s,i,o={silent:!1,skipCopy:!1}){let a=[e,n];e.indexOf(".")>-1&&(a=e.split("."),s=r,r=n,n=a[1]),this.addNamespaces(n);let u=Ae(this.data,a)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?ln(u,r,i):u={...u,...r},xt(this.data,a,u),o.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var un={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,s){return t.forEach(i=>{e=this.processors[i]?.process(e,n,r,s)??e}),e}};const cn=Symbol("i18next/PATH_KEY");function dr(){const t=[],e=Object.create(null);let n;return e.get=(r,s)=>(n?.revoke?.(),s===cn?t:(t.push(s),n=Proxy.revocable(r,e),n.proxy)),Proxy.revocable(Object.create(null),e).proxy}function ie(t,e){const{[cn]:n}=t(dr()),r=e?.keySeparator??".",s=e?.nsSeparator??":";if(n.length>1&&s){const i=e?.ns,o=Array.isArray(i)?i:null;if(o&&o.length>1&&o.slice(1).includes(n[0]))return`${n[0]}${s}${n.slice(1).join(r)}`}return n.join(r)}const Rt={},Me=t=>!S(t)&&typeof t!="boolean"&&typeof t!="number";class ke extends $e{constructor(e,n={}){super(),tr(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=W.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const r={...n};if(e==null)return!1;const s=this.resolve(e,r);if(s?.res===void 0)return!1;const i=Me(s.res);return!(r.returnObjects===!1&&i)}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&e.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!cr(e,r,s);if(o&&!a){const u=e.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:e,namespaces:S(i)?[i]:i};const l=e.split(r);(r!==s||r===s&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(s)}return{key:e,namespaces:S(i)?[i]:i}}translate(e,n,r){let s=typeof n=="object"?{...n}:n;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s={...s}),s||(s={}),e==null)return"";typeof e=="function"&&(e=ie(e,{...this.options,...s})),Array.isArray(e)||(e=[String(e)]),e=e.map(L=>typeof L=="function"?ie(L,{...this.options,...s}):String(L));const i=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:a,namespaces:u}=this.extractFromKey(e[e.length-1],s),l=u[u.length-1];let c=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const f=s.lng||this.language,g=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode")return g?i?{res:`${l}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:f,usedNS:l,usedParams:this.getUsedParamsDetails(s)}:`${l}${c}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:f,usedNS:l,usedParams:this.getUsedParamsDetails(s)}:a;const y=this.resolve(e,s);let h=y?.res;const m=y?.usedKey||a,p=y?.exactUsedKey||a,O=["[object Number]","[object Function]","[object RegExp]"],v=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,C=s.count!==void 0&&!S(s.count),N=ke.hasDefaultValue(s),j=C?this.pluralResolver.getSuffix(f,s.count,s):"",_=s.ordinal&&C?this.pluralResolver.getSuffix(f,s.count,{ordinal:!1}):"",X=C&&!s.ordinal&&s.count===0,E=X&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${j}`]||s[`defaultValue${_}`]||s.defaultValue;let x=h;R&&!h&&N&&(x=E);const T=Me(x),k=Object.prototype.toString.apply(x);if(R&&x&&T&&O.indexOf(k)<0&&!(S(v)&&Array.isArray(x))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,x,{...s,ns:u}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(y.res=L,y.usedParams=this.getUsedParamsDetails(s),y):L}if(o){const L=Array.isArray(x),A=L?[]:{},Y=L?p:m;for(const P in x)if(Object.prototype.hasOwnProperty.call(x,P)){const z=`${Y}${o}${P}`;N&&!h?A[P]=this.translate(z,{...s,defaultValue:Me(E)?E[P]:void 0,joinArrays:!1,ns:u}):A[P]=this.translate(z,{...s,joinArrays:!1,ns:u}),A[P]===z&&(A[P]=x[P])}h=A}}else if(R&&S(v)&&Array.isArray(h))h=h.join(v),h&&(h=this.extendTranslation(h,e,s,r));else{let L=!1,A=!1;!this.isValidLookup(h)&&N&&(L=!0,h=E),this.isValidLookup(h)||(A=!0,h=a);const P=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:h,z=N&&E!==h&&this.options.updateMissing;if(A||L||z){if(this.logger.log(z?"updateKey":"missingKey",f,l,a,z?E:h),o){const F=this.resolve(a,{...s,keySeparator:!1});F&&F.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.")}let B=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let F=0;F<Q.length;F++)B.push(Q[F]);else this.options.saveMissingTo==="all"?B=this.languageUtils.toResolveHierarchy(s.lng||this.language):B.push(s.lng||this.language);const Oe=(F,H,G)=>{const Z=N&&G!==h?G:P;this.options.missingKeyHandler?this.options.missingKeyHandler(F,l,H,Z,z,s):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(F,l,H,Z,z,s),this.emit("missingKey",F,l,H,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?B.forEach(F=>{const H=this.pluralResolver.getSuffixes(F,s);X&&s[`defaultValue${this.options.pluralSeparator}zero`]&&H.indexOf(`${this.options.pluralSeparator}zero`)<0&&H.push(`${this.options.pluralSeparator}zero`),H.forEach(G=>{Oe([F],a+G,s[`defaultValue${G}`]||E)})}):Oe(B,a,E))}h=this.extendTranslation(h,e,s,y,r),A&&h===a&&this.options.appendNamespaceToMissingKey&&(h=`${l}${c}${a}`),(A||L)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${a}`:a,L?h:void 0,s))}return i?(y.res=h,y.usedParams=this.getUsedParamsDetails(s),y):h}extendTranslation(e,n,r,s,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=S(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(u){const f=e.match(this.interpolator.nestingRegexp);l=f&&f.length}let c=r.replace&&!S(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,r.lng||this.language||s.usedLng,r),u){const f=e.match(this.interpolator.nestingRegexp),g=f&&f.length;l<g&&(r.nest=!1)}!r.lng&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...f)=>i?.[0]===f[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):this.translate(...f,n),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,a=S(o)?[o]:o;return e!=null&&a?.length&&r.applyPostProcessor!==!1&&(e=un.handle(a,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,n={}){let r,s,i,o,a;return S(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(u=>typeof u=="function"?ie(u,{...this.options,...n}):u)),e.forEach(u=>{if(this.isValidLookup(r))return;const l=this.extractFromKey(u,n),c=l.key;s=c;let f=l.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const g=n.count!==void 0&&!S(n.count),y=g&&!n.ordinal&&n.count===0,h=n.context!==void 0&&(S(n.context)||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(p=>{this.isValidLookup(r)||(a=p,!Rt[`${m[0]}-${p}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(Rt[`${m[0]}-${p}`]=!0,this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),m.forEach(O=>{if(this.isValidLookup(r))return;o=O;const v=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,O,p,n);else{let C;g&&(C=this.pluralResolver.getSuffix(O,n.count,n));const N=`${this.options.pluralSeparator}zero`,j=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(n.ordinal&&C.indexOf(j)===0&&v.push(c+C.replace(j,this.options.pluralSeparator)),v.push(c+C),y&&v.push(c+N)),h){const _=`${c}${this.options.contextSeparator||"_"}${n.context}`;v.push(_),g&&(n.ordinal&&C.indexOf(j)===0&&v.push(_+C.replace(j,this.options.pluralSeparator)),v.push(_+C),y&&v.push(_+N))}}let R;for(;R=v.pop();)this.isValidLookup(r)||(i=R,r=this.getResource(O,p,R,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,s):this.resourceStore.getResource(e,n,r,s)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!S(e.replace);let s=r?e.replace:e;if(r&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class Et{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=W.create("languageUtils")}getScriptPartFromCode(e){if(e=ge(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=ge(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(S(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const s=this.getScriptPartFromCode(r);if(this.isSupportedCode(s))return n=s;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),S(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return S(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):S(e)&&i(this.formatLanguageCode(e)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}const vt={zero:0,one:1,two:2,few:3,many:4,other:5},Ct={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class hr{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=W.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const r=ge(e==="dev"?"en":e),s=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(r,{type:s})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Ct;if(!e.match(/-|_/))return Ct;const u=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(u,n)}return this.pluralRulesCache[i]=o,o}needsPlural(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,r={}){return this.getSuffixes(e,r).map(s=>`${n}${s}`)}getSuffixes(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((s,i)=>vt[s]-vt[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,n,r={}){const s=this.getRule(e,r);return s?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const Lt=(t,e,n,r=".",s=!0)=>{let i=sr(t,e,n);return!i&&s&&S(n)&&(i=Xe(t,n,r),i===void 0&&(i=Xe(e,n,r))),i},Ve=t=>t.replace(/\$/g,"$$$$");class Nt{constructor(e={}){this.logger=W.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:u,formatSeparator:l,unescapeSuffix:c,unescapePrefix:f,nestingPrefix:g,nestingPrefixEscaped:y,nestingSuffix:h,nestingSuffixEscaped:m,nestingOptionsSeparator:p,maxReplaces:O,alwaysFormat:v}=e.interpolation;this.escape=n!==void 0?n:or,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?ee(i):o||"{{",this.suffix=a?ee(a):u||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=g?ee(g):y||ee("$t("),this.nestingSuffix=h?ee(h):m||ee(")"),this.nestingOptionsSeparator=p||",",this.maxReplaces=O||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,r,s){let i,o,a;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=y=>{if(y.indexOf(this.formatSeparator)<0){const O=Lt(n,u,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,r,{...s,...n,interpolationkey:y}):O}const h=y.split(this.formatSeparator),m=h.shift().trim(),p=h.join(this.formatSeparator).trim();return this.format(Lt(n,u,m,this.options.keySeparator,this.options.ignoreJSONStructure),p,r,{...s,...n,interpolationkey:m})};this.resetRegExp();const c=s?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>Ve(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?Ve(this.escape(y)):Ve(y)}].forEach(y=>{for(a=0;i=y.regex.exec(e);){const h=i[1].trim();if(o=l(h),o===void 0)if(typeof c=="function"){const p=c(e,i,s);o=S(p)?p:""}else if(s&&Object.prototype.hasOwnProperty.call(s,h))o="";else if(f){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${e}`),o="";else!S(o)&&!this.useRawValueToEscape&&(o=bt(o));const m=y.safeValue(o);if(e=e.replace(i[0],m),f?(y.regex.lastIndex+=o.length,y.regex.lastIndex-=i[0].length):y.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,n,r={}){let s,i,o;const a=(u,l)=>{const c=this.nestingOptionsSeparator;if(u.indexOf(c)<0)return u;const f=u.split(new RegExp(`${ee(c)}[ ]*{`));let g=`{${f[1]}`;u=f[0],g=this.interpolate(g,o);const y=g.match(/'/g),h=g.match(/"/g);((y?.length??0)%2===0&&!h||(h?.length??0)%2!==0)&&(g=g.replace(/'/g,'"'));try{o=JSON.parse(g),l&&(o={...l,...o})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,m),`${u}${c}${g}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,u};for(;s=this.nestingRegexp.exec(e);){let u=[];o={...r},o=o.replace&&!S(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const l=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(l!==-1&&(u=s[1].slice(l).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),s[1]=s[1].slice(0,l)),i=n(a.call(this,s[1].trim(),o),o),i&&s[0]===e&&!S(i))return i;S(i)||(i=bt(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),i=""),u.length&&(i=u.reduce((c,f)=>this.format(c,f,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),e=e.replace(s[0],i),this.regexp.lastIndex=0}return e}}const pr=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);e==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(o){const[a,...u]=o.split(":"),l=u.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();n[c]||(n[c]=l),l==="false"&&(n[c]=!1),l==="true"&&(n[c]=!0),isNaN(l)||(n[c]=parseInt(l,10))}})}return{formatName:e,formatOptions:n}},Pt=t=>{const e={};return(n,r,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const o=r+JSON.stringify(i);let a=e[o];return a||(a=t(ge(r),s),e[o]=a),a(n)}},gr=t=>(e,n,r)=>t(ge(n),r)(e);class mr{constructor(e={}){this.logger=W.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?Pt:gr;this.formats={number:r((s,i)=>{const o=new Intl.NumberFormat(s,{...i});return a=>o.format(a)}),currency:r((s,i)=>{const o=new Intl.NumberFormat(s,{...i,style:"currency"});return a=>o.format(a)}),datetime:r((s,i)=>{const o=new Intl.DateTimeFormat(s,{...i});return a=>o.format(a)}),relativetime:r((s,i)=>{const o=new Intl.RelativeTimeFormat(s,{...i});return a=>o.format(a,i.range||"day")}),list:r((s,i)=>{const o=new Intl.ListFormat(s,{...i});return a=>o.format(a)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=Pt(n)}format(e,n,r,s={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(u=>u.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,u)=>{const{formatName:l,formatOptions:c}=pr(u);if(this.formats[l]){let f=a;try{const g=s?.formatParams?.[s.interpolationkey]||{},y=g.locale||g.lng||s.locale||s.lng||r;f=this.formats[l](a,y,{...c,...s,...g})}catch(g){this.logger.warn(g)}return f}else this.logger.warn(`there was no format function for ${l}`);return a},e)}}const yr=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class br extends $e{constructor(e,n,r,s={}){super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=W.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,s.backend,s)}queueLoad(e,n,r,s){const i={},o={},a={},u={};return e.forEach(l=>{let c=!0;n.forEach(f=>{const g=`${l}|${f}`;!r.reload&&this.store.hasResourceBundle(l,f)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?o[g]===void 0&&(o[g]=!0):(this.state[g]=1,c=!1,o[g]===void 0&&(o[g]=!0),i[g]===void 0&&(i[g]=!0),u[f]===void 0&&(u[f]=!0)))}),c||(a[l]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(u)}}loaded(e,n,r){const s=e.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),!n&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const a={};this.queue.forEach(u=>{rr(u.loaded,[i],o),yr(u,e),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(l=>{a[l]||(a[l]={});const c=u.loaded[l];c.length&&c.forEach(f=>{a[l][f]===void 0&&(a[l][f]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(u=>!u.done)}read(e,n,r,s=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const a=(l,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(l&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,s+1,i*2,o)},i);return}o(l,c)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const l=u(e,n);l&&typeof l.then=="function"?l.then(c=>a(null,c)).catch(a):a(null,l)}catch(l){a(l)}return}return u(e,n,a)}prepareLoading(e,n,r={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();S(e)&&(e=this.languageUtils.toResolveHierarchy(e)),S(n)&&(n=[n]);const i=this.queueLoad(e,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e,n=""){const r=e.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,a),this.loaded(e,o,a)})}saveMissing(e,n,r,s,i,o={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend?.create){const u={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let c;l.length===5?c=l(e,n,r,s,u):c=l(e,n,r,s),c&&typeof c.then=="function"?c.then(f=>a(null,f)).catch(a):a(null,c)}catch(c){a(c)}else l(e,n,r,s,a,u)}!e||!e[0]||this.store.addResource(e[0],n,r,s)}}}const Ke=()=>({debug:!1,initAsync:!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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),S(t[1])&&(e.defaultValue=t[1]),S(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Tt=t=>(S(t.ns)&&(t.ns=[t.ns]),S(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),S(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),Ee=()=>{},Sr=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})},fn="__i18next_supportNoticeShown",wr=()=>!!(typeof globalThis<"u"&&globalThis[fn]||typeof process<"u"&&yt&&yt.I18NEXT_NO_SUPPORT_NOTICE),xr=()=>{typeof globalThis<"u"&&(globalThis[fn]=!0)},Or=t=>!!(t?.modules?.backend?.name?.indexOf("Locize")>0||t?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||t?.options?.backend?.backends&&t.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||t?.options?.backend?.projectId||t?.options?.backend?.backendOptions&&t.options.backend.backendOptions.some(e=>e?.projectId));class pe extends $e{constructor(e={},n){if(super(),this.options=Tt(e),this.services={},this.logger=W,this.modules={external:[]},Sr(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(S(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=Ke();this.options={...r,...this.options,...Tt(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Or(this)&&!wr()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),xr());const s=l=>l?typeof l=="function"?new l:l:null;if(!this.options.isClone){this.modules.logger?W.init(s(this.modules.logger),this.options):W.init(null,this.options);let l;this.modules.formatter?l=this.modules.formatter:l=mr;const c=new Et(this.options);this.store=new Ot(this.options.resources,this.options);const f=this.services;f.logger=W,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new hr(c,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),l&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(f.formatter=s(l),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Nt(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new br(s(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(y,...h)=>{this.emit(y,...h)}),this.modules.languageDetector&&(f.languageDetector=s(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=s(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new ke(this.services,this.options),this.translator.on("*",(y,...h)=>{this.emit(y,...h)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ee),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(l=>{this[l]=(...c)=>this.store[l](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(l=>{this[l]=(...c)=>(this.store[l](...c),this)});const a=ce(),u=()=>{const l=(c,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(f),n(c,f)};if(this.languages&&!this.isInitialized)return l(null,this.t.bind(this));this.changeLanguage(this.options.lng,l)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),a}loadResources(e,n=Ee){let r=n;const s=S(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(s?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(l=>{l!=="cimode"&&i.indexOf(l)<0&&i.push(l)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>o(u)),this.options.preload?.forEach?.(a=>o(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(e,n,r){const s=ce();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=Ee),this.services.backendConnector.reload(e,n,i=>{s.resolve(),r(i)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&un.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const r=ce();this.emit("languageChanging",e);const s=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},i=(a,u)=>{u?this.isLanguageChangingTo===e&&(s(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve((...l)=>this.t(...l)),n&&n(a,(...l)=>this.t(...l))},o=a=>{!e&&!a&&this.services.languageDetector&&(a=[]);const u=S(a)?a:a&&a[0],l=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(S(a)?[a]:a);l&&(this.language||s(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector?.cacheUserLanguage?.(l)),this.loadResources(l,c=>{i(c,l)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,n,r){const s=(i,o,...a)=>{let u;typeof o!="object"?u=this.options.overloadTranslationOptionHandler([i,o].concat(a)):u={...o},u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||r||s.keyPrefix);const l={...this.options,...u};typeof u.keyPrefix=="function"&&(u.keyPrefix=ie(u.keyPrefix,l));const c=this.options.keySeparator||".";let f;return u.keyPrefix&&Array.isArray(i)?f=i.map(g=>(typeof g=="function"&&(g=ie(g,l)),`${u.keyPrefix}${c}${g}`)):(typeof i=="function"&&(i=ie(i,l)),f=u.keyPrefix?`${u.keyPrefix}${c}${i}`:i),this.t(f,u)};return S(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=r,s}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){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;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,u)=>{const l=this.services.backendConnector.state[`${a}|${u}`];return l===-1||l===0||l===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!s||o(i,e)))}loadNamespaces(e,n){const r=ce();return this.options.ns?(S(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=ce();S(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const s=new Intl.Locale(e);if(s&&s.getTextInfo){const i=s.getTextInfo();if(i&&i.direction)return i.direction}}catch{}const n=["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"],r=this.services?.languageUtils||new Et(Ke());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const r=new pe(e,n);return r.createInstance=pe.createInstance,r}cloneInstance(e={},n=Ee){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},i=new pe(s);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const a=Object.keys(this.store.data).reduce((u,l)=>(u[l]={...this.store.data[l]},u[l]=Object.keys(u[l]).reduce((c,f)=>(c[f]={...u[l][f]},c),u[l]),u),{});i.store=new Ot(a,s),i.services.resourceStore=i.store}if(e.interpolation){const u={...Ke().interpolation,...this.options.interpolation,...e.interpolation},l={...s,interpolation:u};i.services.interpolator=new Nt(l)}return i.translator=new ke(i.services,s),i.translator.on("*",(a,...u)=>{i.emit(a,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const K=pe.createInstance();K.createInstance;K.dir;K.init;K.loadResources;K.reloadResources;K.use;K.changeLanguage;K.getFixedT;K.t;K.exists;K.setDefaultNamespace;K.hasLoadedNamespace;K.loadNamespaces;K.loadLanguages;const Rr=(t,e,n,r)=>{const s=[n,{code:e,...r||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(s,"warn","react-i18next::",!0);re(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...s):console?.warn&&console.warn(...s)},At={},Ye=(t,e,n,r)=>{re(n)&&At[n]||(re(n)&&(At[n]=new Date),Rr(t,e,n,r))},dn=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},Qe=(t,e,n)=>{t.loadNamespaces(e,dn(t,n))},_t=(t,e,n,r)=>{if(re(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return Qe(t,n,r);n.forEach(s=>{t.options.ns.indexOf(s)<0&&t.options.ns.push(s)}),t.loadLanguages(e,dn(t,r))},Er=(t,e,n={})=>!e.languages||!e.languages.length?(Ye(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,t))return!1}}),re=t=>typeof t=="string",vr=t=>typeof t=="object"&&t!==null,Cr=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Lr={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Nr=t=>Lr[t],Pr=t=>t.replace(Cr,Nr);let Ze={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Pr,transDefaultProps:void 0};const Tr=(t={})=>{Ze={...Ze,...t}},Ar=()=>Ze;let hn;const _r=t=>{hn=t},kr=()=>hn,_i={type:"3rdParty",init(t){Tr(t.options.react),_r(t)}},Fr=I.createContext();class $r{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var pn={exports:{}},gn={};/**
|
|
* @license React
|
|
* use-sync-external-store-shim.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var oe=I;function jr(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ir=typeof Object.is=="function"?Object.is:jr,Dr=oe.useState,Ur=oe.useEffect,Br=oe.useLayoutEffect,Hr=oe.useDebugValue;function Mr(t,e){var n=e(),r=Dr({inst:{value:n,getSnapshot:e}}),s=r[0].inst,i=r[1];return Br(function(){s.value=n,s.getSnapshot=e,ze(s)&&i({inst:s})},[t,n,e]),Ur(function(){return ze(s)&&i({inst:s}),t(function(){ze(s)&&i({inst:s})})},[t]),Hr(n),n}function ze(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ir(t,n)}catch{return!0}}function Vr(t,e){return e()}var Kr=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Vr:Mr;gn.useSyncExternalStore=oe.useSyncExternalStore!==void 0?oe.useSyncExternalStore:Kr;pn.exports=gn;var zr=pn.exports;const qr=(t,e)=>{if(re(e))return e;if(vr(e)&&re(e.defaultValue))return e.defaultValue;if(typeof t=="function")return"";if(Array.isArray(t)){const n=t[t.length-1];return typeof n=="function"?"":n}return t},Jr={t:qr,ready:!1},Wr=()=>()=>{},ki=(t,e={})=>{const{i18n:n}=e,{i18n:r,defaultNS:s}=I.useContext(Fr)||{},i=n||r||kr();i&&!i.reportNamespaces&&(i.reportNamespaces=new $r),i||Ye(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=I.useMemo(()=>({...Ar(),...i?.options?.react,...e}),[i,e]),{useSuspense:a,keyPrefix:u}=o,l=s||i?.options?.defaultNS,c=re(l)?[l]:l||["translation"],f=I.useMemo(()=>c,c);i?.reportNamespaces?.addUsedNamespaces?.(f);const g=I.useRef(0),y=I.useCallback(E=>{if(!i)return Wr;const{bindI18n:x,bindI18nStore:T}=o,k=()=>{g.current+=1,E()};return x&&i.on(x,k),T&&i.store.on(T,k),()=>{x&&x.split(" ").forEach(L=>i.off(L,k)),T&&T.split(" ").forEach(L=>i.store.off(L,k))}},[i,o]),h=I.useRef(),m=I.useCallback(()=>{if(!i)return Jr;const E=!!(i.isInitialized||i.initializedStoreOnce)&&f.every(Y=>Er(Y,i,o)),x=e.lng||i.language,T=g.current,k=h.current;if(k&&k.ready===E&&k.lng===x&&k.keyPrefix===u&&k.revision===T)return k;const A={t:i.getFixedT(x,o.nsMode==="fallback"?f:f[0],u),ready:E,lng:x,keyPrefix:u,revision:T};return h.current=A,A},[i,f,u,o,e.lng]),[p,O]=I.useState(0),{t:v,ready:R}=zr.useSyncExternalStore(y,m,m);I.useEffect(()=>{if(i&&!R&&!a){const E=()=>O(x=>x+1);e.lng?_t(i,e.lng,f,E):Qe(i,f,E)}},[i,e.lng,f,R,a,p]);const C=i||{},N=I.useRef(null),j=I.useRef(),_=E=>{const x=Object.getOwnPropertyDescriptors(E);x.__original&&delete x.__original;const T=Object.create(Object.getPrototypeOf(E),x);if(!Object.prototype.hasOwnProperty.call(T,"__original"))try{Object.defineProperty(T,"__original",{value:E,writable:!1,enumerable:!1,configurable:!1})}catch{}return T},X=I.useMemo(()=>{const E=C,x=E?.language;let T=E;E&&(N.current&&N.current.__original===E?j.current!==x?(T=_(E),N.current=T,j.current=x):T=N.current:(T=_(E),N.current=T,j.current=x));const k=!R&&!a?(...A)=>(Ye(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...A)):v,L=[k,T,R];return L.t=k,L.i18n=T,L.ready=R,L},[v,C,R,C.resolvedLanguage,C.language,C.languages]);if(i&&a&&!R)throw new Promise(E=>{const x=()=>E();e.lng?_t(i,e.lng,f,x):Qe(i,f,x)});return X};function mn(t,e){return function(){return t.apply(e,arguments)}}const{toString:Gr}=Object.prototype,{getPrototypeOf:lt}=Object,{iterator:je,toStringTag:yn}=Symbol,Ie=(t=>e=>{const n=Gr.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),J=t=>(t=t.toLowerCase(),e=>Ie(e)===t),De=t=>e=>typeof e===t,{isArray:ue}=Array,ae=De("undefined");function ye(t){return t!==null&&!ae(t)&&t.constructor!==null&&!ae(t.constructor)&&M(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const bn=J("ArrayBuffer");function Xr(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&bn(t.buffer),e}const Yr=De("string"),M=De("function"),Sn=De("number"),be=t=>t!==null&&typeof t=="object",Qr=t=>t===!0||t===!1,Ne=t=>{if(Ie(t)!=="object")return!1;const e=lt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(yn in t)&&!(je in t)},Zr=t=>{if(!be(t)||ye(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},es=J("Date"),ts=J("File"),ns=t=>!!(t&&typeof t.uri<"u"),rs=t=>t&&typeof t.getParts<"u",ss=J("Blob"),is=J("FileList"),os=t=>be(t)&&M(t.pipe);function as(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const kt=as(),Ft=typeof kt.FormData<"u"?kt.FormData:void 0,ls=t=>{let e;return t&&(Ft&&t instanceof Ft||M(t.append)&&((e=Ie(t))==="formdata"||e==="object"&&M(t.toString)&&t.toString()==="[object FormData]"))},us=J("URLSearchParams"),[cs,fs,ds,hs]=["ReadableStream","Request","Response","Headers"].map(J),ps=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Se(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),ue(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{if(ye(t))return;const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}function wn(t,e){if(ye(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const te=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xn=t=>!ae(t)&&t!==te;function et(){const{caseless:t,skipUndefined:e}=xn(this)&&this||{},n={},r=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const o=t&&wn(n,i)||i;Ne(n[o])&&Ne(s)?n[o]=et(n[o],s):Ne(s)?n[o]=et({},s):ue(s)?n[o]=s.slice():(!e||!ae(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Se(arguments[s],r);return n}const gs=(t,e,n,{allOwnKeys:r}={})=>(Se(e,(s,i)=>{n&&M(s)?Object.defineProperty(t,i,{value:mn(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),ms=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ys=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},bs=(t,e,n,r)=>{let s,i,o;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)o=s[i],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&<(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ss=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},ws=t=>{if(!t)return null;if(ue(t))return t;let e=t.length;if(!Sn(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},xs=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&<(Uint8Array)),Os=(t,e)=>{const r=(t&&t[je]).call(t);let s;for(;(s=r.next())&&!s.done;){const i=s.value;e.call(t,i[0],i[1])}},Rs=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Es=J("HTMLFormElement"),vs=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),$t=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Cs=J("RegExp"),On=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Se(n,(s,i)=>{let o;(o=e(s,i,t))!==!1&&(r[i]=o||s)}),Object.defineProperties(t,r)},Ls=t=>{On(t,(e,n)=>{if(M(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(M(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ns=(t,e)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return ue(t)?r(t):r(String(t).split(e)),n},Ps=()=>{},Ts=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function As(t){return!!(t&&M(t.append)&&t[yn]==="FormData"&&t[je])}const _s=t=>{const e=new Array(10),n=(r,s)=>{if(be(r)){if(e.indexOf(r)>=0)return;if(ye(r))return r;if(!("toJSON"in r)){e[s]=r;const i=ue(r)?[]:{};return Se(r,(o,a)=>{const u=n(o,s+1);!ae(u)&&(i[a]=u)}),e[s]=void 0,i}}return r};return n(t,0)},ks=J("AsyncFunction"),Fs=t=>t&&(be(t)||M(t))&&M(t.then)&&M(t.catch),Rn=((t,e)=>t?setImmediate:e?((n,r)=>(te.addEventListener("message",({source:s,data:i})=>{s===te&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),te.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",M(te.postMessage)),$s=typeof queueMicrotask<"u"?queueMicrotask.bind(te):typeof process<"u"&&process.nextTick||Rn,js=t=>t!=null&&M(t[je]),d={isArray:ue,isArrayBuffer:bn,isBuffer:ye,isFormData:ls,isArrayBufferView:Xr,isString:Yr,isNumber:Sn,isBoolean:Qr,isObject:be,isPlainObject:Ne,isEmptyObject:Zr,isReadableStream:cs,isRequest:fs,isResponse:ds,isHeaders:hs,isUndefined:ae,isDate:es,isFile:ts,isReactNativeBlob:ns,isReactNative:rs,isBlob:ss,isRegExp:Cs,isFunction:M,isStream:os,isURLSearchParams:us,isTypedArray:xs,isFileList:is,forEach:Se,merge:et,extend:gs,trim:ps,stripBOM:ms,inherits:ys,toFlatObject:bs,kindOf:Ie,kindOfTest:J,endsWith:Ss,toArray:ws,forEachEntry:Os,matchAll:Rs,isHTMLForm:Es,hasOwnProperty:$t,hasOwnProp:$t,reduceDescriptors:On,freezeMethods:Ls,toObjectSet:Ns,toCamelCase:vs,noop:Ps,toFiniteNumber:Ts,findKey:wn,global:te,isContextDefined:xn,isSpecCompliantForm:As,toJSONObject:_s,isAsyncFn:ks,isThenable:Fs,setImmediate:Rn,asap:$s,isIterable:js};let b=class En extends Error{static from(e,n,r,s,i,o){const a=new En(e.message,n||e.code,r,s,i);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,n,r,s,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){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:d.toJSONObject(this.config),code:this.code,status:this.status}}};b.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";b.ERR_BAD_OPTION="ERR_BAD_OPTION";b.ECONNABORTED="ECONNABORTED";b.ETIMEDOUT="ETIMEDOUT";b.ERR_NETWORK="ERR_NETWORK";b.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";b.ERR_DEPRECATED="ERR_DEPRECATED";b.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";b.ERR_BAD_REQUEST="ERR_BAD_REQUEST";b.ERR_CANCELED="ERR_CANCELED";b.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";b.ERR_INVALID_URL="ERR_INVALID_URL";const Is=null;function tt(t){return d.isPlainObject(t)||d.isArray(t)}function vn(t){return d.endsWith(t,"[]")?t.slice(0,-2):t}function qe(t,e,n){return t?t.concat(e).map(function(s,i){return s=vn(s),!n&&i?"["+s+"]":s}).join(n?".":""):e}function Ds(t){return d.isArray(t)&&!t.some(tt)}const Us=d.toFlatObject(d,{},null,function(e){return/^is[A-Z]/.test(e)});function Ue(t,e,n){if(!d.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=d.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!d.isUndefined(p[m])});const r=n.metaTokens,s=n.visitor||c,i=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(e);if(!d.isFunction(s))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(d.isDate(h))return h.toISOString();if(d.isBoolean(h))return h.toString();if(!u&&d.isBlob(h))throw new b("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(h)||d.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,m,p){let O=h;if(d.isReactNative(e)&&d.isReactNativeBlob(h))return e.append(qe(p,m,i),l(h)),!1;if(h&&!p&&typeof h=="object"){if(d.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(d.isArray(h)&&Ds(h)||(d.isFileList(h)||d.endsWith(m,"[]"))&&(O=d.toArray(h)))return m=vn(m),O.forEach(function(R,C){!(d.isUndefined(R)||R===null)&&e.append(o===!0?qe([m],C,i):o===null?m:m+"[]",l(R))}),!1}return tt(h)?!0:(e.append(qe(p,m,i),l(h)),!1)}const f=[],g=Object.assign(Us,{defaultVisitor:c,convertValue:l,isVisitable:tt});function y(h,m){if(!d.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(h),d.forEach(h,function(O,v){(!(d.isUndefined(O)||O===null)&&s.call(e,O,d.isString(v)?v.trim():v,m,g))===!0&&y(O,m?m.concat(v):[v])}),f.pop()}}if(!d.isObject(t))throw new TypeError("data must be an object");return y(t),e}function jt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function ut(t,e){this._pairs=[],t&&Ue(t,this,e)}const Cn=ut.prototype;Cn.append=function(e,n){this._pairs.push([e,n])};Cn.toString=function(e){const n=e?function(r){return e.call(this,r,jt)}:jt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Bs(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ln(t,e,n){if(!e)return t;const r=n&&n.encode||Bs,s=d.isFunction(n)?{serialize:n}:n,i=s&&s.serialize;let o;if(i?o=i(e,s):o=d.isURLSearchParams(e)?e.toString():new ut(e,s).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class It{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){d.forEach(this.handlers,function(r){r!==null&&e(r)})}}const ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Hs=typeof URLSearchParams<"u"?URLSearchParams:ut,Ms=typeof FormData<"u"?FormData:null,Vs=typeof Blob<"u"?Blob:null,Ks={isBrowser:!0,classes:{URLSearchParams:Hs,FormData:Ms,Blob:Vs},protocols:["http","https","file","blob","url","data"]},ft=typeof window<"u"&&typeof document<"u",nt=typeof navigator=="object"&&navigator||void 0,zs=ft&&(!nt||["ReactNative","NativeScript","NS"].indexOf(nt.product)<0),qs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Js=ft&&window.location.href||"http://localhost",Ws=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ft,hasStandardBrowserEnv:zs,hasStandardBrowserWebWorkerEnv:qs,navigator:nt,origin:Js},Symbol.toStringTag,{value:"Module"})),D={...Ws,...Ks};function Gs(t,e){return Ue(t,new D.classes.URLSearchParams,{visitor:function(n,r,s,i){return D.isNode&&d.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function Xs(t){return d.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Ys(t){const e={},n=Object.keys(t);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],e[i]=t[i];return e}function Nn(t){function e(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=i>=n.length;return o=!o&&d.isArray(s)?s.length:o,u?(d.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!d.isObject(s[o]))&&(s[o]=[]),e(n,r,s[o],i)&&d.isArray(s[o])&&(s[o]=Ys(s[o])),!a)}if(d.isFormData(t)&&d.isFunction(t.entries)){const n={};return d.forEachEntry(t,(r,s)=>{e(Xs(r),s,n,0)}),n}return null}function Qs(t,e,n){if(d.isString(t))try{return(e||JSON.parse)(t),d.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const we={transitional:ct,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=d.isObject(e);if(i&&d.isHTMLForm(e)&&(e=new FormData(e)),d.isFormData(e))return s?JSON.stringify(Nn(e)):e;if(d.isArrayBuffer(e)||d.isBuffer(e)||d.isStream(e)||d.isFile(e)||d.isBlob(e)||d.isReadableStream(e))return e;if(d.isArrayBufferView(e))return e.buffer;if(d.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Gs(e,this.formSerializer).toString();if((a=d.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ue(a?{"files[]":e}:e,u&&new u,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Qs(e)):e}],transformResponse:[function(e){const n=this.transitional||we.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(d.isResponse(e)||d.isReadableStream(e))return e;if(e&&d.isString(e)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?b.from(a,b.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:D.classes.FormData,Blob:D.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(["delete","get","head","post","put","patch"],t=>{we.headers[t]={}});const Zs=d.toObjectSet(["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"]),ei=t=>{const e={};let n,r,s;return t&&t.split(`
|
|
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||e[n]&&Zs[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Dt=Symbol("internals");function fe(t){return t&&String(t).trim().toLowerCase()}function Pe(t){return t===!1||t==null?t:d.isArray(t)?t.map(Pe):String(t)}function ti(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const ni=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Je(t,e,n,r,s){if(d.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!d.isString(e)){if(d.isString(r))return e.indexOf(r)!==-1;if(d.isRegExp(r))return r.test(e)}}function ri(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function si(t,e){const n=d.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,i,o){return this[r].call(this,e,s,i,o)},configurable:!0})})}let V=class{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function i(a,u,l){const c=fe(u);if(!c)throw new Error("header name must be a non-empty string");const f=d.findKey(s,c);(!f||s[f]===void 0||l===!0||l===void 0&&s[f]!==!1)&&(s[f||u]=Pe(a))}const o=(a,u)=>d.forEach(a,(l,c)=>i(l,c,u));if(d.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(d.isString(e)&&(e=e.trim())&&!ni(e))o(ei(e),n);else if(d.isObject(e)&&d.isIterable(e)){let a={},u,l;for(const c of e){if(!d.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[l=c[0]]=(u=a[l])?d.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}o(a,n)}else e!=null&&i(n,e,r);return this}get(e,n){if(e=fe(e),e){const r=d.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return ti(s);if(d.isFunction(n))return n.call(this,s,r);if(d.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=fe(e),e){const r=d.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Je(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function i(o){if(o=fe(o),o){const a=d.findKey(r,o);a&&(!n||Je(r,r[a],a,n))&&(delete r[a],s=!0)}}return d.isArray(e)?e.forEach(i):i(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!e||Je(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const n=this,r={};return d.forEach(this,(s,i)=>{const o=d.findKey(r,i);if(o){n[o]=Pe(s),delete n[i];return}const a=e?ri(i):String(i).trim();a!==i&&delete n[i],n[a]=Pe(s),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return d.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&d.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[Dt]=this[Dt]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=fe(o);r[a]||(si(s,o),r[a]=!0)}return d.isArray(e)?e.forEach(i):i(e),this}};V.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);d.reduceDescriptors(V.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});d.freezeMethods(V);function We(t,e){const n=this||we,r=e||n,s=V.from(r.headers);let i=r.data;return d.forEach(t,function(a){i=a.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function Pn(t){return!!(t&&t.__CANCEL__)}let xe=class extends b{constructor(e,n,r){super(e??"canceled",b.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Tn(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new b("Request failed with status code "+n.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ii(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function oi(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,i=0,o;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),c=r[i];o||(o=l),n[s]=u,r[s]=l;let f=i,g=0;for(;f!==s;)g+=n[f++],f=f%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),l-o<e)return;const y=c&&l-c;return y?Math.round(g*1e3/y):void 0}}function ai(t,e){let n=0,r=1e3/e,s,i;const o=(l,c=Date.now())=>{n=c,s=null,i&&(clearTimeout(i),i=null),t(...l)};return[(...l)=>{const c=Date.now(),f=c-n;f>=r?o(l,c):(s=l,i||(i=setTimeout(()=>{i=null,o(s)},r-f)))},()=>s&&o(s)]}const Fe=(t,e,n=3)=>{let r=0;const s=oi(50,250);return ai(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,u=o-r,l=s(u),c=o<=a;r=o;const f={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:l||void 0,estimated:l&&a&&c?(a-o)/l:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(f)},n)},Ut=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Bt=t=>(...e)=>d.asap(()=>t(...e)),li=D.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,D.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(D.origin),D.navigator&&/(msie|trident)/i.test(D.navigator.userAgent)):()=>!0,ui=D.hasStandardBrowserEnv?{write(t,e,n,r,s,i,o){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];d.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),d.isString(r)&&a.push(`path=${r}`),d.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),d.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ci(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function fi(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function An(t,e,n){let r=!ci(e);return t&&(r||n==!1)?fi(t,e):e}const Ht=t=>t instanceof V?{...t}:t;function se(t,e){e=e||{};const n={};function r(l,c,f,g){return d.isPlainObject(l)&&d.isPlainObject(c)?d.merge.call({caseless:g},l,c):d.isPlainObject(c)?d.merge({},c):d.isArray(c)?c.slice():c}function s(l,c,f,g){if(d.isUndefined(c)){if(!d.isUndefined(l))return r(void 0,l,f,g)}else return r(l,c,f,g)}function i(l,c){if(!d.isUndefined(c))return r(void 0,c)}function o(l,c){if(d.isUndefined(c)){if(!d.isUndefined(l))return r(void 0,l)}else return r(void 0,c)}function a(l,c,f){if(f in e)return r(l,c);if(f in t)return r(void 0,l)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,c,f)=>s(Ht(l),Ht(c),f,!0)};return d.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=d.hasOwnProp(u,c)?u[c]:s,g=f(t[c],e[c],c);d.isUndefined(g)&&f!==a||(n[c]=g)}),n}const _n=t=>{const e=se({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=e;if(e.headers=o=V.from(o),e.url=Ln(An(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),d.isFormData(n)){if(D.hasStandardBrowserEnv||D.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(d.isFunction(n.getHeaders)){const u=n.getHeaders(),l=["content-type","content-length"];Object.entries(u).forEach(([c,f])=>{l.includes(c.toLowerCase())&&o.set(c,f)})}}if(D.hasStandardBrowserEnv&&(r&&d.isFunction(r)&&(r=r(e)),r||r!==!1&&li(e.url))){const u=s&&i&&ui.read(i);u&&o.set(s,u)}return e},di=typeof XMLHttpRequest<"u",hi=di&&function(t){return new Promise(function(n,r){const s=_n(t);let i=s.data;const o=V.from(s.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:l}=s,c,f,g,y,h;function m(){y&&y(),h&&h(),s.cancelToken&&s.cancelToken.unsubscribe(c),s.signal&&s.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function O(){if(!p)return;const R=V.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),N={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:R,config:t,request:p};Tn(function(_){n(_),m()},function(_){r(_),m()},N),p=null}"onloadend"in p?p.onloadend=O:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(O)},p.onabort=function(){p&&(r(new b("Request aborted",b.ECONNABORTED,t,p)),p=null)},p.onerror=function(C){const N=C&&C.message?C.message:"Network Error",j=new b(N,b.ERR_NETWORK,t,p);j.event=C||null,r(j),p=null},p.ontimeout=function(){let C=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const N=s.transitional||ct;s.timeoutErrorMessage&&(C=s.timeoutErrorMessage),r(new b(C,N.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,t,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&d.forEach(o.toJSON(),function(C,N){p.setRequestHeader(N,C)}),d.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),a&&a!=="json"&&(p.responseType=s.responseType),l&&([g,h]=Fe(l,!0),p.addEventListener("progress",g)),u&&p.upload&&([f,y]=Fe(u),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(c=R=>{p&&(r(!R||R.type?new xe(null,t,p):R),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(c),s.signal&&(s.signal.aborted?c():s.signal.addEventListener("abort",c)));const v=ii(s.url);if(v&&D.protocols.indexOf(v)===-1){r(new b("Unsupported protocol "+v+":",b.ERR_BAD_REQUEST,t));return}p.send(i||null)})},pi=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const i=function(l){if(!s){s=!0,a();const c=l instanceof Error?l:this.reason;r.abort(c instanceof b?c:new xe(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,i(new b(`timeout of ${e}ms exceeded`,b.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),t=null)};t.forEach(l=>l.addEventListener("abort",i));const{signal:u}=r;return u.unsubscribe=()=>d.asap(a),u}},gi=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},mi=async function*(t,e){for await(const n of yi(t))yield*gi(n,e)},yi=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Mt=(t,e,n,r)=>{const s=mi(t,e);let i=0,o,a=u=>{o||(o=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:l,value:c}=await s.next();if(l){a(),u.close();return}let f=c.byteLength;if(n){let g=i+=f;n(g)}u.enqueue(new Uint8Array(c))}catch(l){throw a(l),l}},cancel(u){return a(u),s.return()}},{highWaterMark:2})},Vt=64*1024,{isFunction:ve}=d,bi=(({Request:t,Response:e})=>({Request:t,Response:e}))(d.global),{ReadableStream:Kt,TextEncoder:zt}=d.global,qt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Si=t=>{t=d.merge.call({skipUndefined:!0},bi,t);const{fetch:e,Request:n,Response:r}=t,s=e?ve(e):typeof fetch=="function",i=ve(n),o=ve(r);if(!s)return!1;const a=s&&ve(Kt),u=s&&(typeof zt=="function"?(h=>m=>h.encode(m))(new zt):async h=>new Uint8Array(await new n(h).arrayBuffer())),l=i&&a&&qt(()=>{let h=!1;const m=new n(D.origin,{body:new Kt,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return h&&!m}),c=o&&a&&qt(()=>d.isReadableStream(new r("").body)),f={stream:c&&(h=>h.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!f[h]&&(f[h]=(m,p)=>{let O=m&&m[h];if(O)return O.call(m);throw new b(`Response type '${h}' is not supported`,b.ERR_NOT_SUPPORT,p)})});const g=async h=>{if(h==null)return 0;if(d.isBlob(h))return h.size;if(d.isSpecCompliantForm(h))return(await new n(D.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(d.isArrayBufferView(h)||d.isArrayBuffer(h))return h.byteLength;if(d.isURLSearchParams(h)&&(h=h+""),d.isString(h))return(await u(h)).byteLength},y=async(h,m)=>{const p=d.toFiniteNumber(h.getContentLength());return p??g(m)};return async h=>{let{url:m,method:p,data:O,signal:v,cancelToken:R,timeout:C,onDownloadProgress:N,onUploadProgress:j,responseType:_,headers:X,withCredentials:E="same-origin",fetchOptions:x}=_n(h),T=e||fetch;_=_?(_+"").toLowerCase():"text";let k=pi([v,R&&R.toAbortSignal()],C),L=null;const A=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let Y;try{if(j&&l&&p!=="get"&&p!=="head"&&(Y=await y(X,O))!==0){let F=new n(m,{method:"POST",body:O,duplex:"half"}),H;if(d.isFormData(O)&&(H=F.headers.get("content-type"))&&X.setContentType(H),F.body){const[G,Z]=Ut(Y,Fe(Bt(j)));O=Mt(F.body,Vt,G,Z)}}d.isString(E)||(E=E?"include":"omit");const P=i&&"credentials"in n.prototype,z={...x,signal:k,method:p.toUpperCase(),headers:X.normalize().toJSON(),body:O,duplex:"half",credentials:P?E:void 0};L=i&&new n(m,z);let B=await(i?T(L,x):T(m,z));const Q=c&&(_==="stream"||_==="response");if(c&&(N||Q&&A)){const F={};["status","statusText","headers"].forEach(ht=>{F[ht]=B[ht]});const H=d.toFiniteNumber(B.headers.get("content-length")),[G,Z]=N&&Ut(H,Fe(Bt(N),!0))||[];B=new r(Mt(B.body,Vt,G,()=>{Z&&Z(),A&&A()}),F)}_=_||"text";let Oe=await f[d.findKey(f,_)||"text"](B,h);return!Q&&A&&A(),await new Promise((F,H)=>{Tn(F,H,{data:Oe,headers:V.from(B.headers),status:B.status,statusText:B.statusText,config:h,request:L})})}catch(P){throw A&&A(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,h,L,P&&P.response),{cause:P.cause||P}):b.from(P,P&&P.code,h,L,P&&P.response)}}},wi=new Map,kn=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:s}=e,i=[r,s,n];let o=i.length,a=o,u,l,c=wi;for(;a--;)u=i[a],l=c.get(u),l===void 0&&c.set(u,l=a?new Map:Si(e)),c=l;return l};kn();const dt={http:Is,xhr:hi,fetch:{get:kn}};d.forEach(dt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Jt=t=>`- ${t}`,xi=t=>d.isFunction(t)||t===null||t===!1;function Oi(t,e){t=d.isArray(t)?t:[t];const{length:n}=t;let r,s;const i={};for(let o=0;o<n;o++){r=t[o];let a;if(s=r,!xi(r)&&(s=dt[(a=String(r)).toLowerCase()],s===void 0))throw new b(`Unknown adapter '${a}'`);if(s&&(d.isFunction(s)||(s=s.get(e))))break;i[a||"#"+o]=s}if(!s){const o=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since :
|
|
`+o.map(Jt).join(`
|
|
`):" "+Jt(o[0]):"as no adapter specified";throw new b("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const Fn={getAdapter:Oi,adapters:dt};function Ge(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new xe(null,t)}function Wt(t){return Ge(t),t.headers=V.from(t.headers),t.data=We.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Fn.getAdapter(t.adapter||we.adapter,t)(t).then(function(r){return Ge(t),r.data=We.call(t,t.transformResponse,r),r.headers=V.from(r.headers),r},function(r){return Pn(r)||(Ge(t),r&&r.response&&(r.response.data=We.call(t,t.transformResponse,r.response),r.response.headers=V.from(r.response.headers))),Promise.reject(r)})}const $n="1.13.6",Be={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Be[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Gt={};Be.transitional=function(e,n,r){function s(i,o){return"[Axios v"+$n+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(e===!1)throw new b(s(o," has been removed"+(n?" in "+n:"")),b.ERR_DEPRECATED);return n&&!Gt[o]&&(Gt[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,a):!0}};Be.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Ri(t,e,n){if(typeof t!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const i=r[s],o=e[i];if(o){const a=t[i],u=a===void 0||o(a,i,t);if(u!==!0)throw new b("option "+i+" must be "+u,b.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new b("Unknown option "+i,b.ERR_BAD_OPTION)}}const Te={assertOptions:Ri,validators:Be},q=Te.validators;let ne=class{constructor(e){this.defaults=e||{},this.interceptors={request:new It,response:new It}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
`+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=se(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&Te.assertOptions(r,{silentJSONParsing:q.transitional(q.boolean),forcedJSONParsing:q.transitional(q.boolean),clarifyTimeoutError:q.transitional(q.boolean),legacyInterceptorReqResOrdering:q.transitional(q.boolean)},!1),s!=null&&(d.isFunction(s)?n.paramsSerializer={serialize:s}:Te.assertOptions(s,{encode:q.function,serialize:q.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Te.assertOptions(n,{baseUrl:q.spelling("baseURL"),withXsrfToken:q.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&d.merge(i.common,i[n.method]);i&&d.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=V.concat(o,i);const a=[];let u=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;u=u&&m.synchronous;const p=n.transitional||ct;p&&p.legacyInterceptorReqResOrdering?a.unshift(m.fulfilled,m.rejected):a.push(m.fulfilled,m.rejected)});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let c,f=0,g;if(!u){const h=[Wt.bind(this),void 0];for(h.unshift(...a),h.push(...l),g=h.length,c=Promise.resolve(n);f<g;)c=c.then(h[f++],h[f++]);return c}g=a.length;let y=n;for(;f<g;){const h=a[f++],m=a[f++];try{y=h(y)}catch(p){m.call(this,p);break}}try{c=Wt.call(this,y)}catch(h){return Promise.reject(h)}for(f=0,g=l.length;f<g;)c=c.then(l[f++],l[f++]);return c}getUri(e){e=se(this.defaults,e);const n=An(e.baseURL,e.url,e.allowAbsoluteUrls);return Ln(n,e.params,e.paramsSerializer)}};d.forEach(["delete","get","head","options"],function(e){ne.prototype[e]=function(n,r){return this.request(se(r||{},{method:e,url:n,data:(r||{}).data}))}});d.forEach(["post","put","patch"],function(e){function n(r){return function(i,o,a){return this.request(se(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ne.prototype[e]=n(),ne.prototype[e+"Form"]=n(!0)});let Ei=class jn{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},e(function(i,o,a){r.reason||(r.reason=new xe(i,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new jn(function(s){e=s}),cancel:e}}};function vi(t){return function(n){return t.apply(null,n)}}function Ci(t){return d.isObject(t)&&t.isAxiosError===!0}const rt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rt).forEach(([t,e])=>{rt[e]=t});function In(t){const e=new ne(t),n=mn(ne.prototype.request,e);return d.extend(n,ne.prototype,e,{allOwnKeys:!0}),d.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return In(se(t,s))},n}const $=In(we);$.Axios=ne;$.CanceledError=xe;$.CancelToken=Ei;$.isCancel=Pn;$.VERSION=$n;$.toFormData=Ue;$.AxiosError=b;$.Cancel=$.CanceledError;$.all=function(e){return Promise.all(e)};$.spread=vi;$.isAxiosError=Ci;$.mergeConfig=se;$.AxiosHeaders=V;$.formToJSON=t=>Nn(d.isHTMLForm(t)?new FormData(t):t);$.getAdapter=Fn.getAdapter;$.HttpStatusCode=rt;$.default=$;const{Axios:Ii,AxiosError:Di,CanceledError:Ui,isCancel:Bi,CancelToken:Hi,VERSION:Mi,all:Vi,Cancel:Ki,isAxiosError:zi,spread:qi,toFormData:Ji,AxiosHeaders:Wi,HttpStatusCode:Gi,formToJSON:Xi,getAdapter:Yi,mergeConfig:Qi}=$,Xt=t=>{let e;const n=new Set,r=(l,c)=>{const f=typeof l=="function"?l(e):l;if(!Object.is(f,e)){const g=e;e=c??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(y=>y(e,g))}},s=()=>e,a={setState:r,getState:s,getInitialState:()=>u,subscribe:l=>(n.add(l),()=>n.delete(l))},u=e=t(r,s,a);return a},Li=t=>t?Xt(t):Xt,Ni=t=>t;function Pi(t,e=Ni){const n=de.useSyncExternalStore(t.subscribe,de.useCallback(()=>e(t.getState()),[t,e]),de.useCallback(()=>e(t.getInitialState()),[t,e]));return de.useDebugValue(n),n}const Yt=t=>{const e=Li(t),n=r=>Pi(e,r);return Object.assign(n,e),n},Zi=t=>t?Yt(t):Yt;export{Ai as R,de as a,_i as b,Ti as c,$ as d,Zi as e,Un as g,K as i,I as r,ki as u};
|
|
//# sourceMappingURL=data-vendor-BOGugMqL.js.map
|
|
|