@rsdoctor/client 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ (self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["416"],{52746:function(t,e,n){t=n.nmd(t);var r,i,o,s,a,u="__lodash_hash_undefined__",c=1/0,l="[object Arguments]",f="[object Array]",h="[object Boolean]",p="[object Date]",d="[object Error]",g="[object Function]",v="[object Map]",y="[object Number]",b="[object Object]",m="[object Promise]",A="[object RegExp]",O="[object Set]",w="[object String]",_="[object Symbol]",k="[object WeakMap]",j="[object ArrayBuffer]",S="[object DataView]",E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,R=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[l]=T[f]=T[j]=T[h]=T[S]=T[p]=T[d]=T[g]=T[v]=T[y]=T[b]=T[A]=T[O]=T[w]=T[k]=!1;var F="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,D="object"==typeof self&&self&&self.Object===Object&&self,B=F||D||Function("return this")(),U=e&&!e.nodeType&&e,I=U&&t&&!t.nodeType&&t,M=I&&I.exports===U&&F.process,z=function(){try{return M&&M.binding("util")}catch(t){}}(),V=z&&z.isTypedArray;function q(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!=e){for(var r=K,i=t.length,o=-1;++o<i;)if(r(t[o],o,t))return o;return -1}for(var s=-1,a=t.length;++s<a;)if(t[s]===e)return s;return -1}(t,e,0)>-1}function K(t){return t!=t}function $(t,e){return t.has(e)}function J(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function H(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function W(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var Y=Array.prototype,Q=Function.prototype,G=Object.prototype,X=B["__core-js_shared__"],Z=(r=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",tt=Q.toString,te=G.hasOwnProperty,tn=G.toString,tr=RegExp("^"+tt.call(te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ti=B.Symbol,to=B.Uint8Array,ts=G.propertyIsEnumerable,ta=Y.splice,tu=ti?ti.isConcatSpreadable:void 0,tc=(i=Object.keys,o=Object,function(t){return i(o(t))}),tl=Math.max,tf=tB(B,"DataView"),th=tB(B,"Map"),tp=tB(B,"Promise"),td=tB(B,"Set"),tg=tB(B,"WeakMap"),tv=tB(Object,"create"),ty=t$(tf),tb=t$(th),tm=t$(tp),tA=t$(td),tO=t$(tg),tw=ti?ti.prototype:void 0,t_=tw?tw.valueOf:void 0,tk=tw?tw.toString:void 0;function tj(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function tS(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function tE(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function tx(t){var e=-1,n=t?t.length:0;for(this.__data__=new tE;++e<n;)this.add(t[e])}function tR(t){this.__data__=new tS(t)}function tN(t,e){for(var n=t.length;n--;)if(tW(t[n][0],e))return n;return -1}function tP(t,e){var n;e=tz(e,t)?[e]:tQ(n=e)?n:tq(n);for(var r=0,i=e.length;null!=t&&r<i;)t=t[tK(e[r++])];return r&&r==i?t:void 0}function tC(t,e){return null!=t&&e in Object(t)}function tL(t,e,n,r,i){return t===e||(null!=t&&null!=e&&(t1(t)||t2(e))?function(t,e,n,r,i,o){var s=tQ(t),a=tQ(e),u=f,c=f;s||(u=(u=tU(t))==l?b:u),a||(c=(c=tU(e))==l?b:c);var g=u==b&&!J(t),m=c==b&&!J(e),k=u==c;if(k&&!g)return o||(o=new tR),s||t3(t)?tF(t,e,n,r,i,o):function(t,e,n,r,i,o,s){switch(n){case S:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case j:if(t.byteLength!=e.byteLength||!r(new to(t),new to(e)))break;return!0;case h:case p:case y:return tW(+t,+e);case d:return t.name==e.name&&t.message==e.message;case A:case w:return t==e+"";case v:var a=H;case O:var u=2&o;if(a||(a=W),t.size!=e.size&&!u)break;var c=s.get(t);if(c)return c==e;o|=1,s.set(t,e);var l=tF(a(t),a(e),r,i,o,s);return s.delete(t),l;case _:if(t_)return t_.call(t)==t_.call(e)}return!1}(t,e,u,n,r,i,o);if(!(2&i)){var E=g&&te.call(t,"__wrapped__"),x=m&&te.call(e,"__wrapped__");if(E||x){var R=E?t.value():t,N=x?e.value():e;return o||(o=new tR),n(R,N,r,i,o)}}return!!k&&(o||(o=new tR),function(t,e,n,r,i,o){var s=2&i,a=t8(t),u=a.length;if(u!=t8(e).length&&!s)return!1;for(var c=u;c--;){var l=a[c];if(!(s?l in e:te.call(e,l)))return!1}var f=o.get(t);if(f&&o.get(e))return f==e;var h=!0;o.set(t,e),o.set(e,t);for(var p=s;++c<u;){var d=t[l=a[c]],g=e[l];if(r)var v=s?r(g,d,l,e,t,o):r(d,g,l,t,e,o);if(!(void 0===v?d===g||n(d,g,r,i,o):v)){h=!1;break}p||(p="constructor"==l)}if(h&&!p){var y=t.constructor,b=e.constructor;y!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(h=!1)}return o.delete(t),o.delete(e),h}(t,e,n,r,i,o))}(t,e,tL,n,r,i):t!=t&&e!=e)}tj.prototype.clear=function(){this.__data__=tv?tv(null):{}},tj.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},tj.prototype.get=function(t){var e=this.__data__;if(tv){var n=e[t];return n===u?void 0:n}return te.call(e,t)?e[t]:void 0},tj.prototype.has=function(t){var e=this.__data__;return tv?void 0!==e[t]:te.call(e,t)},tj.prototype.set=function(t,e){return this.__data__[t]=tv&&void 0===e?u:e,this},tS.prototype.clear=function(){this.__data__=[]},tS.prototype.delete=function(t){var e=this.__data__,n=tN(e,t);return!(n<0)&&(n==e.length-1?e.pop():ta.call(e,n,1),!0)},tS.prototype.get=function(t){var e=this.__data__,n=tN(e,t);return n<0?void 0:e[n][1]},tS.prototype.has=function(t){return tN(this.__data__,t)>-1},tS.prototype.set=function(t,e){var n=this.__data__,r=tN(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},tE.prototype.clear=function(){this.__data__={hash:new tj,map:new(th||tS),string:new tj}},tE.prototype.delete=function(t){return tD(this,t).delete(t)},tE.prototype.get=function(t){return tD(this,t).get(t)},tE.prototype.has=function(t){return tD(this,t).has(t)},tE.prototype.set=function(t,e){return tD(this,t).set(t,e),this},tx.prototype.add=tx.prototype.push=function(t){return this.__data__.set(t,u),this},tx.prototype.has=function(t){return this.__data__.has(t)},tR.prototype.clear=function(){this.__data__=new tS},tR.prototype.delete=function(t){return this.__data__.delete(t)},tR.prototype.get=function(t){return this.__data__.get(t)},tR.prototype.has=function(t){return this.__data__.has(t)},tR.prototype.set=function(t,e){var n=this.__data__;if(n instanceof tS){var r=n.__data__;if(!th||r.length<199)return r.push([t,e]),this;n=this.__data__=new tE(r)}return n.set(t,e),this};var tT=td&&1/W(new td([,-0]))[1]==c?function(t){return new td(t)}:function(){};function tF(t,e,n,r,i,o){var s=2&i,a=t.length,u=e.length;if(a!=u&&!(s&&u>a))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var l=-1,f=!0,h=1&i?new tx:void 0;for(o.set(t,e),o.set(e,t);++l<a;){var p=t[l],d=e[l];if(r)var g=s?r(d,p,l,e,t,o):r(p,d,l,t,e,o);if(void 0!==g){if(g)continue;f=!1;break}if(h){if(!function(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}(e,function(t,e){if(!h.has(e)&&(p===t||n(p,t,r,i,o)))return h.add(e)})){f=!1;break}}else if(!(p===d||n(p,d,r,i,o))){f=!1;break}}return o.delete(t),o.delete(e),f}function tD(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function tB(t,e){var n,r=null==t?void 0:t[e];return!(!t1(r)||(n=r,Z&&Z in n))&&(tZ(r)||J(r)?tr:C).test(t$(r))?r:void 0}var tU=function(t){return tn.call(t)};function tI(t){return tQ(t)||tY(t)||!!(tu&&t&&t[tu])}function tM(t,e){return!!(e=null==e?0x1fffffffffffff:e)&&("number"==typeof t||L.test(t))&&t>-1&&t%1==0&&t<e}function tz(t,e){if(tQ(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||t4(t))||x.test(t)||!E.test(t)||null!=e&&t in Object(e)}(tf&&tU(new tf(new ArrayBuffer(1)))!=S||th&&tU(new th)!=v||tp&&tU(tp.resolve())!=m||td&&tU(new td)!=O||tg&&tU(new tg)!=k)&&(tU=function(t){var e=tn.call(t),n=e==b?t.constructor:void 0,r=n?t$(n):void 0;if(r)switch(r){case ty:return S;case tb:return v;case tm:return m;case tA:return O;case tO:return k}return e});function tV(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}var tq=tH(function(t){t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(t4(t))return tk?tk.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}(e);var e,n=[];return R.test(t)&&n.push(""),t.replace(N,function(t,e,r,i){n.push(r?i.replace(P,"$1"):e||t)}),n});function tK(t){if("string"==typeof t||t4(t))return t;var e=t+"";return"0"==e&&1/t==-c?"-0":e}function t$(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var tJ=(s=function(t){var e,n,r,i,o,s,a,u=(s=t?t.length:0)?t[s-1]:void 0;return tX(u)&&(u=void 0),function(t,e,n){var r=-1,i=q,o=t.length,s=!0,a=[],u=a;if(o>=200){var c=e?null:tT(t);if(c)return W(c);s=!1,i=$,u=new tx}else u=e?[]:a;t:for(;++r<o;){var l=t[r],f=e?e(l):l;if(l=0!==l?l:0,s&&f==f){for(var h=u.length;h--;)if(u[h]===f)continue t;e&&u.push(f),a.push(l)}else i(u,f,void 0)||(u!==a&&u.push(f),a.push(l))}return a}(function t(e,n,r,i,o){var s=-1,a=e.length;for(r||(r=tI),o||(o=[]);++s<a;){var u=e[s];n>0&&r(u)?n>1?t(u,n-1,r,i,o):function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n]}(o,u):i||(o[o.length]=u)}return o}(t,1,tX,!0),"function"==typeof(a=u)?a:null==a?t6:"object"==typeof a?tQ(a)?(e=a[0],n=a[1],tz(e)&&(r=n)==r&&!t1(r)?tV(tK(e),n):function(t){var r,i,o,s,a,u=(r=t,i=e,void 0===(o=null==r?void 0:tP(r,i))?void 0:o);return void 0===u&&u===n?(s=t,a=e,null!=s&&function(t,e,n){e=tz(e,t)?[e]:tQ(r=e)?r:tq(r);for(var r,i,o=-1,s=e.length;++o<s;){var a=tK(e[o]);if(!(i=null!=t&&n(t,a)))break;t=t[a]}if(i)return i;var s=t?t.length:0;return!!s&&t0(s)&&tM(a,s)&&(tQ(t)||tY(t))}(s,a,tC)):tL(n,u,void 0,3)}):1==(o=function(t){for(var e=t8(t),n=e.length;n--;){var r,i=e[n],o=t[i];e[n]=[i,o,(r=o)==r&&!t1(r)]}return e}(i=a)).length&&o[0][2]?tV(o[0][0],o[0][1]):function(t){return t===i||function(t,e,n,r){var i=n.length,o=i;if(null==t)return!o;for(t=Object(t);i--;){var s=n[i];if((0,s[2])?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var a=(s=n[i])[0],u=t[a],c=s[1];if(0,s[2]){if(void 0===u&&!(a in t))return!1}else{var l,f=new tR;if(!(void 0===l?tL(c,u,void 0,3,f):l))return!1}}return!0}(t,0,o)}:function(t){var e;return tz(t)?(e=tK(t),function(t){return null==t?void 0:t[e]}):function(e){return tP(e,t)}}(a))},a=tl(void 0===a?s.length-1:a,0),function(){for(var t=arguments,e=-1,n=tl(t.length-a,0),r=Array(n);++e<n;)r[e]=t[a+e];e=-1;for(var i=Array(a+1);++e<a;)i[e]=t[e];i[a]=r;switch(i.length){case 0:return s.call(this);case 1:return s.call(this,i[0]);case 2:return s.call(this,i[0],i[1]);case 3:return s.call(this,i[0],i[1],i[2])}return s.apply(this,i)});function tH(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new(tH.Cache||tE),n}function tW(t,e){return t===e||t!=t&&e!=e}function tY(t){return tX(t)&&te.call(t,"callee")&&(!ts.call(t,"callee")||tn.call(t)==l)}tH.Cache=tE;var tQ=Array.isArray;function tG(t){return null!=t&&t0(t.length)&&!tZ(t)}function tX(t){return t2(t)&&tG(t)}function tZ(t){var e=t1(t)?tn.call(t):"";return e==g||"[object GeneratorFunction]"==e}function t0(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}function t1(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function t2(t){return!!t&&"object"==typeof t}function t4(t){return"symbol"==typeof t||t2(t)&&tn.call(t)==_}var t3=V?function(t){return V(t)}:function(t){return t2(t)&&t0(t.length)&&!!T[tn.call(t)]};function t8(t){return tG(t)?function(t,e){var n=tQ(t)||tY(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,i=!!r;for(var o in t)te.call(t,o)&&!(i&&("length"==o||tM(o,r)))&&n.push(o);return n}(t):function(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||G))return tc(t);var e,n,r=[];for(var i in Object(t))te.call(t,i)&&"constructor"!=i&&r.push(i);return r}(t)}function t6(t){return t}t.exports=tJ},60639:function(t,e,n){"use strict";let r,i,o,s;n.d(e,{A:()=>eu});var a,u,c,l,f={};function h(t,e){return function(){return t.apply(e,arguments)}}n.r(f),n.d(f,{hasBrowserEnv:()=>ty,hasStandardBrowserEnv:()=>tm,hasStandardBrowserWebWorkerEnv:()=>tA,navigator:()=>tb,origin:()=>tO});var p=n(85409);let{toString:d}=Object.prototype,{getPrototypeOf:g}=Object,{iterator:v,toStringTag:y}=Symbol,b=(r=Object.create(null),t=>{let e=d.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())}),m=t=>(t=t.toLowerCase(),e=>b(e)===t),A=t=>e=>typeof e===t,{isArray:O}=Array,w=A("undefined");function _(t){return null!==t&&!w(t)&&null!==t.constructor&&!w(t.constructor)&&S(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let k=m("ArrayBuffer"),j=A("string"),S=A("function"),E=A("number"),x=t=>null!==t&&"object"==typeof t,R=t=>{if("object"!==b(t))return!1;let e=g(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(y in t)&&!(v in t)},N=m("Date"),P=m("File"),C=m("Blob"),L=m("FileList"),T=m("URLSearchParams"),[F,D,B,U]=["ReadableStream","Request","Response","Headers"].map(m);function I(t,e,{allOwnKeys:n=!1}={}){let r,i;if(null!=t)if("object"!=typeof t&&(t=[t]),O(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{let i;if(_(t))return;let o=n?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;for(r=0;r<s;r++)i=o[r],e.call(null,t[i],i,t)}}function M(t,e){let n;if(_(t))return null;e=e.toLowerCase();let r=Object.keys(t),i=r.length;for(;i-- >0;)if(e===(n=r[i]).toLowerCase())return n;return null}let z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,V=t=>!w(t)&&t!==z,q=(i="undefined"!=typeof Uint8Array&&g(Uint8Array),t=>i&&t instanceof i),K=m("HTMLFormElement"),$=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),J=m("RegExp"),H=(t,e)=>{let n=Object.getOwnPropertyDescriptors(t),r={};I(n,(n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)}),Object.defineProperties(t,r)},W=m("AsyncFunction"),Y=(a="function"==typeof setImmediate,u=S(z.postMessage),a?setImmediate:u?(c=`axios@${Math.random()}`,l=[],z.addEventListener("message",({source:t,data:e})=>{t===z&&e===c&&l.length&&l.shift()()},!1),t=>{l.push(t),z.postMessage(c,"*")}):t=>setTimeout(t)),Q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(z):void 0!==p&&p.nextTick||Y,G={isArray:O,isArrayBuffer:k,isBuffer:_,isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||S(t.append)&&("formdata"===(e=b(t))||"object"===e&&S(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&k(t.buffer)},isString:j,isNumber:E,isBoolean:t=>!0===t||!1===t,isObject:x,isPlainObject:R,isEmptyObject:t=>{if(!x(t)||_(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:F,isRequest:D,isResponse:B,isHeaders:U,isUndefined:w,isDate:N,isFile:P,isBlob:C,isRegExp:J,isFunction:S,isStream:t=>x(t)&&S(t.pipe),isURLSearchParams:T,isTypedArray:q,isFileList:L,forEach:I,merge:function t(){let{caseless:e,skipUndefined:n}=V(this)&&this||{},r={},i=(i,o)=>{let s=e&&M(r,o)||o;R(r[s])&&R(i)?r[s]=t(r[s],i):R(i)?r[s]=t({},i):O(i)?r[s]=i.slice():n&&w(i)||(r[s]=i)};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&I(arguments[t],i);return r},extend:(t,e,n,{allOwnKeys:r}={})=>(I(e,(e,r)=>{n&&S(e)?t[r]=h(e,n):t[r]=e},{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,o,s,a={};if(e=e||{},null==t)return e;do{for(o=(i=Object.getOwnPropertyNames(t)).length;o-- >0;)s=i[o],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=!1!==n&&g(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:b,kindOfTest:m,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;let r=t.indexOf(e,n);return -1!==r&&r===n},toArray:t=>{if(!t)return null;if(O(t))return t;let e=t.length;if(!E(e))return null;let n=Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{let n,r=(t&&t[v]).call(t);for(;(n=r.next())&&!n.done;){let r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let n,r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:K,hasOwnProperty:$,hasOwnProp:$,reduceDescriptors:H,freezeMethods:t=>{H(t,(e,n)=>{if(S(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(S(t[n])){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(t,e)=>{let n={};return(O(t)?t:String(t).split(e)).forEach(t=>{n[t]=!0}),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,n){return e.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t*=1)?t:e,findKey:M,global:z,isContextDefined:V,isSpecCompliantForm:function(t){return!!(t&&S(t.append)&&"FormData"===t[y]&&t[v])},toJSONObject:t=>{let e=Array(10),n=(t,r)=>{if(x(t)){if(e.indexOf(t)>=0)return;if(_(t))return t;if(!("toJSON"in t)){e[r]=t;let i=O(t)?[]:{};return I(t,(t,e)=>{let o=n(t,r+1);w(o)||(i[e]=o)}),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:W,isThenable:t=>t&&(x(t)||S(t))&&S(t.then)&&S(t.catch),setImmediate:Y,asap:Q,isIterable:t=>null!=t&&S(t[v])};function X(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}G.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});let Z=X.prototype,tt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{tt[t]={value:t}}),Object.defineProperties(X,tt),Object.defineProperty(Z,"isAxiosError",{value:!0}),X.from=(t,e,n,r,i,o)=>{let s=Object.create(Z);G.toFlatObject(t,s,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t);let a=t&&t.message?t.message:"Error",u=null==e&&t?t.code:e;return X.call(s,a,u,n,r,i),t&&null==s.cause&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",o&&Object.assign(s,o),s};var te=n(8963).Buffer;function tn(t){return G.isPlainObject(t)||G.isArray(t)}function tr(t){return G.endsWith(t,"[]")?t.slice(0,-2):t}function ti(t,e,n){return t?t.concat(e).map(function(t,e){return t=tr(t),!n&&e?"["+t+"]":t}).join(n?".":""):e}let to=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)}),ts=function(t,e,n){if(!G.isObject(t))throw TypeError("target must be an object");e=e||new FormData;let r=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!G.isUndefined(e[t])})).metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(e);if(!G.isFunction(i))throw TypeError("visitor must be a function");function u(t){if(null===t)return"";if(G.isDate(t))return t.toISOString();if(G.isBoolean(t))return t.toString();if(!a&&G.isBlob(t))throw new X("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(t)||G.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):te.from(t):t}function c(t,n,i){let a=t;if(t&&!i&&"object"==typeof t)if(G.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else{var c;if(G.isArray(t)&&(c=t,G.isArray(c)&&!c.some(tn))||(G.isFileList(t)||G.endsWith(n,"[]"))&&(a=G.toArray(t)))return n=tr(n),a.forEach(function(t,r){G.isUndefined(t)||null===t||e.append(!0===s?ti([n],r,o):null===s?n:n+"[]",u(t))}),!1}return!!tn(t)||(e.append(ti(i,n,o),u(t)),!1)}let l=[],f=Object.assign(to,{defaultVisitor:c,convertValue:u,isVisitable:tn});if(!G.isObject(t))throw TypeError("data must be an object");return!function t(n,r){if(!G.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),G.forEach(n,function(n,o){!0===(!(G.isUndefined(n)||null===n)&&i.call(e,n,G.isString(o)?o.trim():o,r,f))&&t(n,r?r.concat(o):[o])}),l.pop()}}(t),e};function ta(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function tu(t,e){this._pairs=[],t&&ts(t,this,e)}let tc=tu.prototype;function tl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tf(t,e,n){let r;if(!e)return t;let i=n&&n.encode||tl;G.isFunction(n)&&(n={serialize:n});let o=n&&n.serialize;if(r=o?o(e,n):G.isURLSearchParams(e)?e.toString():new tu(e,n).toString(i)){let e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}tc.append=function(t,e){this._pairs.push([t,e])},tc.toString=function(t){let e=t?function(e){return t.call(this,e,ta)}:ta;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};let th=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(e){null!==e&&t(e)})}},tp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},td="undefined"!=typeof URLSearchParams?URLSearchParams:tu,tg="undefined"!=typeof FormData?FormData:null,tv="undefined"!=typeof Blob?Blob:null,ty="undefined"!=typeof window&&"undefined"!=typeof document,tb="object"==typeof navigator&&navigator||void 0,tm=ty&&(!tb||0>["ReactNative","NativeScript","NS"].indexOf(tb.product)),tA="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tO=ty&&window.location.href||"http://localhost",tw={...f,isBrowser:!0,classes:{URLSearchParams:td,FormData:tg,Blob:tv},protocols:["http","https","file","blob","url","data"]},t_=function(t){if(G.isFormData(t)&&G.isFunction(t.entries)){let e={};return G.forEachEntry(t,(t,n)=>{!function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;let s=Number.isFinite(+o),a=i>=e.length;return(o=!o&&G.isArray(r)?r.length:o,a)?G.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n:(r[o]&&G.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&G.isArray(r[o])&&(r[o]=function(t){let e,n,r={},i=Object.keys(t),o=i.length;for(e=0;e<o;e++)r[n=i[e]]=t[n];return r}(r[o]))),!s}(G.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0]),n,e,0)}),e}return null},tk={transitional:tp,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){let n,r=e.getContentType()||"",i=r.indexOf("application/json")>-1,o=G.isObject(t);if(o&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return i?JSON.stringify(t_(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t)||G.isReadableStream(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1){var s,a;return(s=t,a=this.formSerializer,ts(s,new tw.classes.URLSearchParams,{visitor:function(t,e,n,r){return tw.isNode&&G.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...a})).toString()}if((n=G.isFileList(t))||r.indexOf("multipart/form-data")>-1){let e=this.env&&this.env.FormData;return ts(n?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(o||i){e.setContentType("application/json",!1);var u=t;if(G.isString(u))try{return(0,JSON.parse)(u),G.trim(u)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(u)}return t}],transformResponse:[function(t){let e=this.transitional||tk.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(G.isResponse(t)||G.isReadableStream(t))return t;if(t&&G.isString(t)&&(n&&!this.responseType||r)){let n=e&&e.silentJSONParsing;try{return JSON.parse(t,this.parseReviver)}catch(t){if(!n&&r){if("SyntaxError"===t.name)throw X.from(t,X.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tw.classes.FormData,Blob:tw.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],t=>{tk.headers[t]={}});let tj=G.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"]),tS=Symbol("internals");function tE(t){return t&&String(t).trim().toLowerCase()}function tx(t){return!1===t||null==t?t:G.isArray(t)?t.map(tx):String(t)}function tR(t,e,n,r,i){if(G.isFunction(r))return r.call(this,e,n);if(i&&(e=n),G.isString(e)){if(G.isString(r))return -1!==e.indexOf(r);if(G.isRegExp(r))return r.test(e)}}class tN{constructor(t){t&&this.set(t)}set(t,e,n){let r=this;function i(t,e,n){let i=tE(e);if(!i)throw Error("header name must be a non-empty string");let o=G.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||e]=tx(t))}let o=(t,e)=>G.forEach(t,(t,n)=>i(t,n,e));if(G.isPlainObject(t)||t instanceof this.constructor)o(t,e);else{let r;if(G.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let n,r,i,a;o((a={},(s=t)&&s.split("\n").forEach(function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||a[n]&&tj[n]||("set-cookie"===n?a[n]?a[n].push(r):a[n]=[r]:a[n]=a[n]?a[n]+", "+r:r)}),a),e)}else if(G.isObject(t)&&G.isIterable(t)){let n={},r,i;for(let e of t){if(!G.isArray(e))throw TypeError("Object iterator must return a key-value pair");n[i=e[0]]=(r=n[i])?G.isArray(r)?[...r,e[1]]:[r,e[1]]:e[1]}o(n,e)}else null!=t&&i(e,t,n)}return this}get(t,e){if(t=tE(t)){let n=G.findKey(this,t);if(n){let t=this[n];if(!e)return t;if(!0===e){let e,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;e=r.exec(t);)n[e[1]]=e[2];return n}if(G.isFunction(e))return e.call(this,t,n);if(G.isRegExp(e))return e.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=tE(t)){let n=G.findKey(this,t);return!!(n&&void 0!==this[n]&&(!e||tR(this,this[n],n,e)))}return!1}delete(t,e){let n=this,r=!1;function i(t){if(t=tE(t)){let i=G.findKey(n,t);i&&(!e||tR(n,n[i],i,e))&&(delete n[i],r=!0)}}return G.isArray(t)?t.forEach(i):i(t),r}clear(t){let e=Object.keys(this),n=e.length,r=!1;for(;n--;){let i=e[n];(!t||tR(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){let e=this,n={};return G.forEach(this,(r,i)=>{let o=G.findKey(n,i);if(o){e[o]=tx(r),delete e[i];return}let s=t?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n):String(i).trim();s!==i&&delete e[i],e[s]=tx(r),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let e=Object.create(null);return G.forEach(this,(n,r)=>{null!=n&&!1!==n&&(e[r]=t&&G.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){let n=new this(t);return e.forEach(t=>n.set(t)),n}static accessor(t){let e=(this[tS]=this[tS]={accessors:{}}).accessors,n=this.prototype;function r(t){let r=tE(t);if(!e[r]){let i;i=G.toCamelCase(" "+t),["get","set","has"].forEach(e=>{Object.defineProperty(n,e+i,{value:function(n,r,i){return this[e].call(this,t,n,r,i)},configurable:!0})}),e[r]=!0}}return G.isArray(t)?t.forEach(r):r(t),this}}function tP(t,e){let n=this||tk,r=e||n,i=tN.from(r.headers),o=r.data;return G.forEach(t,function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function tC(t){return!!(t&&t.__CANCEL__)}function tL(t,e,n){X.call(this,null==t?"canceled":t,X.ERR_CANCELED,e,n),this.name="CanceledError"}function tT(t,e,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}tN.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(tN.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),G.freezeMethods(tN),G.inherits(tL,X,{__CANCEL__:!0});let tF=function(t,e){let n,r=Array(t=t||10),i=Array(t),o=0,s=0;return e=void 0!==e?e:1e3,function(a){let u=Date.now(),c=i[s];n||(n=u),r[o]=a,i[o]=u;let l=s,f=0;for(;l!==o;)f+=r[l++],l%=t;if((o=(o+1)%t)===s&&(s=(s+1)%t),u-n<e)return;let h=c&&u-c;return h?Math.round(1e3*f/h):void 0}},tD=function(t,e){let n,r,i=0,o=1e3/e,s=(e,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),t(...e)};return[(...t)=>{let e=Date.now(),a=e-i;a>=o?s(t,e):(n=t,r||(r=setTimeout(()=>{r=null,s(n)},o-a)))},()=>n&&s(n)]},tB=(t,e,n=3)=>{let r=0,i=tF(50,250);return tD(n=>{let o=n.loaded,s=n.lengthComputable?n.total:void 0,a=o-r,u=i(a);r=o,t({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&o<=s?(s-o)/u:void 0,event:n,lengthComputable:null!=s,[e?"download":"upload"]:!0})},n)},tU=(t,e)=>{let n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},tI=t=>(...e)=>G.asap(()=>t(...e)),tM=tw.hasStandardBrowserEnv?(o=new URL(tw.origin),s=tw.navigator&&/(msie|trident)/i.test(tw.navigator.userAgent),t=>(t=new URL(t,tw.origin),o.protocol===t.protocol&&o.host===t.host&&(s||o.port===t.port))):()=>!0,tz=tw.hasStandardBrowserEnv?{write(t,e,n,r,i,o){let s=[t+"="+encodeURIComponent(e)];G.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),G.isString(r)&&s.push("path="+r),G.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(t){let e=document.cookie.match(RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function tV(t,e,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(r||!1==n)?e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t:e}let tq=t=>t instanceof tN?{...t}:t;function tK(t,e){e=e||{};let n={};function r(t,e,n,r){return G.isPlainObject(t)&&G.isPlainObject(e)?G.merge.call({caseless:r},t,e):G.isPlainObject(e)?G.merge({},e):G.isArray(e)?e.slice():e}function i(t,e,n,i){return G.isUndefined(e)?G.isUndefined(t)?void 0:r(void 0,t,n,i):r(t,e,n,i)}function o(t,e){if(!G.isUndefined(e))return r(void 0,e)}function s(t,e){return G.isUndefined(e)?G.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function a(n,i,o){return o in e?r(n,i):o in t?r(void 0,n):void 0}let u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e,n)=>i(tq(t),tq(e),n,!0)};return G.forEach(Object.keys({...t,...e}),function(r){let o=u[r]||i,s=o(t[r],e[r],r);G.isUndefined(s)&&o!==a||(n[r]=s)}),n}let t$=t=>{let e=tK({},t),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=e;if(e.headers=s=tN.from(s),e.url=tf(tV(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),G.isFormData(n)){if(tw.hasStandardBrowserEnv||tw.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(G.isFunction(n.getHeaders)){let t=n.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach(([t,n])=>{e.includes(t.toLowerCase())&&s.set(t,n)})}}if(tw.hasStandardBrowserEnv&&(r&&G.isFunction(r)&&(r=r(e)),r||!1!==r&&tM(e.url))){let t=i&&o&&tz.read(o);t&&s.set(i,t)}return e},tJ="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,n){var r;let i,o,s,a,u,c,l=t$(t),f=l.data,h=tN.from(l.headers).normalize(),{responseType:p,onUploadProgress:d,onDownloadProgress:g}=l;function v(){a&&a(),u&&u(),l.cancelToken&&l.cancelToken.unsubscribe(i),l.signal&&l.signal.removeEventListener("abort",i)}let y=new XMLHttpRequest;function b(){if(!y)return;let r=tN.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());tT(function(t){e(t),v()},function(t){n(t),v()},{data:p&&"text"!==p&&"json"!==p?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:t,request:y}),y=null}y.open(l.method.toUpperCase(),l.url,!0),y.timeout=l.timeout,"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||4!==y.readyState||(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(b)},y.onabort=function(){y&&(n(new X("Request aborted",X.ECONNABORTED,t,y)),y=null)},y.onerror=function(e){let r=new X(e&&e.message?e.message:"Network Error",X.ERR_NETWORK,t,y);r.event=e||null,n(r),y=null},y.ontimeout=function(){let e=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",r=l.transitional||tp;l.timeoutErrorMessage&&(e=l.timeoutErrorMessage),n(new X(e,r.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,t,y)),y=null},void 0===f&&h.setContentType(null),"setRequestHeader"in y&&G.forEach(h.toJSON(),function(t,e){y.setRequestHeader(e,t)}),G.isUndefined(l.withCredentials)||(y.withCredentials=!!l.withCredentials),p&&"json"!==p&&(y.responseType=l.responseType),g&&([s,u]=tB(g,!0),y.addEventListener("progress",s)),d&&y.upload&&([o,a]=tB(d),y.upload.addEventListener("progress",o),y.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(i=e=>{y&&(n(!e||e.type?new tL(null,t,y):e),y.abort(),y=null)},l.cancelToken&&l.cancelToken.subscribe(i),l.signal&&(l.signal.aborted?i():l.signal.addEventListener("abort",i)));let m=(r=l.url,(c=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r))&&c[1]||"");m&&-1===tw.protocols.indexOf(m)?n(new X("Unsupported protocol "+m+":",X.ERR_BAD_REQUEST,t)):y.send(f||null)})},tH=function*(t,e){let n,r=t.byteLength;if(!e||r<e)return void(yield t);let i=0;for(;i<r;)n=i+e,yield t.slice(i,n),i=n},tW=async function*(t,e){for await(let n of tY(t))yield*tH(n,e)},tY=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);let e=t.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},tQ=(t,e,n,r)=>{let i,o=tW(t,e),s=0,a=t=>{!i&&(i=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:e,value:r}=await o.next();if(e){a(),t.close();return}let i=r.byteLength;if(n){let t=s+=i;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw a(t),t}},cancel:t=>(a(t),o.return())},{highWaterMark:2})},{isFunction:tG}=G,tX=(({Request:t,Response:e})=>({Request:t,Response:e}))(G.global),{ReadableStream:tZ,TextEncoder:t0}=G.global,t1=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},t2=t=>{let e,{fetch:n,Request:r,Response:i}=t=G.merge.call({skipUndefined:!0},tX,t),o=n?tG(n):"function"==typeof fetch,s=tG(r),a=tG(i);if(!o)return!1;let u=o&&tG(tZ),c=o&&("function"==typeof t0?(e=new t0,t=>e.encode(t)):async t=>new Uint8Array(await new r(t).arrayBuffer())),l=s&&u&&t1(()=>{let t=!1,e=new r(tw.origin,{body:new tZ,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),f=a&&u&&t1(()=>G.isReadableStream(new i("").body)),h={stream:f&&(t=>t.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{h[t]||(h[t]=(e,n)=>{let r=e&&e[t];if(r)return r.call(e);throw new X(`Response type '${t}' is not supported`,X.ERR_NOT_SUPPORT,n)})});let p=async t=>{if(null==t)return 0;if(G.isBlob(t))return t.size;if(G.isSpecCompliantForm(t)){let e=new r(tw.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return G.isArrayBufferView(t)||G.isArrayBuffer(t)?t.byteLength:(G.isURLSearchParams(t)&&(t+=""),G.isString(t))?(await c(t)).byteLength:void 0},d=async(t,e)=>{let n=G.toFiniteNumber(t.getContentLength());return null==n?p(e):n};return async t=>{let e,{url:o,method:a,data:u,signal:c,cancelToken:p,timeout:g,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:m,withCredentials:A="same-origin",fetchOptions:O}=t$(t),w=n||fetch;b=b?(b+"").toLowerCase():"text";let _=((t,e)=>{let{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,r=new AbortController,i=function(t){if(!n){n=!0,s();let e=t instanceof Error?t:this.reason;r.abort(e instanceof X?e:new tL(e instanceof Error?e.message:e))}},o=e&&setTimeout(()=>{o=null,i(new X(`timeout ${e} of ms exceeded`,X.ETIMEDOUT))},e),s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(i):t.removeEventListener("abort",i)}),t=null)};t.forEach(t=>t.addEventListener("abort",i));let{signal:a}=r;return a.unsubscribe=()=>G.asap(s),a}})([c,p&&p.toAbortSignal()],g),k=null,j=_&&_.unsubscribe&&(()=>{_.unsubscribe()});try{if(y&&l&&"get"!==a&&"head"!==a&&0!==(e=await d(m,u))){let t,n=new r(o,{method:"POST",body:u,duplex:"half"});if(G.isFormData(u)&&(t=n.headers.get("content-type"))&&m.setContentType(t),n.body){let[t,r]=tU(e,tB(tI(y)));u=tQ(n.body,65536,t,r)}}G.isString(A)||(A=A?"include":"omit");let n=s&&"credentials"in r.prototype,c={...O,signal:_,method:a.toUpperCase(),headers:m.normalize().toJSON(),body:u,duplex:"half",credentials:n?A:void 0};k=s&&new r(o,c);let p=await (s?w(k,O):w(o,c)),g=f&&("stream"===b||"response"===b);if(f&&(v||g&&j)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=p[e]});let e=G.toFiniteNumber(p.headers.get("content-length")),[n,r]=v&&tU(e,tB(tI(v),!0))||[];p=new i(tQ(p.body,65536,n,()=>{r&&r(),j&&j()}),t)}b=b||"text";let S=await h[G.findKey(h,b)||"text"](p,t);return!g&&j&&j(),await new Promise((e,n)=>{tT(e,n,{data:S,headers:tN.from(p.headers),status:p.status,statusText:p.statusText,config:t,request:k})})}catch(e){if(j&&j(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new X("Network Error",X.ERR_NETWORK,t,k),{cause:e.cause||e});throw X.from(e,e&&e.code,t,k)}}},t4=new Map,t3=t=>{let e=t?t.env:{},{fetch:n,Request:r,Response:i}=e,o=[r,i,n],s=o.length,a,u,c=t4;for(;s--;)a=o[s],void 0===(u=c.get(a))&&c.set(a,u=s?new Map:t2(e)),c=u;return u};t3();let t8={http:null,xhr:tJ,fetch:{get:t3}};G.forEach(t8,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});let t6=t=>`- ${t}`,t7=t=>G.isFunction(t)||null===t||!1===t,t5=(t,e)=>{let n,r,{length:i}=t=G.isArray(t)?t:[t],o={};for(let s=0;s<i;s++){let i;if(r=n=t[s],!t7(n)&&void 0===(r=t8[(i=String(n)).toLowerCase()]))throw new X(`Unknown adapter '${i}'`);if(r&&(G.isFunction(r)||(r=r.get(e))))break;o[i||"#"+s]=r}if(!r){let t=Object.entries(o).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));throw new X("There is no suitable adapter to dispatch the request "+(i?t.length>1?"since :\n"+t.map(t6).join("\n"):" "+t6(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function t9(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new tL(null,t)}function et(t){return t9(t),t.headers=tN.from(t.headers),t.data=tP.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),t5(t.adapter||tk.adapter,t)(t).then(function(e){return t9(t),e.data=tP.call(t,t.transformResponse,e),e.headers=tN.from(e.headers),e},function(e){return!tC(e)&&(t9(t),e&&e.response&&(e.response.data=tP.call(t,t.transformResponse,e.response),e.response.headers=tN.from(e.response.headers))),Promise.reject(e)})}let ee={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ee[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});let en={};ee.transitional=function(t,e,n){function r(t,e){return"[Axios v1.12.2] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new X(r(i," has been removed"+(e?" in "+e:"")),X.ERR_DEPRECATED);return e&&!en[i]&&(en[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}},ee.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};let er=function(t,e,n){if("object"!=typeof t)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),i=r.length;for(;i-- >0;){let o=r[i],s=e[o];if(s){let e=t[o],n=void 0===e||s(e,o,t);if(!0!==n)throw new X("option "+o+" must be "+n,X.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new X("Unknown option "+o,X.ERR_BAD_OPTION)}};class ei{constructor(t){this.defaults=t||{},this.interceptors={request:new th,response:new th}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=Error();let n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){let n,r;"string"==typeof t?(e=e||{}).url=t:e=t||{};let{transitional:i,paramsSerializer:o,headers:s}=e=tK(this.defaults,e);void 0!==i&&er(i,{silentJSONParsing:ee.transitional(ee.boolean),forcedJSONParsing:ee.transitional(ee.boolean),clarifyTimeoutError:ee.transitional(ee.boolean)},!1),null!=o&&(G.isFunction(o)?e.paramsSerializer={serialize:o}:er(o,{encode:ee.function,serialize:ee.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),er(e,{baseUrl:ee.spelling("baseURL"),withXsrfToken:ee.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let a=s&&G.merge(s.common,s[e.method]);s&&G.forEach(["delete","get","head","post","put","patch","common"],t=>{delete s[t]}),e.headers=tN.concat(a,s);let u=[],c=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(e))&&(c=c&&t.synchronous,u.unshift(t.fulfilled,t.rejected))});let l=[];this.interceptors.response.forEach(function(t){l.push(t.fulfilled,t.rejected)});let f=0;if(!c){let t=[et.bind(this),void 0];for(t.unshift(...u),t.push(...l),r=t.length,n=Promise.resolve(e);f<r;)n=n.then(t[f++],t[f++]);return n}r=u.length;let h=e;for(;f<r;){let t=u[f++],e=u[f++];try{h=t(h)}catch(t){e.call(this,t);break}}try{n=et.call(this,h)}catch(t){return Promise.reject(t)}for(f=0,r=l.length;f<r;)n=n.then(l[f++],l[f++]);return n}getUri(t){return tf(tV((t=tK(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(t){ei.prototype[t]=function(e,n){return this.request(tK(n||{},{method:t,url:e,data:(n||{}).data}))}}),G.forEach(["post","put","patch"],function(t){function e(e){return function(n,r,i){return this.request(tK(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ei.prototype[t]=e(),ei.prototype[t+"Form"]=e(!0)});class eo{constructor(t){let e;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){e=t});const n=this;this.promise.then(t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null}),this.promise.then=t=>{let e,r=new Promise(t=>{n.subscribe(t),e=t}).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t(function(t,r,i){n.reason||(n.reason=new tL(t,r,i),e(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){let t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new eo(function(e){t=e}),cancel:t}}}let es={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};Object.entries(es).forEach(([t,e])=>{es[e]=t});let ea=function t(e){let n=new ei(e),r=h(ei.prototype.request,n);return G.extend(r,ei.prototype,n,{allOwnKeys:!0}),G.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(tK(e,n))},r}(tk);ea.Axios=ei,ea.CanceledError=tL,ea.CancelToken=eo,ea.isCancel=tC,ea.VERSION="1.12.2",ea.toFormData=ts,ea.AxiosError=X,ea.Cancel=ea.CanceledError,ea.all=function(t){return Promise.all(t)},ea.spread=function(t){return function(e){return t.apply(null,e)}},ea.isAxiosError=function(t){return G.isObject(t)&&!0===t.isAxiosError},ea.mergeConfig=tK,ea.AxiosHeaders=tN,ea.formToJSON=t=>t_(G.isHTMLForm(t)?new FormData(t):t),ea.getAdapter=t5,ea.HttpStatusCode=es,ea.default=ea;let eu=ea},6269:function(t,e,n){"use strict";n.d(e,{Ay:()=>ts,t:()=>to});var r=n(60615),i=n(25666),o=n(13012),s=n(87700),a=n(59746),u=n(81803),c=n(55137),l=n(24412),f=n(91634);function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach(function(e){(0,l.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var d={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},g=new(function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.A)(this,t),this.init(e,n)}return(0,o.A)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||d,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,n,r){return r&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,p(p({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}},{key:"clone",value:function(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new t(this.logger,e)}}]),t}()),v=function(){function t(){(0,i.A)(this,t),this.observers={}}return(0,o.A)(t,[{key:"on",value:function(t,e){var n=this;return t.split(" ").forEach(function(t){n.observers[t]=n.observers[t]||[],n.observers[t].push(e)}),this}},{key:"off",value:function(t,e){if(this.observers[t]){if(!e)return void delete this.observers[t];this.observers[t]=this.observers[t].filter(function(t){return t!==e})}}},{key:"emit",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.observers[t]&&[].concat(this.observers[t]).forEach(function(t){t.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(e){e.apply(e,[t].concat(n))})}}]),t}();function y(){var t,e,n=new Promise(function(n,r){t=n,e=r});return n.resolve=t,n.reject=e,n}function b(t){return null==t?"":""+t}function m(t,e,n){function r(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function i(){return!t||"string"==typeof t}for(var o="string"!=typeof e?[].concat(e):e.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!t[s]&&n&&(t[s]=new n),t=Object.prototype.hasOwnProperty.call(t,s)?t[s]:{}}return i()?{}:{obj:t,k:r(o.shift())}}function A(t,e,n){var r=m(t,e,Object);r.obj[r.k]=n}function O(t,e){var n=m(t,e),r=n.obj,i=n.k;if(r)return r[i]}function w(t,e,n){var r=O(t,n);return void 0!==r?r:O(e,n)}function _(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function j(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,function(t){return k[t]}):t}var S="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,E=[" ",",","?","!",";"];function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach(function(e){(0,l.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var N=function(t){(0,a.A)(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=(0,c.A)(r);return t=e?Reflect.construct(n,arguments,(0,c.A)(this).constructor):n.apply(this,arguments),(0,u.A)(this,t)});function r(t){var e,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,i.A)(this,r),e=n.call(this),S&&v.call((0,s.A)(e)),e.data=t||{},e.options=o,void 0===e.options.keySeparator&&(e.options.keySeparator="."),void 0===e.options.ignoreJSONStructure&&(e.options.ignoreJSONStructure=!0),e}return(0,o.A)(r,[{key:"addNamespaces",value:function(t){0>this.options.ns.indexOf(t)&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[t,e];n&&"string"!=typeof n&&(s=s.concat(n)),n&&"string"==typeof n&&(s=s.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(s=t.split("."));var a=O(this.data,s);return a||!o||"string"!=typeof n?a:function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[n])return e[n];for(var i=n.split(r),o=e,s=0;s<i.length;++s){if(!o||"string"==typeof o[i[s]]&&s+1<i.length)return;if(void 0===o[i[s]]){for(var a=2,u=i.slice(s,s+a).join(r),c=o[u];void 0===c&&i.length>s+a;)a++,c=o[u=i.slice(s,s+a).join(r)];if(void 0===c)return;if(null===c)return null;if(n.endsWith(u)){if("string"==typeof c)return c;if(u&&"string"==typeof c[u])return c[u]}var l=i.slice(s+a).join(r);if(l)return t(c,l,r);return}o=o[i[s]]}return o}}(this.data&&this.data[t]&&this.data[t][e],n,i)}},{key:"addResource",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var s=[t,e];n&&(s=s.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(s=t.split("."),r=e,e=s[1]),this.addNamespaces(e),A(this.data,s,r),i.silent||this.emit("added",t,e,n,r)}},{key:"addResources",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)("string"==typeof n[i]||"[object Array]"===Object.prototype.toString.apply(n[i]))&&this.addResource(t,e,i,n[i],{silent:!0});r.silent||this.emit("added",t,e,n)}},{key:"addResourceBundle",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[t,e];t.indexOf(".")>-1&&(s=t.split("."),r=n,n=e,e=s[1]),this.addNamespaces(e);var a=O(this.data,s)||{};r?function t(e,n,r){for(var i in n)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?r&&(e[i]=n[i]):t(e[i],n[i],r):e[i]=n[i]);return e}(a,n,i):a=R(R({},a),n),A(this.data,s,a),o.silent||this.emit("added",t,e,n)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return(e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?R(R({},{}),this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function(t){var e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find(function(t){return e[t]&&Object.keys(e[t]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(v),P={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,i){var o=this;return t.forEach(function(t){o.processors[t]&&(e=o.processors[t].process(e,n,r,i))}),e}};function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach(function(e){(0,l.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var T={},F=function(t){(0,a.A)(l,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=(0,c.A)(l);return t=e?Reflect.construct(n,arguments,(0,c.A)(this).constructor):n.apply(this,arguments),(0,u.A)(this,t)});function l(t){var e,r,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.A)(this,l),o=n.call(this),S&&v.call((0,s.A)(o)),e=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=(0,s.A)(o),e.forEach(function(e){t[e]&&(r[e]=t[e])}),o.options=a,void 0===o.options.keySeparator&&(o.options.keySeparator="."),o.logger=g.create("translator"),o}return(0,o.A)(l,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;var n=this.resolve(t,e);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(t,e){var n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,i=e.ns||this.options.defaultNS||[],o=n&&t.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!e.keySeparator&&!this.options.userDefinedNsSeparator&&!e.nsSeparator&&!function(t,e,n){e=e||"",n=n||"";var r=E.filter(function(t){return 0>e.indexOf(t)&&0>n.indexOf(t)});if(0===r.length)return!0;var i=new RegExp("(".concat(r.map(function(t){return"?"===t?"\\?":t}).join("|"),")")),o=!i.test(t);if(!o){var s=t.indexOf(n);s>0&&!i.test(t.substring(0,s))&&(o=!0)}return o}(t,n,r);if(o&&!s){var a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:i};var u=t.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(r)}return"string"==typeof i&&(i=[i]),{key:t,namespaces:i}}},{key:"translate",value:function(t,e,n){var i=this;if("object"!==(0,r.A)(e)&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var o=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,s=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,a=this.extractFromKey(t[t.length-1],e),u=a.key,c=a.namespaces,f=c[c.length-1],h=e.lng||this.language,p=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&"cimode"===h.toLowerCase()){if(p){var d=e.nsSeparator||this.options.nsSeparator;return o?(g.res="".concat(f).concat(d).concat(u),g):"".concat(f).concat(d).concat(u)}return o?(g.res=u,g):u}var g=this.resolve(t,e),v=g&&g.res,y=g&&g.usedKey||u,b=g&&g.exactUsedKey||u,m=Object.prototype.toString.apply(v),A=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof v&&"boolean"!=typeof v&&"number"!=typeof v;if(O&&v&&w&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(m)&&("string"!=typeof A||"[object Array]"!==m)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,v,L(L({},e),{},{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(g.res=_,g):_}if(s){var k="[object Array]"===m,j=k?[]:{},S=k?b:y;for(var E in v)if(Object.prototype.hasOwnProperty.call(v,E)){var x="".concat(S).concat(s).concat(E);j[E]=this.translate(x,L(L({},e),{joinArrays:!1,ns:c})),j[E]===x&&(j[E]=v[E])}v=j}}else if(O&&"string"==typeof A&&"[object Array]"===m)(v=v.join(A))&&(v=this.extendTranslation(v,t,e,n));else{var R=!1,N=!1,P=void 0!==e.count&&"string"!=typeof e.count,C=l.hasDefaultValue(e),T=P?this.pluralResolver.getSuffix(h,e.count,e):"",F=e["defaultValue".concat(T)]||e.defaultValue;!this.isValidLookup(v)&&C&&(R=!0,v=F),this.isValidLookup(v)||(N=!0,v=u);var D=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N?void 0:v,B=C&&F!==v&&this.options.updateMissing;if(N||R||B){if(this.logger.log(B?"updateKey":"missingKey",h,f,u,B?F:v),s){var U=this.resolve(u,L(L({},e),{},{keySeparator:!1}));U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var I=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var z=0;z<M.length;z++)I.push(M[z]);else"all"===this.options.saveMissingTo?I=this.languageUtils.toResolveHierarchy(e.lng||this.language):I.push(e.lng||this.language);var V=function(t,n,r){var o=C&&r!==v?r:D;i.options.missingKeyHandler?i.options.missingKeyHandler(t,f,n,o,B,e):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(t,f,n,o,B,e),i.emit("missingKey",t,f,n,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?I.forEach(function(t){i.pluralResolver.getSuffixes(t,e).forEach(function(n){V([t],u+n,e["defaultValue".concat(n)]||F)})}):V(I,u,F))}v=this.extendTranslation(v,t,e,g,n),N&&v===u&&this.options.appendNamespaceToMissingKey&&(v="".concat(f,":").concat(u)),(N||R)&&this.options.parseMissingKeyHandler&&(v="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(f,":").concat(u):u,R?v:void 0):this.options.parseMissingKeyHandler(v))}return o?(g.res=v,g):v}},{key:"extendTranslation",value:function(t,e,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,L(L({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(L(L({},n),{interpolation:L(L({},this.options.interpolation),n.interpolation)}));var s,a="string"==typeof t&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){var u=t.match(this.interpolator.nestingRegexp);s=u&&u.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=L(L({},this.options.interpolation.defaultVariables),c)),t=this.interpolator.interpolate(t,c,n.lng||this.language,n),a){var l=t.match(this.interpolator.nestingRegexp);s<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(t=this.interpolator.nest(t,function(){for(var t=arguments.length,r=Array(t),s=0;s<t;s++)r[s]=arguments[s];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(e[0])),null):o.translate.apply(o,r.concat([e]))},n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,h="string"==typeof f?[f]:f;return null!=t&&h&&h.length&&!1!==n.applyPostProcessor&&(t=P.handle(h,t,e,this.options&&this.options.postProcessPassResolved?L({i18nResolved:r},n):n,this)),t}},{key:"resolve",value:function(t){var e,n,r,i,o,s=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach(function(t){if(!s.isValidLookup(e)){var u=s.extractFromKey(t,a),c=u.key;n=c;var l=u.namespaces;s.options.fallbackNS&&(l=l.concat(s.options.fallbackNS));var f=void 0!==a.count&&"string"!=typeof a.count,h=f&&!a.ordinal&&0===a.count&&s.pluralResolver.shouldUseIntlApi(),p=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,d=a.lngs?a.lngs:s.languageUtils.toResolveHierarchy(a.lng||s.language,a.fallbackLng);l.forEach(function(t){s.isValidLookup(e)||(o=t,!T["".concat(d[0],"-").concat(t)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(o)&&(T["".concat(d[0],"-").concat(t)]=!0,s.logger.warn('key "'.concat(n,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(o,'" 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!!!")),d.forEach(function(n){if(!s.isValidLookup(e)){i=n;var o,u=[c];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(u,c,n,t,a);else{f&&(l=s.pluralResolver.getSuffix(n,a.count,a));var l,d="".concat(s.options.pluralSeparator,"zero");if(f&&(u.push(c+l),h&&u.push(c+d)),p){var g="".concat(c).concat(s.options.contextSeparator).concat(a.context);u.push(g),f&&(u.push(g+l),h&&u.push(g+d))}}for(;o=u.pop();)s.isValidLookup(e)||(r=o,e=s.getResource(n,t,o,a))}}))})}}),{res:e,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,r):this.resourceStore.getResource(t,e,n,r)}}],[{key:"hasDefaultValue",value:function(t){var e="defaultValue";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e===n.substring(0,e.length)&&void 0!==t[n])return!0;return!1}}]),l}(v);function D(t){return t.charAt(0).toUpperCase()+t.slice(1)}var B=function(){function t(e){(0,i.A)(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=g.create("languageUtils")}return(0,o.A)(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||0>t.indexOf("-"))return null;var e=t.split("-");return 2===e.length||(e.pop(),"x"===e[e.length-1].toLowerCase())?null:this.formatLanguageCode(e.join("-"))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||0>t.indexOf("-"))return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"==typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map(function(t){return t.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=D(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=D(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=D(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,n=this;return t?(t.forEach(function(t){if(!e){var r=n.formatLanguageCode(t);(!n.options.supportedLngs||n.isSupportedCode(r))&&(e=r)}}),!e&&this.options.supportedLngs&&t.forEach(function(t){if(!e){var r=n.getLanguagePartFromCode(t);if(n.isSupportedCode(r))return e=r;e=n.options.supportedLngs.find(function(t){if(0===t.indexOf(r))return t})}}),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,e){var n=this,r=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],o=function(t){t&&(n.isSupportedCode(t)?i.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):"string"==typeof t&&o(this.formatLanguageCode(t)),r.forEach(function(t){0>i.indexOf(t)&&o(n.formatLanguageCode(t))}),i}}]),t}(),U=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],I={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(+(1!=t&&(t%10!=1||t%100==11)))},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:3*(t%100==3||t%100==4))},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}},M=["v1","v2","v3"],z={zero:0,one:1,two:2,few:3,many:4,other:5},V=function(){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.A)(this,t),this.languageUtils=e,this.options=r,this.logger=g.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},U.forEach(function(t){t.lngs.forEach(function(e){n[e]={numbers:t.nr,plurals:I[t.fc]}})}),n)}return(0,o.A)(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(t,{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map(function(t){return"".concat(e).concat(t)})}},{key:"getSuffixes",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(t,e){return z[t]-z[e]}).map(function(t){return"".concat(e.options.prepend).concat(t)}):r.numbers.map(function(r){return e.getSuffix(t,r,n)}):[]}},{key:"getSuffix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(t,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(e)):this.getSuffixRetroCompatible(r,e):(this.logger.warn("no plural rule found for: ".concat(t)),"")}},{key:"getSuffixRetroCompatible",value:function(t,e){var n=this,r=t.noAbs?t.plurals(e):t.plurals(Math.abs(e)),i=t.numbers[r];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!M.includes(this.options.compatibilityJSON)}}]),t}();function q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?q(Object(n),!0).forEach(function(e){(0,l.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var $=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.A)(this,t),this.logger=g.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return(0,o.A)(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:j,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?_(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?_(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?_(e.nestingPrefix):e.nestingPrefixEscaped||_("$t("),this.nestingSuffix=e.nestingSuffix?_(e.nestingSuffix):e.nestingSuffixEscaped||_(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(e,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(t,e,n,r){var i,o,s,a=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(t){return t.replace(/\$/g,"$$$$")}var l=function(t){if(0>t.indexOf(a.formatSeparator)){var i=w(e,u,t);return a.alwaysFormat?a.format(i,void 0,n,K(K(K({},r),e),{},{interpolationkey:t})):i}var o=t.split(a.formatSeparator),s=o.shift().trim(),c=o.join(a.formatSeparator).trim();return a.format(w(e,u,s),c,n,K(K(K({},r),e),{},{interpolationkey:s}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,h=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return c(t)}},{regex:this.regexp,safeValue:function(t){return a.escapeValue?c(a.escape(t)):c(t)}}].forEach(function(e){for(s=0;i=e.regex.exec(t);){var n=i[1].trim();if(void 0===(o=l(n)))if("function"==typeof f){var u=f(t,i,r);o="string"==typeof u?u:""}else if(r&&r.hasOwnProperty(n))o="";else if(h){o=i[0];continue}else a.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(t)),o="";else"string"==typeof o||a.useRawValueToEscape||(o=b(o));var c=e.safeValue(o);if(t=t.replace(i[0],c),h?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,++s>=a.maxReplaces)break}}),t}},{key:"nest",value:function(t,e){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=K({},o);function a(t,e){var n=this.nestingOptionsSeparator;if(0>t.indexOf(n))return t;var r=t.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);t=r[0];var o=(i=this.interpolate(i,s)).match(/'/g),a=i.match(/"/g);(o&&o.length%2==0&&!a||a.length%2!=0)&&(i=i.replace(/'/g,'"'));try{s=JSON.parse(i),e&&(s=K(K({},e),s))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(n).concat(i)}return delete s.defaultValue,t}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(t);){var u=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map(function(t){return t.trim()});n[1]=l.shift(),u=l,c=!0}if((r=e(a.call(this,n[1].trim(),s),s))&&n[0]===t&&"string"!=typeof r)return r;"string"!=typeof r&&(r=b(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),r=""),c&&(r=u.reduce(function(t,e){return i.format(t,e,o.lng,K(K({},o),{},{interpolationkey:n[1].trim()}))},r.trim())),t=t.replace(n[0],r),this.regexp.lastIndex=0}return t}}]),t}();function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach(function(e){(0,l.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function W(t){var e={};return function(n,r,i){var o=r+JSON.stringify(i),s=e[o];return s||(s=t(r,i),e[o]=s),s(n)}}var Y=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.A)(this,t),this.logger=g.create("formatter"),this.options=e,this.formats={number:W(function(t,e){var n=new Intl.NumberFormat(t,e);return function(t){return n.format(t)}}),currency:W(function(t,e){var n=new Intl.NumberFormat(t,H(H({},e),{},{style:"currency"}));return function(t){return n.format(t)}}),datetime:W(function(t,e){var n=new Intl.DateTimeFormat(t,H({},e));return function(t){return n.format(t)}}),relativetime:W(function(t,e){var n=new Intl.RelativeTimeFormat(t,H({},e));return function(t){return n.format(t,e.range||"day")}}),list:W(function(t,e){var n=new Intl.ListFormat(t,H({},e));return function(t){return n.format(t)}})},this.init(e)}return(0,o.A)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=e.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(t,e){this.formats[t.toLowerCase().trim()]=e}},{key:"addCached",value:function(t,e){this.formats[t.toLowerCase().trim()]=W(e)}},{key:"format",value:function(t,e,n,r){var i=this;return e.split(this.formatSeparator).reduce(function(t,e){var o=function(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===e&&0>i.indexOf(":")?n.currency||(n.currency=i.trim()):"relativetime"===e&&0>i.indexOf(":")?n.range||(n.range=i.trim()):i.split(";").forEach(function(t){if(t){var e=t.split(":"),r=(0,f.A)(e),i=r[0],o=r.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[i.trim()]||(n[i.trim()]=o),"false"===o&&(n[i.trim()]=!1),"true"===o&&(n[i.trim()]=!0),isNaN(o)||(n[i.trim()]=parseInt(o,10))}})}return{formatName:e,formatOptions:n}}(e),s=o.formatName,a=o.formatOptions;if(i.formats[s]){var u=t;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=c.locale||c.lng||r.locale||r.lng||n;u=i.formats[s](t,l,H(H(H({},a),r),c))}catch(t){i.logger.warn(t)}return u}return i.logger.warn("there was no format function for ".concat(s)),t},t)}}]),t}();function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(n),!0).forEach(function(e){(0,l.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var X=function(t){(0,a.A)(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=(0,c.A)(r);return t=e?Reflect.construct(n,arguments,(0,c.A)(this).constructor):n.apply(this,arguments),(0,u.A)(this,t)});function r(t,e,o){var a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,i.A)(this,r),a=n.call(this),S&&v.call((0,s.A)(a)),a.backend=t,a.store=e,a.services=o,a.languageUtils=o.languageUtils,a.options=u,a.logger=g.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=u.maxParallelReads||10,a.readingCalls=0,a.maxRetries=u.maxRetries>=0?u.maxRetries:5,a.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,u.backend,u),a}return(0,o.A)(r,[{key:"queueLoad",value:function(t,e,n,r){var i=this,o={},s={},a={},u={};return t.forEach(function(t){var r=!0;e.forEach(function(e){var a="".concat(t,"|").concat(e);!n.reload&&i.store.hasResourceBundle(t,e)?i.state[a]=2:i.state[a]<0||(1===i.state[a]?void 0===s[a]&&(s[a]=!0):(i.state[a]=1,r=!1,void 0===s[a]&&(s[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===u[e]&&(u[e]=!0)))}),r||(a[t]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(t,e,n){var r=t.split("|"),i=r[0],o=r[1];e&&this.emit("failedLoading",i,o,e),n&&this.store.addResourceBundle(i,o,n),this.state[t]=e?-1:2;var s={};this.queue.forEach(function(n){var r,a,u,c;r=n.loaded,(u=(a=m(r,[i],Object)).obj)[c=a.k]=u[c]||[],u[c].push(o),void 0!==n.pending[t]&&(delete n.pending[t],n.pendingCount--),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(t){s[t]||(s[t]={});var e=n.loaded[t];e.length&&e.forEach(function(e){void 0===s[t][e]&&(s[t][e]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(t){return!t.done})}},{key:"read",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;return t.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:t,ns:e,fcName:n,tried:i,wait:o,callback:s}):(this.readingCalls++,this.backend[n](t,e,function(a,u){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}a&&u&&i<r.maxRetries?setTimeout(function(){r.read.call(r,t,e,n,i+1,2*o,s)},o):s(a,u)})):s(null,{})}},{key:"prepareLoading",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var o=this.queueLoad(t,e,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(function(t){n.loadOne(t)})}},{key:"load",value:function(t,e,n){this.prepareLoading(t,e,{},n)}},{key:"reload",value:function(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}},{key:"loadOne",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,function(r,s){r&&e.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&s&&e.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),s),e.loaded(t,r,s)})}},{key:"saveMissing",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(e,'" 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!!!"):null==n||""===n||(this.backend&&this.backend.create&&this.backend.create(t,e,n,r,null,G(G({},o),{},{isUpdate:i})),t&&t[0]&&this.store.addResource(t[0],e,n,r))}}]),r}(v);function Z(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&0>t.supportedLngs.indexOf("cimode")&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(n),!0).forEach(function(e){(0,l.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function tn(){}var tr=function(t){(0,a.A)(l,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=(0,c.A)(l);return t=e?Reflect.construct(n,arguments,(0,c.A)(this).constructor):n.apply(this,arguments),(0,u.A)(this,t)});function l(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if((0,i.A)(this,l),e=n.call(this),S&&v.call((0,s.A)(e)),e.options=Z(r),e.services={},e.logger=g,e.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(t=(0,s.A)(e))).forEach(function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),o&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,o),(0,u.A)(e,(0,s.A)(e));setTimeout(function(){e.init(r,o)},0)}return e}return(0,o.A)(l,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));var i={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if("object"===(0,r.A)(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===(0,r.A)(t[2])||"object"===(0,r.A)(t[3])){var n=t[3]||t[2];Object.keys(n).forEach(function(t){e[t]=n[t]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function o(t){return t?"function"==typeof t?new t:t:null}if(this.options=te(te(te({},i),this.options),Z(e)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=te(te({},i.interpolation),this.options.interpolation)),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){this.modules.logger?g.init(o(this.modules.logger),this.options):g.init(null,this.options),this.modules.formatter?s=this.modules.formatter:"undefined"!=typeof Intl&&(s=Y);var s,a=new B(this.options);this.store=new N(this.options.resources,this.options);var u=this.services;u.logger=g,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new V(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(u.formatter=o(s),u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new $(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new X(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))}),this.modules.languageDetector&&(u.languageDetector=o(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=o(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new F(this.services,this.options),this.translator.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(t)})}if(this.format=this.options.interpolation.format,n||(n=tn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[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(function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}});var l=y(),f=function(){var e=function(e,r){t.isInitialized&&!t.initializedStoreOnce&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(r),n(e,r)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return e(null,t.t.bind(t));t.changeLanguage(t.options.lng,e)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),l}},{key:"loadResources",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn,r=n,i="string"==typeof t?t:this.language;if("function"==typeof t&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],s=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach(function(t){0>o.indexOf(t)&&o.push(t)})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(t){return s(t)}),this.options.preload&&this.options.preload.forEach(function(t){return s(t)}),this.services.backendConnector.load(o,this.options.ns,function(t){t||e.resolvedLanguage||!e.language||e.setResolvedLanguage(e.language),r(t)})}else r(null)}},{key:"reloadResources",value:function(t,e,n){var r=y();return t||(t=this.languages),e||(e=this.options.ns),n||(n=tn),this.services.backendConnector.reload(t,e,function(t){r.resolve(),n(t)}),r}},{key:"use",value:function(t){if(!t)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&P.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"setResolvedLanguage",value:function(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(var e=0;e<this.languages.length;e++){var n=this.languages[e];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(t,e){var n=this;this.isLanguageChangingTo=t;var r=y();this.emit("languageChanging",t);var i=function(t){n.language=t,n.languages=n.services.languageUtils.toResolveHierarchy(t),n.resolvedLanguage=void 0,n.setResolvedLanguage(t)},o=function(t,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),e&&e(t,function(){return n.t.apply(n,arguments)})},s=function(e){t||e||!n.services.languageDetector||(e=[]);var r="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);r&&(n.language||i(r),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,function(t){o(t,r)})};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(s):s(t):s(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(t,e,n){var i=this,o=function t(e,o){if("object"!==(0,r.A)(o)){for(var s,a=arguments.length,u=Array(a>2?a-2:0),c=2;c<a;c++)u[c-2]=arguments[c];s=i.options.overloadTranslationOptionHandler([e,o].concat(u))}else s=te({},o);s.lng=s.lng||t.lng,s.lngs=s.lngs||t.lngs,s.ns=s.ns||t.ns,s.keyPrefix=s.keyPrefix||n||t.keyPrefix;var l=i.options.keySeparator||".",f=s.keyPrefix?"".concat(s.keyPrefix).concat(l).concat(e):e;return i.t(f,s)};return"string"==typeof t?o.lng=t:o.lngs=t,o.ns=e,o.keyPrefix=n,o}},{key:"t",value:function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var s=function(t,n){var r=e.services.backendConnector.state["".concat(t,"|").concat(n)];return -1===r||2===r};if(n.precheck){var a=n.precheck(this,s);if(void 0!==a)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!i||s(o,t)))}},{key:"loadNamespaces",value:function(t,e){var n=this,r=y();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach(function(t){0>n.options.ns.indexOf(t)&&n.options.ns.push(t)}),this.loadResources(function(t){r.resolve(),e&&e(t)}),r):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var n=y();"string"==typeof t&&(t=[t]);var r=this.options.preload||[],i=t.filter(function(t){return 0>r.indexOf(t)});return i.length?(this.options.preload=r.concat(i),this.loadResources(function(t){n.resolve(),e&&e(t)}),n):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){return(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),t)?["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn,r=te(te(te({},this.options),e),{isClone:!0}),i=new l(r);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(function(e){i[e]=t[e]}),i.services=te({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new F(i.services,i.options),i.translator.on("*",function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];i.emit.apply(i,[t].concat(n))}),i.init(r,n),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),l}(v);(0,l.A)(tr,"createInstance",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new tr(t,e)});var ti=tr.createInstance();ti.createInstance=tr.createInstance,ti.createInstance,ti.init,ti.loadResources,ti.reloadResources,ti.use,ti.changeLanguage,ti.getFixedT;var to=ti.t;ti.exists,ti.setDefaultNamespace,ti.hasLoadedNamespace,ti.loadNamespaces,ti.loadLanguages;let ts=ti},2839:function(t,e,n){"use strict";n.d(e,{A:()=>a});var r=n(78056);let i=function(t,e){for(var n=t.length;n--;)if((0,r.A)(t[n][0],e))return n;return -1};var o=Array.prototype.splice;function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)},s.prototype.get=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]},s.prototype.has=function(t){return i(this.__data__,t)>-1},s.prototype.set=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};let a=s},94287:function(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(18749),i=n(21341);let o=(0,r.A)(i.A,"Map")},8349:function(t,e,n){"use strict";n.d(e,{A:()=>h});var r=(0,n(18749).A)(Object,"create"),i=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},s.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e},s.prototype.get=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0},s.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)},s.prototype.set=function(t,e){var n=this.__data__;return this.size+=+!this.has(t),n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this};var a=n(2839),u=n(94287);let c=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},l=function(t,e){var n=t.__data__;return c(e)?n["string"==typeof e?"string":"hash"]:n.map};function f(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new s,map:new(u.A||a.A),string:new s}},f.prototype.delete=function(t){var e=l(this,t).delete(t);return this.size-=!!e,e},f.prototype.get=function(t){return l(this,t).get(t)},f.prototype.has=function(t){return l(this,t).has(t)},f.prototype.set=function(t,e){var n=l(this,t),r=n.size;return n.set(t,e),this.size+=+(n.size!=r),this};let h=f},11665:function(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(18749),i=n(21341);let o=(0,r.A)(i.A,"Set")},11297:function(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(8349);function i(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r.A;++e<n;)this.add(t[e])}i.prototype.add=i.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},i.prototype.has=function(t){return this.__data__.has(t)};let o=i},1263:function(t,e,n){"use strict";n.d(e,{A:()=>a});var r=n(2839),i=n(94287),o=n(8349);function s(t){var e=this.__data__=new r.A(t);this.size=e.size}s.prototype.clear=function(){this.__data__=new r.A,this.size=0},s.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},s.prototype.get=function(t){return this.__data__.get(t)},s.prototype.has=function(t){return this.__data__.has(t)},s.prototype.set=function(t,e){var n=this.__data__;if(n instanceof r.A){var s=n.__data__;if(!i.A||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o.A(s)}return n.set(t,e),this.size=n.size,this};let a=s},22449:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=n(21341).A.Symbol},12053:function(t,e,n){"use strict";n.d(e,{A:()=>l});let r=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};var i=n(14102),o=n(24753),s=n(31312),a=n(46697),u=n(13342),c=Object.prototype.hasOwnProperty;let l=function(t,e){var n=(0,o.A)(t),l=!n&&(0,i.A)(t),f=!n&&!l&&(0,s.A)(t),h=!n&&!l&&!f&&(0,u.A)(t),p=n||l||f||h,d=p?r(t.length,String):[],g=d.length;for(var v in t)(e||c.call(t,v))&&!(p&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||(0,a.A)(v,g)))&&d.push(v);return d}},1668:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},12400:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},2128:function(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n(5771);let i=function(t,e,n){"__proto__"==e&&r.A?(0,r.A)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},41327:function(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n(7418);let i=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=e(s);if(null!=a&&(void 0===u?a==a&&!(0,r.A)(a):n(a,u)))var u=a,c=s}return c}},70369:function(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(59351),i=n(8085);let o=function(t,e){e=(0,r.A)(e,t);for(var n=0,o=e.length;null!=t&&n<o;)t=t[(0,i.A)(e[n++])];return n&&n==o?t:void 0}},871:function(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(12400),i=n(24753);let o=function(t,e,n){var o=e(t);return(0,i.A)(t)?o:(0,r.A)(o,n(t))}},67194:function(t,e,n){"use strict";n.d(e,{A:()=>f});var r=n(22449),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r.A?r.A.toStringTag:void 0;let u=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i};var c=Object.prototype.toString,l=r.A?r.A.toStringTag:void 0;let f=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?u(t):c.call(t)}},85524:function(t,e,n){"use strict";n.d(e,{A:()=>X});var r=n(1263),i=n(11297);let o=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};var s=n(41699);let a=function(t,e,n,r,a,u){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=u.get(t),p=u.get(e);if(h&&p)return h==e&&p==t;var d=-1,g=!0,v=2&n?new i.A:void 0;for(u.set(t,e),u.set(e,t);++d<l;){var y=t[d],b=e[d];if(r)var m=c?r(b,y,d,e,t,u):r(y,b,d,t,e,u);if(void 0!==m){if(m)continue;g=!1;break}if(v){if(!o(e,function(t,e){if(!(0,s.A)(v,e)&&(y===t||a(y,t,n,r,u)))return v.push(e)})){g=!1;break}}else if(!(y===b||a(y,b,n,r,u))){g=!1;break}}return u.delete(t),u.delete(e),g};var u=n(22449),c=n(21341),l=c.A.Uint8Array,f=n(78056);let h=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n};var p=n(90023),d=u.A?u.A.prototype:void 0,g=d?d.valueOf:void 0;let v=function(t,e,n,r,i,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!o(new l(t),new l(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.A)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=h;case"[object Set]":var c=1&r;if(u||(u=p.A),t.size!=e.size&&!c)break;var d=s.get(t);if(d)return d==e;r|=2,s.set(t,e);var v=a(u(t),u(e),r,i,o,s);return s.delete(t),v;case"[object Symbol]":if(g)return g.call(t)==g.call(e)}return!1};var y=n(871),b=n(42387),m=n(61434);let A=function(t){return(0,y.A)(t,m.A,b.A)};var O=Object.prototype.hasOwnProperty;let w=function(t,e,n,r,i,o){var s=1&n,a=A(t),u=a.length;if(u!=A(e).length&&!s)return!1;for(var c=u;c--;){var l=a[c];if(!(s?l in e:O.call(e,l)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var d=s;++c<u;){var g=t[l=a[c]],v=e[l];if(r)var y=s?r(v,g,l,e,t,o):r(g,v,l,t,e,o);if(!(void 0===y?g===v||i(g,v,n,r,o):y)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var b=t.constructor,m=e.constructor;b!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof m&&m instanceof m)&&(p=!1)}return o.delete(t),o.delete(e),p};var _=n(18749),k=(0,_.A)(c.A,"DataView"),j=n(94287),S=(0,_.A)(c.A,"Promise"),E=n(11665),x=(0,_.A)(c.A,"WeakMap"),R=n(67194),N=n(64001),P="[object Map]",C="[object Promise]",L="[object Set]",T="[object WeakMap]",F="[object DataView]",D=(0,N.A)(k),B=(0,N.A)(j.A),U=(0,N.A)(S),I=(0,N.A)(E.A),M=(0,N.A)(x),z=R.A;(k&&z(new k(new ArrayBuffer(1)))!=F||j.A&&z(new j.A)!=P||S&&z(S.resolve())!=C||E.A&&z(new E.A)!=L||x&&z(new x)!=T)&&(z=function(t){var e=(0,R.A)(t),n="[object Object]"==e?t.constructor:void 0,r=n?(0,N.A)(n):"";if(r)switch(r){case D:return F;case B:return P;case U:return C;case I:return L;case M:return T}return e});let V=z;var q=n(24753),K=n(31312),$=n(13342),J="[object Arguments]",H="[object Array]",W="[object Object]",Y=Object.prototype.hasOwnProperty;let Q=function(t,e,n,i,o,s){var u=(0,q.A)(t),c=(0,q.A)(e),l=u?H:V(t),f=c?H:V(e);l=l==J?W:l,f=f==J?W:f;var h=l==W,p=f==W,d=l==f;if(d&&(0,K.A)(t)){if(!(0,K.A)(e))return!1;u=!0,h=!1}if(d&&!h)return s||(s=new r.A),u||(0,$.A)(t)?a(t,e,n,i,o,s):v(t,e,l,n,i,o,s);if(!(1&n)){var g=h&&Y.call(t,"__wrapped__"),y=p&&Y.call(e,"__wrapped__");if(g||y){var b=g?t.value():t,m=y?e.value():e;return s||(s=new r.A),o(b,m,n,i,s)}}return!!d&&(s||(s=new r.A),w(t,e,n,i,o,s))};var G=n(21418);let X=function t(e,n,r,i,o){return e===n||(null!=e&&null!=n&&((0,G.A)(e)||(0,G.A)(n))?Q(e,n,r,i,t,o):e!=e&&n!=n)}},43883:function(t,e,n){"use strict";n.d(e,{A:()=>j});var r=n(1263),i=n(85524);let o=function(t,e,n,o){var s=n.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var c=n[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=n[s])[0],f=t[l],h=c[1];if(u&&c[2]){if(void 0===f&&!(l in t))return!1}else{var p=new r.A;if(o)var d=o(f,h,l,t,e,p);if(!(void 0===d?(0,i.A)(h,f,3,o,p):d))return!1}}return!0};var s=n(77485);let a=function(t){return t==t&&!(0,s.A)(t)};var u=n(61434);let c=function(t){for(var e=(0,u.A)(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,a(i)]}return e},l=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}},f=function(t){var e=c(t);return 1==e.length&&e[0][2]?l(e[0][0],e[0][1]):function(n){return n===t||o(n,t,e)}};var h=n(70268);let p=function(t,e){return null!=t&&e in Object(t)};var d=n(59351),g=n(14102),v=n(24753),y=n(46697),b=n(80614),m=n(8085);let A=function(t,e,n){e=(0,d.A)(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var s=(0,m.A)(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&(0,b.A)(i)&&(0,y.A)(s,i)&&((0,v.A)(t)||(0,g.A)(t))};var O=n(56282),w=n(20944),_=n(70369);let k=function(t){var e;return(0,O.A)(t)?(e=(0,m.A)(t),function(t){return null==t?void 0:t[e]}):function(e){return(0,_.A)(e,t)}},j=function(t){if("function"==typeof t)return t;if(null==t)return w.A;if("object"==typeof t){var e,n;return(0,v.A)(t)?(e=t[0],n=t[1],(0,O.A)(e)&&a(n)?l((0,m.A)(e),n):function(t){var r=(0,h.A)(t,e);return void 0===r&&r===n?null!=t&&A(t,e,p):(0,i.A)(n,r,3)}):f(t)}return k(t)}},55665:function(t,e,n){"use strict";n.d(e,{A:()=>p});var r=n(11297);let i=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return -1},o=function(t){return t!=t},s=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return -1},a=function(t,e){return!!(null==t?0:t.length)&&(e==e?s(t,e,0):i(t,o,0))>-1},u=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1};var c=n(41699),l=n(11665),f=n(90023),h=l.A&&1/(0,f.A)(new l.A([,-0]))[1]==1/0?function(t){return new l.A(t)}:function(){};let p=function(t,e,n){var i=-1,o=a,s=t.length,l=!0,p=[],d=p;if(n)l=!1,o=u;else if(s>=200){var g=e?null:h(t);if(g)return(0,f.A)(g);l=!1,o=c.A,d=new r.A}else d=e?[]:p;t:for(;++i<s;){var v=t[i],y=e?e(v):v;if(v=n||0!==v?v:0,l&&y==y){for(var b=d.length;b--;)if(d[b]===y)continue t;e&&d.push(y),p.push(v)}else o(d,y,n)||(d!==p&&d.push(y),p.push(v))}return p}},41699:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=function(t,e){return t.has(e)}},59351:function(t,e,n){"use strict";n.d(e,{A:()=>p});var r,i,o=n(24753),s=n(56282),a=n(8349);function u(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(u.Cache||a.A),n}u.Cache=a.A;var c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,f=(i=(r=u(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(c,function(t,n,r,i){e.push(r?i.replace(l,"$1"):n||t)}),e},function(t){return 500===i.size&&i.clear(),t})).cache,r),h=n(69731);let p=function(t,e){return(0,o.A)(t)?t:(0,s.A)(t,e)?[t]:f((0,h.A)(t))}},5771:function(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n(18749);let i=function(){try{var t=(0,r.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},10120:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r="object"==typeof global&&global&&global.Object===Object&&global},18749:function(t,e,n){"use strict";n.d(e,{A:()=>g});var r,i=n(16010),o=n(21341).A["__core-js_shared__"],s=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",a=n(77485),u=n(64001),c=/^\[object .+?Constructor\]$/,l=Object.prototype,f=Function.prototype.toString,h=l.hasOwnProperty,p=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let d=function(t){return!!(0,a.A)(t)&&(!s||!(s in t))&&((0,i.A)(t)?p:c).test((0,u.A)(t))},g=function(t,e){var n=null==t?void 0:t[e];return d(n)?n:void 0}},42387:function(t,e,n){"use strict";n.d(e,{A:()=>a});let r=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};var i=n(48961),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;let a=s?function(t){return null==t?[]:r(s(t=Object(t)),function(e){return o.call(t,e)})}:i.A},46697:function(t,e,n){"use strict";n.d(e,{A:()=>i});var r=/^(?:0|[1-9]\d*)$/;let i=function(t,e){var n=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},56282:function(t,e,n){"use strict";n.d(e,{A:()=>a});var r=n(24753),i=n(7418),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;let a=function(t,e){if((0,r.A)(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||(0,i.A)(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},17687:function(t,e,n){"use strict";n.d(e,{A:()=>i});var r=Object.prototype;let i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},88335:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=function(t,e){return function(n){return t(e(n))}}},21341:function(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(10120),i="object"==typeof self&&self&&self.Object===Object&&self;let o=r.A||i||Function("return this")()},90023:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},8085:function(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(7418),i=1/0;let o=function(t){if("string"==typeof t||(0,r.A)(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},64001:function(t,e,n){"use strict";n.d(e,{A:()=>i});var r=Function.prototype.toString;let i=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},2574:function(t,e,n){"use strict";n.d(e,{A:()=>b});var r=n(77485),i=n(21341);let o=function(){return i.A.Date.now()};var s=/\s/;let a=function(t){for(var e=t.length;e--&&s.test(t.charAt(e)););return e};var u=/^\s+/,c=n(7418),l=0/0,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,d=parseInt;let g=function(t){if("number"==typeof t)return t;if((0,c.A)(t))return l;if((0,r.A)(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=(0,r.A)(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,a(e)+1).replace(u,""):e;var i=h.test(t);return i||p.test(t)?d(t.slice(2),i?2:8):f.test(t)?l:+t};var v=Math.max,y=Math.min;let b=function(t,e,n){var i,s,a,u,c,l,f=0,h=!1,p=!1,d=!0;if("function"!=typeof t)throw TypeError("Expected a function");function b(e){var n=i,r=s;return i=s=void 0,f=e,u=t.apply(r,n)}function m(t){var n=t-l,r=t-f;return void 0===l||n>=e||n<0||p&&r>=a}function A(){var t,n,r,i=o();if(m(i))return O(i);c=setTimeout(A,(t=i-l,n=i-f,r=e-t,p?y(r,a-n):r))}function O(t){return(c=void 0,d&&i)?b(t):(i=s=void 0,u)}function w(){var t,n=o(),r=m(n);if(i=arguments,s=this,l=n,r){if(void 0===c)return f=t=l,c=setTimeout(A,e),h?b(t):u;if(p)return clearTimeout(c),c=setTimeout(A,e),b(l)}return void 0===c&&(c=setTimeout(A,e)),u}return e=g(e)||0,(0,r.A)(n)&&(h=!!n.leading,a=(p="maxWait"in n)?v(g(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),w.cancel=function(){void 0!==c&&clearTimeout(c),f=0,i=l=s=c=void 0},w.flush=function(){return void 0===c?u:O(o())},w}},78029:function(t,e,n){"use strict";n.d(e,{A:()=>k});var r,i,o,s,a,u,c=n(20944);let l=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var f=Math.max,h=n(5771),p=h.A?function(t,e){return(0,h.A)(t,"toString",{configurable:!0,enumerable:!1,value:function(){return e},writable:!0})}:c.A,d=Date.now,g=(r=0,i=0,function(){var t=d(),e=16-(t-i);if(i=t,e>0){if(++r>=800)return arguments[0]}else r=0;return p.apply(void 0,arguments)}),v=n(78056),y=n(70862),b=n(46697),m=n(77485);let A=function(t,e,n){if(!(0,m.A)(n))return!1;var r=typeof e;return("number"==r?!!((0,y.A)(n)&&(0,b.A)(e,n.length)):"string"==r&&e in n)&&(0,v.A)(n[e],t)};var O=n(37598),w=Object.prototype,_=w.hasOwnProperty;let k=g((s=o=function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&A(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],s=(0,O.A)(o),a=-1,u=s.length;++a<u;){var c=s[a],l=t[c];(void 0===l||(0,v.A)(l,w[c])&&!_.call(t,c))&&(t[c]=o[c])}return t},a=void 0,u=c.A,a=f(void 0===a?s.length-1:a,0),function(){for(var t=arguments,e=-1,n=f(t.length-a,0),r=Array(n);++e<n;)r[e]=t[a+e];e=-1;for(var i=Array(a+1);++e<a;)i[e]=t[e];return i[a]=u(r),l(s,this,i)}),o+"")},78056:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=function(t,e){return t===e||t!=t&&e!=e}},64080:function(t,e,n){"use strict";n.d(e,{A:()=>u});var r,i=(r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},function(t){return null==r?void 0:r[t]}),o=n(69731),s=/[&<>"']/g,a=RegExp(s.source);let u=function(t){return(t=(0,o.A)(t))&&a.test(t)?t.replace(s,i):t}},70268:function(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n(70369);let i=function(t,e,n){var i=null==t?void 0:(0,r.A)(t,e);return void 0===i?n:i}},76301:function(t,e,n){"use strict";n.d(e,{A:()=>g});var r,i,o=n(2128);let s=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r},a=function(t,e,n){for(var r=-1,i=Object(t),o=n(t),s=o.length;s--;){var a=o[++r];if(!1===e(i[a],a,i))break}return t};var u=n(61434),c=n(70862),l=(r=function(t,e){return t&&a(t,e,u.A)},function(t,e){if(null==t)return t;if(!(0,c.A)(t))return r(t,e);for(var n=t.length,i=-1,o=Object(t);++i<n&&!1!==e(o[i],i,o););return t});let f=function(t,e,n,r){return l(t,function(t,i,o){e(r,t,n(t),o)}),r};var h=n(43883),p=n(24753),d=Object.prototype.hasOwnProperty;let g=(i=function(t,e,n){d.call(t,n)?t[n].push(e):(0,o.A)(t,n,[e])},function(t,e){return((0,p.A)(t)?s:f)(t,i,(0,h.A)(e,2),{})})},20944:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=function(t){return t}},14102:function(t,e,n){"use strict";n.d(e,{A:()=>c});var r=n(67194),i=n(21418);let o=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,r.A)(t)};var s=Object.prototype,a=s.hasOwnProperty,u=s.propertyIsEnumerable;let c=o(function(){return arguments}())?o:function(t){return(0,i.A)(t)&&a.call(t,"callee")&&!u.call(t,"callee")}},24753:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=Array.isArray},70862:function(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(16010),i=n(80614);let o=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,r.A)(t)}},31312:function(t,e,n){"use strict";n.d(e,{A:()=>a});var r=n(21341),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i?r.A.Buffer:void 0;let a=(s?s.isBuffer:void 0)||function(){return!1}},36628:function(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n(85524);let i=function(t,e){return(0,r.A)(t,e)}},16010:function(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(67194),i=n(77485);let o=function(t){if(!(0,i.A)(t))return!1;var e=(0,r.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},80614:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},77485:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},21418:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=function(t){return null!=t&&"object"==typeof t}},7418:function(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(67194),i=n(21418);let o=function(t){return"symbol"==typeof t||(0,i.A)(t)&&"[object Symbol]"==(0,r.A)(t)}},13342:function(t,e,n){"use strict";n.d(e,{A:()=>p});var r=n(67194),i=n(80614),o=n(21418),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;var a=n(10120),u="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=u&&"object"==typeof module&&module&&!module.nodeType&&module,l=c&&c.exports===u&&a.A.process,f=function(){try{var t=c&&c.require&&c.require("util").types;if(t)return t;return l&&l.binding&&l.binding("util")}catch(t){}}(),h=f&&f.isTypedArray;let p=h?function(t){return h(t)}:function(t){return(0,o.A)(t)&&(0,i.A)(t.length)&&!!s[(0,r.A)(t)]}},61434:function(t,e,n){"use strict";n.d(e,{A:()=>c});var r=n(12053),i=n(17687),o=(0,n(88335).A)(Object.keys,Object),s=Object.prototype.hasOwnProperty;let a=function(t){if(!(0,i.A)(t))return o(t);var e=[];for(var n in Object(t))s.call(t,n)&&"constructor"!=n&&e.push(n);return e};var u=n(70862);let c=function(t){return(0,u.A)(t)?(0,r.A)(t):a(t)}},37598:function(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n(12053),i=n(77485),o=n(17687);let s=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var a=Object.prototype.hasOwnProperty;let u=function(t){if(!(0,i.A)(t))return s(t);var e=(0,o.A)(t),n=[];for(var r in t)"constructor"==r&&(e||!a.call(t,r))||n.push(r);return n};var c=n(70862);let l=function(t){return(0,c.A)(t)?(0,r.A)(t,!0):u(t)}},19947:function(t,e,n){"use strict";n.d(e,{A:()=>s});var r=n(41327);let i=function(t,e){return t>e};var o=n(43883);let s=function(t,e){return t&&t.length?(0,r.A)(t,(0,o.A)(e,2),i):void 0}},1607:function(t,e,n){"use strict";n.d(e,{A:()=>s});var r=n(41327),i=n(43883);let o=function(t,e){return t<e},s=function(t,e){return t&&t.length?(0,r.A)(t,(0,i.A)(e,2),o):void 0}},64912:function(t,e,n){"use strict";n.d(e,{A:()=>j});var r=n(43883);let i=function(t){if("function"!=typeof t)throw TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}};var o=n(1668),s=n(70369),a=n(2128),u=n(78056),c=Object.prototype.hasOwnProperty;let l=function(t,e,n){var r=t[e];c.call(t,e)&&(0,u.A)(r,n)&&(void 0!==n||e in t)||(0,a.A)(t,e,n)};var f=n(59351),h=n(46697),p=n(77485),d=n(8085);let g=function(t,e,n,r){if(!(0,p.A)(t))return t;e=(0,f.A)(e,t);for(var i=-1,o=e.length,s=o-1,a=t;null!=a&&++i<o;){var u=(0,d.A)(e[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)break;if(i!=s){var g=a[u];void 0===(c=r?r(g,u,a):void 0)&&(c=(0,p.A)(g)?g:(0,h.A)(e[i+1])?[]:{})}l(a,u,c),a=a[u]}return t},v=function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],u=(0,s.A)(t,a);n(u,a)&&g(o,(0,f.A)(a,t),u)}return o};var y=n(871),b=n(12400),m=(0,n(88335).A)(Object.getPrototypeOf,Object),A=n(42387),O=n(48961),w=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,b.A)(e,(0,A.A)(t)),t=m(t);return e}:O.A,_=n(37598);let k=function(t,e){if(null==t)return{};var n=(0,o.A)((0,y.A)(t,_.A,w),function(t){return[t]});return e=(0,r.A)(e),v(t,n,function(t,n){return e(t,n[0])})},j=function(t,e){return k(t,i((0,r.A)(e)))}},48961:function(t,e,n){"use strict";n.d(e,{A:()=>r});let r=function(){return[]}},39784:function(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(43883);let i=function(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n},o=function(t,e){return t&&t.length?i(t,(0,r.A)(e,2)):0}},69731:function(t,e,n){"use strict";n.d(e,{A:()=>f});var r=n(22449),i=n(1668),o=n(24753),s=n(7418),a=1/0,u=r.A?r.A.prototype:void 0,c=u?u.toString:void 0;let l=function t(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,i.A)(e,t)+"";if((0,s.A)(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-a?"-0":n},f=function(t){return null==t?"":l(t)}},29503:function(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n(55665);let i=function(t){return t&&t.length?(0,r.A)(t):[]}},57998:function(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(43883),i=n(55665);let o=function(t,e){return t&&t.length?(0,i.A)(t,(0,r.A)(e,2)):[]}},87484:function(t,e,n){"use strict";n.d(e,{A:()=>b});let r=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o},i=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)};var o=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let s=function(t){return o.test(t)};var a="\ud800-\udfff",u="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",c="\ud83c[\udffb-\udfff]",l="[^"+a+"]",f="(?:\ud83c[\udde6-\uddff]){2}",h="[\ud800-\udbff][\udc00-\udfff]",p="(?:"+u+"|"+c+")?",d="[\\ufe0e\\ufe0f]?",g="(?:\\u200d(?:"+[l,f,h].join("|")+")"+d+p+")*",v=RegExp(c+"(?="+c+")|"+("(?:"+[l+u+"?",u,f,h,"["+a+"]"].join("|"))+")"+(d+p+g),"g"),y=n(69731);let b=function(t){var e,n=s(t=(0,y.A)(t))?s(e=t)?e.match(v)||[]:e.split(""):void 0,r=n?n[0]:t.charAt(0),o=n?i(n,1).join(""):t.slice(1);return r.toUpperCase()+o}},88731:function(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n(14337);function i(t){let e=this;e.parser=function(n){return(0,r.Y)(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}},97871:function(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n(40144);function i(t,e){return t&&"run"in t?async function(n,i){let o=(0,r._)(n,{file:i,...e});await t.run(o,i)}:function(n,i){return(0,r._)(n,{file:i,...t||e})}}},50476:function(t,e,n){"use strict";n.d(e,{io:()=>j});var r,i,o={};n.r(o),n.d(o,{Decoder:()=>y,Encoder:()=>g,PacketType:()=>i,protocol:()=>d});var s=n(37040),a=n(71019);let u="function"==typeof ArrayBuffer,c=Object.prototype.toString,l="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===c.call(Blob),f="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===c.call(File);function h(t){return u&&(t instanceof ArrayBuffer||("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer))||l&&t instanceof Blob||f&&t instanceof File}let p=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],d=5;(r=i||(i={}))[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK";class g{constructor(t){this.replacer=t}encode(t){return(t.type===i.EVENT||t.type===i.ACK)&&function t(e,n){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(t(e[n]))return!0;return!1}if(h(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return t(e.toJSON(),!0);for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return!0;return!1}(t)?this.encodeAsBinary({type:t.type===i.EVENT?i.BINARY_EVENT:i.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let e=""+t.type;return(t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK)&&(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data,this.replacer)),e}encodeAsBinary(t){let e,n,r=(e=[],n=t.data,t.data=function t(e,n){if(!e)return e;if(h(e)){let t={_placeholder:!0,num:n.length};return n.push(e),t}if(Array.isArray(e)){let r=Array(e.length);for(let i=0;i<e.length;i++)r[i]=t(e[i],n);return r}if("object"==typeof e&&!(e instanceof Date)){let r={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t(e[i],n));return r}return e}(n,e),t.attachments=e.length,{packet:t,buffers:e}),i=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(i),o}}function v(t){return"[object Object]"===Object.prototype.toString.call(t)}class y extends a.v{constructor(t){super(),this.reviver=t}add(t){let e;if("string"==typeof t){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let n=(e=this.decodeString(t)).type===i.BINARY_EVENT;n||e.type===i.BINARY_ACK?(e.type=n?i.EVENT:i.ACK,this.reconstructor=new b(e),0===e.attachments&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(h(t)||t.base64)if(this.reconstructor)(e=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+t)}decodeString(t){let e=0,n={type:Number(t.charAt(0))};if(void 0===i[n.type])throw Error("unknown packet type "+n.type);if(n.type===i.BINARY_EVENT||n.type===i.BINARY_ACK){let r=e+1;for(;"-"!==t.charAt(++e)&&e!=t.length;);let i=t.substring(r,e);if(i!=Number(i)||"-"!==t.charAt(e))throw Error("Illegal attachments");n.attachments=Number(i)}if("/"===t.charAt(e+1)){let r=e+1;for(;++e&&","!==t.charAt(e)&&e!==t.length;);n.nsp=t.substring(r,e)}else n.nsp="/";let r=t.charAt(e+1);if(""!==r&&Number(r)==r){let r=e+1;for(;++e;){let n=t.charAt(e);if(null==n||Number(n)!=n){--e;break}if(e===t.length)break}n.id=Number(t.substring(r,e+1))}if(t.charAt(++e)){let r=this.tryParse(t.substr(e));if(y.isPayloadValid(n.type,r))n.data=r;else throw Error("invalid payload")}return n}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(t){return!1}}static isPayloadValid(t,e){switch(t){case i.CONNECT:return v(e);case i.DISCONNECT:return void 0===e;case i.CONNECT_ERROR:return"string"==typeof e||v(e);case i.EVENT:case i.BINARY_EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===p.indexOf(e[0]));case i.ACK:case i.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class b{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e,n;let t=(e=this.reconPack,n=this.buffers,e.data=function t(e,n){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<n.length)return n[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=t(e[r],n);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=t(e[r],n));return e}(e.data,n),delete e.attachments,e);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function m(t,e,n){return t.on(e,n),function(){t.off(e,n)}}let A=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class O extends a.v{constructor(t,e,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[m(t,"open",this.onopen.bind(this)),m(t,"packet",this.onpacket.bind(this)),m(t,"error",this.onerror.bind(this)),m(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var n,r,o;if(A.hasOwnProperty(t))throw Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;let s={type:i.EVENT,data:e};if(s.options={},s.options.compress=!1!==this.flags.compress,"function"==typeof e[e.length-1]){let t=this.ids++,n=e.pop();this._registerAckCallback(t,n),s.id=t}let a=null==(r=null==(n=this.io.engine)?void 0:n.transport)?void 0:r.writable,u=this.connected&&!(null==(o=this.io.engine)?void 0:o._hasPingExpired());return this.flags.volatile&&!a||(u?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,e){var n;let r=null!=(n=this.flags.timeout)?n:this._opts.ackTimeout;if(void 0===r){this.acks[t]=e;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&this.sendBuffer.splice(e,1);e.call(this,Error("operation has timed out"))},r),o=(...t)=>{this.io.clearTimeoutFn(i),e.apply(this,t)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...e){return new Promise((n,r)=>{let i=(t,e)=>t?r(t):n(e);i.withError=!0,e.push(i),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...r)=>{if(n===this._queue[0])return null!==t?n.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...r)),n.pending=!1,this._drainQueue()}),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;let e=this._queue[0];(!e.pending||t)&&(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:i.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(e=>String(e.id)===t)){let e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case i.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case i.EVENT:case i.BINARY_EVENT:this.onevent(t);break;case i.ACK:case i.BINARY_ACK:this.onack(t);break;case i.DISCONNECT:this.ondisconnect();break;case i.CONNECT_ERROR:this.destroy();let e=Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){let e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length)for(let e of this._anyListeners.slice())e.apply(this,t);super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){let e=this,n=!1;return function(...r){n||(n=!0,e.packet({type:i.ACK,id:t,data:r}))}}onack(t){let e=this.acks[t.id];"function"==typeof e&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:i.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let e=this._anyListeners;for(let n=0;n<e.length;n++)if(t===e[n]){e.splice(n,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let e=this._anyOutgoingListeners;for(let n=0;n<e.length;n++)if(t===e[n]){e.splice(n,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let e of this._anyOutgoingListeners.slice())e.apply(this,t.data)}}function w(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}w.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(1&Math.floor(10*e))==0?t-n:t+n}return 0|Math.min(t,this.max)},w.prototype.reset=function(){this.attempts=0},w.prototype.setMin=function(t){this.ms=t},w.prototype.setMax=function(t){this.max=t},w.prototype.setJitter=function(t){this.jitter=t};class _ extends a.v{constructor(t,e){var n;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,(0,s._7)(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(n=e.randomizationFactor)?n:.5),this.backoff=new w({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const r=e.parser||o;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null==(e=this.backoff)||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null==(e=this.backoff)||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null==(e=this.backoff)||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new s.yQ(this.uri,this.opts);let e=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let r=m(e,"open",function(){n.onopen(),t&&t()}),i=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},o=m(e,"error",i);if(!1!==this._timeout){let t=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error("timeout")),e.close()},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(m(t,"ping",this.onping.bind(this)),m(t,"data",this.ondata.bind(this)),m(t,"error",this.onerror.bind(this)),m(t,"close",this.onclose.bind(this)),m(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){(0,s.dY)(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new O(this,t,e),this.nsps[t]=n),n}_destroy(t){for(let t of Object.keys(this.nsps))if(this.nsps[t].active)return;this._close()}_packet(t){let e=this.encoder.encode(t);for(let n=0;n<e.length;n++)this.engine.write(e[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var n;this.cleanup(),null==(n=this.engine)||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let e=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()}))},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}let k={};function j(t,e){let n;"object"==typeof t&&(e=t,t=void 0);let r=function(t,e="",n){let r=t;n=n||"undefined"!=typeof location&&location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==n?n.protocol+"//"+t:"https://"+t),r=(0,s.qg)(t)),!r.port&&(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+e,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(t,(e=e||{}).path||"/socket.io"),i=r.source,o=r.id,a=r.path,u=k[o]&&a in k[o].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||u?n=new _(i,e):(k[o]||(k[o]=new _(i,e)),n=k[o]),r.query&&!e.query&&(e.query=r.queryKey),n.socket(r.path,e)}Object.assign(j,{Manager:_,Socket:O,io:j,connect:j})}}]);