@dao42/d42paas-front 0.9.210 → 0.9.211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/DaoPaaS.cjs +2 -2
- package/dist/sdk/docs/enums/I18nLanguageType.html +2 -2
- package/dist/sdk/docs/enums/Messages.html +1 -1
- package/dist/sdk/docs/enums/ThemeType.html +2 -2
- package/dist/sdk/docs/index.html +107 -96
- package/dist/sdk/docs/interfaces/Component.html +2 -2
- package/dist/sdk/docs/interfaces/I18nResourcesType.html +1 -1
- package/dist/sdk/docs/interfaces/IDaoPaaS.html +32 -32
- package/dist/sdk/docs/interfaces/IExtralAction.html +1 -1
- package/dist/sdk/docs/interfaces/IReportHighlightData.html +1 -1
- package/dist/sdk/docs/interfaces/IXtermFontStyle.html +1 -1
- package/dist/sdk/docs/interfaces/PaaSOptions.html +32 -32
- package/dist/sdk/docs/interfaces/XtermStyleType.html +1 -1
- package/dist/sdk/docs/modules.html +6 -6
- package/package.json +1 -1
package/dist/DaoPaaS.cjs
CHANGED
|
@@ -46,7 +46,7 @@ Error generating stack: `+o.message+`
|
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
48
|
*/var D2=E.exports,g$e=hJ.exports;function v$e(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var y$e=typeof Object.is=="function"?Object.is:v$e,b$e=g$e.useSyncExternalStore,S$e=D2.useRef,w$e=D2.useEffect,$$e=D2.useMemo,x$e=D2.useDebugValue;fJ.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var o=S$e(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=$$e(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&s.hasValue){var p=s.value;if(i(p,h))return d=p}return d=h}if(p=d,y$e(u,h))return p;var m=r(h);return i!==void 0&&i(p,m)?p:(u=h,d=m)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,n,r,i]);var a=b$e(t,o[0],o[1]);return w$e(function(){s.hasValue=!0,s.value=a},[a]),x$e(a),a};dJ.exports=fJ;var _$e=dJ.exports;const{useSyncExternalStoreWithSelector:k$e}=_$e;function P$e(t,e=t.getState,n){const r=k$e(t.subscribe,t.getState,t.getServerState||t.getState,e,n);return E.exports.useDebugValue(r),r}const ML=t=>{const e=typeof t=="function"?uJ(t):t,n=(r,i)=>P$e(e,r,i);return Object.assign(n,e),n},Q$e=t=>t?ML(t):ML;var T$e=Q$e;const C$e=(t,e={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:s,...a}=e;let l;try{l=(o!=null?o:({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),t(n,r,i);const c=l.connect(a);let u=!0;i.setState=(h,p,m)=>{const O=n(h,p);return u&&c.send(m===void 0?{type:s||"anonymous"}:typeof m=="string"?{type:m}:m,r()),O};const d=(...h)=>{const p=u;u=!1,n(...h),u=p},f=t(i.setState,r,i);if(c.init(f),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let h=!1;const p=i.dispatch;i.dispatch=(...m)=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&m[0].type==="__setState"&&!h&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),h=!0),p(...m)}}return c.subscribe(h=>{var p;switch(h.type){case"ACTION":if(typeof h.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return h5(h.payload,m=>{if(m.type==="__setState"){d(m.state);return}!i.dispatchFromDevtools||typeof i.dispatch=="function"&&i.dispatch(m)});case"DISPATCH":switch(h.payload.type){case"RESET":return d(f),c.init(i.getState());case"COMMIT":return c.init(i.getState());case"ROLLBACK":return h5(h.state,m=>{d(m),c.init(i.getState())});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return h5(h.state,m=>{d(m)});case"IMPORT_STATE":{const{nextLiftedState:m}=h.payload,O=(p=m.computedStates.slice(-1)[0])==null?void 0:p.state;if(!O)return;d(O),c.send(null,m);return}case"PAUSE_RECORDING":return u=!u}return}}),f},E$e=C$e,h5=(t,e)=>{let n;try{n=JSON.parse(t)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&e(n)},l_=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(r){return l_(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return l_(r)(n)}}}},R$e=(t,e)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:O=>O,version:0,merge:(O,g)=>({...g,...O}),...e},s=!1;const a=new Set,l=new Set;let c;try{c=o.getStorage()}catch{}if(!c)return t((...O)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...O)},r,i);const u=l_(o.serialize),d=()=>{const O=o.partialize({...r()});let g;const y=u({state:O,version:o.version}).then(b=>c.setItem(o.name,b)).catch(b=>{g=b});if(g)throw g;return y},f=i.setState;i.setState=(O,g)=>{f(O,g),d()};const h=t((...O)=>{n(...O),d()},r,i);let p;const m=()=>{var O;if(!c)return;s=!1,a.forEach(y=>y(r()));const g=((O=o.onRehydrateStorage)==null?void 0:O.call(o,r()))||void 0;return l_(c.getItem.bind(c))(o.name).then(y=>{if(y)return o.deserialize(y)}).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==o.version){if(o.migrate)return o.migrate(y.state,y.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return y.state}).then(y=>{var b;return p=o.merge(y,(b=r())!=null?b:h),n(p,!0),d()}).then(()=>{g==null||g(p,void 0),s=!0,l.forEach(y=>y(p))}).catch(y=>{g==null||g(void 0,y)})};return i.persist={setOptions:O=>{o={...o,...O},O.getStorage&&(c=O.getStorage())},clearStorage:()=>{c==null||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:O=>(a.add(O),()=>{a.delete(O)}),onFinishHydration:O=>(l.add(O),()=>{l.delete(O)})},m(),p||h},A$e=R$e,X$e=(t,e)=>{const n={};return Object.keys(t.getState()).forEach(r=>{n[r]=i=>{if(t.getState()[r]===i)return;const s=r.replace(/^\S/,a=>a.toUpperCase());t.setState(a=>{a[r]=i},`@@${e}/set${s}`)}}),n},I$e=(t,e)=>{const n=t(e.set,e.get,e);return{...e,set:{...e.set,...n}}},D$e=(t,e)=>{const n={...e.use},r={...e.useTracked},i={...e.get};return Object.keys(t(e.store.getState(),e.get,e)).forEach(o=>{n[o]=(...s)=>e.useStore(a=>{const c=t(a,e.get,e)[o];return c(...s)}),r[o]=(...s)=>{const a=e.useTrackedStore(),c=t(a,e.get,e)[o];return c(...s)},i[o]=(...s)=>{const l=t(e.store.getState(),e.get,e)[o];return l(...s)}}),{...e,get:i,use:n,useTracked:r}},e3=t=>({...t,extendSelectors:e=>e3(D$e(e,t)),extendActions:e=>e3(I$e(e,t))}),z$e=t=>{const e={};return Object.keys(t.getState()).forEach(n=>{e[n]=()=>t.getState()[n]}),e},M$e=t=>{const e={};return Object.keys(t.getState()).forEach(n=>{e[n]=r=>t(i=>i[n],r)}),e},L$e=(t,e)=>{const n={};return Object.keys(t.getState()).forEach(r=>{n[r]=()=>e()[r]}),n},N$e=t=>(e,n,r)=>{const i=(o,s)=>e(n$e(o),!0,s);return r.setState=i,t(i,n,r)};function U$e(t,...e){return e.reduce((n,r)=>r(n),t)}const hb=t=>(e,n={})=>{var r;const{middlewares:i=[],devtools:o,persist:s,immer:a}=n;r$e((r=a==null?void 0:a.enabledAutoFreeze)!==null&&r!==void 0?r:!1),a!=null&&a.enableMapSet&&Gwe();const l=[N$e,...i];if(s!=null&&s.enabled){var c;const x={...s,name:(c=s.name)!==null&&c!==void 0?c:t};l.push(_=>A$e(_,x))}o!=null&&o.enabled&&l.push(x=>E$e(x,{...o,name:t})),l.push(uJ);const d=(x=>U$e(x,...l))(()=>e),f=T$e(d),h=X$e(f,t),p=(x,_)=>{d.setState(P=>{Object.assign(P,x)},_||`@@${t}/mergeState`)},m=(x,_)=>{d.setState(x,_||`@@${t}/setState`)},O=M$e(f),g=z$e(f),y=a$e(f),b=L$e(f,y),w={get:{state:d.getState,...g},name:t,set:{state:m,mergeState:p,...h},store:d,use:O,useTracked:b,useStore:f,useTrackedStore:y,extendSelectors:()=>w,extendActions:()=>w};return e3(w)};var ow=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function pJ(t,e){return e={exports:{}},t(e,e.exports),e.exports}var W$e=typeof ow=="object"&&ow&&ow.Object===Object&&ow,mJ=W$e,q$e=typeof self=="object"&&self&&self.Object===Object&&self,V$e=mJ||q$e||Function("return this")(),uf=V$e,Y$e=uf.Symbol,wh=Y$e,gJ=Object.prototype,B$e=gJ.hasOwnProperty,F$e=gJ.toString,j0=wh?wh.toStringTag:void 0;function Z$e(t){var e=B$e.call(t,j0),n=t[j0];try{t[j0]=void 0;var r=!0}catch{}var i=F$e.call(t);return r&&(e?t[j0]=n:delete t[j0]),i}var j$e=Z$e,G$e=Object.prototype,H$e=G$e.toString;function K$e(t){return H$e.call(t)}var J$e=K$e,exe="[object Null]",txe="[object Undefined]",LL=wh?wh.toStringTag:void 0;function nxe(t){return t==null?t===void 0?txe:exe:LL&&LL in Object(t)?j$e(t):J$e(t)}var n0=nxe;function rxe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var CA=rxe,ixe="[object AsyncFunction]",oxe="[object Function]",sxe="[object GeneratorFunction]",axe="[object Proxy]";function lxe(t){if(!CA(t))return!1;var e=n0(t);return e==oxe||e==sxe||e==ixe||e==axe}var vJ=lxe,cxe=uf["__core-js_shared__"],O5=cxe,NL=function(){var t=/[^.]+$/.exec(O5&&O5.keys&&O5.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function uxe(t){return!!NL&&NL in t}var dxe=uxe,fxe=Function.prototype,hxe=fxe.toString;function Oxe(t){if(t!=null){try{return hxe.call(t)}catch{}try{return t+""}catch{}}return""}var lp=Oxe,pxe=/[\\^$.*+?()[\]{}|]/g,mxe=/^\[object .+?Constructor\]$/,gxe=Function.prototype,vxe=Object.prototype,yxe=gxe.toString,bxe=vxe.hasOwnProperty,Sxe=RegExp("^"+yxe.call(bxe).replace(pxe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wxe(t){if(!CA(t)||dxe(t))return!1;var e=vJ(t)?Sxe:mxe;return e.test(lp(t))}var $xe=wxe;function xxe(t,e){return t==null?void 0:t[e]}var _xe=xxe;function kxe(t,e){var n=_xe(t,e);return $xe(n)?n:void 0}var cp=kxe,Pxe=function(){try{var t=cp(Object,"defineProperty");return t({},"",{}),t}catch{}}(),UL=Pxe;function Qxe(t,e,n){e=="__proto__"&&UL?UL(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Txe=Qxe;function Cxe(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[t?a:++i];if(n(o[l],l,o)===!1)break}return e}}var Exe=Cxe,Rxe=Exe(),Axe=Rxe;function Xxe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Ixe=Xxe;function Dxe(t){return t!=null&&typeof t=="object"}var Og=Dxe,zxe="[object Arguments]";function Mxe(t){return Og(t)&&n0(t)==zxe}var WL=Mxe,yJ=Object.prototype,Lxe=yJ.hasOwnProperty,Nxe=yJ.propertyIsEnumerable,Uxe=WL(function(){return arguments}())?WL:function(t){return Og(t)&&Lxe.call(t,"callee")&&!Nxe.call(t,"callee")},bJ=Uxe,Wxe=Array.isArray,Jd=Wxe;function qxe(){return!1}var Vxe=qxe,t3=pJ(function(t,e){var n=e&&!e.nodeType&&e,r=n&&!0&&t&&!t.nodeType&&t,i=r&&r.exports===n,o=i?uf.Buffer:void 0,s=o?o.isBuffer:void 0,a=s||Vxe;t.exports=a}),Yxe=9007199254740991,Bxe=/^(?:0|[1-9]\d*)$/;function Fxe(t,e){var n=typeof t;return e=e==null?Yxe:e,!!e&&(n=="number"||n!="symbol"&&Bxe.test(t))&&t>-1&&t%1==0&&t<e}var SJ=Fxe,Zxe=9007199254740991;function jxe(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Zxe}var EA=jxe,Gxe="[object Arguments]",Hxe="[object Array]",Kxe="[object Boolean]",Jxe="[object Date]",e_e="[object Error]",t_e="[object Function]",n_e="[object Map]",r_e="[object Number]",i_e="[object Object]",o_e="[object RegExp]",s_e="[object Set]",a_e="[object String]",l_e="[object WeakMap]",c_e="[object ArrayBuffer]",u_e="[object DataView]",d_e="[object Float32Array]",f_e="[object Float64Array]",h_e="[object Int8Array]",O_e="[object Int16Array]",p_e="[object Int32Array]",m_e="[object Uint8Array]",g_e="[object Uint8ClampedArray]",v_e="[object Uint16Array]",y_e="[object Uint32Array]",Ii={};Ii[d_e]=Ii[f_e]=Ii[h_e]=Ii[O_e]=Ii[p_e]=Ii[m_e]=Ii[g_e]=Ii[v_e]=Ii[y_e]=!0;Ii[Gxe]=Ii[Hxe]=Ii[c_e]=Ii[Kxe]=Ii[u_e]=Ii[Jxe]=Ii[e_e]=Ii[t_e]=Ii[n_e]=Ii[r_e]=Ii[i_e]=Ii[o_e]=Ii[s_e]=Ii[a_e]=Ii[l_e]=!1;function b_e(t){return Og(t)&&EA(t.length)&&!!Ii[n0(t)]}var S_e=b_e;function w_e(t){return function(e){return t(e)}}var $_e=w_e,qL=pJ(function(t,e){var n=e&&!e.nodeType&&e,r=n&&!0&&t&&!t.nodeType&&t,i=r&&r.exports===n,o=i&&mJ.process,s=function(){try{var a=r&&r.require&&r.require("util").types;return a||o&&o.binding&&o.binding("util")}catch{}}();t.exports=s}),VL=qL&&qL.isTypedArray,x_e=VL?$_e(VL):S_e,wJ=x_e,__e=Object.prototype,k_e=__e.hasOwnProperty;function P_e(t,e){var n=Jd(t),r=!n&&bJ(t),i=!n&&!r&&t3(t),o=!n&&!r&&!i&&wJ(t),s=n||r||i||o,a=s?Ixe(t.length,String):[],l=a.length;for(var c in t)(e||k_e.call(t,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||SJ(c,l)))&&a.push(c);return a}var Q_e=P_e,T_e=Object.prototype;function C_e(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||T_e;return t===n}var E_e=C_e;function R_e(t,e){return function(n){return t(e(n))}}var A_e=R_e,X_e=A_e(Object.keys,Object),I_e=X_e,D_e=Object.prototype,z_e=D_e.hasOwnProperty;function M_e(t){if(!E_e(t))return I_e(t);var e=[];for(var n in Object(t))z_e.call(t,n)&&n!="constructor"&&e.push(n);return e}var L_e=M_e;function N_e(t){return t!=null&&EA(t.length)&&!vJ(t)}var U_e=N_e;function W_e(t){return U_e(t)?Q_e(t):L_e(t)}var RA=W_e;function q_e(t,e){return t&&Axe(t,e,RA)}var V_e=q_e;function Y_e(){this.__data__=[],this.size=0}var B_e=Y_e;function F_e(t,e){return t===e||t!==t&&e!==e}var $J=F_e;function Z_e(t,e){for(var n=t.length;n--;)if($J(t[n][0],e))return n;return-1}var z2=Z_e,j_e=Array.prototype,G_e=j_e.splice;function H_e(t){var e=this.__data__,n=z2(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():G_e.call(e,n,1),--this.size,!0}var K_e=H_e;function J_e(t){var e=this.__data__,n=z2(e,t);return n<0?void 0:e[n][1]}var eke=J_e;function tke(t){return z2(this.__data__,t)>-1}var nke=tke;function rke(t,e){var n=this.__data__,r=z2(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var ike=rke;function r0(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}r0.prototype.clear=B_e;r0.prototype.delete=K_e;r0.prototype.get=eke;r0.prototype.has=nke;r0.prototype.set=ike;var M2=r0;function oke(){this.__data__=new M2,this.size=0}var ske=oke;function ake(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var lke=ake;function cke(t){return this.__data__.get(t)}var uke=cke;function dke(t){return this.__data__.has(t)}var fke=dke,hke=cp(uf,"Map"),ny=hke,Oke=cp(Object,"create"),ry=Oke;function pke(){this.__data__=ry?ry(null):{},this.size=0}var mke=pke;function gke(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var vke=gke,yke="__lodash_hash_undefined__",bke=Object.prototype,Ske=bke.hasOwnProperty;function wke(t){var e=this.__data__;if(ry){var n=e[t];return n===yke?void 0:n}return Ske.call(e,t)?e[t]:void 0}var $ke=wke,xke=Object.prototype,_ke=xke.hasOwnProperty;function kke(t){var e=this.__data__;return ry?e[t]!==void 0:_ke.call(e,t)}var Pke=kke,Qke="__lodash_hash_undefined__";function Tke(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ry&&e===void 0?Qke:e,this}var Cke=Tke;function i0(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}i0.prototype.clear=mke;i0.prototype.delete=vke;i0.prototype.get=$ke;i0.prototype.has=Pke;i0.prototype.set=Cke;var YL=i0;function Eke(){this.size=0,this.__data__={hash:new YL,map:new(ny||M2),string:new YL}}var Rke=Eke;function Ake(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Xke=Ake;function Ike(t,e){var n=t.__data__;return Xke(e)?n[typeof e=="string"?"string":"hash"]:n.map}var L2=Ike;function Dke(t){var e=L2(this,t).delete(t);return this.size-=e?1:0,e}var zke=Dke;function Mke(t){return L2(this,t).get(t)}var Lke=Mke;function Nke(t){return L2(this,t).has(t)}var Uke=Nke;function Wke(t,e){var n=L2(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var qke=Wke;function o0(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}o0.prototype.clear=Rke;o0.prototype.delete=zke;o0.prototype.get=Lke;o0.prototype.has=Uke;o0.prototype.set=qke;var N2=o0,Vke=200;function Yke(t,e){var n=this.__data__;if(n instanceof M2){var r=n.__data__;if(!ny||r.length<Vke-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new N2(r)}return n.set(t,e),this.size=n.size,this}var Bke=Yke;function s0(t){var e=this.__data__=new M2(t);this.size=e.size}s0.prototype.clear=ske;s0.prototype.delete=lke;s0.prototype.get=uke;s0.prototype.has=fke;s0.prototype.set=Bke;var Z$=s0,Fke="__lodash_hash_undefined__";function Zke(t){return this.__data__.set(t,Fke),this}var jke=Zke;function Gke(t){return this.__data__.has(t)}var Hke=Gke;function c_(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new N2;++e<n;)this.add(t[e])}c_.prototype.add=c_.prototype.push=jke;c_.prototype.has=Hke;var Kke=c_;function Jke(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var e2e=Jke;function t2e(t,e){return t.has(e)}var n2e=t2e,r2e=1,i2e=2;function o2e(t,e,n,r,i,o){var s=n&r2e,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(t),u=o.get(e);if(c&&u)return c==e&&u==t;var d=-1,f=!0,h=n&i2e?new Kke:void 0;for(o.set(t,e),o.set(e,t);++d<a;){var p=t[d],m=e[d];if(r)var O=s?r(m,p,d,e,t,o):r(p,m,d,t,e,o);if(O!==void 0){if(O)continue;f=!1;break}if(h){if(!e2e(e,function(g,y){if(!n2e(h,y)&&(p===g||i(p,g,n,r,o)))return h.push(y)})){f=!1;break}}else if(!(p===m||i(p,m,n,r,o))){f=!1;break}}return o.delete(t),o.delete(e),f}var xJ=o2e,s2e=uf.Uint8Array,BL=s2e;function a2e(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}var l2e=a2e;function c2e(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var u2e=c2e,d2e=1,f2e=2,h2e="[object Boolean]",O2e="[object Date]",p2e="[object Error]",m2e="[object Map]",g2e="[object Number]",v2e="[object RegExp]",y2e="[object Set]",b2e="[object String]",S2e="[object Symbol]",w2e="[object ArrayBuffer]",$2e="[object DataView]",FL=wh?wh.prototype:void 0,p5=FL?FL.valueOf:void 0;function x2e(t,e,n,r,i,o,s){switch(n){case $2e:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w2e:return!(t.byteLength!=e.byteLength||!o(new BL(t),new BL(e)));case h2e:case O2e:case g2e:return $J(+t,+e);case p2e:return t.name==e.name&&t.message==e.message;case v2e:case b2e:return t==e+"";case m2e:var a=l2e;case y2e:var l=r&d2e;if(a||(a=u2e),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;r|=f2e,s.set(t,e);var u=xJ(a(t),a(e),r,i,o,s);return s.delete(t),u;case S2e:if(p5)return p5.call(t)==p5.call(e)}return!1}var _2e=x2e;function k2e(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var P2e=k2e;function Q2e(t,e,n){var r=e(t);return Jd(t)?r:P2e(r,n(t))}var T2e=Q2e;function C2e(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}var E2e=C2e;function R2e(){return[]}var A2e=R2e,X2e=Object.prototype,I2e=X2e.propertyIsEnumerable,ZL=Object.getOwnPropertySymbols,D2e=ZL?function(t){return t==null?[]:(t=Object(t),E2e(ZL(t),function(e){return I2e.call(t,e)}))}:A2e,z2e=D2e;function M2e(t){return T2e(t,RA,z2e)}var jL=M2e,L2e=1,N2e=Object.prototype,U2e=N2e.hasOwnProperty;function W2e(t,e,n,r,i,o){var s=n&L2e,a=jL(t),l=a.length,c=jL(e),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var f=a[d];if(!(s?f in e:U2e.call(e,f)))return!1}var h=o.get(t),p=o.get(e);if(h&&p)return h==e&&p==t;var m=!0;o.set(t,e),o.set(e,t);for(var O=s;++d<l;){f=a[d];var g=t[f],y=e[f];if(r)var b=s?r(y,g,f,e,t,o):r(g,y,f,t,e,o);if(!(b===void 0?g===y||i(g,y,n,r,o):b)){m=!1;break}O||(O=f=="constructor")}if(m&&!O){var w=t.constructor,x=e.constructor;w!=x&&"constructor"in t&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(m=!1)}return o.delete(t),o.delete(e),m}var q2e=W2e,V2e=cp(uf,"DataView"),n3=V2e,Y2e=cp(uf,"Promise"),r3=Y2e,B2e=cp(uf,"Set"),i3=B2e,F2e=cp(uf,"WeakMap"),o3=F2e,GL="[object Map]",Z2e="[object Object]",HL="[object Promise]",KL="[object Set]",JL="[object WeakMap]",eN="[object DataView]",j2e=lp(n3),G2e=lp(ny),H2e=lp(r3),K2e=lp(i3),J2e=lp(o3),OO=n0;(n3&&OO(new n3(new ArrayBuffer(1)))!=eN||ny&&OO(new ny)!=GL||r3&&OO(r3.resolve())!=HL||i3&&OO(new i3)!=KL||o3&&OO(new o3)!=JL)&&(OO=function(t){var e=n0(t),n=e==Z2e?t.constructor:void 0,r=n?lp(n):"";if(r)switch(r){case j2e:return eN;case G2e:return GL;case H2e:return HL;case K2e:return KL;case J2e:return JL}return e});var tN=OO,ePe=1,nN="[object Arguments]",rN="[object Array]",sw="[object Object]",tPe=Object.prototype,iN=tPe.hasOwnProperty;function nPe(t,e,n,r,i,o){var s=Jd(t),a=Jd(e),l=s?rN:tN(t),c=a?rN:tN(e);l=l==nN?sw:l,c=c==nN?sw:c;var u=l==sw,d=c==sw,f=l==c;if(f&&t3(t)){if(!t3(e))return!1;s=!0,u=!1}if(f&&!u)return o||(o=new Z$),s||wJ(t)?xJ(t,e,n,r,i,o):_2e(t,e,l,n,r,i,o);if(!(n&ePe)){var h=u&&iN.call(t,"__wrapped__"),p=d&&iN.call(e,"__wrapped__");if(h||p){var m=h?t.value():t,O=p?e.value():e;return o||(o=new Z$),i(m,O,n,r,o)}}return f?(o||(o=new Z$),q2e(t,e,n,r,i,o)):!1}var rPe=nPe;function _J(t,e,n,r,i){return t===e?!0:t==null||e==null||!Og(t)&&!Og(e)?t!==t&&e!==e:rPe(t,e,n,r,_J,i)}var kJ=_J,iPe=1,oPe=2;function sPe(t,e,n,r){var i=n.length,o=i,s=!r;if(t==null)return!o;for(t=Object(t);i--;){var a=n[i];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){a=n[i];var l=a[0],c=t[l],u=a[1];if(s&&a[2]){if(c===void 0&&!(l in t))return!1}else{var d=new Z$;if(r)var f=r(c,u,l,t,e,d);if(!(f===void 0?kJ(u,c,iPe|oPe,r,d):f))return!1}}return!0}var aPe=sPe;function lPe(t){return t===t&&!CA(t)}var PJ=lPe;function cPe(t){for(var e=RA(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,PJ(i)]}return e}var uPe=cPe;function dPe(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var QJ=dPe;function fPe(t){var e=uPe(t);return e.length==1&&e[0][2]?QJ(e[0][0],e[0][1]):function(n){return n===t||aPe(n,t,e)}}var hPe=fPe,OPe="[object Symbol]";function pPe(t){return typeof t=="symbol"||Og(t)&&n0(t)==OPe}var AA=pPe,mPe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gPe=/^\w*$/;function vPe(t,e){if(Jd(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||AA(t)?!0:gPe.test(t)||!mPe.test(t)||e!=null&&t in Object(e)}var XA=vPe,yPe="Expected a function";function IA(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(yPe);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(IA.Cache||N2),n}IA.Cache=N2;var bPe=IA,SPe=500;function wPe(t){var e=bPe(t,function(r){return n.size===SPe&&n.clear(),r}),n=e.cache;return e}var $Pe=wPe,xPe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_Pe=/\\(\\)?/g,kPe=$Pe(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(xPe,function(n,r,i,o){e.push(i?o.replace(_Pe,"$1"):r||n)}),e}),PPe=kPe;function QPe(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var TPe=QPe,CPe=1/0,oN=wh?wh.prototype:void 0,sN=oN?oN.toString:void 0;function TJ(t){if(typeof t=="string")return t;if(Jd(t))return TPe(t,TJ)+"";if(AA(t))return sN?sN.call(t):"";var e=t+"";return e=="0"&&1/t==-CPe?"-0":e}var EPe=TJ;function RPe(t){return t==null?"":EPe(t)}var APe=RPe;function XPe(t,e){return Jd(t)?t:XA(t,e)?[t]:PPe(APe(t))}var CJ=XPe,IPe=1/0;function DPe(t){if(typeof t=="string"||AA(t))return t;var e=t+"";return e=="0"&&1/t==-IPe?"-0":e}var U2=DPe;function zPe(t,e){e=CJ(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[U2(e[n++])];return n&&n==r?t:void 0}var EJ=zPe;function MPe(t,e,n){var r=t==null?void 0:EJ(t,e);return r===void 0?n:r}var LPe=MPe;function NPe(t,e){return t!=null&&e in Object(t)}var UPe=NPe;function WPe(t,e,n){e=CJ(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var s=U2(e[r]);if(!(o=t!=null&&n(t,s)))break;t=t[s]}return o||++r!=i?o:(i=t==null?0:t.length,!!i&&EA(i)&&SJ(s,i)&&(Jd(t)||bJ(t)))}var qPe=WPe;function VPe(t,e){return t!=null&&qPe(t,e,UPe)}var YPe=VPe,BPe=1,FPe=2;function ZPe(t,e){return XA(t)&&PJ(e)?QJ(U2(t),e):function(n){var r=LPe(n,t);return r===void 0&&r===e?YPe(n,t):kJ(e,r,BPe|FPe)}}var jPe=ZPe;function GPe(t){return t}var HPe=GPe;function KPe(t){return function(e){return e==null?void 0:e[t]}}var JPe=KPe;function eQe(t){return function(e){return EJ(e,t)}}var tQe=eQe;function nQe(t){return XA(t)?JPe(U2(t)):tQe(t)}var rQe=nQe;function iQe(t){return typeof t=="function"?t:t==null?HPe:typeof t=="object"?Jd(t)?jPe(t[0],t[1]):hPe(t):rQe(t)}var oQe=iQe;function sQe(t,e){var n={};return e=oQe(e),V_e(t,function(r,i,o){Txe(n,i,e(r,i,o))}),n}var aQe=sQe;const W2=(t,e)=>aQe(e,n=>n[t]),Gu=Object.create(null);Gu.open="0";Gu.close="1";Gu.ping="2";Gu.pong="3";Gu.message="4";Gu.upgrade="5";Gu.noop="6";const j$=Object.create(null);Object.keys(Gu).forEach(t=>{j$[Gu[t]]=t});const lQe={type:"error",data:"parser error"},cQe=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",uQe=typeof ArrayBuffer=="function",dQe=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,RJ=({type:t,data:e},n,r)=>cQe&&e instanceof Blob?n?r(e):aN(e,r):uQe&&(e instanceof ArrayBuffer||dQe(e))?n?r(e):aN(new Blob([e]),r):r(Gu[t]+(e||"")),aN=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)},lN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C1=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(let t=0;t<lN.length;t++)C1[lN.charCodeAt(t)]=t;const fQe=t=>{let e=t.length*.75,n=t.length,r,i=0,o,s,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const c=new ArrayBuffer(e),u=new Uint8Array(c);for(r=0;r<n;r+=4)o=C1[t.charCodeAt(r)],s=C1[t.charCodeAt(r+1)],a=C1[t.charCodeAt(r+2)],l=C1[t.charCodeAt(r+3)],u[i++]=o<<2|s>>4,u[i++]=(s&15)<<4|a>>2,u[i++]=(a&3)<<6|l&63;return c},hQe=typeof ArrayBuffer=="function",AJ=(t,e)=>{if(typeof t!="string")return{type:"message",data:XJ(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:OQe(t.substring(1),e)}:j$[n]?t.length>1?{type:j$[n],data:t.substring(1)}:{type:j$[n]}:lQe},OQe=(t,e)=>{if(hQe){const n=fQe(t);return XJ(n,e)}else return{base64:!0,data:t}},XJ=(t,e)=>{switch(e){case"blob":return t instanceof ArrayBuffer?new Blob([t]):t;case"arraybuffer":default:return t}},IJ=String.fromCharCode(30),pQe=(t,e)=>{const n=t.length,r=new Array(n);let i=0;t.forEach((o,s)=>{RJ(o,!1,a=>{r[s]=a,++i===n&&e(r.join(IJ))})})},mQe=(t,e)=>{const n=t.split(IJ),r=[];for(let i=0;i<n.length;i++){const o=AJ(n[i],e);if(r.push(o),o.type==="error")break}return r},DJ=4;function No(t){if(t)return gQe(t)}function gQe(t){for(var e in No.prototype)t[e]=No.prototype[e];return t}No.prototype.on=No.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};No.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};No.prototype.off=No.prototype.removeListener=No.prototype.removeAllListeners=No.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===e||r.fn===e){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+t],this};No.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,e)}return this};No.prototype.emitReserved=No.prototype.emit;No.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};No.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Hl=(()=>typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")())();function zJ(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const vQe=Hl.setTimeout,yQe=Hl.clearTimeout;function q2(t,e){e.useNativeTimers?(t.setTimeoutFn=vQe.bind(Hl),t.clearTimeoutFn=yQe.bind(Hl)):(t.setTimeoutFn=Hl.setTimeout.bind(Hl),t.clearTimeoutFn=Hl.clearTimeout.bind(Hl))}const bQe=1.33;function SQe(t){return typeof t=="string"?wQe(t):Math.ceil((t.byteLength||t.size)*bQe)}function wQe(t){let e=0,n=0;for(let r=0,i=t.length;r<i;r++)e=t.charCodeAt(r),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(r++,n+=4);return n}class $Qe extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}}class MJ extends No{constructor(e){super(),this.writable=!1,q2(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,r){return super.emitReserved("error",new $Qe(e,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=AJ(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}}const LJ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),s3=64,xQe={};let cN=0,aw=0,uN;function dN(t){let e="";do e=LJ[t%s3]+e,t=Math.floor(t/s3);while(t>0);return e}function NJ(){const t=dN(+new Date);return t!==uN?(cN=0,uN=t):t+"."+dN(cN++)}for(;aw<s3;aw++)xQe[LJ[aw]]=aw;function UJ(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function _Qe(t){let e={},n=t.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}let WJ=!1;try{WJ=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch{}const kQe=WJ;function qJ(t){const e=t.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!e||kQe))return new XMLHttpRequest}catch{}if(!e)try{return new Hl[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function PQe(){}const QQe=function(){return new qJ({xdomain:!1}).responseType!=null}();class TQe extends MJ{constructor(e){if(super(e),this.polling=!1,typeof location!="undefined"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location!="undefined"&&e.hostname!==location.hostname||i!==e.port,this.xs=e.secure!==r}const n=e&&e.forceBase64;this.supportsBinary=QQe&&!n}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};mQe(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,pQe(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=NJ()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const i=UJ(e),o=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new Vu(this.uri(),e)}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}class Vu extends No{constructor(e,n){super(),q2(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const e=zJ(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const n=this.xhr=new qJ(e);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document!="undefined"&&(this.index=Vu.requestsCount++,Vu.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.xhr.onreadystatechange=PQe,e)try{this.xhr.abort()}catch{}typeof document!="undefined"&&delete Vu.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Vu.requestsCount=0;Vu.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",fN);else if(typeof addEventListener=="function"){const t="onpagehide"in Hl?"pagehide":"unload";addEventListener(t,fN,!1)}}function fN(){for(let t in Vu.requests)Vu.requests.hasOwnProperty(t)&&Vu.requests[t].abort()}const VJ=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0))(),lw=Hl.WebSocket||Hl.MozWebSocket,hN=!0,CQe="arraybuffer",ON=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class EQe extends MJ{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,r=ON?{}:zJ(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=hN&&!ON?n?new lw(e,n):new lw(e):new lw(e,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||CQe,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const r=e[n],i=n===e.length-1;RJ(r,this.supportsBinary,o=>{const s={};try{hN&&this.ws.send(o)}catch{}i&&VJ(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=NJ()),this.supportsBinary||(e.b64=1);const i=UJ(e),o=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}check(){return!!lw}}const RQe={websocket:EQe,polling:TQe},AQe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,XQe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function a3(t){const e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let i=AQe.exec(t||""),o={},s=14;for(;s--;)o[XQe[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=IQe(o,o.path),o.queryKey=DQe(o,o.query),o}function IQe(t,e){const n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function DQe(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}class qf extends No{constructor(e,n={}){super(),this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=a3(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=a3(n.host).host),q2(this,n),this.secure=n.secure!=null?n.secure:typeof location!="undefined"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=n.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=_Qe(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=DJ,n.transport=e,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[e],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new RQe[e](r)}open(){let e;if(this.opts.rememberUpgrade&&qf.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),r=!1;qf.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;qf.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function o(){r||(r=!0,u(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,o(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function c(d){n&&d.name!==n.name&&o()}const u=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",c),n.open()}onOpen(){if(this.readyState="open",qf.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e<n;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=e.data,this.onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=SQe(i)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(e,n,r){return this.sendPacket("message",e,n,r),this}send(e,n,r){return this.sendPacket("message",e,n,r),this}sendPacket(e,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:e,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){qf.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let r=0;const i=e.length;for(;r<i;r++)~this.transports.indexOf(e[r])&&n.push(e[r]);return n}}qf.protocol=DJ;function zQe(t,e="",n){let r=t;n=n||typeof location!="undefined"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n!="undefined"?t=n.protocol+"//"+t:t="https://"+t),r=a3(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+e,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const MQe=typeof ArrayBuffer=="function",LQe=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,YJ=Object.prototype.toString,NQe=typeof Blob=="function"||typeof Blob!="undefined"&&YJ.call(Blob)==="[object BlobConstructor]",UQe=typeof File=="function"||typeof File!="undefined"&&YJ.call(File)==="[object FileConstructor]";function DA(t){return MQe&&(t instanceof ArrayBuffer||LQe(t))||NQe&&t instanceof Blob||UQe&&t instanceof File}function G$(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(G$(t[n]))return!0;return!1}if(DA(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return G$(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&G$(t[n]))return!0;return!1}function WQe(t){const e=[],n=t.data,r=t;return r.data=l3(n,e),r.attachments=e.length,{packet:r,buffers:e}}function l3(t,e){if(!t)return t;if(DA(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=l3(t[r],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=l3(t[r],e));return n}return t}function qQe(t,e){return t.data=c3(t.data,e),delete t.attachments,t}function c3(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=c3(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=c3(t[n],e));return t}const VQe=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],YQe=5;var $r;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})($r||($r={}));class BQe{constructor(e){this.replacer=e}encode(e){return(e.type===$r.EVENT||e.type===$r.ACK)&&G$(e)?this.encodeAsBinary({type:e.type===$r.EVENT?$r.BINARY_EVENT:$r.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===$r.BINARY_EVENT||e.type===$r.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=WQe(e),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function pN(t){return Object.prototype.toString.call(t)==="[object Object]"}class zA extends No{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const r=n.type===$r.BINARY_EVENT;r||n.type===$r.BINARY_ACK?(n.type=r?$r.EVENT:$r.ACK,this.reconstructor=new FQe(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(DA(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const r={type:Number(e.charAt(0))};if($r[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===$r.BINARY_EVENT||r.type===$r.BINARY_ACK){const o=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const s=e.substring(o,n);if(s!=Number(s)||e.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(e.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););r.nsp=e.substring(o,n)}else r.nsp="/";const i=e.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=e.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===e.length)break}r.id=Number(e.substring(o,n+1))}if(e.charAt(++n)){const o=this.tryParse(e.substr(n));if(zA.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case $r.CONNECT:return pN(n);case $r.DISCONNECT:return n===void 0;case $r.CONNECT_ERROR:return typeof n=="string"||pN(n);case $r.EVENT:case $r.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&VQe.indexOf(n[0])===-1);case $r.ACK:case $r.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class FQe{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=qQe(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var ZQe=Object.freeze(Object.defineProperty({__proto__:null,protocol:YQe,get PacketType(){return $r},Encoder:BQe,Decoder:zA},Symbol.toStringTag,{value:"Module"}));function Wc(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const jQe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class BJ extends No{constructor(e,n,r){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=e,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Wc(e,"open",this.onopen.bind(this)),Wc(e,"packet",this.onpacket.bind(this)),Wc(e,"error",this.onerror.bind(this)),Wc(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){if(jQe.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:$r.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,a=n.pop();this._registerAckCallback(s,a),r.id=s}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[e]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===e&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},i);this.acks[e]=(...s)=>{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}emitWithAck(e,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((s,a)=>r?s?o(s):i(a):i(s)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:$r.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case $r.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new 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 $r.EVENT:case $r.BINARY_EVENT:this.onevent(e);break;case $r.ACK:case $r.BINARY_ACK:this.onack(e);break;case $r.DISCONNECT:this.ondisconnect();break;case $r.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:$r.ACK,id:e,data:i}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:$r.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,e.data)}}}function a0(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}a0.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=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};a0.prototype.reset=function(){this.attempts=0};a0.prototype.setMin=function(t){this.ms=t};a0.prototype.setMax=function(t){this.max=t};a0.prototype.setJitter=function(t){this.jitter=t};class u3 extends No{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,q2(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new a0({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const i=n.parser||ZQe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new qf(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Wc(n,"open",function(){r.onopen(),e&&e()}),o=Wc(n,"error",s=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",s),e?e(s):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&i();const a=this.setTimeoutFn(()=>{i(),n.close(),n.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Wc(e,"ping",this.onping.bind(this)),Wc(e,"data",this.ondata.bind(this)),Wc(e,"error",this.onerror.bind(this)),Wc(e,"close",this.onclose.bind(this)),Wc(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){VJ(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new BJ(this,e,n),this.nsps[e]=r),r}_destroy(e){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const G0={};function H$(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=zQe(t,e.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=G0[i]&&o in G0[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s;let l;return a?l=new u3(r,e):(G0[i]||(G0[i]=new u3(r,e)),l=G0[i]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(H$,{Manager:u3,Socket:BJ,io:H$,connect:H$});var tt=(t=>(t.RunUnitTestStatus="runUnitTestStatus",t.RunUnitTestResult="runUnitTestResult",t.StopUnitTestResult="stopUnitTestResult",t.RumCmdResult="rumCmdResult",t.StopRunCmdResult="stopRunCmdResult",t.InitError="initError",t.UnFocusEditor="unFocusEditor",t.FileOpenDone="fileOpenDone",t.PreviewImage="previewImage",t.ReplaceCodeDone="replaceCodeDone",t.FileTreeAction="fileTreeAction",t.Loading="loading",t.OpenLimitFile="openLimitFile",t.Ready="ready",t.Offline="offline",t.Online="online",t.Reconnecting="reconnecting",t.StatusChanged="statusChanged",t.UnitTestRunResult="unitTestRunResult",t.PausePlayback="pausePlayback",t.LspStatusChanged="lspStatusChanged",t.PlaygroundChanged="playgroundChanged",t.Following="following",t.UnFollowing="unFollowing",t.StopLSPServer="stopLSPServer",t.RunStatusChanged="runStatusChanged",t.FileStructureChanged="fileStructureChanged",t.FileContentChanged="fileContentChanged",t.AppendToConsole="appendToConsole",t.AppendToTerminal="appendToTerminal",t.ApplicationAvailable="ApplicationAvailable",t.PlaybackInfo="playbackInfo",t.ReplayStart="ReplayStart",t.ReplayEnd="ReplayEnd",t.Customize="customize",t.UserEnter="userEnter",t.UserLeave="userLeave",t.UsersUpdated="usersUpdated",t.EditorScroll="editorScroll",t.ConnectionBroken="connectionBroken",t.ConnectionFailed="connectionFailed",t.AuthorizationFailed="authorizationFailed",t.FileStructureDamaged="fileStructureDamaged",t.ErrorFromServer="errorFromServer",t.AppendCustomizeFrameData="appendCustomizeFrameData",t.LineAction="lineAction",t.FileInfo="fileInfo",t.InsertTextById="insertTextById",t.ReplaceCodeById="replaceCodeById",t.UpdateAreaFlags="updateAreaFlags",t.Debug="debug",t.JumpToAreaById="jumpToAreaById",t.Xterm="xterm",t.ResourceMonitoring="resourceMonitoring",t.AnswerAreaOperate="answerAreaOperate",t.AnswerAreaInfo="answerAreaInfo",t.XtermInfo="xtermInfo",t.InsertCodeByCursorPosition="insertCodeByCursorPosition",t.ReplayCodeByRange="replayCodeByRange",t.BehindTooMuch="behindTooMuch",t.CloseRunLoading="closeRunLoading",t.DevtoolStatusChange="devtoolStatusChange",t.ShowPreviewMDIframe="showPreviewMDIframe",t))(tt||{}),Fn=(t=>(t.GetUnitTestFun="getUnitTestFun",t.OpenFileByFollow="openFileByFollow",t.RunUnitTestResult="runUnitTestResult",t.StopUnitTest="stopUnitTest",t.StopRunCmd="stopRunCmd",t.RunCmd="rumCmd",t.RunCmdResult="rumCmdResult",t.RetainingAllFiles="retainingAllFiles",t.Authorize="auth",t.LiveBrowser="liveBrowser",t.RRWeb="rrweb",t.Active="active",t.Run="run",t.Stop="stop",t.Heartbeat="heartbeat",t.SetFileLockStatus="",t.SetFileVisiable="",t.AddFileToUnitTest="",t.RemoveFileFromUnitTest="",t.KeyEvent="keyEvent",t.File="file",t.CloseFile="closeFile",t.EditFile="editFile",t.FileTree="fileTree",t.FileSearchKeyword="fileSearchKeyword",t.Terminal="terminal",t.XtermStatus="XtermStatus",t.Cursor="cursor",t.GetPlaybackInfo="getPlaybackInfo",t.LoadPlaybackData="loadPlaybackData",t.FollowingAgentUser="followingAgentUser",t.UnFollowingAgentUser="unFollowingAgentUser",t.FollowingFocusComponent="followingFocusComponent",t.EditorScroll="editorScroll",t.CustomizeFrameData="appendCustomizeFrameData",t.AddCDNSource="addCDNSource",t.RestartServer="restartServer",t.RestartLSPServer="restartLSPServer",t.StopLSPServer="stopLSPServer",t.SwitchLanguage="switchLanguage",t.StatisticsPlaybackData="statisticsPlaybackData",t.ReconnectOnline="reconnectOnline",t))(Fn||{}),dt=(t=>(t.Connect="connect",t.Disconnect="disconnect",t.AuthAck="authAck",t.Active="active",t.StopLSPServer="stopLSPServer",t.SyncPlaygroundInfo="syncPlaygroundInfo",t.ChangePlaygroundInfo="changePlaygroundInfo",t.FileChange="fileChange",t.FileSearchKeyword="fileGrep",t.RunStatus="runStatus",t.LspStatus="lspStatus",t.UpdatePlaygroundInfo="updatePlaygroundInfo",t.Following="following",t.UnFollowing="unFollowing",t.UserEnter="userEnter",t.UserLeave="userLeave",t.UsersUpdated="usersUpdated",t.FileWatchRefreshConfig="fileWatchRefreshConfig",t.ManualRefresh="manualRefresh",t.EditorBlur="editorBlur",t.ForceRefreshFile="forceRefreshFile",t.InitRRweb="initRRweb",t.Simulator="simulator",t.PlaybackInfo="playbackInfo",t.PlaybackData="playbackData",t.File="file",t.FileTree="fileTree",t.Run="run",t.Console="console",t.Terminal="terminal",t.XtermStatus="XtermStatus",t.Editor="editor",t.Debug="debug",t.KeyEvent="keyEvent",t.CloseFile="closeFile",t.FocusComponent="FocusComponent",t.InvisibleComponentActive="InvisibleComponentActive",t.AppendCustomizeFrameData="appendCustomizeFrameData",t.TerminalStatus="terminalStatus",t.LspServerClientStateChange="lspServerClientStateChange",t.I18nLanguage="i18nLanguage",t.RegisterVirtualUser="registerVirtualUser",t.offlineVirtualUser="offlineVirtualUser",t.SwitchVirtualUser="switchVirtualUser",t.PushFormatCode="pushFormatCode",t.ResourceMonitoring="resourceMonitoring",t.CustomExecute="customExecute",t.SelectedUpdated="selectedUpdated",t.SetBreakPoint="setBreakPoint",t.DebugRun="debugRun",t.StoppedData="stoppedData",t.DebugNext="next",t.DebugContinue="continue",t.DebugStatus="debugStatus",t.DebugStepIn="stepIn",t.DebugStepOut="stepOut",t.Variables="variables",t.UpdateArea="updateArea",t.UpdateDebugSupport="updateDebugSupport",t.SyncDebugData="syncDebugData",t))(dt||{}),PO=(t=>(t.NotSupport="notSupport",t.Loading="loading",t.Running="running",t.Shutdown="shutdown",t.LspReady="lspReady",t.Uninitialized="uninitialized",t))(PO||{}),cw,GQe=new Uint8Array(16);function HQe(){if(!cw&&(cw=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!cw))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cw(GQe)}var KQe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function JQe(t){return typeof t=="string"&&KQe.test(t)}var vs=[];for(var m5=0;m5<256;++m5)vs.push((m5+256).toString(16).substr(1));function e4e(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(vs[t[e+0]]+vs[t[e+1]]+vs[t[e+2]]+vs[t[e+3]]+"-"+vs[t[e+4]]+vs[t[e+5]]+"-"+vs[t[e+6]]+vs[t[e+7]]+"-"+vs[t[e+8]]+vs[t[e+9]]+"-"+vs[t[e+10]]+vs[t[e+11]]+vs[t[e+12]]+vs[t[e+13]]+vs[t[e+14]]+vs[t[e+15]]).toLowerCase();if(!JQe(n))throw TypeError("Stringified UUID is invalid");return n}function Ld(t,e,n){t=t||{};var r=t.random||(t.rng||HQe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return e4e(r)}class FJ{constructor(e,n=2e3){Je(this,"name");Je(this,"channel");Je(this,"_timeout");Je(this,"_messageId");Je(this,"_messages");Je(this,"_filter");this.name=e,this._messageId=0,this.channel=new BroadcastChannel(e),this.channel.onmessage=r=>this.receive(r),this._messages=[],this._timeout=n}setFilter(e){this._filter=e}send(e,n){const r=Ld(),i=new t4e(r,n||this._timeout),o=new Promise((s,a)=>{i._reject=a,i._resolve=s});return this._messages.push(i),this.channel.postMessage({id:r,type:"request",payload:e}),o}answer(e,n){this.channel.postMessage({id:e,type:"response",payload:n})}receive(e){const n=e.data;if(n.type==="request")(!this._filter||this._filter(n.payload))&&this.answer(n.id,{active:!0});else if(n.type==="response"){const r=this._messages.find(i=>i.id===n.id);r==null||r.reject(n.payload)}}}class t4e{constructor(e,n){Je(this,"_resolve");Je(this,"_reject");Je(this,"_interval");Je(this,"id");this.id=e,this._interval=setTimeout(()=>this.resolve({active:!1,reason:"timeout, no one uses it"}),n)}resolve(e){clearTimeout(this._interval),this._resolve(e)}reject(e){this._reject(e)}}let _m,QO;async function mN(){QO||(QO=new FJ("dao-paas",200)),_m="",QO.setFilter(n=>n.id===_m);const t=JSON.parse(window.navigator.cookieEnabled&&localStorage.getItem("agentUsers")||"[]")||[],e=[];for(const n of t){const r=QO.send(n).then(()=>{if(_m==="")return n.time=new Date().getTime(),_m=n.id,window.navigator.cookieEnabled&&localStorage.setItem("agentUsers",JSON.stringify(t)),Promise.resolve(n)});e.push(r)}return Promise.any(e)}async function n4e(t){QO||(QO=new FJ("dao-paas",500));let e=!0;try{await QO.send(t),e=!0}catch{e=!1}return e}function r4e(t){const e=JSON.parse(window.navigator.cookieEnabled&&localStorage.getItem("agentUsers")||"[]")||[],n=e.find(r=>r.id==t);n?n.time=new Date().getTime():e.push({id:t,time:new Date().getTime()}),window.navigator.cookieEnabled&&localStorage.setItem("agentUsers",JSON.stringify(e)),_m=t}function i4e(t){return t===_m}const ZJ="daoLogger",o4e=typeof module=="object"&&typeof module.exports=="object",H0=o4e?global:window,jJ=H0&&H0.navigator&&H0.navigator.cookieEnabled&&H0.localStorage?H0.localStorage:{store:{},getItem(t){return this.store[t]},setItem(t,e){this.store[t]=e}},at=Object.keys(console).reduce((t,e)=>(jJ.getItem(ZJ)?t[e]=(...n)=>{var i;(i=console[e])==null||i.call(console,...n);const r=window.customLog;r==null||r(e,n)}:t[e]=function(...n){const r=window.customLog;r==null||r(e,n)},t),{}),s4e=()=>{jJ.setItem(ZJ,"*")};function ao(t){return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ao(t)}function fa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a4e(t,e){if(ao(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ao(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function GJ(t){var e=a4e(t,"string");return ao(e)==="symbol"?e:String(e)}function gN(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,GJ(r.key),r)}}function ha(t,e,n){return e&&gN(t.prototype,e),n&&gN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u_(t,e){return u_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},u_(t,e)}function Mh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u_(t,e)}function l0(t,e){if(e&&(ao(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vl(t)}function vc(t){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vc(t)}function On(t,e,n){return e=GJ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function HJ(t){if(Array.isArray(t))return t}function KJ(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function d3(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function MA(t,e){if(!!t){if(typeof t=="string")return d3(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d3(t,e)}}function JJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
49
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l4e(t){return HJ(t)||KJ(t)||MA(t)||JJ()}function vN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function yN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var c4e={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},u4e=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fa(this,t),this.init(e,n)}return ha(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||c4e,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new t(this.logger,yN(yN({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),Iu=new u4e,$h=function(){function t(){fa(this,t),this.observers={}}return ha(t,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(!!this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var s=[].concat(this.observers[n]);s.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),t}();function K0(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function bN(t){return t==null?"":""+t}function d4e(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function LA(t,e,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}function i(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={}}return i()?{}:{obj:t,k:r(o.shift())}}function SN(t,e,n){var r=LA(t,e,Object),i=r.obj,o=r.k;i[o]=n}function f4e(t,e,n,r){var i=LA(t,e,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function d_(t,e){var n=LA(t,e),r=n.obj,i=n.k;if(!!r)return r[i]}function wN(t,e,n){var r=d_(t,n);return r!==void 0?r:d_(e,n)}function eee(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):eee(t[r],e[r],n):t[r]=e[r]);return t}function Ip(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var h4e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function O4e(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return h4e[e]}):t}var V2=typeof window!="undefined"&&window.navigator&&typeof window.navigator.userAgentData=="undefined"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,p4e=[" ",",","?","!",";"];function m4e(t,e,n){e=e||"",n=n||"";var r=p4e.filter(function(a){return e.indexOf(a)<0&&n.indexOf(a)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(a){return a==="?"?"\\?":a}).join("|"),")")),o=!i.test(t);if(!o){var s=t.indexOf(n);s>0&&!i.test(t.substring(0,s))&&(o=!0)}return o}function $N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function uw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$N(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$N(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function g4e(t){var e=v4e();return function(){var r=vc(t),i;if(e){var o=vc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return l0(this,i)}}function v4e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tee(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!t){if(t[e])return t[e];for(var r=e.split(n),i=t,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var s=2,a=r.slice(o,o+s).join(n),l=i[a];l===void 0&&r.length>o+s;)s++,a=r.slice(o,o+s).join(n),l=i[a];if(l===void 0)return;if(l===null)return null;if(e.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}var c=r.slice(o+s).join(n);return c?tee(l,c,n):void 0}i=i[r[o]]}return i}}var y4e=function(t){Mh(n,t);var e=g4e(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return fa(this,n),i=e.call(this),V2&&$h.call(vl(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return ha(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[i,o];s&&typeof s!="string"&&(u=u.concat(s)),s&&typeof s=="string"&&(u=u.concat(l?s.split(l):s)),i.indexOf(".")>-1&&(u=i.split("."));var d=d_(this.data,u);return d||!c||typeof s!="string"?d:tee(this.data&&this.data[i]&&this.data[i][o],s,l)}},{key:"addResource",value:function(i,o,s,a){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var u=[i,o];s&&(u=u.concat(c?s.split(c):s)),i.indexOf(".")>-1&&(u=i.split("."),a=o,o=u[1]),this.addNamespaces(o),SN(this.data,u,a),l.silent||this.emit("added",i,o,s,a)}},{key:"addResources",value:function(i,o,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in s)(typeof s[l]=="string"||Object.prototype.toString.apply(s[l])==="[object Array]")&&this.addResource(i,o,l,s[l],{silent:!0});a.silent||this.emit("added",i,o,s)}},{key:"addResourceBundle",value:function(i,o,s,a,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[i,o];i.indexOf(".")>-1&&(u=i.split("."),a=s,s=o,o=u[1]),this.addNamespaces(o);var d=d_(this.data,u)||{};a?eee(d,s,l):d=uw(uw({},d),s),SN(this.data,u,d),c.silent||this.emit("added",i,o,s)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?uw(uw({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),s=o&&Object.keys(o)||[];return!!s.find(function(a){return o[a]&&Object.keys(o[a]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}($h),nee={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,o){var s=this;return e.forEach(function(a){s.processors[a]&&(n=s.processors[a].process(n,r,i,o))}),n}};function xN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Hs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function b4e(t){var e=S4e();return function(){var r=vc(t),i;if(e){var o=vc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return l0(this,i)}}function S4e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var _N={},kN=function(t){Mh(n,t);var e=b4e(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return fa(this,n),i=e.call(this),V2&&$h.call(vl(i)),d4e(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,vl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Iu.create("translator"),i}return ha(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var s=this.resolve(i,o);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(i,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],c=s&&i.indexOf(s)>-1,u=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!m4e(i,s,a);if(c&&!u){var d=i.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:i,namespaces:l};var f=i.split(s);(s!==a||s===a&&this.options.ns.indexOf(f[0])>-1)&&(l=f.shift()),i=f.join(a)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,o,s){var a=this;if(ao(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=this.extractFromKey(i[i.length-1],o),d=u.key,f=u.namespaces,h=f[f.length-1],p=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(m){var O=o.nsSeparator||this.options.nsSeparator;return l?(g.res="".concat(h).concat(O).concat(d),g):"".concat(h).concat(O).concat(d)}return l?(g.res=d,g):d}var g=this.resolve(i,o),y=g&&g.res,b=g&&g.usedKey||d,w=g&&g.exactUsedKey||d,x=Object.prototype.toString.apply(y),_=["[object Number]","[object Function]","[object RegExp]"],P=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,C=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(k&&y&&C&&_.indexOf(x)<0&&!(typeof P=="string"&&x==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var I=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,y,Hs(Hs({},o),{},{ns:f})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(g.res=I,g):I}if(c){var M=x==="[object Array]",T=M?[]:{},N=M?w:b;for(var H in y)if(Object.prototype.hasOwnProperty.call(y,H)){var Z="".concat(N).concat(c).concat(H);T[H]=this.translate(Z,Hs(Hs({},o),{joinArrays:!1,ns:f})),T[H]===Z&&(T[H]=y[H])}y=T}}else if(k&&typeof P=="string"&&x==="[object Array]")y=y.join(P),y&&(y=this.extendTranslation(y,i,o,s));else{var G=!1,D=!1,W=o.count!==void 0&&typeof o.count!="string",Y=n.hasDefaultValue(o),X=W?this.pluralResolver.getSuffix(p,o.count,o):"",ie=o["defaultValue".concat(X)]||o.defaultValue;!this.isValidLookup(y)&&Y&&(G=!0,y=ie),this.isValidLookup(y)||(D=!0,y=d);var Oe=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,te=Oe&&D?void 0:y,de=Y&&ie!==y&&this.options.updateMissing;if(D||G||de){if(this.logger.log(de?"updateKey":"missingKey",p,h,d,de?ie:y),c){var ae=this.resolve(d,Hs(Hs({},o),{},{keySeparator:!1}));ae&&ae.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 J=[],ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ne&&ne[0])for(var se=0;se<ne.length;se++)J.push(ne[se]);else this.options.saveMissingTo==="all"?J=this.languageUtils.toResolveHierarchy(o.lng||this.language):J.push(o.lng||this.language);var le=function(ve,be,Ue){var Ze=Y&&Ue!==y?Ue:te;a.options.missingKeyHandler?a.options.missingKeyHandler(ve,h,be,Ze,de,o):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(ve,h,be,Ze,de,o),a.emit("missingKey",ve,h,be,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&W?J.forEach(function(Se){a.pluralResolver.getSuffixes(Se,o).forEach(function(ve){le([Se],d+ve,o["defaultValue".concat(ve)]||ie)})}):le(J,d,ie))}y=this.extendTranslation(y,i,o,g,s),D&&y===d&&this.options.appendNamespaceToMissingKey&&(y="".concat(h,":").concat(d)),(D||G)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(h,":").concat(d):d,G?y:void 0):y=this.options.parseMissingKeyHandler(y))}return l?(g.res=y,g):y}},{key:"extendTranslation",value:function(i,o,s,a,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Hs(Hs({},this.options.interpolation.defaultVariables),s),a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Hs(Hs({},s),{interpolation:Hs(Hs({},this.options.interpolation),s.interpolation)}));var u=typeof i=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),d;if(u){var f=i.match(this.interpolator.nestingRegexp);d=f&&f.length}var h=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(h=Hs(Hs({},this.options.interpolation.defaultVariables),h)),i=this.interpolator.interpolate(i,h,s.lng||this.language,s),u){var p=i.match(this.interpolator.nestingRegexp),m=p&&p.length;d<m&&(s.nest=!1)}s.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var y=arguments.length,b=new Array(y),w=0;w<y;w++)b[w]=arguments[w];return l&&l[0]===b[0]&&!s.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(b[0]," in key: ").concat(o[0])),null):c.translate.apply(c,b.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var O=s.postProcess||this.options.postProcess,g=typeof O=="string"?[O]:O;return i!=null&&g&&g.length&&s.applyPostProcessor!==!1&&(i=nee.handle(g,i,o,this.options&&this.options.postProcessPassResolved?Hs({i18nResolved:a},s):s,this)),i}},{key:"resolve",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,l,c,u,d;return typeof i=="string"&&(i=[i]),i.forEach(function(f){if(!o.isValidLookup(a)){var h=o.extractFromKey(f,s),p=h.key;l=p;var m=h.namespaces;o.options.fallbackNS&&(m=m.concat(o.options.fallbackNS));var O=s.count!==void 0&&typeof s.count!="string",g=O&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),y=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",b=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);m.forEach(function(w){o.isValidLookup(a)||(d=w,!_N["".concat(b[0],"-").concat(w)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(d)&&(_N["".concat(b[0],"-").concat(w)]=!0,o.logger.warn('key "'.concat(l,'" for languages "').concat(b.join(", "),`" won't get resolved as namespace "`).concat(d,'" 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!!!")),b.forEach(function(x){if(!o.isValidLookup(a)){u=x;var _=[p];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(_,p,x,w,s);else{var P;O&&(P=o.pluralResolver.getSuffix(x,s.count,s));var k="".concat(o.options.pluralSeparator,"zero");if(O&&(_.push(p+P),g&&_.push(p+k)),y){var C="".concat(p).concat(o.options.contextSeparator).concat(s.context);_.push(C),O&&(_.push(C+P),g&&_.push(C+k))}}for(var I;I=_.pop();)o.isValidLookup(a)||(c=I,a=o.getResource(x,w,I,s))}}))})}}),{res:a,usedKey:l,exactUsedKey:c,usedLng:u,usedNS:d}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,s,a):this.resourceStore.getResource(i,o,s,a)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&o===s.substring(0,o.length)&&i[s]!==void 0)return!0;return!1}}]),n}($h);function g5(t){return t.charAt(0).toUpperCase()+t.slice(1)}var w4e=function(){function t(e){fa(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Iu.create("languageUtils")}return ha(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=g5(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=g5(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=g5(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var s=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(s))&&(i=s)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var s=r.getLanguagePartFromCode(o);if(r.isSupportedCode(s))return i=s;i=r.options.supportedLngs.find(function(a){if(a.indexOf(s)===0)return a})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),s=[],a=function(c){!c||(i.isSupportedCode(c)?s.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(n))):typeof n=="string"&&a(this.formatLanguageCode(n)),o.forEach(function(l){s.indexOf(l)<0&&a(i.formatLanguageCode(l))}),s}}]),t}(),$4e=[{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}],x4e={1:function(e){return Number(e>1)},2:function(e){return Number(e!=1)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(e==1?0:e>=2&&e<=4?1:2)},7:function(e){return Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(e==1?0:e==2?1:e!=8&&e!=11?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(e==1?0:e==2?1:e<7?2:e<11?3:4)},11:function(e){return Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(e!==0)},14:function(e){return Number(e==1?0:e==2?1:e==3?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:e!==0?1:2)},17:function(e){return Number(e==1||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(e==0?0:e==1?1:2)},19:function(e){return Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(e==1?0:e==0||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)}},_4e=["v1","v2","v3"],PN={zero:0,one:1,two:2,few:3,many:4,other:5};function k4e(){var t={};return $4e.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:x4e[e.fc]}})}),t}var P4e=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fa(this,t),this.languageUtils=e,this.options=n,this.logger=Iu.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl=="undefined"||!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=k4e()}return ha(t,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(s,a){return PN[s]-PN[a]}).map(function(s){return"".concat(r.options.prepend).concat(s)}):o.numbers.map(function(s){return r.getSuffix(n,s,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),s=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var a=function(){return i.options.prepend&&s.toString()?i.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!_4e.includes(this.options.compatibilityJSON)}}]),t}();function QN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Rc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?QN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):QN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Q4e=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fa(this,t),this.logger=Iu.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return ha(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:O4e,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Ip(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Ip(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Ip(r.nestingPrefix):r.nestingPrefixEscaped||Ip("$t("),this.nestingSuffix=r.nestingSuffix?Ip(r.nestingSuffix):r.nestingSuffixEscaped||Ip(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var s=this,a,l,c,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(O){return O.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(s.formatSeparator)<0){var y=wN(r,u,g);return s.alwaysFormat?s.format(y,void 0,i,Rc(Rc(Rc({},o),r),{},{interpolationkey:g})):y}var b=g.split(s.formatSeparator),w=b.shift().trim(),x=b.join(s.formatSeparator).trim();return s.format(wN(r,u,w),x,i,Rc(Rc(Rc({},o),r),{},{interpolationkey:w}))};this.resetRegExp();var h=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,m=[{regex:this.regexpUnescape,safeValue:function(g){return d(g)}},{regex:this.regexp,safeValue:function(g){return s.escapeValue?d(s.escape(g)):d(g)}}];return m.forEach(function(O){for(c=0;a=O.regex.exec(n);){var g=a[1].trim();if(l=f(g),l===void 0)if(typeof h=="function"){var y=h(n,a,o);l=typeof y=="string"?y:""}else if(o&&o.hasOwnProperty(g))l="";else if(p){l=a[0];continue}else s.logger.warn("missed to pass in variable ".concat(g," for interpolating ").concat(n)),l="";else typeof l!="string"&&!s.useRawValueToEscape&&(l=bN(l));var b=O.safeValue(l);if(n=n.replace(a[0],b),p?(O.regex.lastIndex+=l.length,O.regex.lastIndex-=a[0].length):O.regex.lastIndex=0,c++,c>=s.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,a,l=Rc({},o);l.applyPostProcessor=!1,delete l.defaultValue;function c(h,p){var m=this.nestingOptionsSeparator;if(h.indexOf(m)<0)return h;var O=h.split(new RegExp("".concat(m,"[ ]*{"))),g="{".concat(O[1]);h=O[0],g=this.interpolate(g,l);var y=g.match(/'/g),b=g.match(/"/g);(y&&y.length%2===0&&!b||b.length%2!==0)&&(g=g.replace(/'/g,'"'));try{l=JSON.parse(g),p&&(l=Rc(Rc({},p),l))}catch(w){return this.logger.warn("failed parsing options string in nesting for key ".concat(h),w),"".concat(h).concat(m).concat(g)}return delete l.defaultValue,h}for(;s=this.nestingRegexp.exec(n);){var u=[],d=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var f=s[1].split(this.formatSeparator).map(function(h){return h.trim()});s[1]=f.shift(),u=f,d=!0}if(a=r(c.call(this,s[1].trim(),l),l),a&&s[0]===n&&typeof a!="string")return a;typeof a!="string"&&(a=bN(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),a=""),d&&(a=u.reduce(function(h,p){return i.format(h,p,o.lng,Rc(Rc({},o),{},{interpolationkey:s[1].trim()}))},a.trim())),n=n.replace(s[0],a),this.regexp.lastIndex=0}return n}}]),t}();function TN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Pf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?TN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):TN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function T4e(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);if(e==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(e==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(s){if(!!s){var a=s.split(":"),l=l4e(a),c=l[0],u=l.slice(1),d=u.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=d),d==="false"&&(n[c.trim()]=!1),d==="true"&&(n[c.trim()]=!0),isNaN(d)||(n[c.trim()]=parseInt(d,10))}})}}return{formatName:e,formatOptions:n}}function Dp(t){var e={};return function(r,i,o){var s=i+JSON.stringify(o),a=e[s];return a||(a=t(i,o),e[s]=a),a(r)}}var C4e=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fa(this,t),this.logger=Iu.create("formatter"),this.options=e,this.formats={number:Dp(function(n,r){var i=new Intl.NumberFormat(n,r);return function(o){return i.format(o)}}),currency:Dp(function(n,r){var i=new Intl.NumberFormat(n,Pf(Pf({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Dp(function(n,r){var i=new Intl.DateTimeFormat(n,Pf({},r));return function(o){return i.format(o)}}),relativetime:Dp(function(n,r){var i=new Intl.RelativeTimeFormat(n,Pf({},r));return function(o){return i.format(o,r.range||"day")}}),list:Dp(function(n,r){var i=new Intl.ListFormat(n,Pf({},r));return function(o){return i.format(o)}})},this.init(e)}return ha(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Dp(r)}},{key:"format",value:function(n,r,i,o){var s=this,a=r.split(this.formatSeparator),l=a.reduce(function(c,u){var d=T4e(u),f=d.formatName,h=d.formatOptions;if(s.formats[f]){var p=c;try{var m=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},O=m.locale||m.lng||o.locale||o.lng||i;p=s.formats[f](c,O,Pf(Pf(Pf({},h),o),m))}catch(g){s.logger.warn(g)}return p}else s.logger.warn("there was no format function for ".concat(f));return c},n);return l}}]),t}();function CN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function EN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?CN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):CN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function E4e(t){var e=R4e();return function(){var r=vc(t),i;if(e){var o=vc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return l0(this,i)}}function R4e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function A4e(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var X4e=function(t){Mh(n,t);var e=E4e(n);function n(r,i,o){var s,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return fa(this,n),s=e.call(this),V2&&$h.call(vl(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=a,s.logger=Iu.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=a.maxParallelReads||10,s.readingCalls=0,s.maxRetries=a.maxRetries>=0?a.maxRetries:5,s.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,a.backend,a),s}return ha(n,[{key:"queueLoad",value:function(i,o,s,a){var l=this,c={},u={},d={},f={};return i.forEach(function(h){var p=!0;o.forEach(function(m){var O="".concat(h,"|").concat(m);!s.reload&&l.store.hasResourceBundle(h,m)?l.state[O]=2:l.state[O]<0||(l.state[O]===1?u[O]===void 0&&(u[O]=!0):(l.state[O]=1,p=!1,u[O]===void 0&&(u[O]=!0),c[O]===void 0&&(c[O]=!0),f[m]===void 0&&(f[m]=!0)))}),p||(d[h]=!0)}),(Object.keys(c).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(c),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(i,o,s){var a=i.split("|"),l=a[0],c=a[1];o&&this.emit("failedLoading",l,c,o),s&&this.store.addResourceBundle(l,c,s),this.state[i]=o?-1:2;var u={};this.queue.forEach(function(d){f4e(d.loaded,[l],c),A4e(d,i),o&&d.errors.push(o),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(f){u[f]||(u[f]={});var h=d.loaded[f];h.length&&h.forEach(function(p){u[f][p]===void 0&&(u[f][p]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(i,o,s){var a=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!i.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:s,tried:l,wait:c,callback:u});return}return this.readingCalls++,this.backend[s](i,o,function(d,f){if(a.readingCalls--,a.waitingReads.length>0){var h=a.waitingReads.shift();a.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(d&&f&&l<a.maxRetries){setTimeout(function(){a.read.call(a,i,o,s,l+1,c*2,u)},c);return}u(d,f)})}},{key:"prepareLoading",value:function(i,o){var s=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=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."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var c=this.queueLoad(i,o,a,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(u){s.loadOne(u)})}},{key:"load",value:function(i,o,s){this.prepareLoading(i,o,{},s)}},{key:"reload",value:function(i,o,s){this.prepareLoading(i,o,{reload:!0},s)}},{key:"loadOne",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=i.split("|"),l=a[0],c=a[1];this.read(l,c,"read",void 0,void 0,function(u,d){u&&o.logger.warn("".concat(s,"loading namespace ").concat(c," for language ").concat(l," failed"),u),!u&&d&&o.logger.log("".concat(s,"loaded namespace ").concat(c," for language ").concat(l),d),o.loaded(i,u,d)})}},{key:"saveMissing",value:function(i,o,s,a,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(s,'" as the 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!!!");return}s==null||s===""||(this.backend&&this.backend.create&&this.backend.create(i,o,s,a,null,EN(EN({},c),{},{isUpdate:l})),!(!i||!i[0])&&this.store.addResource(i[0],o,s,a))}}]),n}($h);function I4e(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(ao(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),ao(e[2])==="object"||ao(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function RN(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function AN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function hu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?AN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):AN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function D4e(t){var e=z4e();return function(){var r=vc(t),i;if(e){var o=vc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return l0(this,i)}}function z4e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dw(){}function M4e(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var f_=function(t){Mh(n,t);var e=D4e(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(fa(this,n),r=e.call(this),V2&&$h.call(vl(r)),r.options=RN(i),r.services={},r.logger=Iu,r.modules={external:[]},M4e(vl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),l0(r,vl(r));setTimeout(function(){r.init(i,o)},0)}return r}return ha(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var a=I4e();this.options=hu(hu(hu({},a),this.options),RN(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=hu(hu({},a.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(g){return g?typeof g=="function"?new g:g:null}if(!this.options.isClone){this.modules.logger?Iu.init(l(this.modules.logger),this.options):Iu.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl!="undefined"&&(c=C4e);var u=new w4e(this.options);this.store=new y4e(this.options.resources,this.options);var d=this.services;d.logger=Iu,d.resourceStore=this.store,d.languageUtils=u,d.pluralResolver=new P4e(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(d.formatter=l(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Q4e(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new X4e(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(g){for(var y=arguments.length,b=new Array(y>1?y-1:0),w=1;w<y;w++)b[w-1]=arguments[w];i.emit.apply(i,[g].concat(b))}),this.modules.languageDetector&&(d.languageDetector=l(this.modules.languageDetector),d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=l(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new kN(this.services,this.options),this.translator.on("*",function(g){for(var y=arguments.length,b=new Array(y>1?y-1:0),w=1;w<y;w++)b[w-1]=arguments[w];i.emit.apply(i,[g].concat(b))}),this.modules.external.forEach(function(g){g.init&&g.init(i)})}if(this.format=this.options.interpolation.format,s||(s=dw),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var h=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];h.forEach(function(g){i[g]=function(){var y;return(y=i.store)[g].apply(y,arguments)}});var p=["addResource","addResources","addResourceBundle","removeResourceBundle"];p.forEach(function(g){i[g]=function(){var y;return(y=i.store)[g].apply(y,arguments),i}});var m=K0(),O=function(){var y=function(w,x){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),m.resolve(x),s(w,x)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return y(null,i.t.bind(i));i.changeLanguage(i.options.lng,y)};return this.options.resources||!this.options.initImmediate?O():setTimeout(O,0),m}},{key:"loadResources",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dw,a=s,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(a=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return a();var c=[],u=function(h){if(!!h){var p=o.services.languageUtils.toResolveHierarchy(h);p.forEach(function(m){c.indexOf(m)<0&&c.push(m)})}};if(l)u(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(f){return u(f)})}this.options.preload&&this.options.preload.forEach(function(f){return u(f)}),this.services.backendConnector.load(c,this.options.ns,function(f){!f&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),a(f)})}else a(null)}},{key:"reloadResources",value:function(i,o,s){var a=K0();return i||(i=this.languages),o||(o=this.options.ns),s||(s=dw),this.services.backendConnector.reload(i,o,function(l){a.resolve(),s(l)}),a}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&nee.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(i,o){var s=this;this.isLanguageChangingTo=i;var a=K0();this.emit("languageChanging",i);var l=function(f){s.language=f,s.languages=s.services.languageUtils.toResolveHierarchy(f),s.resolvedLanguage=void 0,s.setResolvedLanguage(f)},c=function(f,h){h?(l(h),s.translator.changeLanguage(h),s.isLanguageChangingTo=void 0,s.emit("languageChanged",h),s.logger.log("languageChanged",h)):s.isLanguageChangingTo=void 0,a.resolve(function(){return s.t.apply(s,arguments)}),o&&o(f,function(){return s.t.apply(s,arguments)})},u=function(f){!i&&!f&&s.services.languageDetector&&(f=[]);var h=typeof f=="string"?f:s.services.languageUtils.getBestMatchFromCodes(f);h&&(s.language||l(h),s.translator.language||s.translator.changeLanguage(h),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage(h)),s.loadResources(h,function(p){c(p,h)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(u):u(i),a}},{key:"getFixedT",value:function(i,o,s){var a=this,l=function c(u,d){var f;if(ao(d)!=="object"){for(var h=arguments.length,p=new Array(h>2?h-2:0),m=2;m<h;m++)p[m-2]=arguments[m];f=a.options.overloadTranslationOptionHandler([u,d].concat(p))}else f=hu({},d);f.lng=f.lng||c.lng,f.lngs=f.lngs||c.lngs,f.ns=f.ns||c.ns,f.keyPrefix=f.keyPrefix||s||c.keyPrefix;var O=a.options.keySeparator||".",g=f.keyPrefix?"".concat(f.keyPrefix).concat(O).concat(u):u;return a.t(g,f)};return typeof i=="string"?l.lng=i:l.lngs=i,l.ns=o,l.keyPrefix=s,l}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var a=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var u=function(h,p){var m=o.services.backendConnector.state["".concat(h,"|").concat(p)];return m===-1||m===2};if(s.precheck){var d=s.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(a,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(a,i)&&(!l||u(c,i)))}},{key:"loadNamespaces",value:function(i,o){var s=this,a=K0();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){s.options.ns.indexOf(l)<0&&s.options.ns.push(l)}),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var s=K0();typeof i=="string"&&(i=[i]);var a=this.options.preload||[],l=i.filter(function(c){return a.indexOf(c)<0});return l.length?(this.options.preload=a.concat(l),this.loadResources(function(c){s.resolve(),o&&o(c)}),s):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["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"];return o.indexOf(this.services.languageUtils.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dw,a=hu(hu(hu({},this.options),o),{isClone:!0}),l=new n(a);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var c=["store","services","language"];return c.forEach(function(u){l[u]=i[u]}),l.services=hu({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new kN(l.services,l.options),l.translator.on("*",function(u){for(var d=arguments.length,f=new Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];l.emit.apply(l,[u].concat(f))}),l.init(a,s),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}($h);On(f_,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new f_(t,e)});var Uo=f_.createInstance();Uo.createInstance=f_.createInstance;Uo.createInstance;Uo.init;Uo.loadResources;Uo.reloadResources;Uo.use;Uo.changeLanguage;Uo.getFixedT;var E1=Uo.t;Uo.exists;Uo.setDefaultNamespace;Uo.hasLoadedNamespace;Uo.loadNamespaces;Uo.loadLanguages;function pg(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function gi(t,e){if(t==null)return{};var n=pg(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,r)||(n[r]=t[r]))}return n}var L4e=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230);/g,N4e={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026"},U4e=function(e){return N4e[e]},W4e=function(e){return e.replace(L4e,U4e)};function XN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function IN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?XN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):XN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var f3={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:W4e},ree,q4e=E.exports.createContext();function V4e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};f3=IN(IN({},f3),t)}function Y4e(){return f3}var B4e=function(){function t(){fa(this,t),this.usedNamespaces={}}return ha(t,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function F4e(t){ree=t}function Z4e(){return ree}var j4e={type:"3rdParty",init:function(e){V4e(e.options.react),F4e(e)}};function G4e(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var DN={};function h3(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&DN[e[0]]||(typeof e[0]=="string"&&(DN[e[0]]=new Date),G4e.apply(void 0,e))}function zN(t,e,n){t.loadNamespaces(e,function(){if(t.isInitialized)n();else{var r=function i(){setTimeout(function(){t.off("initialized",i)},0),n()};t.on("initialized",r)}})}function H4e(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e.languages[0],i=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var s=function(l,c){var u=e.services.backendConnector.state["".concat(l,"|").concat(c)];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!s(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||s(r,t)&&(!i||s(o,t)))}function K4e(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return h3("i18n.languages were undefined or empty",e.languages),!0;var r=e.options.ignoreJSONStructure!==void 0;return r?e.hasLoadedNamespace(t,{precheck:function(o,s){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!s(o.isLanguageChangingTo,t))return!1}}):H4e(t,e,n)}function J4e(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function Et(t,e){return HJ(t)||J4e(t,e)||MA(t,e)||JJ()}function MN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function v5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?MN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):MN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var e5e=function(e,n){var r=E.exports.useRef();return E.exports.useEffect(function(){r.current=n?r.current:e},[e,n]),r.current};function rs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=E.exports.useContext(q4e)||{},i=r.i18n,o=r.defaultNS,s=n||i||Z4e();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new B4e),!s){h3("You will need to pass in an i18next instance by using initReactI18next");var a=function(C){return Array.isArray(C)?C[C.length-1]:C},l=[a,{},!1];return l.t=a,l.i18n={},l.ready=!1,l}s.options.react&&s.options.react.wait!==void 0&&h3("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=v5(v5(v5({},Y4e()),s.options.react),e),u=c.useSuspense,d=c.keyPrefix,f=t||o||s.options&&s.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(f);var h=(s.isInitialized||s.initializedStoreOnce)&&f.every(function(k){return K4e(k,s,c)});function p(){return s.getFixedT(null,c.nsMode==="fallback"?f:f[0],d)}var m=E.exports.useState(p),O=Et(m,2),g=O[0],y=O[1],b=f.join(),w=e5e(b),x=E.exports.useRef(!0);E.exports.useEffect(function(){var k=c.bindI18n,C=c.bindI18nStore;x.current=!0,!h&&!u&&zN(s,f,function(){x.current&&y(p)}),h&&w&&w!==b&&x.current&&y(p);function I(){x.current&&y(p)}return k&&s&&s.on(k,I),C&&s&&s.store.on(C,I),function(){x.current=!1,k&&s&&k.split(" ").forEach(function(M){return s.off(M,I)}),C&&s&&C.split(" ").forEach(function(M){return s.store.off(M,I)})}},[s,b]);var _=E.exports.useRef(!0);E.exports.useEffect(function(){x.current&&!_.current&&y(p),_.current=!1},[s]);var P=[g,s,h];if(P.t=g,P.i18n=s,P.ready=h,h||!h&&!u)return P;throw new Promise(function(k){zN(s,f,function(){k()})})}var t5e={common_success:"Success",common_confirm:"Confirm",common_cancel:"Cancel",common_delete:"Delete",common_hidden:"Hidden",common_locked:"Locked",common_offline:"Offline",common_directory:"Directory",common_file:"File",editor_no_open_file:"None file opened",editor_search_file:"recently opened",editor_large_file_tip:"The file size is over 16 MB, preview is not supported",editor_unsupported_format_file_cannot_display:"The file cannot be displayed for unsupported format",editor_picture_not_support_preview:"Picture's preview is not yet supported",editor_search_files_by_name:"Search files by name",editor_pending_update:"{{pendingUpdate}} updates to be written",editor_ot_success:"Success",editor_file_is_not_editable:"The file is not editable",editor_image_preview_failed_to_load_image:"Failed to load image",editor_image_preview_loading:"loading",file_tree_click_to_show:"Click to show",file_tree_click_to_hidden:"Click to hide",file_tree_click_to_cancel:"Click to cancel",file_tree_click_to_locked:"Click to lock",file_tree_joined_the_test:"Joined the test",file_tree_click_to_remove:"Click to remove",file_tree_add_test:"Add test",\u7528\u6237\u7F16\u8F91\u8FC7\u6B64\u6587\u4EF6:"This file modifyied by user",file_tree_num_of_files_cannot_exceed_500:"The number of files cannot exceed 500",file_tree_x_existed:"{{x}} existed",\u56DE\u653E\u5DF2\u6682\u505C:"Playback already pause.",\u56DE\u653E\u6A21\u5F0F\u4E0D\u652F\u6301\u6253\u5F00\u8BE5\u6587\u4EF6:"Cannot open the file with playback mode.",file_tree_x_filtered:"{{x}} filtered",file_tree_x_upload_not_allowed:"Upload of {{x}} not allowed",file_tree_renamed:"Renamed",file_tree_upload_files:"Upload files",file_tree_upload_folder:"Upload folder",show_hidden_files:"Show Hidden files",do_no_show_hidden_files:"Do not show hidden files",file_tree_rename:"Rename",file_tree_create_new_file:"New file",\u8DDF\u968F\u89C6\u89D2:"Follow view browser",\u63A7\u5236\u53F0:"Devtools",\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00:"Open in new tab",\u9000\u51FA\u8DDF\u968F:"Back to normal browser",\u5728\u65B0\u7A97\u53E3\u6253\u5F00:"Open with new tab",file_tree_create_new_folder:"New folder",file_tree_down_file:"Download",file_tree_failed_to_download_file:"Failed to download file",file_tree_make_sure_delete_x_unrecoverable:"Are you sure to delete this {{x}}? The file cannot be recovered after deletion",file_tree_kind_tips:"Notice",file_tree_understood:"Know",file_tree_space_char_exist_in_file_or_folder:"There is a space character",file_tree_file_exceeds_size_limit:"The file {{filePath}} exceeds the size limit of 16M",file_tree_rename_cannot_be_empty:"Rename cannot be empty",output_browser_click_run_start_application:"Click \u3010Run\u3011 to start the application",helpers_invalid_parameter_rate_x:"Invalid parameter: rate={{x}}",lib_the_area_already_set_answer_area_cannot_repeatedly:"The area has already set the answering area and cannot be set repeatedly",lib_x_file_cannot_set_the_answer_area:"The {{x}} file cannot set the answer area",lib_locked:"locked",lib_hidden:"hidden",store_user_not_found:"User not found",store_appStatus_transition_error_x:"AppStatus transition error: {{x}}",dao_channel_agentUserId_x_inconsistent:"The agentUserId {{x}} is inconsistent",dao_channel_event_x_is_not_supported:"Event {{x}} is not supported",dao_channel_connection_not_established:"The connection has not been established yet",dao_channel_playground_not_exist:"Playground does not exist",dao_channel_playground_unbound_container:"Playground unbound container",dao_channel_container_startup_failed:"Container startup failed",dao_channel_insufficient_server_resources:"Insufficient server resources",dao_channel_server_is_busy:"Server is busy",dao_channel_activation_timeout:"Docker activation timeout",dao_channel_docker_failed_to_activate:"Docker failed to start",dao_channel_socket_is_not_ready:"Socket is not ready",dao_channel_socket_is_not_ready_for_x:"Socket is not ready for {{x}}",dao_channel_socket_connect_broken:"Socket connection broken",debug_variables:"Variables",debug_call_stack:"Call stack",debug_staring:"staring",debug_tooltip_run:"Run",debug_tooltip_stop:"Stop",debug_tooltip_continue:"Continue",debug_tooltip_step_over:"Step Over",debug_tooltip_step_into:"Step Into",debug_tooltip_step_out:"Step Out",debug_call_stack_cannot_open_file:"Cannot open non-workspace file",dao_paas_cannot_follow_each_other:"Cannot follow each other",\u4E0D\u80FD\u76F4\u63A5\u590D\u5236\u7B54\u9898\u533A\u57DF\u5185\u5BB9:"Cannt copy the content",\u8BE5\u533A\u57DF\u4E0D\u53EF\u7F16\u8F91:"Cannt edit the content",\u79FB\u9664\u4EE3\u7801\u5757\u6807\u8BC6:"Remove block code flag",\u5220\u9664\u4EE3\u7801\u5757:"Remove block code",\u590D\u5236\u4EE3\u7801:"Copy",\u7C98\u8D34\u4EE3\u7801:"Paste",\u786E\u8BA4:"Confirm",\u53D6\u6D88:"Cancel",\u67E5\u770BAI\u4EE3\u7801:"View AI code",\u67E5\u770B\u65E7\u4EE3\u7801:"View origin code",dao_paas_not_find_mount_dom_object_for_x:"Could not find mounted DOM object for {{x}}",dao_paas_x_component_is_not_supported:"{{x}} component is not supported",dao_paas_no_ready:"No ready",\u8BF7\u5728\u6587\u4EF6\u6811\u4E2D\u6253\u5F00\u6587\u4EF6\u8FDB\u884C\u7F16\u8F91:"Pleas go to file tree to select one file and open it","\u8BE5\u6587\u4EF6\u5DF2\u88AB\u8BBE\u7F6E\u4E3A\u9690\u85CF\uFF0C\u65E0\u6CD5\u67E5\u770B":"You cannot view the hide file",dao_paas_file_does_not_exist:"File does not exist",dao_pass_set_answer_wrong:"Get wrong when insert answer for question",dao_paas_docker_has_been_destoryed:"docker has been destroyed","Unable to create file or directory with system reserved name":"Unable to create file or directory with system reserved name","The file or folder {{path}} already exists in this location, please choose another name":"The file or folder {{path}} already exists in this location, please choose another name","No results":"No results","Collapse the file tree":"Collapse the file tree","Create or rename to hidden files, will not be visible":"Create or rename to hidden files, will not be visible","Live refresh":"Live refresh","Code diagnosis":"Code diagnosis",file_tree_title:"Files",keyword_search_toolbar_title:"Search",keyword_search_btn_refresh:"Refresh",keyword_search_btn_clear:"Clear",keyword_search_btn_collapse:"Expand/Collapse All",keyword_search_btn_replace_all:"Replace All({{press}})",keyword_search_btn_preserve:"Preserve Case({{press}})",keyword_search_btn_case:"Match Case({{press}})",keyword_search_btn_whole:"Match Whole Word({{press}})",keyword_search_btn_expression:"Use Regular Expression({{press}})",keyword_search_modal_title:"Replace all",keyword_search_modal_okText:"Confirm replace",keyword_search_modal_cancelText:"Cancel",keyword_search_modal_tips_has_value:"Whether to replace {{words}} {{wordMore}} in {{file}} {{fileMore}} with {{text}}",keyword_search_modal_tips_empty_value:"Whether to replace {{words}} {{wordMore}} in {{file}} {{fileMore}}",keyword_search_input_enter_placeholder:"Please enter",keyword_search_input_replace_placeholder:"Replace",keyword_search_doing:"Searching...",keyword_search_nothing:"Not results found, try to enter other keyword",keyword_search_found:"{{words}} {{wordMore}} in {{file}} {{fileMore}}"},n5e={common_success:"\u6210\u529F",common_confirm:"\u786E\u5B9A",common_cancel:"\u53D6\u6D88",common_delete:"\u5220\u9664",common_hidden:"\u5DF2\u9690\u85CF",common_locked:"\u5DF2\u52A0\u9501",common_offline:"\u79BB\u7EBF",common_directory:"\u76EE\u5F55",common_file:"\u6587\u4EF6",editor_search_file:"\u6700\u8FD1\u6253\u5F00",editor_no_open_file:"\u672A\u6253\u5F00\u6587\u4EF6",editor_large_file_tip:"\u6587\u4EF6\u8D85\u8FC716\u5146\u5927\u5C0F\uFF0C\u6682\u4E0D\u652F\u6301\u9884\u89C8",editor_unsupported_format_file_cannot_display:"\u6B64\u6587\u4EF6\u662F\u4E8C\u8FDB\u5236\u6587\u4EF6\u6216\u4F7F\u7528\u4E86\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u7F16\u7801\uFF0C\u65E0\u6CD5\u5728\u7F16\u8F91\u5668\u4E2D\u663E\u793A",editor_picture_not_support_preview:"\u56FE\u7247\u6682\u65F6\u4E0D\u652F\u6301\u9884\u89C8",editor_search_files_by_name:"\u6309\u540D\u79F0\u641C\u7D22\u6587\u4EF6",editor_pending_update:"{{pendingUpdate}}\u4E2A\u66F4\u65B0\u5F85\u5199\u5165",editor_ot_success:"\u6210\u529F",editor_file_is_not_editable:"\u8BE5\u6587\u4EF6\u4E0D\u53EF\u7F16\u8F91",editor_image_preview_failed_to_load_image:"\u52A0\u8F7D\u56FE\u7247\u5931\u8D25",editor_image_preview_loading:"\u52A0\u8F7D\u4E2D...",file_tree_click_to_show:"\u70B9\u51FB\u663E\u793A",file_tree_click_to_hidden:"\u70B9\u51FB\u9690\u85CF",file_tree_click_to_cancel:"\u70B9\u51FB\u53D6\u6D88",file_tree_click_to_locked:"\u70B9\u51FB\u9501\u5B9A",file_tree_joined_the_test:"\u5DF2\u52A0\u5165\u6D4B\u8BD5",file_tree_click_to_remove:"\u70B9\u51FB\u79FB\u9664",file_tree_add_test:"\u6DFB\u52A0\u6D4B\u8BD5",\u7528\u6237\u7F16\u8F91\u8FC7\u6B64\u6587\u4EF6:"\u7528\u6237\u7F16\u8F91\u8FC7\u6B64\u6587\u4EF6",file_tree_num_of_files_cannot_exceed_500:"\u6587\u4EF6\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7500",file_tree_x_existed:"{{x}}\u5DF2\u5B58\u5728",\u56DE\u653E\u5DF2\u6682\u505C:"\u56DE\u653E\u5DF2\u6682\u505C",\u56DE\u653E\u6A21\u5F0F\u4E0D\u652F\u6301\u6253\u5F00\u8BE5\u6587\u4EF6:"\u56DE\u653E\u6A21\u5F0F\u4E0D\u652F\u6301\u6253\u5F00\u8BE5\u6587\u4EF6",\u8DDF\u968F\u89C6\u89D2:"\u8DDF\u968F\u89C6\u89D2",\u63A7\u5236\u53F0:"\u5F00\u53D1\u5DE5\u5177",\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00:"\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00",\u9000\u51FA\u8DDF\u968F:"\u9000\u51FA\u8DDF\u968F",\u5728\u65B0\u7A97\u53E3\u6253\u5F00:"\u5728\u65B0\u7A97\u53E3\u6253\u5F00",file_tree_x_filtered:"{{x}}\u88AB\u8FC7\u6EE4",file_tree_x_upload_not_allowed:"{{x}}\u4E0D\u5141\u8BB8\u4E0A\u4F20",file_tree_renamed:"\u91CD\u540D\u4E86",file_tree_upload_files:"\u4E0A\u4F20\u6587\u4EF6",file_tree_upload_folder:"\u4E0A\u4F20\u6587\u4EF6\u5939",show_hidden_files:"\u663E\u793A\u9690\u85CF\u6587\u4EF6",do_no_show_hidden_files:"\u4E0D\u663E\u793A\u9690\u85CF\u6587\u4EF6",file_tree_rename:"\u91CD\u547D\u540D",file_tree_create_new_file:"\u65B0\u5EFA\u6587\u4EF6",file_tree_create_new_folder:"\u65B0\u5EFA\u6587\u4EF6\u5939",file_tree_down_file:"\u4E0B\u8F7D",file_tree_failed_to_download_file:"\u4E0B\u8F7D\u6587\u4EF6\u5931\u8D25",file_tree_make_sure_delete_x_unrecoverable:"\u786E\u5B9A\u5220\u9664\u8FD9\u4E2A{{x}}\u5417\uFF1F\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D",file_tree_kind_tips:"\u6E29\u99A8\u63D0\u793A",file_tree_understood:"\u77E5\u9053\u4E86",file_tree_space_char_exist_in_file_or_folder:"\u5B58\u5728\u7A7A\u683C\u5B57\u7B26",file_tree_file_exceeds_size_limit:"\u6587\u4EF6{{filePath}}\u8D85\u51FA\u4E8616M\u7684\u5927\u5C0F\u9650\u5236",file_tree_rename_cannot_be_empty:"\u91CD\u547D\u540D\u4E0D\u80FD\u4E3A\u7A7A",output_browser_click_run_start_application:"\u70B9\u51FB\u3010\u8FD0\u884C\u3011\u542F\u52A8\u5E94\u7528",helpers_invalid_parameter_rate_x:"\u65E0\u6548\u7684\u53C2\u6570: rate={{x}}",lib_the_area_already_set_answer_area_cannot_repeatedly:"\u8BE5\u533A\u57DF\u5DF2\u8BBE\u7F6E\u7B54\u9898\u533A\uFF0C\u4E0D\u53EF\u91CD\u590D\u8BBE\u7F6E",lib_x_file_cannot_set_the_answer_area:"{{x}}\u6587\u4EF6\u4E0D\u53EF\u4EE5\u8BBE\u7F6E\u7B54\u9898\u533A",lib_locked:"\u52A0\u9501",lib_hidden:"\u9690\u85CF",store_user_not_found:"\u627E\u4E0D\u5230\u7528\u6237",store_appStatus_transition_error_x:"appStatus \u8F6C\u6362\u9519\u8BEF: {{x}}",dao_channel_agentUserId_x_inconsistent:"agentUserId {{x}} \u4E0D\u4E00\u81F4",dao_channel_event_x_is_not_supported:"\u4E8B\u4EF6 {{x}} \u4E0D\u652F\u6301",dao_channel_connection_not_established:"\u8FDE\u63A5\u5C1A\u672A\u5EFA\u7ACB",dao_channel_playground_not_exist:"playground\u4E0D\u5B58\u5728",dao_channel_playground_unbound_container:"playground\u672A\u7ED1\u5B9A\u5BB9\u5668",dao_channel_container_startup_failed:"\u5BB9\u5668\u542F\u52A8\u5931\u8D25",dao_channel_insufficient_server_resources:"\u670D\u52A1\u5668\u8D44\u6E90\u4E0D\u8DB3",dao_channel_server_is_busy:"\u670D\u52A1\u5668\u7E41\u5FD9",dao_channel_activation_timeout:"docker\u6FC0\u6D3B\u8D85\u65F6",dao_channel_docker_failed_to_activate:"docker\u542F\u52A8\u5931\u8D25",dao_channel_socket_is_not_ready:"socket\u672A\u51C6\u5907\u597D",dao_channel_socket_is_not_ready_for_x:"socket \u8FD8\u6CA1\u6709\u4E3A{{x}}\u51C6\u5907\u597D",dao_channel_socket_connect_broken:"socket\u8FDE\u63A5\u4E2D\u65AD",debug_variables:"\u53D8\u91CF",debug_call_stack:"\u8C03\u7528\u5806\u6808",debug_staring:"\u542F\u52A8\u4E2D",debug_tooltip_run:"\u8FD0\u884C",debug_tooltip_stop:"\u505C\u6B62",debug_tooltip_continue:"\u7EE7\u7EED",debug_tooltip_step_over:"\u5355\u6B65\u8DF3\u8FC7",debug_tooltip_step_into:"\u5355\u6B65\u8C03\u8BD5",debug_tooltip_step_out:"\u5355\u6B65\u8DF3\u51FA",debug_call_stack_cannot_open_file:"\u65E0\u6CD5\u6253\u5F00\u975E\u5DE5\u4F5C\u533A\u6587\u4EF6",dao_paas_cannot_follow_each_other:"\u4E0D\u80FD\u4E92\u76F8\u8DDF\u968F",\u4E0D\u80FD\u76F4\u63A5\u590D\u5236\u7B54\u9898\u533A\u57DF\u5185\u5BB9:"\u4E0D\u80FD\u76F4\u63A5\u590D\u5236\u7B54\u9898\u533A\u57DF\u5185\u5BB9",\u8BE5\u533A\u57DF\u4E0D\u53EF\u7F16\u8F91:"\u8BE5\u533A\u57DF\u4E0D\u53EF\u7F16\u8F91",\u79FB\u9664\u4EE3\u7801\u5757\u6807\u8BC6:"\u53D6\u6D88\u6807\u8BC6",\u5220\u9664\u4EE3\u7801\u5757:"\u5220\u9664\u4EE3\u7801",\u590D\u5236\u4EE3\u7801:"\u590D\u5236",\u7C98\u8D34\u4EE3\u7801:"\u7C98\u8D34",\u786E\u8BA4:"\u786E\u8BA4",\u53D6\u6D88:"\u53D6\u6D88",\u67E5\u770BAI\u4EE3\u7801:"\u67E5\u770BAI\u4EE3\u7801",\u67E5\u770B\u65E7\u4EE3\u7801:"\u67E5\u770B\u65E7\u4EE3\u7801",dao_paas_not_find_mount_dom_object_for_x:"\u627E\u4E0D\u5230\u4E3A{{x}}\u7684\u6302\u8F7DDOM\u5BF9\u8C61",dao_paas_x_component_is_not_supported:"\u7EC4\u4EF6{{x}}\u4E0D\u652F\u6301",dao_paas_no_ready:"\u672A\u51C6\u5907",\u8BF7\u5728\u6587\u4EF6\u6811\u4E2D\u6253\u5F00\u6587\u4EF6\u8FDB\u884C\u7F16\u8F91:"\u8BF7\u5728\u6587\u4EF6\u6811\u4E2D\u6253\u5F00\u6587\u4EF6\u8FDB\u884C\u7F16\u8F91","\u8BE5\u6587\u4EF6\u5DF2\u88AB\u8BBE\u7F6E\u4E3A\u9690\u85CF\uFF0C\u65E0\u6CD5\u67E5\u770B":"\u8BE5\u6587\u4EF6\u5DF2\u88AB\u8BBE\u7F6E\u4E3A\u9690\u85CF\uFF0C\u65E0\u6CD5\u67E5\u770B",dao_paas_file_does_not_exist:"\u6587\u4EF6\u4E0D\u5B58\u5728",dao_pass_set_answer_wrong:"\u8BBE\u7F6E\u9898\u76EE\u7B54\u6848\u9519\u8BEF",dao_paas_docker_has_been_destoryed:"docker\u5DF2\u7ECF\u88AB\u9500\u6BC1","Unable to create file or directory with system reserved name":"\u65E0\u6CD5\u4F7F\u7528\u7CFB\u7EDF\u4FDD\u7559\u540D\u79F0\u521B\u5EFA\u6587\u4EF6\u6216\u76EE\u5F55","The file or folder {{path}} already exists in this location, please choose another name":"\u6B64\u4F4D\u7F6E\u5DF2\u5B58\u5728\u6587\u4EF6\u6216\u8005\u6587\u4EF6\u5939 {{path}}\uFF0C\u8BF7\u9009\u62E9\u5176\u5B83\u540D\u79F0","No results":"\u6CA1\u6709\u7ED3\u679C","Collapse the file tree":"\u6536\u8D77\u6587\u4EF6\u6811","Create or rename to hidden files, will not be visible":"\u521B\u5EFA\u6216\u8005\u91CD\u547D\u540D\u4E3A\u9690\u85CF\u6587\u4EF6\uFF0C\u5C06\u4E0D\u53EF\u89C1","Live refresh":"\u5B9E\u65F6\u5237\u65B0","Code diagnosis":"\u4EE3\u7801\u8BCA\u65AD",file_tree_title:"\u6587\u4EF6",keyword_search_toolbar_title:"\u641C\u7D22",keyword_search_btn_refresh:"\u5237 \u65B0",keyword_search_btn_clear:"\u6E05 \u9664",keyword_search_btn_collapse:"\u5C55\u5F00/\u6536\u8D77",keyword_search_btn_replace_all:"\u5168\u5C40\u66FF\u6362({{press}})",keyword_search_btn_preserve:"\u4FDD\u7559\u5927\u5C0F\u5199({{press}})",keyword_search_btn_case:"\u5339\u914D\u5927\u5C0F\u5199({{press}})",keyword_search_btn_whole:"\u5168\u8BCD\u5339\u914D({{press}})",keyword_search_btn_expression:"\u6B63\u5219\u8868\u8FBE\u5F0F({{press}})",keyword_search_modal_title:"\u6279\u91CF\u66FF\u6362",keyword_search_modal_okText:"\u786E\u8BA4\u66FF\u6362",keyword_search_modal_cancelText:"\u53D6\u6D88",keyword_search_modal_tips_has_value:"\u662F\u5426\u7528\u300C{{text}}\u300D\u66FF\u6362 {{file}} \u4E2A\u6587\u4EF6\u4E2D\u51FA\u73B0\u7684 {{words}} \u5904\u5173\u952E\u8BCD",keyword_search_modal_tips_empty_value:"\u662F\u5426\u66FF\u6362 {{file}} \u4E2A\u6587\u4EF6\u4E2D\u51FA\u73B0\u7684 {{words}} \u5904\u5173\u952E\u8BCD",keyword_search_input_enter_placeholder:"\u8BF7\u8F93\u5165",keyword_search_input_replace_placeholder:"\u66FF\u6362",keyword_search_doing:"\u641C\u7D22\u4E2D...",keyword_search_nothing:"\u672A\u627E\u5230\u7ED3\u679C\uFF0C\u5C1D\u8BD5\u5176\u4ED6\u5173\u952E\u8BCD\u8BD5\u8BD5",keyword_search_found:"{{file}} \u4E2A\u6587\u4EF6\u4E2D\u7684 {{words}} \u4E2A\u7ED3\u679C"},h_=(t=>(t.ZH="ZH",t.EN="EN",t))(h_||{});const r5e={EN:{translation:t5e},ZH:{translation:n5e}},i5e="ZH";Uo.use(j4e).init({resources:r5e,lng:i5e,keySeparator:!1,interpolation:{escapeValue:!1}});const Mn=Uo.t;class o5e{constructor(e,n,r,i,o,s,a,l,c){Je(this,"start");Je(this,"end");Je(this,"totalTime");Je(this,"rate");Je(this,"preFrameTime",0);Je(this,"resumeTime",0);Je(this,"dataBuffer",[]);Je(this,"customizeData",[]);Je(this,"playing",!1);Je(this,"isReplay",!1);Je(this,"index",0);Je(this,"firstFrameTime",0);Je(this,"isMovePosition",!1);Je(this,"preTerminalIndex",{});Je(this,"preDebugIndex",{});Je(this,"preFireTreeIndex",{});Je(this,"preTerminalDockerId","");Je(this,"preConsoleDockerId","");Je(this,"isStopMovePosition",!1);Je(this,"triggerEventForMaxTimespanRecord","");Je(this,"triggerEventForMaxTimespan",-1);Je(this,"eventCustomize");Je(this,"eventDispatcher");Je(this,"getPlaybackSnapshot");Je(this,"progressDispatcher");Je(this,"currentDockerId");this.start=e,this.end=n,this.rate=1,this.totalTime=n-e,this.customizeData=i,this.triggerEventForMaxTimespan=o,this.eventDispatcher=s,this.progressDispatcher=a,this.getPlaybackSnapshot=l,this.eventCustomize=c,this.step=this.step.bind(this),this.currentDockerId=""}logger(...e){}convertToAbsoluteTime(e){return this.start+e}getFileRootPathByDockerId(e,n){var i,o,s,a;const r=this.index>=this.dataBuffer.length?this.dataBuffer.length-1:this.index;for(let l=r;l>=0;l--){const c=this.dataBuffer[l];if(this.isFileTree(c.eventName)&&c.dockerId===e&&c.data.fileRootPath&&((o=(i=c.data.payload)==null?void 0:i.children)==null?void 0:o.find(d=>d.path===n)))return c.data.fileRootPath}for(let l=0;l<this.dataBuffer.length;l++){const c=this.dataBuffer[l];if(this.isFileTree(c.eventName)&&c.dockerId===e&&c.data.fileRootPath&&((a=(s=c.data.payload)==null?void 0:s.children)==null?void 0:a.find(d=>d.path===n)))return c.data.fileRootPath}}getCurrentDocByPathAndDocker(e,n){const r=this.index>=this.dataBuffer.length?this.dataBuffer.length-1:this.index,i=(o,s)=>{var l;if(this.isEditor(o.eventName)&&o.dockerId===e&&o.data.openedPath===n)return o.snapshot||(o=((l=this.getPlaybackSnapshot)==null?void 0:l.call(this,o.eventName,o,this.getPreFrameByFrame(o,s)))||o),o};for(let o=r;o>=0;o--){const s=this.dataBuffer[o],a=i(s,o);if(a)return a}for(let o=0;o<this.dataBuffer.length;o++){const s=this.dataBuffer[o],a=i(s,o);if(a)return a}}getCurrentFrame(){return this.index>=this.dataBuffer.length?this.dataBuffer[this.dataBuffer.length-1]:this.dataBuffer[this.index]}setRate(e){e&&Number.isNaN(Number(e))&&this.progressDispatcher&&this.progressDispatcher("error",`${Mn("helpers_invalid_parameter_rate_x",{x:e})}`),this.rate=e||this.rate,U.dao.channel().setPlaybackRateAfterHooks(this.rate)}buffer(e){this.dataBuffer=this.dataBuffer.concat(e),this.firstFrameTime=this.dataBuffer[0].timestamp}pause(){if(this.logger("Click Pause!"),!this.playing){at.warn("Do not pause more than one time");return}this.playing=!1}resume(){this.resumeTime=this.resumeTime||0,this.resumeTime>0?this.isReplay=!0:this.preFrameTime=Date.now(),this.playing=!0,this.isStopMovePosition=!1,window.requestAnimationFrame(this.step)}restart(){this.preFrameTime=Date.now(),this.playing=!0,this.preFireTreeIndex={},this.preTerminalIndex={},this.preDebugIndex={},this.preTerminalDockerId="",this.preConsoleDockerId="",me.file.reset(),this.index=0,window.requestAnimationFrame(this.step)}movePosition(e){var n;if(!((n=this.dataBuffer)!=null&&n.length)){this.resumeTime=e;return}this.isStopMovePosition=!this.playing,this.resumeTime=e,this.isReplay=!0,this.index=this.findFrameByTimeStamp(),this.isMovePosition=!0,this.preTerminalIndex={},this.preDebugIndex={},me.dao.resetTerminal(),me.dao.resetConsole(),U.dao.channel().xtermStatus({resetConsole:!0}),window.requestAnimationFrame(this.step)}findFrameByTimeStamp(){const e=this.resumeTime+this.firstFrameTime,n=this.dataBuffer,r=n.length,i=(a,l)=>{var c,u,d,f;if(a<=l){const h=Math.floor((l-a)/2+a),p=n[h].timestamp;return p===e?h:e===((c=n[h-1])==null?void 0:c.timestamp)?h-1:e===((u=n[h+1])==null?void 0:u.timestamp)?h+1:e>((d=n[h-1])==null?void 0:d.timestamp)&&e<((f=n[h+1])==null?void 0:f.timestamp)?h:(e<p?l=h-1:e>p&&(a=h+1),i(a,l))}else return at.warn("Do not find the next frame"),this.index=0,this.resumeTime=0,this.resume(),this.index},o=0,s=r-1;return i(o,s)}gotoNextFrame(){var e;!this.isStopMovePosition&&((e=this.progressDispatcher)==null||e.call(this,"progress",this.resumeTime)),this.isStopMovePosition?(this.playing=!1,this.isStopMovePosition=!1):(this.preFrameTime=Date.now(),window.requestAnimationFrame(this.step))}triggerCustomizeEvent(e){var n;(n=this.eventCustomize)==null||n.call(this,e)}step(){var n,r,i;if(!this.playing&&!this.isStopMovePosition)return;if(this.isReplay&&(this.isReplay=!1,this.preFrameTime=Date.now()),this.resumeTime=this.resumeTime+(Date.now()-this.preFrameTime)*this.rate,this.index>this.dataBuffer.length-1){this.playing=!1,this.resumeTime=0,!this.isStopMovePosition&&((n=this.progressDispatcher)==null||n.call(this,"progress",this.totalTime)),(r=this.progressDispatcher)==null||r.call(this,"complete",this.resumeTime);return}let e=this.dataBuffer[this.index];if(!e){this.gotoNextFrame();return}if(e.eventName==="customize"&&(this.firstFrameTime+this.resumeTime>(e==null?void 0:e.timestamp)&&(this.logger(this.index,e.index,e.eventName,e._id),this.index++,this.triggerCustomizeEvent(e)),!this.isStopMovePosition)){this.gotoNextFrame();return}if(this.isMovePosition){this.triggerPreFrames(),this.isMovePosition=!1;return}if(this.firstFrameTime+this.resumeTime>(e==null?void 0:e.timestamp)){let o=0;const s=this.firstFrameTime+this.resumeTime;for(let a=this.index+1;a<this.dataBuffer.length&&this.dataBuffer[a].timestamp<=s;a++)o++,this.index=a;o>0&&(e=this.dataBuffer[this.index],this.isMovePosition=!0),this.isMovePosition?(this.triggerPreFrames(),this.isMovePosition=!1):(e=((i=this.getPlaybackSnapshot)==null?void 0:i.call(this,e.eventName,e,this.getPreFrameByFrame(e,this.index)||e))||e,this.setPreFrameData(e,this.index)),this.trigger(e.eventName,e)}else this.isMovePosition&&(this.triggerPreFrames(),this.isMovePosition=!1);this.gotoNextFrame()}getPreFrameByFrame(e,n){const{eventName:r,dockerId:i}=e,o=this.isEditor(r),s=this.isFileTree(r);let a;if(o){const{data:{openedPath:l}}=e;for(let c=n-1;c>=0;c--){const u=this.dataBuffer[c];if(u.dockerId===i&&u.eventName===r&&u.data.openedPath===l){a=this.dataBuffer[c],!a.snapshot&&c>=0&&this.setSnapshotByIndex(c);break}}}return s&&(a=this.dataBuffer[this.preFireTreeIndex[i]]),a}setPreFrameData(e,n){const{eventName:r,dockerId:i}=e;this.isFileTree(r)&&(this.preFireTreeIndex[i]=n)}isEditor(e){return e===dt.Editor}isFileTree(e){return e===dt.FileTree}isTerminal(e){return e===dt.Terminal}isConsole(e){return e===dt.Console}isDebug(e){return e===dt.Debug}isTerminalOrConsole(e){return[dt.Terminal.toString(),dt.Console.toString()].includes(e)}setSnapshotByIndex(e){var o;const n=this.dataBuffer[e],{eventName:r}=n,i=this.isEditor(r);for(let s=0;s<=e;s++){let a=this.dataBuffer[s];if(a.eventName==="customize"&&this.triggerCustomizeEvent(a),a.eventName===n.eventName&&a.dockerId===n.dockerId&&(i?a.data.openedPath===n.data.openedPath:!0)){if(a.snapshot){this.setPreFrameData(a,s);continue}a=((o=this.getPlaybackSnapshot)==null?void 0:o.call(this,a.eventName,a,this.getPreFrameByFrame(a,s)))||a,this.setPreFrameData(a,s)}}}triggerPreFrames(){var s;const e=[dt.FileTree.toString(),dt.Editor.toString(),dt.Terminal.toString(),dt.Console.toString(),dt.Debug.toString()],n=U.file.doc().openedPath;let r=!1;const i=this.index,o=this.dataBuffer[i].dockerId;this.currentDockerId=o;for(let a=i;a>=0;a--){if(!e.length)return;if(e.includes(this.dataBuffer[a].eventName)&&this.dataBuffer[a].dockerId===this.currentDockerId){const l=this.dataBuffer[a],c=e.findIndex(u=>u===l.eventName);e.splice(c,1),l.eventName===dt.Editor.toString()&&!r&&n!==l.data.openedPath&&(U.file.editorView()&&((s=U.file.editorView())==null||s.destroy(),me.file.editorView(void 0)),me.file.resetFile(),r=!0),l.snapshot||this.setSnapshotByIndex(a),this.trigger(l.eventName,l,!1)}}for(let a=0;a<this.customizeData.length;a++)this.customizeData[a].timestamp<=this.dataBuffer[this.index].timestamp&&this.triggerCustomizeEvent(this.customizeData[a]);e.forEach(a=>{this.logger("trigger reset eventName:",a),this.trigger(a,null,!1)})}trigger(e,n,r=!0){if(e==="customize"){this.logger(this.index,e,n==null?void 0:n._id),this.triggerCustomizeEvent(n),r&&this.index++;return}const i=this.isTerminalOrConsole(e),o=this.isDebug(e);if(!i&&!o){this.logger(this.index,e,n==null?void 0:n._id),this.eventDispatcher(e,n),r&&this.index++;return}const s=n==null?void 0:n.dockerId;this.logger("[TR]",s);const a=this.preTerminalIndex[s]||0,l=this.preDebugIndex[s]||0,c=o?l:a;for(let u=c+1;u<=this.index;u++){const d=this.dataBuffer[u];d&&(this.isTerminalOrConsole(d.eventName)||o)&&d.dockerId===s&&(this.logger("[TR]",u,this.index,d.eventName,this.dataBuffer[u].dockerId,this.dataBuffer[u]._id),this.isTerminal(e)&&(this.preTerminalDockerId&&this.preTerminalDockerId!==s&&me.dao.resetTerminal(),this.preTerminalDockerId=s),this.isConsole(e)&&(this.preConsoleDockerId&&this.preConsoleDockerId!==s&&(me.dao.resetConsole(),U.dao.channel().xtermStatus({resetConsole:!0})),this.preConsoleDockerId=s),this.eventDispatcher(d.eventName,d))}o?this.preDebugIndex[s]=this.index:this.preTerminalIndex[s]=this.index,r&&this.index++}}const s5e="@dao42/d42paas-front",a5e="0.9.210",l5e="d42paas front",c5e="dao42 paas team",u5e="https://github.com/dao42/d42paas_frontend#readme",d5e="UNLICENSED",f5e="./dist/DaoPaaS.cjs",h5e="./dist/DaoPaaS.cjs",O5e="./dist/DaoPaaS.d.ts",p5e={prebuild:"rimraf dist",build:"cross-env VITE_BUILD_EVENT=true pnpm tsc && pnpm vite && pnpm typedoc",copydist:"cp -r dist/sdk ../demo/public/",vite:"vite build --config ./config/vite.config.ts && shx cp ./src/types/DaoPaaS.d.ts ./dist",typedoc:"npx typedoc --tsconfig ./doc.tsconfig.json",workNameSpaceToFix:"node ./config/workNameSpaceToFix.js",tsc:"tsc -p ./tsconfig.json --isolatedModules false",test1:"jest --coverage",test:"jest",prepublish:"pnpm build",publish:"npm publish --access public"},m5e={"@babel/core":"^7.15.0","@babel/preset-env":"^7.15.0","@codemirror/autocomplete":"^6.6.1","@codemirror/collab":"^6.0.0","@codemirror/commands":"^6.2.3","@codemirror/lang-cpp":"^6.0.2","@codemirror/lang-css":"^6.1.1","@codemirror/lang-html":"^6.0.0","@codemirror/lang-java":"^6.0.1","@codemirror/lang-javascript":"6.0.0","@codemirror/lang-json":"^6.0.0","@codemirror/lang-lezer":"^6.0.0","@codemirror/lang-markdown":"^6.1.1","@codemirror/lang-php":"^6.0.0","@codemirror/lang-python":"6.1.2","@codemirror/lang-rust":"^6.0.0","@codemirror/lang-sql":"^6.4.1","@codemirror/lang-xml":"^6.0.0","@codemirror/language":"6.5.0","@codemirror/legacy-modes":"^6.3.2","@codemirror/lint":"^6.0.0","@codemirror/search":"^6.0.0","@codemirror/state":"^6.2.0","@codemirror/theme-one-dark":"^6.0.0","@codemirror/view":"^6.12.0","@emotion/babel-plugin":"^11.3.0","@emotion/babel-preset-css-prop":"^11.2.0","@emotion/core":"^11.0.0","@emotion/css":"^11.1.3","@emotion/eslint-plugin":"^11.2.0","@emotion/react":"^11.9.3","@emotion/styled":"^11.3.0","@headlessui/react":"^1.4.3","@loadable/component":"^5.15.2","@open-rpc/client-js":"^1.7.1","@testing-library/jest-dom":"^5.16.4","@testing-library/react":"^13.3.0","@testing-library/user-event":"^14.4.3","@types/fs-extra":"^9.0.13","@types/jest":"^27.0.2","@types/loadable__component":"^5.13.4","@types/lodash":"^4.14.175","@types/lodash.clonedeep":"^4.5.7","@types/lodash.debounce":"^4.0.7","@types/lodash.isequal":"^4.5.6","@types/lodash.throttle":"^4.1.7","@types/node":"^16.11.1","@types/ot":"^0.0.5","@types/prop-types":"^15.7.5","@types/react":"^18.0.14","@types/react-dom":"^18.0.5","@types/react-transition-group":"^4.4.5","@types/testing-library__jest-dom":"^5.14.5","@types/uuid":"^8.3.1","@typescript-eslint/eslint-plugin":"^4.28.2","@typescript-eslint/parser":"^4.28.2","@udecode/zustood":"^1.1.1","@vitejs/plugin-react":"^1.0.7",ahooks:"^3.3.10","babel-loader":"^8.2.2",bufferutil:"^4.0.6",classnames:"^2.3.1",codemirror:"^6.0.0",concurrently:"^6.3.0","cross-env":"^7.0.3",devicon:"^2.14.0",dexie:"^3.2.0","file-icons-js":"^1.1.0","file-loader":"^6.2.0","fs-extra":"^10.0.0","glob-all":"^3.2.1","highlight.js":"^11.6.0","hotkeys-js":"^3.9.4",immer:"^9.0.14",jest:"27.0.6",lodash:"^4.17.21",msw:"^0.39.2","ninja-keys":"^1.1.12",ot:"^0.0.15","prop-types":"^15.8.1",react:"^18.2.0","react-complex-tree":"^1.1.6","react-content-loader":"^6.2.0","react-dom":"18.2.0","react-icons":"^4.3.1","react-transition-group":"^4.4.2","rehype-document":"^6.1.0","rehype-highlight":"^5.0.2","rehype-katex":"^6.0.2","rehype-stringify":"^9.0.3","remark-gfm":"^3.0.1","remark-math":"^5.1.1","remark-parse":"^10.0.1","remark-rehype":"^10.1.0",rimraf:"^3.0.2","rollup-plugin-visualizer":"^5.9.0",sass:"^1.43.2","sass-loader":"^12.2.0",shx:"^0.3.3","socket.io-client":"^4.5.1","source-map-loader":"^3.0.0","style-loader":"^3.3.1",stylis:"^4.0.10","ts-jest":"^27.1.3","ts-loader":"^9.2.5","ts-node":"^10.0.0",typedoc:"^0.22.12",unified:"^10.1.2","use-immer":"^0.7.0","utf-8-validate":"^5.0.9",uuid:"^8.3.2",vite:"^2.9.15","vite-plugin-html":"^3.0.6","whatwg-fetch":"^3.6.2",xterm:"^5.1.0","xterm-addon-attach":"^0.8.0","xterm-addon-fit":"^0.7.0",zustand:"4.0.0"},g5e=["dist"],v5e={type:"git",url:"git+https://github.com/dao42/d42paas_frontend.git"},y5e={url:"https://github.com/dao42/d42paas_frontend/issues"},b5e={workerDirectory:"src"},S5e={"@babel/plugin-transform-modules-commonjs":"^7.18.2",anymatch:"^3.1.3","babel-jest":"^29.3.1","babel-preset-react-app":"^10.0.1","codemirror-lang-elixir":"^3.0.0","detect-indent":"^7.0.1",i18next:"^21.8.16","jest-websocket-mock":"^2.4.0",lib0:"^0.2.58","lodash.clonedeep":"^4.5.0","lodash.debounce":"^4.0.8","lodash.isequal":"^4.5.0","lodash.throttle":"^4.1.1","range-analyzer":"0.1.1-alpha.2","rc-dropdown":"^4.0.1","rc-image":"^7.2.0","rc-menu":"^9.6.3","react-app-polyfill":"^3.0.0","react-i18next":"11.18.3",rrweb:"2.0.0-alpha.8","rrweb-player":"1.0.0-alpha.4","socket.io":"^4.5.1","socket.io-mock":"^1.3.2","socket.io-msgpack-parser":"^3.0.1","xterm-addon-web-links":"^0.8.0"},w5e={worker_threads:!1};var $5e={name:s5e,version:a5e,description:l5e,author:c5e,homepage:u5e,license:d5e,main:f5e,module:h5e,types:O5e,scripts:p5e,devDependencies:m5e,files:g5e,repository:v5e,bugs:y5e,msw:b5e,dependencies:S5e,browser:w5e};const x5e=()=>$5e.version,_5e=async(t,e,n)=>{const r=window.navigator.cookieEnabled?window.localStorage.getItem("__paas__testServerCode__"):null,i=r?{serverCode:r}:{};return new Promise((o,s)=>{fetch(t+"/api/v1/jssdk/ticket",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ticket:e,packageVersion:n,...i})}).then(a=>a.json()).then(a=>{o(a)}).catch(a=>{s(a)})})},iee=(t,e=1)=>{t=t||"#ffffff";let n=t.replace("#","");n.length===3&&(n=`${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`);const r=parseInt(n.substring(0,2),16),i=parseInt(n.substring(2,4),16),o=parseInt(n.substring(4,6),16);return e>1&&e<=100&&(e=e/100),`rgba(${r},${i},${o},${e})`},k5e=()=>{const t=`
|
|
49
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l4e(t){return HJ(t)||KJ(t)||MA(t)||JJ()}function vN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function yN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var c4e={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},u4e=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fa(this,t),this.init(e,n)}return ha(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||c4e,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new t(this.logger,yN(yN({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),Iu=new u4e,$h=function(){function t(){fa(this,t),this.observers={}}return ha(t,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(!!this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var s=[].concat(this.observers[n]);s.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),t}();function K0(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function bN(t){return t==null?"":""+t}function d4e(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function LA(t,e,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}function i(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={}}return i()?{}:{obj:t,k:r(o.shift())}}function SN(t,e,n){var r=LA(t,e,Object),i=r.obj,o=r.k;i[o]=n}function f4e(t,e,n,r){var i=LA(t,e,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function d_(t,e){var n=LA(t,e),r=n.obj,i=n.k;if(!!r)return r[i]}function wN(t,e,n){var r=d_(t,n);return r!==void 0?r:d_(e,n)}function eee(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):eee(t[r],e[r],n):t[r]=e[r]);return t}function Ip(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var h4e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function O4e(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return h4e[e]}):t}var V2=typeof window!="undefined"&&window.navigator&&typeof window.navigator.userAgentData=="undefined"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,p4e=[" ",",","?","!",";"];function m4e(t,e,n){e=e||"",n=n||"";var r=p4e.filter(function(a){return e.indexOf(a)<0&&n.indexOf(a)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(a){return a==="?"?"\\?":a}).join("|"),")")),o=!i.test(t);if(!o){var s=t.indexOf(n);s>0&&!i.test(t.substring(0,s))&&(o=!0)}return o}function $N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function uw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$N(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$N(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function g4e(t){var e=v4e();return function(){var r=vc(t),i;if(e){var o=vc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return l0(this,i)}}function v4e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tee(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!t){if(t[e])return t[e];for(var r=e.split(n),i=t,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var s=2,a=r.slice(o,o+s).join(n),l=i[a];l===void 0&&r.length>o+s;)s++,a=r.slice(o,o+s).join(n),l=i[a];if(l===void 0)return;if(l===null)return null;if(e.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}var c=r.slice(o+s).join(n);return c?tee(l,c,n):void 0}i=i[r[o]]}return i}}var y4e=function(t){Mh(n,t);var e=g4e(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return fa(this,n),i=e.call(this),V2&&$h.call(vl(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return ha(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[i,o];s&&typeof s!="string"&&(u=u.concat(s)),s&&typeof s=="string"&&(u=u.concat(l?s.split(l):s)),i.indexOf(".")>-1&&(u=i.split("."));var d=d_(this.data,u);return d||!c||typeof s!="string"?d:tee(this.data&&this.data[i]&&this.data[i][o],s,l)}},{key:"addResource",value:function(i,o,s,a){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var u=[i,o];s&&(u=u.concat(c?s.split(c):s)),i.indexOf(".")>-1&&(u=i.split("."),a=o,o=u[1]),this.addNamespaces(o),SN(this.data,u,a),l.silent||this.emit("added",i,o,s,a)}},{key:"addResources",value:function(i,o,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in s)(typeof s[l]=="string"||Object.prototype.toString.apply(s[l])==="[object Array]")&&this.addResource(i,o,l,s[l],{silent:!0});a.silent||this.emit("added",i,o,s)}},{key:"addResourceBundle",value:function(i,o,s,a,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[i,o];i.indexOf(".")>-1&&(u=i.split("."),a=s,s=o,o=u[1]),this.addNamespaces(o);var d=d_(this.data,u)||{};a?eee(d,s,l):d=uw(uw({},d),s),SN(this.data,u,d),c.silent||this.emit("added",i,o,s)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?uw(uw({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),s=o&&Object.keys(o)||[];return!!s.find(function(a){return o[a]&&Object.keys(o[a]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}($h),nee={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,o){var s=this;return e.forEach(function(a){s.processors[a]&&(n=s.processors[a].process(n,r,i,o))}),n}};function xN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Hs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function b4e(t){var e=S4e();return function(){var r=vc(t),i;if(e){var o=vc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return l0(this,i)}}function S4e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var _N={},kN=function(t){Mh(n,t);var e=b4e(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return fa(this,n),i=e.call(this),V2&&$h.call(vl(i)),d4e(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,vl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Iu.create("translator"),i}return ha(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var s=this.resolve(i,o);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(i,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],c=s&&i.indexOf(s)>-1,u=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!m4e(i,s,a);if(c&&!u){var d=i.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:i,namespaces:l};var f=i.split(s);(s!==a||s===a&&this.options.ns.indexOf(f[0])>-1)&&(l=f.shift()),i=f.join(a)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,o,s){var a=this;if(ao(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=this.extractFromKey(i[i.length-1],o),d=u.key,f=u.namespaces,h=f[f.length-1],p=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(m){var O=o.nsSeparator||this.options.nsSeparator;return l?(g.res="".concat(h).concat(O).concat(d),g):"".concat(h).concat(O).concat(d)}return l?(g.res=d,g):d}var g=this.resolve(i,o),y=g&&g.res,b=g&&g.usedKey||d,w=g&&g.exactUsedKey||d,x=Object.prototype.toString.apply(y),_=["[object Number]","[object Function]","[object RegExp]"],P=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,C=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(k&&y&&C&&_.indexOf(x)<0&&!(typeof P=="string"&&x==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var I=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,y,Hs(Hs({},o),{},{ns:f})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(g.res=I,g):I}if(c){var M=x==="[object Array]",T=M?[]:{},N=M?w:b;for(var H in y)if(Object.prototype.hasOwnProperty.call(y,H)){var Z="".concat(N).concat(c).concat(H);T[H]=this.translate(Z,Hs(Hs({},o),{joinArrays:!1,ns:f})),T[H]===Z&&(T[H]=y[H])}y=T}}else if(k&&typeof P=="string"&&x==="[object Array]")y=y.join(P),y&&(y=this.extendTranslation(y,i,o,s));else{var G=!1,D=!1,W=o.count!==void 0&&typeof o.count!="string",Y=n.hasDefaultValue(o),X=W?this.pluralResolver.getSuffix(p,o.count,o):"",ie=o["defaultValue".concat(X)]||o.defaultValue;!this.isValidLookup(y)&&Y&&(G=!0,y=ie),this.isValidLookup(y)||(D=!0,y=d);var Oe=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,te=Oe&&D?void 0:y,de=Y&&ie!==y&&this.options.updateMissing;if(D||G||de){if(this.logger.log(de?"updateKey":"missingKey",p,h,d,de?ie:y),c){var ae=this.resolve(d,Hs(Hs({},o),{},{keySeparator:!1}));ae&&ae.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 J=[],ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ne&&ne[0])for(var se=0;se<ne.length;se++)J.push(ne[se]);else this.options.saveMissingTo==="all"?J=this.languageUtils.toResolveHierarchy(o.lng||this.language):J.push(o.lng||this.language);var le=function(ve,be,Ue){var Ze=Y&&Ue!==y?Ue:te;a.options.missingKeyHandler?a.options.missingKeyHandler(ve,h,be,Ze,de,o):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(ve,h,be,Ze,de,o),a.emit("missingKey",ve,h,be,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&W?J.forEach(function(Se){a.pluralResolver.getSuffixes(Se,o).forEach(function(ve){le([Se],d+ve,o["defaultValue".concat(ve)]||ie)})}):le(J,d,ie))}y=this.extendTranslation(y,i,o,g,s),D&&y===d&&this.options.appendNamespaceToMissingKey&&(y="".concat(h,":").concat(d)),(D||G)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(h,":").concat(d):d,G?y:void 0):y=this.options.parseMissingKeyHandler(y))}return l?(g.res=y,g):y}},{key:"extendTranslation",value:function(i,o,s,a,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Hs(Hs({},this.options.interpolation.defaultVariables),s),a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Hs(Hs({},s),{interpolation:Hs(Hs({},this.options.interpolation),s.interpolation)}));var u=typeof i=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),d;if(u){var f=i.match(this.interpolator.nestingRegexp);d=f&&f.length}var h=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(h=Hs(Hs({},this.options.interpolation.defaultVariables),h)),i=this.interpolator.interpolate(i,h,s.lng||this.language,s),u){var p=i.match(this.interpolator.nestingRegexp),m=p&&p.length;d<m&&(s.nest=!1)}s.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var y=arguments.length,b=new Array(y),w=0;w<y;w++)b[w]=arguments[w];return l&&l[0]===b[0]&&!s.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(b[0]," in key: ").concat(o[0])),null):c.translate.apply(c,b.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var O=s.postProcess||this.options.postProcess,g=typeof O=="string"?[O]:O;return i!=null&&g&&g.length&&s.applyPostProcessor!==!1&&(i=nee.handle(g,i,o,this.options&&this.options.postProcessPassResolved?Hs({i18nResolved:a},s):s,this)),i}},{key:"resolve",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,l,c,u,d;return typeof i=="string"&&(i=[i]),i.forEach(function(f){if(!o.isValidLookup(a)){var h=o.extractFromKey(f,s),p=h.key;l=p;var m=h.namespaces;o.options.fallbackNS&&(m=m.concat(o.options.fallbackNS));var O=s.count!==void 0&&typeof s.count!="string",g=O&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),y=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",b=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);m.forEach(function(w){o.isValidLookup(a)||(d=w,!_N["".concat(b[0],"-").concat(w)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(d)&&(_N["".concat(b[0],"-").concat(w)]=!0,o.logger.warn('key "'.concat(l,'" for languages "').concat(b.join(", "),`" won't get resolved as namespace "`).concat(d,'" 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!!!")),b.forEach(function(x){if(!o.isValidLookup(a)){u=x;var _=[p];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(_,p,x,w,s);else{var P;O&&(P=o.pluralResolver.getSuffix(x,s.count,s));var k="".concat(o.options.pluralSeparator,"zero");if(O&&(_.push(p+P),g&&_.push(p+k)),y){var C="".concat(p).concat(o.options.contextSeparator).concat(s.context);_.push(C),O&&(_.push(C+P),g&&_.push(C+k))}}for(var I;I=_.pop();)o.isValidLookup(a)||(c=I,a=o.getResource(x,w,I,s))}}))})}}),{res:a,usedKey:l,exactUsedKey:c,usedLng:u,usedNS:d}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,s,a):this.resourceStore.getResource(i,o,s,a)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&o===s.substring(0,o.length)&&i[s]!==void 0)return!0;return!1}}]),n}($h);function g5(t){return t.charAt(0).toUpperCase()+t.slice(1)}var w4e=function(){function t(e){fa(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Iu.create("languageUtils")}return ha(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=g5(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=g5(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=g5(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var s=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(s))&&(i=s)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var s=r.getLanguagePartFromCode(o);if(r.isSupportedCode(s))return i=s;i=r.options.supportedLngs.find(function(a){if(a.indexOf(s)===0)return a})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),s=[],a=function(c){!c||(i.isSupportedCode(c)?s.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(n))):typeof n=="string"&&a(this.formatLanguageCode(n)),o.forEach(function(l){s.indexOf(l)<0&&a(i.formatLanguageCode(l))}),s}}]),t}(),$4e=[{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}],x4e={1:function(e){return Number(e>1)},2:function(e){return Number(e!=1)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(e==1?0:e>=2&&e<=4?1:2)},7:function(e){return Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(e==1?0:e==2?1:e!=8&&e!=11?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(e==1?0:e==2?1:e<7?2:e<11?3:4)},11:function(e){return Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(e!==0)},14:function(e){return Number(e==1?0:e==2?1:e==3?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:e!==0?1:2)},17:function(e){return Number(e==1||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(e==0?0:e==1?1:2)},19:function(e){return Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(e==1?0:e==0||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)}},_4e=["v1","v2","v3"],PN={zero:0,one:1,two:2,few:3,many:4,other:5};function k4e(){var t={};return $4e.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:x4e[e.fc]}})}),t}var P4e=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fa(this,t),this.languageUtils=e,this.options=n,this.logger=Iu.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl=="undefined"||!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=k4e()}return ha(t,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(s,a){return PN[s]-PN[a]}).map(function(s){return"".concat(r.options.prepend).concat(s)}):o.numbers.map(function(s){return r.getSuffix(n,s,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),s=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var a=function(){return i.options.prepend&&s.toString()?i.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!_4e.includes(this.options.compatibilityJSON)}}]),t}();function QN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Rc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?QN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):QN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Q4e=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fa(this,t),this.logger=Iu.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return ha(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:O4e,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Ip(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Ip(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Ip(r.nestingPrefix):r.nestingPrefixEscaped||Ip("$t("),this.nestingSuffix=r.nestingSuffix?Ip(r.nestingSuffix):r.nestingSuffixEscaped||Ip(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var s=this,a,l,c,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(O){return O.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(s.formatSeparator)<0){var y=wN(r,u,g);return s.alwaysFormat?s.format(y,void 0,i,Rc(Rc(Rc({},o),r),{},{interpolationkey:g})):y}var b=g.split(s.formatSeparator),w=b.shift().trim(),x=b.join(s.formatSeparator).trim();return s.format(wN(r,u,w),x,i,Rc(Rc(Rc({},o),r),{},{interpolationkey:w}))};this.resetRegExp();var h=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,m=[{regex:this.regexpUnescape,safeValue:function(g){return d(g)}},{regex:this.regexp,safeValue:function(g){return s.escapeValue?d(s.escape(g)):d(g)}}];return m.forEach(function(O){for(c=0;a=O.regex.exec(n);){var g=a[1].trim();if(l=f(g),l===void 0)if(typeof h=="function"){var y=h(n,a,o);l=typeof y=="string"?y:""}else if(o&&o.hasOwnProperty(g))l="";else if(p){l=a[0];continue}else s.logger.warn("missed to pass in variable ".concat(g," for interpolating ").concat(n)),l="";else typeof l!="string"&&!s.useRawValueToEscape&&(l=bN(l));var b=O.safeValue(l);if(n=n.replace(a[0],b),p?(O.regex.lastIndex+=l.length,O.regex.lastIndex-=a[0].length):O.regex.lastIndex=0,c++,c>=s.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,a,l=Rc({},o);l.applyPostProcessor=!1,delete l.defaultValue;function c(h,p){var m=this.nestingOptionsSeparator;if(h.indexOf(m)<0)return h;var O=h.split(new RegExp("".concat(m,"[ ]*{"))),g="{".concat(O[1]);h=O[0],g=this.interpolate(g,l);var y=g.match(/'/g),b=g.match(/"/g);(y&&y.length%2===0&&!b||b.length%2!==0)&&(g=g.replace(/'/g,'"'));try{l=JSON.parse(g),p&&(l=Rc(Rc({},p),l))}catch(w){return this.logger.warn("failed parsing options string in nesting for key ".concat(h),w),"".concat(h).concat(m).concat(g)}return delete l.defaultValue,h}for(;s=this.nestingRegexp.exec(n);){var u=[],d=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var f=s[1].split(this.formatSeparator).map(function(h){return h.trim()});s[1]=f.shift(),u=f,d=!0}if(a=r(c.call(this,s[1].trim(),l),l),a&&s[0]===n&&typeof a!="string")return a;typeof a!="string"&&(a=bN(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),a=""),d&&(a=u.reduce(function(h,p){return i.format(h,p,o.lng,Rc(Rc({},o),{},{interpolationkey:s[1].trim()}))},a.trim())),n=n.replace(s[0],a),this.regexp.lastIndex=0}return n}}]),t}();function TN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Pf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?TN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):TN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function T4e(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);if(e==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(e==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(s){if(!!s){var a=s.split(":"),l=l4e(a),c=l[0],u=l.slice(1),d=u.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=d),d==="false"&&(n[c.trim()]=!1),d==="true"&&(n[c.trim()]=!0),isNaN(d)||(n[c.trim()]=parseInt(d,10))}})}}return{formatName:e,formatOptions:n}}function Dp(t){var e={};return function(r,i,o){var s=i+JSON.stringify(o),a=e[s];return a||(a=t(i,o),e[s]=a),a(r)}}var C4e=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fa(this,t),this.logger=Iu.create("formatter"),this.options=e,this.formats={number:Dp(function(n,r){var i=new Intl.NumberFormat(n,r);return function(o){return i.format(o)}}),currency:Dp(function(n,r){var i=new Intl.NumberFormat(n,Pf(Pf({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Dp(function(n,r){var i=new Intl.DateTimeFormat(n,Pf({},r));return function(o){return i.format(o)}}),relativetime:Dp(function(n,r){var i=new Intl.RelativeTimeFormat(n,Pf({},r));return function(o){return i.format(o,r.range||"day")}}),list:Dp(function(n,r){var i=new Intl.ListFormat(n,Pf({},r));return function(o){return i.format(o)}})},this.init(e)}return ha(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Dp(r)}},{key:"format",value:function(n,r,i,o){var s=this,a=r.split(this.formatSeparator),l=a.reduce(function(c,u){var d=T4e(u),f=d.formatName,h=d.formatOptions;if(s.formats[f]){var p=c;try{var m=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},O=m.locale||m.lng||o.locale||o.lng||i;p=s.formats[f](c,O,Pf(Pf(Pf({},h),o),m))}catch(g){s.logger.warn(g)}return p}else s.logger.warn("there was no format function for ".concat(f));return c},n);return l}}]),t}();function CN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function EN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?CN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):CN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function E4e(t){var e=R4e();return function(){var r=vc(t),i;if(e){var o=vc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return l0(this,i)}}function R4e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function A4e(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var X4e=function(t){Mh(n,t);var e=E4e(n);function n(r,i,o){var s,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return fa(this,n),s=e.call(this),V2&&$h.call(vl(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=a,s.logger=Iu.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=a.maxParallelReads||10,s.readingCalls=0,s.maxRetries=a.maxRetries>=0?a.maxRetries:5,s.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,a.backend,a),s}return ha(n,[{key:"queueLoad",value:function(i,o,s,a){var l=this,c={},u={},d={},f={};return i.forEach(function(h){var p=!0;o.forEach(function(m){var O="".concat(h,"|").concat(m);!s.reload&&l.store.hasResourceBundle(h,m)?l.state[O]=2:l.state[O]<0||(l.state[O]===1?u[O]===void 0&&(u[O]=!0):(l.state[O]=1,p=!1,u[O]===void 0&&(u[O]=!0),c[O]===void 0&&(c[O]=!0),f[m]===void 0&&(f[m]=!0)))}),p||(d[h]=!0)}),(Object.keys(c).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(c),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(i,o,s){var a=i.split("|"),l=a[0],c=a[1];o&&this.emit("failedLoading",l,c,o),s&&this.store.addResourceBundle(l,c,s),this.state[i]=o?-1:2;var u={};this.queue.forEach(function(d){f4e(d.loaded,[l],c),A4e(d,i),o&&d.errors.push(o),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(f){u[f]||(u[f]={});var h=d.loaded[f];h.length&&h.forEach(function(p){u[f][p]===void 0&&(u[f][p]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(i,o,s){var a=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!i.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:s,tried:l,wait:c,callback:u});return}return this.readingCalls++,this.backend[s](i,o,function(d,f){if(a.readingCalls--,a.waitingReads.length>0){var h=a.waitingReads.shift();a.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(d&&f&&l<a.maxRetries){setTimeout(function(){a.read.call(a,i,o,s,l+1,c*2,u)},c);return}u(d,f)})}},{key:"prepareLoading",value:function(i,o){var s=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=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."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var c=this.queueLoad(i,o,a,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(u){s.loadOne(u)})}},{key:"load",value:function(i,o,s){this.prepareLoading(i,o,{},s)}},{key:"reload",value:function(i,o,s){this.prepareLoading(i,o,{reload:!0},s)}},{key:"loadOne",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=i.split("|"),l=a[0],c=a[1];this.read(l,c,"read",void 0,void 0,function(u,d){u&&o.logger.warn("".concat(s,"loading namespace ").concat(c," for language ").concat(l," failed"),u),!u&&d&&o.logger.log("".concat(s,"loaded namespace ").concat(c," for language ").concat(l),d),o.loaded(i,u,d)})}},{key:"saveMissing",value:function(i,o,s,a,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(s,'" as the 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!!!");return}s==null||s===""||(this.backend&&this.backend.create&&this.backend.create(i,o,s,a,null,EN(EN({},c),{},{isUpdate:l})),!(!i||!i[0])&&this.store.addResource(i[0],o,s,a))}}]),n}($h);function I4e(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(ao(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),ao(e[2])==="object"||ao(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function RN(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function AN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function hu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?AN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):AN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function D4e(t){var e=z4e();return function(){var r=vc(t),i;if(e){var o=vc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return l0(this,i)}}function z4e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dw(){}function M4e(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var f_=function(t){Mh(n,t);var e=D4e(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(fa(this,n),r=e.call(this),V2&&$h.call(vl(r)),r.options=RN(i),r.services={},r.logger=Iu,r.modules={external:[]},M4e(vl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),l0(r,vl(r));setTimeout(function(){r.init(i,o)},0)}return r}return ha(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var a=I4e();this.options=hu(hu(hu({},a),this.options),RN(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=hu(hu({},a.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(g){return g?typeof g=="function"?new g:g:null}if(!this.options.isClone){this.modules.logger?Iu.init(l(this.modules.logger),this.options):Iu.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl!="undefined"&&(c=C4e);var u=new w4e(this.options);this.store=new y4e(this.options.resources,this.options);var d=this.services;d.logger=Iu,d.resourceStore=this.store,d.languageUtils=u,d.pluralResolver=new P4e(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(d.formatter=l(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Q4e(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new X4e(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(g){for(var y=arguments.length,b=new Array(y>1?y-1:0),w=1;w<y;w++)b[w-1]=arguments[w];i.emit.apply(i,[g].concat(b))}),this.modules.languageDetector&&(d.languageDetector=l(this.modules.languageDetector),d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=l(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new kN(this.services,this.options),this.translator.on("*",function(g){for(var y=arguments.length,b=new Array(y>1?y-1:0),w=1;w<y;w++)b[w-1]=arguments[w];i.emit.apply(i,[g].concat(b))}),this.modules.external.forEach(function(g){g.init&&g.init(i)})}if(this.format=this.options.interpolation.format,s||(s=dw),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var h=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];h.forEach(function(g){i[g]=function(){var y;return(y=i.store)[g].apply(y,arguments)}});var p=["addResource","addResources","addResourceBundle","removeResourceBundle"];p.forEach(function(g){i[g]=function(){var y;return(y=i.store)[g].apply(y,arguments),i}});var m=K0(),O=function(){var y=function(w,x){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),m.resolve(x),s(w,x)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return y(null,i.t.bind(i));i.changeLanguage(i.options.lng,y)};return this.options.resources||!this.options.initImmediate?O():setTimeout(O,0),m}},{key:"loadResources",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dw,a=s,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(a=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return a();var c=[],u=function(h){if(!!h){var p=o.services.languageUtils.toResolveHierarchy(h);p.forEach(function(m){c.indexOf(m)<0&&c.push(m)})}};if(l)u(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(f){return u(f)})}this.options.preload&&this.options.preload.forEach(function(f){return u(f)}),this.services.backendConnector.load(c,this.options.ns,function(f){!f&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),a(f)})}else a(null)}},{key:"reloadResources",value:function(i,o,s){var a=K0();return i||(i=this.languages),o||(o=this.options.ns),s||(s=dw),this.services.backendConnector.reload(i,o,function(l){a.resolve(),s(l)}),a}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&nee.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(i,o){var s=this;this.isLanguageChangingTo=i;var a=K0();this.emit("languageChanging",i);var l=function(f){s.language=f,s.languages=s.services.languageUtils.toResolveHierarchy(f),s.resolvedLanguage=void 0,s.setResolvedLanguage(f)},c=function(f,h){h?(l(h),s.translator.changeLanguage(h),s.isLanguageChangingTo=void 0,s.emit("languageChanged",h),s.logger.log("languageChanged",h)):s.isLanguageChangingTo=void 0,a.resolve(function(){return s.t.apply(s,arguments)}),o&&o(f,function(){return s.t.apply(s,arguments)})},u=function(f){!i&&!f&&s.services.languageDetector&&(f=[]);var h=typeof f=="string"?f:s.services.languageUtils.getBestMatchFromCodes(f);h&&(s.language||l(h),s.translator.language||s.translator.changeLanguage(h),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage(h)),s.loadResources(h,function(p){c(p,h)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(u):u(i),a}},{key:"getFixedT",value:function(i,o,s){var a=this,l=function c(u,d){var f;if(ao(d)!=="object"){for(var h=arguments.length,p=new Array(h>2?h-2:0),m=2;m<h;m++)p[m-2]=arguments[m];f=a.options.overloadTranslationOptionHandler([u,d].concat(p))}else f=hu({},d);f.lng=f.lng||c.lng,f.lngs=f.lngs||c.lngs,f.ns=f.ns||c.ns,f.keyPrefix=f.keyPrefix||s||c.keyPrefix;var O=a.options.keySeparator||".",g=f.keyPrefix?"".concat(f.keyPrefix).concat(O).concat(u):u;return a.t(g,f)};return typeof i=="string"?l.lng=i:l.lngs=i,l.ns=o,l.keyPrefix=s,l}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var a=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var u=function(h,p){var m=o.services.backendConnector.state["".concat(h,"|").concat(p)];return m===-1||m===2};if(s.precheck){var d=s.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(a,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(a,i)&&(!l||u(c,i)))}},{key:"loadNamespaces",value:function(i,o){var s=this,a=K0();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){s.options.ns.indexOf(l)<0&&s.options.ns.push(l)}),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var s=K0();typeof i=="string"&&(i=[i]);var a=this.options.preload||[],l=i.filter(function(c){return a.indexOf(c)<0});return l.length?(this.options.preload=a.concat(l),this.loadResources(function(c){s.resolve(),o&&o(c)}),s):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["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"];return o.indexOf(this.services.languageUtils.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dw,a=hu(hu(hu({},this.options),o),{isClone:!0}),l=new n(a);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var c=["store","services","language"];return c.forEach(function(u){l[u]=i[u]}),l.services=hu({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new kN(l.services,l.options),l.translator.on("*",function(u){for(var d=arguments.length,f=new Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];l.emit.apply(l,[u].concat(f))}),l.init(a,s),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}($h);On(f_,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new f_(t,e)});var Uo=f_.createInstance();Uo.createInstance=f_.createInstance;Uo.createInstance;Uo.init;Uo.loadResources;Uo.reloadResources;Uo.use;Uo.changeLanguage;Uo.getFixedT;var E1=Uo.t;Uo.exists;Uo.setDefaultNamespace;Uo.hasLoadedNamespace;Uo.loadNamespaces;Uo.loadLanguages;function pg(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function gi(t,e){if(t==null)return{};var n=pg(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,r)||(n[r]=t[r]))}return n}var L4e=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230);/g,N4e={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026"},U4e=function(e){return N4e[e]},W4e=function(e){return e.replace(L4e,U4e)};function XN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function IN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?XN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):XN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var f3={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:W4e},ree,q4e=E.exports.createContext();function V4e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};f3=IN(IN({},f3),t)}function Y4e(){return f3}var B4e=function(){function t(){fa(this,t),this.usedNamespaces={}}return ha(t,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function F4e(t){ree=t}function Z4e(){return ree}var j4e={type:"3rdParty",init:function(e){V4e(e.options.react),F4e(e)}};function G4e(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var DN={};function h3(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&DN[e[0]]||(typeof e[0]=="string"&&(DN[e[0]]=new Date),G4e.apply(void 0,e))}function zN(t,e,n){t.loadNamespaces(e,function(){if(t.isInitialized)n();else{var r=function i(){setTimeout(function(){t.off("initialized",i)},0),n()};t.on("initialized",r)}})}function H4e(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e.languages[0],i=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var s=function(l,c){var u=e.services.backendConnector.state["".concat(l,"|").concat(c)];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!s(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||s(r,t)&&(!i||s(o,t)))}function K4e(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return h3("i18n.languages were undefined or empty",e.languages),!0;var r=e.options.ignoreJSONStructure!==void 0;return r?e.hasLoadedNamespace(t,{precheck:function(o,s){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!s(o.isLanguageChangingTo,t))return!1}}):H4e(t,e,n)}function J4e(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function Et(t,e){return HJ(t)||J4e(t,e)||MA(t,e)||JJ()}function MN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function v5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?MN(Object(n),!0).forEach(function(r){On(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):MN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var e5e=function(e,n){var r=E.exports.useRef();return E.exports.useEffect(function(){r.current=n?r.current:e},[e,n]),r.current};function rs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=E.exports.useContext(q4e)||{},i=r.i18n,o=r.defaultNS,s=n||i||Z4e();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new B4e),!s){h3("You will need to pass in an i18next instance by using initReactI18next");var a=function(C){return Array.isArray(C)?C[C.length-1]:C},l=[a,{},!1];return l.t=a,l.i18n={},l.ready=!1,l}s.options.react&&s.options.react.wait!==void 0&&h3("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=v5(v5(v5({},Y4e()),s.options.react),e),u=c.useSuspense,d=c.keyPrefix,f=t||o||s.options&&s.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(f);var h=(s.isInitialized||s.initializedStoreOnce)&&f.every(function(k){return K4e(k,s,c)});function p(){return s.getFixedT(null,c.nsMode==="fallback"?f:f[0],d)}var m=E.exports.useState(p),O=Et(m,2),g=O[0],y=O[1],b=f.join(),w=e5e(b),x=E.exports.useRef(!0);E.exports.useEffect(function(){var k=c.bindI18n,C=c.bindI18nStore;x.current=!0,!h&&!u&&zN(s,f,function(){x.current&&y(p)}),h&&w&&w!==b&&x.current&&y(p);function I(){x.current&&y(p)}return k&&s&&s.on(k,I),C&&s&&s.store.on(C,I),function(){x.current=!1,k&&s&&k.split(" ").forEach(function(M){return s.off(M,I)}),C&&s&&C.split(" ").forEach(function(M){return s.store.off(M,I)})}},[s,b]);var _=E.exports.useRef(!0);E.exports.useEffect(function(){x.current&&!_.current&&y(p),_.current=!1},[s]);var P=[g,s,h];if(P.t=g,P.i18n=s,P.ready=h,h||!h&&!u)return P;throw new Promise(function(k){zN(s,f,function(){k()})})}var t5e={common_success:"Success",common_confirm:"Confirm",common_cancel:"Cancel",common_delete:"Delete",common_hidden:"Hidden",common_locked:"Locked",common_offline:"Offline",common_directory:"Directory",common_file:"File",editor_no_open_file:"None file opened",editor_search_file:"recently opened",editor_large_file_tip:"The file size is over 16 MB, preview is not supported",editor_unsupported_format_file_cannot_display:"The file cannot be displayed for unsupported format",editor_picture_not_support_preview:"Picture's preview is not yet supported",editor_search_files_by_name:"Search files by name",editor_pending_update:"{{pendingUpdate}} updates to be written",editor_ot_success:"Success",editor_file_is_not_editable:"The file is not editable",editor_image_preview_failed_to_load_image:"Failed to load image",editor_image_preview_loading:"loading",file_tree_click_to_show:"Click to show",file_tree_click_to_hidden:"Click to hide",file_tree_click_to_cancel:"Click to cancel",file_tree_click_to_locked:"Click to lock",file_tree_joined_the_test:"Joined the test",file_tree_click_to_remove:"Click to remove",file_tree_add_test:"Add test",\u7528\u6237\u7F16\u8F91\u8FC7\u6B64\u6587\u4EF6:"This file modifyied by user",file_tree_num_of_files_cannot_exceed_500:"The number of files cannot exceed 500",file_tree_x_existed:"{{x}} existed",\u56DE\u653E\u5DF2\u6682\u505C:"Playback already pause.",\u56DE\u653E\u6A21\u5F0F\u4E0D\u652F\u6301\u6253\u5F00\u8BE5\u6587\u4EF6:"Cannot open the file with playback mode.",file_tree_x_filtered:"{{x}} filtered",file_tree_x_upload_not_allowed:"Upload of {{x}} not allowed",file_tree_renamed:"Renamed",file_tree_upload_files:"Upload files",file_tree_upload_folder:"Upload folder",show_hidden_files:"Show Hidden files",do_no_show_hidden_files:"Do not show hidden files",file_tree_rename:"Rename",file_tree_create_new_file:"New file",\u8DDF\u968F\u89C6\u89D2:"Follow view browser",\u63A7\u5236\u53F0:"Devtools",\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00:"Open in new tab",\u9000\u51FA\u8DDF\u968F:"Back to normal browser",\u5728\u65B0\u7A97\u53E3\u6253\u5F00:"Open with new tab",file_tree_create_new_folder:"New folder",file_tree_down_file:"Download",file_tree_failed_to_download_file:"Failed to download file",file_tree_make_sure_delete_x_unrecoverable:"Are you sure to delete this {{x}}? The file cannot be recovered after deletion",file_tree_kind_tips:"Notice",file_tree_understood:"Know",file_tree_space_char_exist_in_file_or_folder:"There is a space character",file_tree_file_exceeds_size_limit:"The file {{filePath}} exceeds the size limit of 16M",file_tree_rename_cannot_be_empty:"Rename cannot be empty",output_browser_click_run_start_application:"Click \u3010Run\u3011 to start the application",helpers_invalid_parameter_rate_x:"Invalid parameter: rate={{x}}",lib_the_area_already_set_answer_area_cannot_repeatedly:"The area has already set the answering area and cannot be set repeatedly",lib_x_file_cannot_set_the_answer_area:"The {{x}} file cannot set the answer area",lib_locked:"locked",lib_hidden:"hidden",store_user_not_found:"User not found",store_appStatus_transition_error_x:"AppStatus transition error: {{x}}",dao_channel_agentUserId_x_inconsistent:"The agentUserId {{x}} is inconsistent",dao_channel_event_x_is_not_supported:"Event {{x}} is not supported",dao_channel_connection_not_established:"The connection has not been established yet",dao_channel_playground_not_exist:"Playground does not exist",dao_channel_playground_unbound_container:"Playground unbound container",dao_channel_container_startup_failed:"Container startup failed",dao_channel_insufficient_server_resources:"Insufficient server resources",dao_channel_server_is_busy:"Server is busy",dao_channel_activation_timeout:"Docker activation timeout",dao_channel_docker_failed_to_activate:"Docker failed to start",dao_channel_socket_is_not_ready:"Socket is not ready",dao_channel_socket_is_not_ready_for_x:"Socket is not ready for {{x}}",dao_channel_socket_connect_broken:"Socket connection broken",debug_variables:"Variables",debug_call_stack:"Call stack",debug_staring:"staring",debug_tooltip_run:"Run",debug_tooltip_stop:"Stop",debug_tooltip_continue:"Continue",debug_tooltip_step_over:"Step Over",debug_tooltip_step_into:"Step Into",debug_tooltip_step_out:"Step Out",debug_call_stack_cannot_open_file:"Cannot open non-workspace file",dao_paas_cannot_follow_each_other:"Cannot follow each other",\u4E0D\u80FD\u76F4\u63A5\u590D\u5236\u7B54\u9898\u533A\u57DF\u5185\u5BB9:"Cannt copy the content",\u8BE5\u533A\u57DF\u4E0D\u53EF\u7F16\u8F91:"Cannt edit the content",\u79FB\u9664\u4EE3\u7801\u5757\u6807\u8BC6:"Remove block code flag",\u5220\u9664\u4EE3\u7801\u5757:"Remove block code",\u590D\u5236\u4EE3\u7801:"Copy",\u7C98\u8D34\u4EE3\u7801:"Paste",\u786E\u8BA4:"Confirm",\u53D6\u6D88:"Cancel",\u67E5\u770BAI\u4EE3\u7801:"View AI code",\u67E5\u770B\u65E7\u4EE3\u7801:"View origin code",dao_paas_not_find_mount_dom_object_for_x:"Could not find mounted DOM object for {{x}}",dao_paas_x_component_is_not_supported:"{{x}} component is not supported",dao_paas_no_ready:"No ready",\u8BF7\u5728\u6587\u4EF6\u6811\u4E2D\u6253\u5F00\u6587\u4EF6\u8FDB\u884C\u7F16\u8F91:"Pleas go to file tree to select one file and open it","\u8BE5\u6587\u4EF6\u5DF2\u88AB\u8BBE\u7F6E\u4E3A\u9690\u85CF\uFF0C\u65E0\u6CD5\u67E5\u770B":"You cannot view the hide file",dao_paas_file_does_not_exist:"File does not exist",dao_pass_set_answer_wrong:"Get wrong when insert answer for question",dao_paas_docker_has_been_destoryed:"docker has been destroyed","Unable to create file or directory with system reserved name":"Unable to create file or directory with system reserved name","The file or folder {{path}} already exists in this location, please choose another name":"The file or folder {{path}} already exists in this location, please choose another name","No results":"No results","Collapse the file tree":"Collapse the file tree","Create or rename to hidden files, will not be visible":"Create or rename to hidden files, will not be visible","Live refresh":"Live refresh","Code diagnosis":"Code diagnosis",file_tree_title:"Files",keyword_search_toolbar_title:"Search",keyword_search_btn_refresh:"Refresh",keyword_search_btn_clear:"Clear",keyword_search_btn_collapse:"Expand/Collapse All",keyword_search_btn_replace_all:"Replace All({{press}})",keyword_search_btn_preserve:"Preserve Case({{press}})",keyword_search_btn_case:"Match Case({{press}})",keyword_search_btn_whole:"Match Whole Word({{press}})",keyword_search_btn_expression:"Use Regular Expression({{press}})",keyword_search_modal_title:"Replace all",keyword_search_modal_okText:"Confirm replace",keyword_search_modal_cancelText:"Cancel",keyword_search_modal_tips_has_value:"Whether to replace {{words}} {{wordMore}} in {{file}} {{fileMore}} with {{text}}",keyword_search_modal_tips_empty_value:"Whether to replace {{words}} {{wordMore}} in {{file}} {{fileMore}}",keyword_search_input_enter_placeholder:"Please enter",keyword_search_input_replace_placeholder:"Replace",keyword_search_doing:"Searching...",keyword_search_nothing:"Not results found, try to enter other keyword",keyword_search_found:"{{words}} {{wordMore}} in {{file}} {{fileMore}}"},n5e={common_success:"\u6210\u529F",common_confirm:"\u786E\u5B9A",common_cancel:"\u53D6\u6D88",common_delete:"\u5220\u9664",common_hidden:"\u5DF2\u9690\u85CF",common_locked:"\u5DF2\u52A0\u9501",common_offline:"\u79BB\u7EBF",common_directory:"\u76EE\u5F55",common_file:"\u6587\u4EF6",editor_search_file:"\u6700\u8FD1\u6253\u5F00",editor_no_open_file:"\u672A\u6253\u5F00\u6587\u4EF6",editor_large_file_tip:"\u6587\u4EF6\u8D85\u8FC716\u5146\u5927\u5C0F\uFF0C\u6682\u4E0D\u652F\u6301\u9884\u89C8",editor_unsupported_format_file_cannot_display:"\u6B64\u6587\u4EF6\u662F\u4E8C\u8FDB\u5236\u6587\u4EF6\u6216\u4F7F\u7528\u4E86\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u7F16\u7801\uFF0C\u65E0\u6CD5\u5728\u7F16\u8F91\u5668\u4E2D\u663E\u793A",editor_picture_not_support_preview:"\u56FE\u7247\u6682\u65F6\u4E0D\u652F\u6301\u9884\u89C8",editor_search_files_by_name:"\u6309\u540D\u79F0\u641C\u7D22\u6587\u4EF6",editor_pending_update:"{{pendingUpdate}}\u4E2A\u66F4\u65B0\u5F85\u5199\u5165",editor_ot_success:"\u6210\u529F",editor_file_is_not_editable:"\u8BE5\u6587\u4EF6\u4E0D\u53EF\u7F16\u8F91",editor_image_preview_failed_to_load_image:"\u52A0\u8F7D\u56FE\u7247\u5931\u8D25",editor_image_preview_loading:"\u52A0\u8F7D\u4E2D...",file_tree_click_to_show:"\u70B9\u51FB\u663E\u793A",file_tree_click_to_hidden:"\u70B9\u51FB\u9690\u85CF",file_tree_click_to_cancel:"\u70B9\u51FB\u53D6\u6D88",file_tree_click_to_locked:"\u70B9\u51FB\u9501\u5B9A",file_tree_joined_the_test:"\u5DF2\u52A0\u5165\u6D4B\u8BD5",file_tree_click_to_remove:"\u70B9\u51FB\u79FB\u9664",file_tree_add_test:"\u6DFB\u52A0\u6D4B\u8BD5",\u7528\u6237\u7F16\u8F91\u8FC7\u6B64\u6587\u4EF6:"\u7528\u6237\u7F16\u8F91\u8FC7\u6B64\u6587\u4EF6",file_tree_num_of_files_cannot_exceed_500:"\u6587\u4EF6\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7500",file_tree_x_existed:"{{x}}\u5DF2\u5B58\u5728",\u56DE\u653E\u5DF2\u6682\u505C:"\u56DE\u653E\u5DF2\u6682\u505C",\u56DE\u653E\u6A21\u5F0F\u4E0D\u652F\u6301\u6253\u5F00\u8BE5\u6587\u4EF6:"\u56DE\u653E\u6A21\u5F0F\u4E0D\u652F\u6301\u6253\u5F00\u8BE5\u6587\u4EF6",\u8DDF\u968F\u89C6\u89D2:"\u8DDF\u968F\u89C6\u89D2",\u63A7\u5236\u53F0:"\u5F00\u53D1\u5DE5\u5177",\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00:"\u5728\u65B0\u6807\u7B7E\u9875\u4E2D\u6253\u5F00",\u9000\u51FA\u8DDF\u968F:"\u9000\u51FA\u8DDF\u968F",\u5728\u65B0\u7A97\u53E3\u6253\u5F00:"\u5728\u65B0\u7A97\u53E3\u6253\u5F00",file_tree_x_filtered:"{{x}}\u88AB\u8FC7\u6EE4",file_tree_x_upload_not_allowed:"{{x}}\u4E0D\u5141\u8BB8\u4E0A\u4F20",file_tree_renamed:"\u91CD\u540D\u4E86",file_tree_upload_files:"\u4E0A\u4F20\u6587\u4EF6",file_tree_upload_folder:"\u4E0A\u4F20\u6587\u4EF6\u5939",show_hidden_files:"\u663E\u793A\u9690\u85CF\u6587\u4EF6",do_no_show_hidden_files:"\u4E0D\u663E\u793A\u9690\u85CF\u6587\u4EF6",file_tree_rename:"\u91CD\u547D\u540D",file_tree_create_new_file:"\u65B0\u5EFA\u6587\u4EF6",file_tree_create_new_folder:"\u65B0\u5EFA\u6587\u4EF6\u5939",file_tree_down_file:"\u4E0B\u8F7D",file_tree_failed_to_download_file:"\u4E0B\u8F7D\u6587\u4EF6\u5931\u8D25",file_tree_make_sure_delete_x_unrecoverable:"\u786E\u5B9A\u5220\u9664\u8FD9\u4E2A{{x}}\u5417\uFF1F\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D",file_tree_kind_tips:"\u6E29\u99A8\u63D0\u793A",file_tree_understood:"\u77E5\u9053\u4E86",file_tree_space_char_exist_in_file_or_folder:"\u5B58\u5728\u7A7A\u683C\u5B57\u7B26",file_tree_file_exceeds_size_limit:"\u6587\u4EF6{{filePath}}\u8D85\u51FA\u4E8616M\u7684\u5927\u5C0F\u9650\u5236",file_tree_rename_cannot_be_empty:"\u91CD\u547D\u540D\u4E0D\u80FD\u4E3A\u7A7A",output_browser_click_run_start_application:"\u70B9\u51FB\u3010\u8FD0\u884C\u3011\u542F\u52A8\u5E94\u7528",helpers_invalid_parameter_rate_x:"\u65E0\u6548\u7684\u53C2\u6570: rate={{x}}",lib_the_area_already_set_answer_area_cannot_repeatedly:"\u8BE5\u533A\u57DF\u5DF2\u8BBE\u7F6E\u7B54\u9898\u533A\uFF0C\u4E0D\u53EF\u91CD\u590D\u8BBE\u7F6E",lib_x_file_cannot_set_the_answer_area:"{{x}}\u6587\u4EF6\u4E0D\u53EF\u4EE5\u8BBE\u7F6E\u7B54\u9898\u533A",lib_locked:"\u52A0\u9501",lib_hidden:"\u9690\u85CF",store_user_not_found:"\u627E\u4E0D\u5230\u7528\u6237",store_appStatus_transition_error_x:"appStatus \u8F6C\u6362\u9519\u8BEF: {{x}}",dao_channel_agentUserId_x_inconsistent:"agentUserId {{x}} \u4E0D\u4E00\u81F4",dao_channel_event_x_is_not_supported:"\u4E8B\u4EF6 {{x}} \u4E0D\u652F\u6301",dao_channel_connection_not_established:"\u8FDE\u63A5\u5C1A\u672A\u5EFA\u7ACB",dao_channel_playground_not_exist:"playground\u4E0D\u5B58\u5728",dao_channel_playground_unbound_container:"playground\u672A\u7ED1\u5B9A\u5BB9\u5668",dao_channel_container_startup_failed:"\u5BB9\u5668\u542F\u52A8\u5931\u8D25",dao_channel_insufficient_server_resources:"\u670D\u52A1\u5668\u8D44\u6E90\u4E0D\u8DB3",dao_channel_server_is_busy:"\u670D\u52A1\u5668\u7E41\u5FD9",dao_channel_activation_timeout:"docker\u6FC0\u6D3B\u8D85\u65F6",dao_channel_docker_failed_to_activate:"docker\u542F\u52A8\u5931\u8D25",dao_channel_socket_is_not_ready:"socket\u672A\u51C6\u5907\u597D",dao_channel_socket_is_not_ready_for_x:"socket \u8FD8\u6CA1\u6709\u4E3A{{x}}\u51C6\u5907\u597D",dao_channel_socket_connect_broken:"socket\u8FDE\u63A5\u4E2D\u65AD",debug_variables:"\u53D8\u91CF",debug_call_stack:"\u8C03\u7528\u5806\u6808",debug_staring:"\u542F\u52A8\u4E2D",debug_tooltip_run:"\u8FD0\u884C",debug_tooltip_stop:"\u505C\u6B62",debug_tooltip_continue:"\u7EE7\u7EED",debug_tooltip_step_over:"\u5355\u6B65\u8DF3\u8FC7",debug_tooltip_step_into:"\u5355\u6B65\u8C03\u8BD5",debug_tooltip_step_out:"\u5355\u6B65\u8DF3\u51FA",debug_call_stack_cannot_open_file:"\u65E0\u6CD5\u6253\u5F00\u975E\u5DE5\u4F5C\u533A\u6587\u4EF6",dao_paas_cannot_follow_each_other:"\u4E0D\u80FD\u4E92\u76F8\u8DDF\u968F",\u4E0D\u80FD\u76F4\u63A5\u590D\u5236\u7B54\u9898\u533A\u57DF\u5185\u5BB9:"\u4E0D\u80FD\u76F4\u63A5\u590D\u5236\u7B54\u9898\u533A\u57DF\u5185\u5BB9",\u8BE5\u533A\u57DF\u4E0D\u53EF\u7F16\u8F91:"\u8BE5\u533A\u57DF\u4E0D\u53EF\u7F16\u8F91",\u79FB\u9664\u4EE3\u7801\u5757\u6807\u8BC6:"\u53D6\u6D88\u6807\u8BC6",\u5220\u9664\u4EE3\u7801\u5757:"\u5220\u9664\u4EE3\u7801",\u590D\u5236\u4EE3\u7801:"\u590D\u5236",\u7C98\u8D34\u4EE3\u7801:"\u7C98\u8D34",\u786E\u8BA4:"\u786E\u8BA4",\u53D6\u6D88:"\u53D6\u6D88",\u67E5\u770BAI\u4EE3\u7801:"\u67E5\u770BAI\u4EE3\u7801",\u67E5\u770B\u65E7\u4EE3\u7801:"\u67E5\u770B\u65E7\u4EE3\u7801",dao_paas_not_find_mount_dom_object_for_x:"\u627E\u4E0D\u5230\u4E3A{{x}}\u7684\u6302\u8F7DDOM\u5BF9\u8C61",dao_paas_x_component_is_not_supported:"\u7EC4\u4EF6{{x}}\u4E0D\u652F\u6301",dao_paas_no_ready:"\u672A\u51C6\u5907",\u8BF7\u5728\u6587\u4EF6\u6811\u4E2D\u6253\u5F00\u6587\u4EF6\u8FDB\u884C\u7F16\u8F91:"\u8BF7\u5728\u6587\u4EF6\u6811\u4E2D\u6253\u5F00\u6587\u4EF6\u8FDB\u884C\u7F16\u8F91","\u8BE5\u6587\u4EF6\u5DF2\u88AB\u8BBE\u7F6E\u4E3A\u9690\u85CF\uFF0C\u65E0\u6CD5\u67E5\u770B":"\u8BE5\u6587\u4EF6\u5DF2\u88AB\u8BBE\u7F6E\u4E3A\u9690\u85CF\uFF0C\u65E0\u6CD5\u67E5\u770B",dao_paas_file_does_not_exist:"\u6587\u4EF6\u4E0D\u5B58\u5728",dao_pass_set_answer_wrong:"\u8BBE\u7F6E\u9898\u76EE\u7B54\u6848\u9519\u8BEF",dao_paas_docker_has_been_destoryed:"docker\u5DF2\u7ECF\u88AB\u9500\u6BC1","Unable to create file or directory with system reserved name":"\u65E0\u6CD5\u4F7F\u7528\u7CFB\u7EDF\u4FDD\u7559\u540D\u79F0\u521B\u5EFA\u6587\u4EF6\u6216\u76EE\u5F55","The file or folder {{path}} already exists in this location, please choose another name":"\u6B64\u4F4D\u7F6E\u5DF2\u5B58\u5728\u6587\u4EF6\u6216\u8005\u6587\u4EF6\u5939 {{path}}\uFF0C\u8BF7\u9009\u62E9\u5176\u5B83\u540D\u79F0","No results":"\u6CA1\u6709\u7ED3\u679C","Collapse the file tree":"\u6536\u8D77\u6587\u4EF6\u6811","Create or rename to hidden files, will not be visible":"\u521B\u5EFA\u6216\u8005\u91CD\u547D\u540D\u4E3A\u9690\u85CF\u6587\u4EF6\uFF0C\u5C06\u4E0D\u53EF\u89C1","Live refresh":"\u5B9E\u65F6\u5237\u65B0","Code diagnosis":"\u4EE3\u7801\u8BCA\u65AD",file_tree_title:"\u6587\u4EF6",keyword_search_toolbar_title:"\u641C\u7D22",keyword_search_btn_refresh:"\u5237 \u65B0",keyword_search_btn_clear:"\u6E05 \u9664",keyword_search_btn_collapse:"\u5C55\u5F00/\u6536\u8D77",keyword_search_btn_replace_all:"\u5168\u5C40\u66FF\u6362({{press}})",keyword_search_btn_preserve:"\u4FDD\u7559\u5927\u5C0F\u5199({{press}})",keyword_search_btn_case:"\u5339\u914D\u5927\u5C0F\u5199({{press}})",keyword_search_btn_whole:"\u5168\u8BCD\u5339\u914D({{press}})",keyword_search_btn_expression:"\u6B63\u5219\u8868\u8FBE\u5F0F({{press}})",keyword_search_modal_title:"\u6279\u91CF\u66FF\u6362",keyword_search_modal_okText:"\u786E\u8BA4\u66FF\u6362",keyword_search_modal_cancelText:"\u53D6\u6D88",keyword_search_modal_tips_has_value:"\u662F\u5426\u7528\u300C{{text}}\u300D\u66FF\u6362 {{file}} \u4E2A\u6587\u4EF6\u4E2D\u51FA\u73B0\u7684 {{words}} \u5904\u5173\u952E\u8BCD",keyword_search_modal_tips_empty_value:"\u662F\u5426\u66FF\u6362 {{file}} \u4E2A\u6587\u4EF6\u4E2D\u51FA\u73B0\u7684 {{words}} \u5904\u5173\u952E\u8BCD",keyword_search_input_enter_placeholder:"\u8BF7\u8F93\u5165",keyword_search_input_replace_placeholder:"\u66FF\u6362",keyword_search_doing:"\u641C\u7D22\u4E2D...",keyword_search_nothing:"\u672A\u627E\u5230\u7ED3\u679C\uFF0C\u5C1D\u8BD5\u5176\u4ED6\u5173\u952E\u8BCD\u8BD5\u8BD5",keyword_search_found:"{{file}} \u4E2A\u6587\u4EF6\u4E2D\u7684 {{words}} \u4E2A\u7ED3\u679C"},h_=(t=>(t.ZH="ZH",t.EN="EN",t))(h_||{});const r5e={EN:{translation:t5e},ZH:{translation:n5e}},i5e="ZH";Uo.use(j4e).init({resources:r5e,lng:i5e,keySeparator:!1,interpolation:{escapeValue:!1}});const Mn=Uo.t;class o5e{constructor(e,n,r,i,o,s,a,l,c){Je(this,"start");Je(this,"end");Je(this,"totalTime");Je(this,"rate");Je(this,"preFrameTime",0);Je(this,"resumeTime",0);Je(this,"dataBuffer",[]);Je(this,"customizeData",[]);Je(this,"playing",!1);Je(this,"isReplay",!1);Je(this,"index",0);Je(this,"firstFrameTime",0);Je(this,"isMovePosition",!1);Je(this,"preTerminalIndex",{});Je(this,"preDebugIndex",{});Je(this,"preFireTreeIndex",{});Je(this,"preTerminalDockerId","");Je(this,"preConsoleDockerId","");Je(this,"isStopMovePosition",!1);Je(this,"triggerEventForMaxTimespanRecord","");Je(this,"triggerEventForMaxTimespan",-1);Je(this,"eventCustomize");Je(this,"eventDispatcher");Je(this,"getPlaybackSnapshot");Je(this,"progressDispatcher");Je(this,"currentDockerId");this.start=e,this.end=n,this.rate=1,this.totalTime=n-e,this.customizeData=i,this.triggerEventForMaxTimespan=o,this.eventDispatcher=s,this.progressDispatcher=a,this.getPlaybackSnapshot=l,this.eventCustomize=c,this.step=this.step.bind(this),this.currentDockerId=""}logger(...e){}convertToAbsoluteTime(e){return this.start+e}getFileRootPathByDockerId(e,n){var i,o,s,a;const r=this.index>=this.dataBuffer.length?this.dataBuffer.length-1:this.index;for(let l=r;l>=0;l--){const c=this.dataBuffer[l];if(this.isFileTree(c.eventName)&&c.dockerId===e&&c.data.fileRootPath&&((o=(i=c.data.payload)==null?void 0:i.children)==null?void 0:o.find(d=>d.path===n)))return c.data.fileRootPath}for(let l=0;l<this.dataBuffer.length;l++){const c=this.dataBuffer[l];if(this.isFileTree(c.eventName)&&c.dockerId===e&&c.data.fileRootPath&&((a=(s=c.data.payload)==null?void 0:s.children)==null?void 0:a.find(d=>d.path===n)))return c.data.fileRootPath}}getCurrentDocByPathAndDocker(e,n){const r=this.index>=this.dataBuffer.length?this.dataBuffer.length-1:this.index,i=(o,s)=>{var l;if(this.isEditor(o.eventName)&&o.dockerId===e&&o.data.openedPath===n)return o.snapshot||(o=((l=this.getPlaybackSnapshot)==null?void 0:l.call(this,o.eventName,o,this.getPreFrameByFrame(o,s)))||o),o};for(let o=r;o>=0;o--){const s=this.dataBuffer[o],a=i(s,o);if(a)return a}for(let o=0;o<this.dataBuffer.length;o++){const s=this.dataBuffer[o],a=i(s,o);if(a)return a}}getCurrentFrame(){return this.index>=this.dataBuffer.length?this.dataBuffer[this.dataBuffer.length-1]:this.dataBuffer[this.index]}setRate(e){e&&Number.isNaN(Number(e))&&this.progressDispatcher&&this.progressDispatcher("error",`${Mn("helpers_invalid_parameter_rate_x",{x:e})}`),this.rate=e||this.rate,U.dao.channel().setPlaybackRateAfterHooks(this.rate)}buffer(e){this.dataBuffer=this.dataBuffer.concat(e),this.firstFrameTime=this.dataBuffer[0].timestamp}pause(){if(this.logger("Click Pause!"),!this.playing){at.warn("Do not pause more than one time");return}this.playing=!1}resume(){this.resumeTime=this.resumeTime||0,this.resumeTime>0?this.isReplay=!0:this.preFrameTime=Date.now(),this.playing=!0,this.isStopMovePosition=!1,window.requestAnimationFrame(this.step)}restart(){this.preFrameTime=Date.now(),this.playing=!0,this.preFireTreeIndex={},this.preTerminalIndex={},this.preDebugIndex={},this.preTerminalDockerId="",this.preConsoleDockerId="",me.file.reset(),this.index=0,window.requestAnimationFrame(this.step)}movePosition(e){var n;if(!((n=this.dataBuffer)!=null&&n.length)){this.resumeTime=e;return}this.isStopMovePosition=!this.playing,this.resumeTime=e,this.isReplay=!0,this.index=this.findFrameByTimeStamp(),this.isMovePosition=!0,this.preTerminalIndex={},this.preDebugIndex={},me.dao.resetTerminal(),me.dao.resetConsole(),U.dao.channel().xtermStatus({resetConsole:!0}),window.requestAnimationFrame(this.step)}findFrameByTimeStamp(){const e=this.resumeTime+this.firstFrameTime,n=this.dataBuffer,r=n.length,i=(a,l)=>{var c,u,d,f;if(a<=l){const h=Math.floor((l-a)/2+a),p=n[h].timestamp;return p===e?h:e===((c=n[h-1])==null?void 0:c.timestamp)?h-1:e===((u=n[h+1])==null?void 0:u.timestamp)?h+1:e>((d=n[h-1])==null?void 0:d.timestamp)&&e<((f=n[h+1])==null?void 0:f.timestamp)?h:(e<p?l=h-1:e>p&&(a=h+1),i(a,l))}else return at.warn("Do not find the next frame"),this.index=0,this.resumeTime=0,this.resume(),this.index},o=0,s=r-1;return i(o,s)}gotoNextFrame(){var e;!this.isStopMovePosition&&((e=this.progressDispatcher)==null||e.call(this,"progress",this.resumeTime)),this.isStopMovePosition?(this.playing=!1,this.isStopMovePosition=!1):(this.preFrameTime=Date.now(),window.requestAnimationFrame(this.step))}triggerCustomizeEvent(e){var n;(n=this.eventCustomize)==null||n.call(this,e)}step(){var n,r,i;if(!this.playing&&!this.isStopMovePosition)return;if(this.isReplay&&(this.isReplay=!1,this.preFrameTime=Date.now()),this.resumeTime=this.resumeTime+(Date.now()-this.preFrameTime)*this.rate,this.index>this.dataBuffer.length-1){this.playing=!1,this.resumeTime=0,!this.isStopMovePosition&&((n=this.progressDispatcher)==null||n.call(this,"progress",this.totalTime)),(r=this.progressDispatcher)==null||r.call(this,"complete",this.resumeTime);return}let e=this.dataBuffer[this.index];if(!e){this.gotoNextFrame();return}if(e.eventName==="customize"&&(this.firstFrameTime+this.resumeTime>(e==null?void 0:e.timestamp)&&(this.logger(this.index,e.index,e.eventName,e._id),this.index++,this.triggerCustomizeEvent(e)),!this.isStopMovePosition)){this.gotoNextFrame();return}if(this.isMovePosition){this.triggerPreFrames(),this.isMovePosition=!1;return}if(this.firstFrameTime+this.resumeTime>(e==null?void 0:e.timestamp)){let o=0;const s=this.firstFrameTime+this.resumeTime;for(let a=this.index+1;a<this.dataBuffer.length&&this.dataBuffer[a].timestamp<=s;a++)o++,this.index=a;o>0&&(e=this.dataBuffer[this.index],this.isMovePosition=!0),this.isMovePosition?(this.triggerPreFrames(),this.isMovePosition=!1):(e=((i=this.getPlaybackSnapshot)==null?void 0:i.call(this,e.eventName,e,this.getPreFrameByFrame(e,this.index)||e))||e,this.setPreFrameData(e,this.index)),this.trigger(e.eventName,e)}else this.isMovePosition&&(this.triggerPreFrames(),this.isMovePosition=!1);this.gotoNextFrame()}getPreFrameByFrame(e,n){const{eventName:r,dockerId:i}=e,o=this.isEditor(r),s=this.isFileTree(r);let a;if(o){const{data:{openedPath:l}}=e;for(let c=n-1;c>=0;c--){const u=this.dataBuffer[c];if(u.dockerId===i&&u.eventName===r&&u.data.openedPath===l){a=this.dataBuffer[c],!a.snapshot&&c>=0&&this.setSnapshotByIndex(c);break}}}return s&&(a=this.dataBuffer[this.preFireTreeIndex[i]]),a}setPreFrameData(e,n){const{eventName:r,dockerId:i}=e;this.isFileTree(r)&&(this.preFireTreeIndex[i]=n)}isEditor(e){return e===dt.Editor}isFileTree(e){return e===dt.FileTree}isTerminal(e){return e===dt.Terminal}isConsole(e){return e===dt.Console}isDebug(e){return e===dt.Debug}isTerminalOrConsole(e){return[dt.Terminal.toString(),dt.Console.toString()].includes(e)}setSnapshotByIndex(e){var o;const n=this.dataBuffer[e],{eventName:r}=n,i=this.isEditor(r);for(let s=0;s<=e;s++){let a=this.dataBuffer[s];if(a.eventName==="customize"&&this.triggerCustomizeEvent(a),a.eventName===n.eventName&&a.dockerId===n.dockerId&&(i?a.data.openedPath===n.data.openedPath:!0)){if(a.snapshot){this.setPreFrameData(a,s);continue}a=((o=this.getPlaybackSnapshot)==null?void 0:o.call(this,a.eventName,a,this.getPreFrameByFrame(a,s)))||a,this.setPreFrameData(a,s)}}}triggerPreFrames(){var s;const e=[dt.FileTree.toString(),dt.Editor.toString(),dt.Terminal.toString(),dt.Console.toString(),dt.Debug.toString()],n=U.file.doc().openedPath;let r=!1;const i=this.index,o=this.dataBuffer[i].dockerId;this.currentDockerId=o;for(let a=i;a>=0;a--){if(!e.length)return;if(e.includes(this.dataBuffer[a].eventName)&&this.dataBuffer[a].dockerId===this.currentDockerId){const l=this.dataBuffer[a],c=e.findIndex(u=>u===l.eventName);e.splice(c,1),l.eventName===dt.Editor.toString()&&!r&&n!==l.data.openedPath&&(U.file.editorView()&&((s=U.file.editorView())==null||s.destroy(),me.file.editorView(void 0)),me.file.resetFile(),r=!0),l.snapshot||this.setSnapshotByIndex(a),this.trigger(l.eventName,l,!1)}}for(let a=0;a<this.customizeData.length;a++)this.customizeData[a].timestamp<=this.dataBuffer[this.index].timestamp&&this.triggerCustomizeEvent(this.customizeData[a]);e.forEach(a=>{this.logger("trigger reset eventName:",a),this.trigger(a,null,!1)})}trigger(e,n,r=!0){if(e==="customize"){this.logger(this.index,e,n==null?void 0:n._id),this.triggerCustomizeEvent(n),r&&this.index++;return}const i=this.isTerminalOrConsole(e),o=this.isDebug(e);if(!i&&!o){this.logger(this.index,e,n==null?void 0:n._id),this.eventDispatcher(e,n),r&&this.index++;return}const s=n==null?void 0:n.dockerId;this.logger("[TR]",s);const a=this.preTerminalIndex[s]||0,l=this.preDebugIndex[s]||0,c=o?l:a;for(let u=c+1;u<=this.index;u++){const d=this.dataBuffer[u];d&&(this.isTerminalOrConsole(d.eventName)||o)&&d.dockerId===s&&(this.logger("[TR]",u,this.index,d.eventName,this.dataBuffer[u].dockerId,this.dataBuffer[u]._id),this.isTerminal(e)&&(this.preTerminalDockerId&&this.preTerminalDockerId!==s&&me.dao.resetTerminal(),this.preTerminalDockerId=s),this.isConsole(e)&&(this.preConsoleDockerId&&this.preConsoleDockerId!==s&&(me.dao.resetConsole(),U.dao.channel().xtermStatus({resetConsole:!0})),this.preConsoleDockerId=s),this.eventDispatcher(d.eventName,d))}o?this.preDebugIndex[s]=this.index:this.preTerminalIndex[s]=this.index,r&&this.index++}}const s5e="@dao42/d42paas-front",a5e="0.9.211",l5e="d42paas front",c5e="dao42 paas team",u5e="https://github.com/dao42/d42paas_frontend#readme",d5e="UNLICENSED",f5e="./dist/DaoPaaS.cjs",h5e="./dist/DaoPaaS.cjs",O5e="./dist/DaoPaaS.d.ts",p5e={prebuild:"rimraf dist",build:"cross-env VITE_BUILD_EVENT=true pnpm tsc && pnpm vite && pnpm typedoc",copydist:"cp -r dist/sdk ../demo/public/",vite:"vite build --config ./config/vite.config.ts && shx cp ./src/types/DaoPaaS.d.ts ./dist",typedoc:"npx typedoc --tsconfig ./doc.tsconfig.json",workNameSpaceToFix:"node ./config/workNameSpaceToFix.js",tsc:"tsc -p ./tsconfig.json --isolatedModules false",test1:"jest --coverage",test:"jest",prepublish:"pnpm build",publish:"npm publish --access public"},m5e={"@babel/core":"^7.15.0","@babel/preset-env":"^7.15.0","@codemirror/autocomplete":"^6.6.1","@codemirror/collab":"^6.0.0","@codemirror/commands":"^6.2.3","@codemirror/lang-cpp":"^6.0.2","@codemirror/lang-css":"^6.1.1","@codemirror/lang-html":"^6.0.0","@codemirror/lang-java":"^6.0.1","@codemirror/lang-javascript":"6.0.0","@codemirror/lang-json":"^6.0.0","@codemirror/lang-lezer":"^6.0.0","@codemirror/lang-markdown":"^6.1.1","@codemirror/lang-php":"^6.0.0","@codemirror/lang-python":"6.1.2","@codemirror/lang-rust":"^6.0.0","@codemirror/lang-sql":"^6.4.1","@codemirror/lang-xml":"^6.0.0","@codemirror/language":"6.5.0","@codemirror/legacy-modes":"^6.3.2","@codemirror/lint":"^6.0.0","@codemirror/search":"^6.0.0","@codemirror/state":"^6.2.0","@codemirror/theme-one-dark":"^6.0.0","@codemirror/view":"^6.12.0","@emotion/babel-plugin":"^11.3.0","@emotion/babel-preset-css-prop":"^11.2.0","@emotion/core":"^11.0.0","@emotion/css":"^11.1.3","@emotion/eslint-plugin":"^11.2.0","@emotion/react":"^11.9.3","@emotion/styled":"^11.3.0","@headlessui/react":"^1.4.3","@loadable/component":"^5.15.2","@open-rpc/client-js":"^1.7.1","@testing-library/jest-dom":"^5.16.4","@testing-library/react":"^13.3.0","@testing-library/user-event":"^14.4.3","@types/fs-extra":"^9.0.13","@types/jest":"^27.0.2","@types/loadable__component":"^5.13.4","@types/lodash":"^4.14.175","@types/lodash.clonedeep":"^4.5.7","@types/lodash.debounce":"^4.0.7","@types/lodash.isequal":"^4.5.6","@types/lodash.throttle":"^4.1.7","@types/node":"^16.11.1","@types/ot":"^0.0.5","@types/prop-types":"^15.7.5","@types/react":"^18.0.14","@types/react-dom":"^18.0.5","@types/react-transition-group":"^4.4.5","@types/testing-library__jest-dom":"^5.14.5","@types/uuid":"^8.3.1","@typescript-eslint/eslint-plugin":"^4.28.2","@typescript-eslint/parser":"^4.28.2","@udecode/zustood":"^1.1.1","@vitejs/plugin-react":"^1.0.7",ahooks:"^3.3.10","babel-loader":"^8.2.2",bufferutil:"^4.0.6",classnames:"^2.3.1",codemirror:"^6.0.0",concurrently:"^6.3.0","cross-env":"^7.0.3",devicon:"^2.14.0",dexie:"^3.2.0","file-icons-js":"^1.1.0","file-loader":"^6.2.0","fs-extra":"^10.0.0","glob-all":"^3.2.1","highlight.js":"^11.6.0","hotkeys-js":"^3.9.4",immer:"^9.0.14",jest:"27.0.6",lodash:"^4.17.21",msw:"^0.39.2","ninja-keys":"^1.1.12",ot:"^0.0.15","prop-types":"^15.8.1",react:"^18.2.0","react-complex-tree":"^1.1.6","react-content-loader":"^6.2.0","react-dom":"18.2.0","react-icons":"^4.3.1","react-transition-group":"^4.4.2","rehype-document":"^6.1.0","rehype-highlight":"^5.0.2","rehype-katex":"^6.0.2","rehype-stringify":"^9.0.3","remark-gfm":"^3.0.1","remark-math":"^5.1.1","remark-parse":"^10.0.1","remark-rehype":"^10.1.0",rimraf:"^3.0.2","rollup-plugin-visualizer":"^5.9.0",sass:"^1.43.2","sass-loader":"^12.2.0",shx:"^0.3.3","socket.io-client":"^4.5.1","source-map-loader":"^3.0.0","style-loader":"^3.3.1",stylis:"^4.0.10","ts-jest":"^27.1.3","ts-loader":"^9.2.5","ts-node":"^10.0.0",typedoc:"^0.22.12",unified:"^10.1.2","use-immer":"^0.7.0","utf-8-validate":"^5.0.9",uuid:"^8.3.2",vite:"^2.9.15","vite-plugin-html":"^3.0.6","whatwg-fetch":"^3.6.2",xterm:"^5.1.0","xterm-addon-attach":"^0.8.0","xterm-addon-fit":"^0.7.0",zustand:"4.0.0"},g5e=["dist"],v5e={type:"git",url:"git+https://github.com/dao42/d42paas_frontend.git"},y5e={url:"https://github.com/dao42/d42paas_frontend/issues"},b5e={workerDirectory:"src"},S5e={"@babel/plugin-transform-modules-commonjs":"^7.18.2",anymatch:"^3.1.3","babel-jest":"^29.3.1","babel-preset-react-app":"^10.0.1","codemirror-lang-elixir":"^3.0.0","detect-indent":"^7.0.1",i18next:"^21.8.16","jest-websocket-mock":"^2.4.0",lib0:"^0.2.58","lodash.clonedeep":"^4.5.0","lodash.debounce":"^4.0.8","lodash.isequal":"^4.5.0","lodash.throttle":"^4.1.1","range-analyzer":"0.1.1-alpha.2","rc-dropdown":"^4.0.1","rc-image":"^7.2.0","rc-menu":"^9.6.3","react-app-polyfill":"^3.0.0","react-i18next":"11.18.3",rrweb:"2.0.0-alpha.8","rrweb-player":"1.0.0-alpha.4","socket.io":"^4.5.1","socket.io-mock":"^1.3.2","socket.io-msgpack-parser":"^3.0.1","xterm-addon-web-links":"^0.8.0"},w5e={worker_threads:!1};var $5e={name:s5e,version:a5e,description:l5e,author:c5e,homepage:u5e,license:d5e,main:f5e,module:h5e,types:O5e,scripts:p5e,devDependencies:m5e,files:g5e,repository:v5e,bugs:y5e,msw:b5e,dependencies:S5e,browser:w5e};const x5e=()=>$5e.version,_5e=async(t,e,n)=>{const r=window.navigator.cookieEnabled?window.localStorage.getItem("__paas__testServerCode__"):null,i=r?{serverCode:r}:{};return new Promise((o,s)=>{fetch(t+"/api/v1/jssdk/ticket",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ticket:e,packageVersion:n,...i})}).then(a=>a.json()).then(a=>{o(a)}).catch(a=>{s(a)})})},iee=(t,e=1)=>{t=t||"#ffffff";let n=t.replace("#","");n.length===3&&(n=`${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`);const r=parseInt(n.substring(0,2),16),i=parseInt(n.substring(2,4),16),o=parseInt(n.substring(4,6),16);return e>1&&e<=100&&(e=e/100),`rgba(${r},${i},${o},${e})`},k5e=()=>{const t=`
|
|
50
50
|
@keyframes fadeOut {
|
|
51
51
|
0% {opacity: 1;}
|
|
52
52
|
100% {opacity: 0;}
|
|
@@ -1803,7 +1803,7 @@ and limitations under the License.
|
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
|
-
`,Mat=()=>{const t=Ke().file.fileHeader(),e=Ke().i18n.getLanguage();return K(zat,{className:"d42-editor-header__action",children:t.map((n,r)=>ht("div",{className:`d42-editor-header__action--item ${n.className||""}`,children:[n.icon.tips&&K(oo,{visibility:n.showTips,mouseLeaveDelay:n.tipsDuration,popup:()=>n.icon.tips?K("span",{children:n.icon.tips[e]}):null,children:ht(ko,{children:[K("i",{className:`d42 ${n.icon.className} d42-editor-header__action--item-icon d42-cursor-pointer`,onClick:()=>{var
|
|
1806
|
+
`,Mat=()=>{const t=Ke().file.fileHeader(),e=Ke().i18n.getLanguage();return K(zat,{className:"d42-editor-header__action",children:t.map((n,r)=>{var i,o,s;return ht("div",{className:`d42-editor-header__action--item ${n.className||""}`,children:[((i=n==null?void 0:n.icon)==null?void 0:i.tips)&&K(oo,{visibility:n.showTips,mouseLeaveDelay:n.tipsDuration,popup:()=>{var a;return(a=n==null?void 0:n.icon)!=null&&a.tips?K("span",{children:n.icon.tips[e]}):null},children:ht(ko,{children:[K("i",{className:`d42 ${n.icon.className} d42-editor-header__action--item-icon d42-cursor-pointer`,onClick:()=>{var a,l;(l=(a=n.icon).action)==null||l.call(a)}}),n.label&&K("span",{className:"d42-editor-header__action--item-label",onClick:()=>{var a,l;(l=(a=n.icon).action)==null||l.call(a)},children:n.label[e]})]})}),!((o=n==null?void 0:n.icon)!=null&&o.tips)&&ht(ko,{children:[K("i",{className:`d42 ${((s=n==null?void 0:n.icon)==null?void 0:s.className)||""} d42-editor-header__action--item-icon d42-cursor-pointer`,onClick:()=>{var a,l;(l=(a=n.icon).action)==null||l.call(a)}}),n.label&&K("span",{className:"d42-editor-header__action--item-label",onClick:()=>{var a,l;(l=(a=n.icon).action)==null||l.call(a)},children:n.label[e]})]}),n.labelAction&&n.labelAction.tips&&K(oo,{popup:()=>{var a;return(a=n.labelAction)!=null&&a.tips?K("span",{children:n.labelAction.tips[e]}):null},children:K("span",{className:"d42-editor-header__action--item-actionLabel d42-cursor-pointer",onClick:()=>{var a,l;(l=(a=n.labelAction)==null?void 0:a.action)==null||l.call(a)},children:n.labelAction.label[e]})}),n.labelAction&&!n.labelAction.tips&&K("span",{className:"d42-editor-header__action--item-actionLabel d42-cursor-pointer",onClick:()=>{var a,l;(l=(a=n.labelAction)==null?void 0:a.action)==null||l.call(a)},children:n.labelAction.label[e]})]},r)})})},Lat={changesList:"cm-changes-highlight",cheatList:"cm-cheat-highlight"};class Nat{constructor(e,n,r){Je(this,"decorations",Pt.none);Je(this,"lineClassDep");Je(this,"timestamp");this.lineClassDep=n,this.timestamp=r,this.buildDeco(e)}update(e){this.buildDeco(e.view)}highlightLine(e){const n=[],r=Object.keys(this.lineClassDep),i=e.state.doc;if(r.length)for(const o in this.lineClassDep){const s=this.lineClassDep[o];if(!!s.length)for(const a of s){const{timestamp:l,line:c}=a,u=Lat[o]||"";if(c>i.lines||o==="cheatList"&&l&&l>this.timestamp)continue;const d=i.line(c);n.push([d.from,d.from,Pt.line({class:u||""})])}}return n}buildDeco(e){const n=new yc,r=this.highlightLine(e);r.sort((i,o)=>i[0]-o[0]),r.forEach(i=>n.add(i[0],i[1],i[2])),this.decorations=n.finish()}}const Uat=(t,e)=>_r.define(n=>new Nat(n,t,e),{decorations:n=>n.decorations});k5e();const Wat=()=>ht("div",{style:{margin:10},children:[K("div",{children:K($Z,{height:100,speed:1,backgroundColor:"var(--d42-editor__skeleton--bg)",foregroundColor:"var(--d42-editor__skeleton--foregroundColor)"})}),K("div",{children:K($Z,{style:{marginTop:10},height:100,speed:1,backgroundColor:"var(--d42-editor__skeleton--bg)",foregroundColor:"var(--d42-editor__skeleton--foregroundColor)"})})]}),qat=Xr.div`
|
|
1807
1807
|
&.d42-editor-layout {
|
|
1808
1808
|
height: 100%;
|
|
1809
1809
|
}
|