@wix/cli 1.1.51 → 1.1.52
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/build/DevCommand-74RYZYIJ.js +4 -0
- package/build/DevCommand-74RYZYIJ.js.map +1 -0
- package/build/DevCommand-LKSQSU4D.js +4 -0
- package/build/DevCommand-LKSQSU4D.js.map +1 -0
- package/build/LoginCommand-NYVD43UK.js +4 -0
- package/build/LoginCommand-NYVD43UK.js.map +1 -0
- package/build/{LogoutCommand-BDH3FYZO.js → LogoutCommand-S6XVACQ6.js} +2 -2
- package/build/{WhoamiCommand-5DMVQUBJ.js → WhoamiCommand-HOEXUJGJ.js} +2 -2
- package/build/{chunk-SEHFPYSE.js → chunk-4BTCJXQC.js} +3 -3
- package/build/chunk-4BTCJXQC.js.map +1 -0
- package/build/{chunk-TAWNBTSO.js → chunk-4NRHFR7Y.js} +2 -2
- package/build/chunk-6MEM22XR.js +15 -0
- package/build/chunk-6MEM22XR.js.map +1 -0
- package/build/chunk-7WD47GXQ.js +14 -0
- package/build/chunk-7WD47GXQ.js.map +1 -0
- package/build/chunk-A47ABA7B.js +4 -0
- package/build/chunk-A47ABA7B.js.map +1 -0
- package/build/chunk-B7EXWRCM.js +4 -0
- package/build/chunk-B7EXWRCM.js.map +1 -0
- package/build/{chunk-65R7SBZ5.js → chunk-E7Z3EVGI.js} +2 -2
- package/build/{chunk-62WSEYFO.js → chunk-EE5EBGQ7.js} +2 -2
- package/build/{chunk-5LAMPYWD.js → chunk-EFB2I2BN.js} +2 -2
- package/build/{chunk-67FBXKWP.js → chunk-FPM2JVPR.js} +2 -2
- package/build/{chunk-CLX2F62J.js → chunk-J4J4RXMY.js} +2 -2
- package/build/{chunk-KPKBCH3A.js → chunk-JGPN7XZF.js} +2 -2
- package/build/chunk-JYYNYTCQ.js +6 -0
- package/build/chunk-JYYNYTCQ.js.map +1 -0
- package/build/chunk-K3QK4XYS.js +4 -0
- package/build/chunk-K3QK4XYS.js.map +1 -0
- package/build/chunk-KOIVBNZR.js +4 -0
- package/build/chunk-KOIVBNZR.js.map +1 -0
- package/build/{chunk-ZUYRVEIZ.js → chunk-L2PG7C3H.js} +3 -3
- package/build/{chunk-ZUYRVEIZ.js.map → chunk-L2PG7C3H.js.map} +1 -1
- package/build/chunk-L434E44T.js +138 -0
- package/build/chunk-L434E44T.js.map +1 -0
- package/build/chunk-R5TGEMJ4.js +4 -0
- package/build/chunk-R5TGEMJ4.js.map +1 -0
- package/build/{chunk-SSWCDL27.js → chunk-SZ35DFLD.js} +2 -2
- package/build/{chunk-XALHWW5N.js → chunk-TCTTRAWM.js} +4 -4
- package/build/{chunk-XALHWW5N.js.map → chunk-TCTTRAWM.js.map} +1 -1
- package/build/chunk-TLPEI3DE.js +14 -0
- package/build/chunk-TLPEI3DE.js.map +1 -0
- package/build/chunk-WICGWF4N.js +4 -0
- package/build/chunk-WICGWF4N.js.map +1 -0
- package/build/{chunk-QF6TSJYM.js → chunk-X3AOPEF4.js} +10 -10
- package/build/{chunk-QF6TSJYM.js.map → chunk-X3AOPEF4.js.map} +1 -1
- package/build/{chunk-HUW5AFF4.js → chunk-ZNF7GN55.js} +55 -64
- package/build/chunk-ZNF7GN55.js.map +1 -0
- package/build/chunk-ZQFCZASC.js +4 -0
- package/build/chunk-ZQFCZASC.js.map +1 -0
- package/build/dev-D6J7EO7H.js +47 -0
- package/build/dev-D6J7EO7H.js.map +1 -0
- package/build/index.js +4 -4
- package/build/index.js.map +1 -1
- package/build/install-WHE5Y4BG.js +4 -0
- package/build/{install-NJBNFBOD.js.map → install-WHE5Y4BG.js.map} +1 -1
- package/build/preview-ODRKZ7BQ.js +4 -0
- package/build/{preview-VSGRFUDT.js.map → preview-ODRKZ7BQ.js.map} +1 -1
- package/build/publish-C25WIDKP.js +4 -0
- package/build/{publish-EFDBBZIG.js.map → publish-C25WIDKP.js.map} +1 -1
- package/build/render-command-7OROM33D.js +4 -0
- package/build/render-command-7OROM33D.js.map +1 -0
- package/build/render-command-UM6STUPA.js +4 -0
- package/build/render-command-UM6STUPA.js.map +1 -0
- package/build/render-command-YKD46BVP.js +4 -0
- package/build/{render-command-QET4UNDW.js.map → render-command-YKD46BVP.js.map} +1 -1
- package/build/run-command-YXYU45I7.js +4 -0
- package/build/{run-command-MUXW6NCE.js.map → run-command-YXYU45I7.js.map} +1 -1
- package/build/{src-CIS5W66F.js → src-7KKODZIY.js} +2 -2
- package/build/src-7O5FMLWB.js +4 -0
- package/build/{src-BDIASQJX.js → src-CJFU3UWU.js} +2 -2
- package/build/{src-XHN4LXC2.js → src-IFWA4LD7.js} +2 -2
- package/build/src-IFWA4LD7.js.map +1 -0
- package/build/{src-7P3E3KRD.js → src-QPWACH3J.js} +2 -2
- package/build/src-TBIN5XRV.js +4 -0
- package/build/sync-types-2XUVNMLY.js +4 -0
- package/build/uninstall-ZHKKF5EM.js +4 -0
- package/build/{uninstall-J6U52MG2.js.map → uninstall-ZHKKF5EM.js.map} +1 -1
- package/package.json +3 -2
- package/build/DevCommand-KZX52XHC.js +0 -4
- package/build/DevCommand-KZX52XHC.js.map +0 -1
- package/build/LoginCommand-3HPXSPXY.js +0 -4
- package/build/LoginCommand-3HPXSPXY.js.map +0 -1
- package/build/chunk-7INB74CI.js +0 -4
- package/build/chunk-7INB74CI.js.map +0 -1
- package/build/chunk-BQHRJORL.js +0 -14
- package/build/chunk-BQHRJORL.js.map +0 -1
- package/build/chunk-DGA2THYK.js +0 -4
- package/build/chunk-DGA2THYK.js.map +0 -1
- package/build/chunk-GP3K4JBG.js +0 -4
- package/build/chunk-GP3K4JBG.js.map +0 -1
- package/build/chunk-HUW5AFF4.js.map +0 -1
- package/build/chunk-JQMLRPCS.js +0 -6
- package/build/chunk-JQMLRPCS.js.map +0 -1
- package/build/chunk-JTNRSVEB.js +0 -14
- package/build/chunk-JTNRSVEB.js.map +0 -1
- package/build/chunk-SEHFPYSE.js.map +0 -1
- package/build/dev-WESRS2HF.js +0 -179
- package/build/dev-WESRS2HF.js.map +0 -1
- package/build/install-NJBNFBOD.js +0 -4
- package/build/preview-VSGRFUDT.js +0 -4
- package/build/publish-EFDBBZIG.js +0 -4
- package/build/render-command-QET4UNDW.js +0 -4
- package/build/render-command-RSY3LUDV.js +0 -4
- package/build/render-command-RSY3LUDV.js.map +0 -1
- package/build/run-command-MUXW6NCE.js +0 -4
- package/build/src-AFQDLVDX.js +0 -4
- package/build/sync-types-EKGKI3NN.js +0 -4
- package/build/uninstall-J6U52MG2.js +0 -4
- /package/build/{LogoutCommand-BDH3FYZO.js.map → LogoutCommand-S6XVACQ6.js.map} +0 -0
- /package/build/{WhoamiCommand-5DMVQUBJ.js.map → WhoamiCommand-HOEXUJGJ.js.map} +0 -0
- /package/build/{chunk-TAWNBTSO.js.map → chunk-4NRHFR7Y.js.map} +0 -0
- /package/build/{chunk-65R7SBZ5.js.map → chunk-E7Z3EVGI.js.map} +0 -0
- /package/build/{chunk-62WSEYFO.js.map → chunk-EE5EBGQ7.js.map} +0 -0
- /package/build/{chunk-5LAMPYWD.js.map → chunk-EFB2I2BN.js.map} +0 -0
- /package/build/{chunk-67FBXKWP.js.map → chunk-FPM2JVPR.js.map} +0 -0
- /package/build/{chunk-CLX2F62J.js.map → chunk-J4J4RXMY.js.map} +0 -0
- /package/build/{chunk-KPKBCH3A.js.map → chunk-JGPN7XZF.js.map} +0 -0
- /package/build/{chunk-SSWCDL27.js.map → chunk-SZ35DFLD.js.map} +0 -0
- /package/build/{src-7P3E3KRD.js.map → src-7KKODZIY.js.map} +0 -0
- /package/build/{src-AFQDLVDX.js.map → src-7O5FMLWB.js.map} +0 -0
- /package/build/{src-BDIASQJX.js.map → src-CJFU3UWU.js.map} +0 -0
- /package/build/{src-CIS5W66F.js.map → src-QPWACH3J.js.map} +0 -0
- /package/build/{src-XHN4LXC2.js.map → src-TBIN5XRV.js.map} +0 -0
- /package/build/{sync-types-EKGKI3NN.js.map → sync-types-2XUVNMLY.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as D0,b as v0,c as x0,d as Wi,e as ye,f as sp,i as yo,k as zi}from"./chunk-GZENQUN7.js";import{a as Vn,b as tr,c as C0}from"./chunk-K656WQZA.js";import{a as E0,b as zn,c as Lt,d as y0}from"./chunk-F67LDVCV.js";import{a as g0,b as ji,c as Re}from"./chunk-ZBJRW65P.js";import{b as za}from"./chunk-CUZEHDNU.js";import{a as Xn,c as up,e as op}from"./chunk-XALHWW5N.js";import{a as m0,c as Ie,e as Q,i as g}from"./chunk-UO4ZAUJK.js";var yp=Ie(he=>{"use strict";g();var Vi=Symbol.for("react.element"),F0=Symbol.for("react.portal"),S0=Symbol.for("react.fragment"),T0=Symbol.for("react.strict_mode"),N0=Symbol.for("react.profiler"),A0=Symbol.for("react.provider"),I0=Symbol.for("react.context"),_0=Symbol.for("react.forward_ref"),L0=Symbol.for("react.suspense"),w0=Symbol.for("react.memo"),O0=Symbol.for("react.lazy"),ap=Symbol.iterator;function P0(e){return e===null||typeof e!="object"?null:(e=ap&&e[ap]||e["@@iterator"],typeof e=="function"?e:null)}var cp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pp=Object.assign,dp={};function Yn(e,r,i){this.props=e,this.context=r,this.refs=dp,this.updater=i||cp}Yn.prototype.isReactComponent={};Yn.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")};Yn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hp(){}hp.prototype=Yn.prototype;function Xa(e,r,i){this.props=e,this.context=r,this.refs=dp,this.updater=i||cp}var Ya=Xa.prototype=new hp;Ya.constructor=Xa;pp(Ya,Yn.prototype);Ya.isPureReactComponent=!0;var lp=Array.isArray,mp=Object.prototype.hasOwnProperty,$a={current:null},Dp={key:!0,ref:!0,__self:!0,__source:!0};function gp(e,r,i){var o,a={},f=null,c=null;if(r!=null)for(o in r.ref!==void 0&&(c=r.ref),r.key!==void 0&&(f=""+r.key),r)mp.call(r,o)&&!Dp.hasOwnProperty(o)&&(a[o]=r[o]);var d=arguments.length-2;if(d===1)a.children=i;else if(1<d){for(var h=Array(d),m=0;m<d;m++)h[m]=arguments[m+2];a.children=h}if(e&&e.defaultProps)for(o in d=e.defaultProps,d)a[o]===void 0&&(a[o]=d[o]);return{$$typeof:Vi,type:e,key:f,ref:c,props:a,_owner:$a.current}}function R0(e,r){return{$$typeof:Vi,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}function Qa(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vi}function B0(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(i){return r[i]})}var fp=/\/+/g;function Va(e,r){return typeof e=="object"&&e!==null&&e.key!=null?B0(""+e.key):r.toString(36)}function xo(e,r,i,o,a){var f=typeof e;(f==="undefined"||f==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(f){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case Vi:case F0:c=!0}}if(c)return c=e,a=a(c),e=o===""?"."+Va(c,0):o,lp(a)?(i="",e!=null&&(i=e.replace(fp,"$&/")+"/"),xo(a,r,i,"",function(m){return m})):a!=null&&(Qa(a)&&(a=R0(a,i+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(fp,"$&/")+"/")+e)),r.push(a)),1;if(c=0,o=o===""?".":o+":",lp(e))for(var d=0;d<e.length;d++){f=e[d];var h=o+Va(f,d);c+=xo(f,r,i,h,a)}else if(h=P0(e),typeof h=="function")for(e=h.call(e),d=0;!(f=e.next()).done;)f=f.value,h=o+Va(f,d++),c+=xo(f,r,i,h,a);else if(f==="object")throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function vo(e,r,i){if(e==null)return e;var o=[],a=0;return xo(e,o,"","",function(f){return r.call(i,f,a++)}),o}function b0(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i)},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var vt={current:null},Co={transition:null},k0={ReactCurrentDispatcher:vt,ReactCurrentBatchConfig:Co,ReactCurrentOwner:$a};function Ep(){throw Error("act(...) is not supported in production builds of React.")}he.Children={map:vo,forEach:function(e,r,i){vo(e,function(){r.apply(this,arguments)},i)},count:function(e){var r=0;return vo(e,function(){r++}),r},toArray:function(e){return vo(e,function(r){return r})||[]},only:function(e){if(!Qa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};he.Component=Yn;he.Fragment=S0;he.Profiler=N0;he.PureComponent=Xa;he.StrictMode=T0;he.Suspense=L0;he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k0;he.act=Ep;he.cloneElement=function(e,r,i){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=pp({},e.props),a=e.key,f=e.ref,c=e._owner;if(r!=null){if(r.ref!==void 0&&(f=r.ref,c=$a.current),r.key!==void 0&&(a=""+r.key),e.type&&e.type.defaultProps)var d=e.type.defaultProps;for(h in r)mp.call(r,h)&&!Dp.hasOwnProperty(h)&&(o[h]=r[h]===void 0&&d!==void 0?d[h]:r[h])}var h=arguments.length-2;if(h===1)o.children=i;else if(1<h){d=Array(h);for(var m=0;m<h;m++)d[m]=arguments[m+2];o.children=d}return{$$typeof:Vi,type:e.type,key:a,ref:f,props:o,_owner:c}};he.createContext=function(e){return e={$$typeof:I0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:A0,_context:e},e.Consumer=e};he.createElement=gp;he.createFactory=function(e){var r=gp.bind(null,e);return r.type=e,r};he.createRef=function(){return{current:null}};he.forwardRef=function(e){return{$$typeof:_0,render:e}};he.isValidElement=Qa;he.lazy=function(e){return{$$typeof:O0,_payload:{_status:-1,_result:e},_init:b0}};he.memo=function(e,r){return{$$typeof:w0,type:e,compare:r===void 0?null:r}};he.startTransition=function(e){var r=Co.transition;Co.transition={};try{e()}finally{Co.transition=r}};he.unstable_act=Ep;he.useCallback=function(e,r){return vt.current.useCallback(e,r)};he.useContext=function(e){return vt.current.useContext(e)};he.useDebugValue=function(){};he.useDeferredValue=function(e){return vt.current.useDeferredValue(e)};he.useEffect=function(e,r){return vt.current.useEffect(e,r)};he.useId=function(){return vt.current.useId()};he.useImperativeHandle=function(e,r,i){return vt.current.useImperativeHandle(e,r,i)};he.useInsertionEffect=function(e,r){return vt.current.useInsertionEffect(e,r)};he.useLayoutEffect=function(e,r){return vt.current.useLayoutEffect(e,r)};he.useMemo=function(e,r){return vt.current.useMemo(e,r)};he.useReducer=function(e,r,i){return vt.current.useReducer(e,r,i)};he.useRef=function(e){return vt.current.useRef(e)};he.useState=function(e){return vt.current.useState(e)};he.useSyncExternalStore=function(e,r,i){return vt.current.useSyncExternalStore(e,r,i)};he.useTransition=function(){return vt.current.useTransition()};he.version="18.3.1"});var ie=Ie((Qv,vp)=>{"use strict";g();vp.exports=yp()});var Fo=Ie((Jv,xp)=>{"use strict";g();function U0(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}xp.exports=U0});var Fp=Ie((Zv,Cp)=>{"use strict";g();var H0=typeof global=="object"&&global&&global.Object===Object&&global;Cp.exports=H0});var qa=Ie((t2,Sp)=>{"use strict";g();var M0=Fp(),G0=typeof self=="object"&&self&&self.Object===Object&&self,j0=M0||G0||Function("return this")();Sp.exports=j0});var Np=Ie((n2,Tp)=>{"use strict";g();var W0=qa(),z0=function(){return W0.Date.now()};Tp.exports=z0});var Ip=Ie((u2,Ap)=>{"use strict";g();var V0=/\s/;function X0(e){for(var r=e.length;r--&&V0.test(e.charAt(r)););return r}Ap.exports=X0});var Lp=Ie((s2,_p)=>{"use strict";g();var Y0=Ip(),$0=/^\s+/;function Q0(e){return e&&e.slice(0,Y0(e)+1).replace($0,"")}_p.exports=Q0});var Ja=Ie((l2,wp)=>{"use strict";g();var q0=qa(),J0=q0.Symbol;wp.exports=J0});var Bp=Ie((c2,Rp)=>{"use strict";g();var Op=Ja(),Pp=Object.prototype,K0=Pp.hasOwnProperty,Z0=Pp.toString,Xi=Op?Op.toStringTag:void 0;function eE(e){var r=K0.call(e,Xi),i=e[Xi];try{e[Xi]=void 0;var o=!0}catch{}var a=Z0.call(e);return o&&(r?e[Xi]=i:delete e[Xi]),a}Rp.exports=eE});var kp=Ie((d2,bp)=>{"use strict";g();var tE=Object.prototype,rE=tE.toString;function nE(e){return rE.call(e)}bp.exports=nE});var Gp=Ie((m2,Mp)=>{"use strict";g();var Up=Ja(),iE=Bp(),uE=kp(),oE="[object Null]",sE="[object Undefined]",Hp=Up?Up.toStringTag:void 0;function aE(e){return e==null?e===void 0?sE:oE:Hp&&Hp in Object(e)?iE(e):uE(e)}Mp.exports=aE});var Wp=Ie((g2,jp)=>{"use strict";g();function lE(e){return e!=null&&typeof e=="object"}jp.exports=lE});var Vp=Ie((y2,zp)=>{"use strict";g();var fE=Gp(),cE=Wp(),pE="[object Symbol]";function dE(e){return typeof e=="symbol"||cE(e)&&fE(e)==pE}zp.exports=dE});var Qp=Ie((x2,$p)=>{"use strict";g();var hE=Lp(),Xp=Fo(),mE=Vp(),Yp=NaN,DE=/^[-+]0x[0-9a-f]+$/i,gE=/^0b[01]+$/i,EE=/^0o[0-7]+$/i,yE=parseInt;function vE(e){if(typeof e=="number")return e;if(mE(e))return Yp;if(Xp(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Xp(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=hE(e);var i=gE.test(e);return i||EE.test(e)?yE(e.slice(2),i?2:8):DE.test(e)?Yp:+e}$p.exports=vE});var Kp=Ie((F2,Jp)=>{"use strict";g();var xE=Fo(),Ka=Np(),qp=Qp(),CE="Expected a function",FE=Math.max,SE=Math.min;function TE(e,r,i){var o,a,f,c,d,h,m=0,v=!1,C=!1,x=!0;if(typeof e!="function")throw new TypeError(CE);r=qp(r)||0,xE(i)&&(v=!!i.leading,C="maxWait"in i,f=C?FE(qp(i.maxWait)||0,r):f,x="trailing"in i?!!i.trailing:x);function O(H){var ne=o,Ge=a;return o=a=void 0,m=H,c=e.apply(Ge,ne),c}function R(H){return m=H,d=setTimeout(B,r),v?O(H):c}function k(H){var ne=H-h,Ge=H-m,we=r-ne;return C?SE(we,f-Ge):we}function P(H){var ne=H-h,Ge=H-m;return h===void 0||ne>=r||ne<0||C&&Ge>=f}function B(){var H=Ka();if(P(H))return j(H);d=setTimeout(B,k(H))}function j(H){return d=void 0,x&&o?O(H):(o=a=void 0,c)}function J(){d!==void 0&&clearTimeout(d),m=0,o=h=a=d=void 0}function z(){return d===void 0?c:j(Ka())}function Y(){var H=Ka(),ne=P(H);if(o=arguments,a=this,h=H,ne){if(d===void 0)return R(h);if(C)return clearTimeout(d),d=setTimeout(B,r),O(h)}return d===void 0&&(d=setTimeout(B,r)),c}return Y.cancel=J,Y.flush=z,Y}Jp.exports=TE});var ed=Ie((T2,Zp)=>{"use strict";g();var NE=Kp(),AE=Fo(),IE="Expected a function";function _E(e,r,i){var o=!0,a=!0;if(typeof e!="function")throw new TypeError(IE);return AE(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),NE(e,r,{leading:o,maxWait:r,trailing:a})}Zp.exports=_E});var _h=Ie(Oe=>{"use strict";g();function ol(e,r){var i=e.length;e.push(r);e:for(;0<i;){var o=i-1>>>1,a=e[o];if(0<So(a,r))e[o]=r,e[i]=a,i=o;else break e}}function rr(e){return e.length===0?null:e[0]}function No(e){if(e.length===0)return null;var r=e[0],i=e.pop();if(i!==r){e[0]=i;e:for(var o=0,a=e.length,f=a>>>1;o<f;){var c=2*(o+1)-1,d=e[c],h=c+1,m=e[h];if(0>So(d,i))h<a&&0>So(m,d)?(e[o]=m,e[h]=i,o=h):(e[o]=d,e[c]=i,o=c);else if(h<a&&0>So(m,i))e[o]=m,e[h]=i,o=h;else break e}}return r}function So(e,r){var i=e.sortIndex-r.sortIndex;return i!==0?i:e.id-r.id}typeof performance=="object"&&typeof performance.now=="function"?(vh=performance,Oe.unstable_now=function(){return vh.now()}):(nl=Date,xh=nl.now(),Oe.unstable_now=function(){return nl.now()-xh});var vh,nl,xh,mr=[],Qr=[],kE=1,zt=null,Dt=3,Ao=!1,pn=!1,Ji=!1,Sh=typeof setTimeout=="function"?setTimeout:null,Th=typeof clearTimeout=="function"?clearTimeout:null,Ch=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function sl(e){for(var r=rr(Qr);r!==null;){if(r.callback===null)No(Qr);else if(r.startTime<=e)No(Qr),r.sortIndex=r.expirationTime,ol(mr,r);else break;r=rr(Qr)}}function al(e){if(Ji=!1,sl(e),!pn)if(rr(mr)!==null)pn=!0,fl(ll);else{var r=rr(Qr);r!==null&&cl(al,r.startTime-e)}}function ll(e,r){pn=!1,Ji&&(Ji=!1,Th(Ki),Ki=-1),Ao=!0;var i=Dt;try{for(sl(r),zt=rr(mr);zt!==null&&(!(zt.expirationTime>r)||e&&!Ih());){var o=zt.callback;if(typeof o=="function"){zt.callback=null,Dt=zt.priorityLevel;var a=o(zt.expirationTime<=r);r=Oe.unstable_now(),typeof a=="function"?zt.callback=a:zt===rr(mr)&&No(mr),sl(r)}else No(mr);zt=rr(mr)}if(zt!==null)var f=!0;else{var c=rr(Qr);c!==null&&cl(al,c.startTime-r),f=!1}return f}finally{zt=null,Dt=i,Ao=!1}}var Io=!1,To=null,Ki=-1,Nh=5,Ah=-1;function Ih(){return!(Oe.unstable_now()-Ah<Nh)}function il(){if(To!==null){var e=Oe.unstable_now();Ah=e;var r=!0;try{r=To(!0,e)}finally{r?qi():(Io=!1,To=null)}}else Io=!1}var qi;typeof Ch=="function"?qi=function(){Ch(il)}:typeof MessageChannel<"u"?(ul=new MessageChannel,Fh=ul.port2,ul.port1.onmessage=il,qi=function(){Fh.postMessage(null)}):qi=function(){Sh(il,0)};var ul,Fh;function fl(e){To=e,Io||(Io=!0,qi())}function cl(e,r){Ki=Sh(function(){e(Oe.unstable_now())},r)}Oe.unstable_IdlePriority=5;Oe.unstable_ImmediatePriority=1;Oe.unstable_LowPriority=4;Oe.unstable_NormalPriority=3;Oe.unstable_Profiling=null;Oe.unstable_UserBlockingPriority=2;Oe.unstable_cancelCallback=function(e){e.callback=null};Oe.unstable_continueExecution=function(){pn||Ao||(pn=!0,fl(ll))};Oe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Nh=0<e?Math.floor(1e3/e):5};Oe.unstable_getCurrentPriorityLevel=function(){return Dt};Oe.unstable_getFirstCallbackNode=function(){return rr(mr)};Oe.unstable_next=function(e){switch(Dt){case 1:case 2:case 3:var r=3;break;default:r=Dt}var i=Dt;Dt=r;try{return e()}finally{Dt=i}};Oe.unstable_pauseExecution=function(){};Oe.unstable_requestPaint=function(){};Oe.unstable_runWithPriority=function(e,r){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=Dt;Dt=e;try{return r()}finally{Dt=i}};Oe.unstable_scheduleCallback=function(e,r,i){var o=Oe.unstable_now();switch(typeof i=="object"&&i!==null?(i=i.delay,i=typeof i=="number"&&0<i?o+i:o):i=o,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=i+a,e={id:kE++,callback:r,priorityLevel:e,startTime:i,expirationTime:a,sortIndex:-1},i>o?(e.sortIndex=i,ol(Qr,e),rr(mr)===null&&e===rr(Qr)&&(Ji?(Th(Ki),Ki=-1):Ji=!0,cl(al,i-o))):(e.sortIndex=a,ol(mr,e),pn||Ao||(pn=!0,fl(ll))),e};Oe.unstable_shouldYield=Ih;Oe.unstable_wrapCallback=function(e){var r=Dt;return function(){var i=Dt;Dt=r;try{return e.apply(this,arguments)}finally{Dt=i}}}});var wh=Ie((Q2,Lh)=>{"use strict";g();Lh.exports=_h()});var Ph=Ie((J2,Oh)=>{"use strict";g();Oh.exports=function(r){var i={},o=ie(),a=wh(),f=Object.assign;function c(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,u=1;u<arguments.length;u++)n+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,h=Symbol.for("react.element"),m=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),R=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),J=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var Y=Symbol.iterator;function H(t){return t===null||typeof t!="object"?null:(t=Y&&t[Y]||t["@@iterator"],typeof t=="function"?t:null)}function ne(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case v:return"Fragment";case m:return"Portal";case x:return"Profiler";case C:return"StrictMode";case P:return"Suspense";case B:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case R:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case k:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case j:return n=t.displayName||null,n!==null?n:ne(t.type)||"Memo";case J:n=t._payload,t=t._init;try{return ne(t(n))}catch{}}return null}function Ge(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ne(n);case 8:return n===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function we(t){var n=t,u=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,n.flags&4098&&(u=n.return),t=n.return;while(t)}return n.tag===3?u:null}function _e(t){if(we(t)!==t)throw Error(c(188))}function Ve(t){var n=t.alternate;if(!n){if(n=we(t),n===null)throw Error(c(188));return n!==t?null:t}for(var u=t,s=n;;){var l=u.return;if(l===null)break;var p=l.alternate;if(p===null){if(s=l.return,s!==null){u=s;continue}break}if(l.child===p.child){for(p=l.child;p;){if(p===u)return _e(l),t;if(p===s)return _e(l),n;p=p.sibling}throw Error(c(188))}if(u.return!==s.return)u=l,s=p;else{for(var D=!1,F=l.child;F;){if(F===u){D=!0,u=l,s=p;break}if(F===s){D=!0,s=l,u=p;break}F=F.sibling}if(!D){for(F=p.child;F;){if(F===u){D=!0,u=p,s=l;break}if(F===s){D=!0,s=p,u=l;break}F=F.sibling}if(!D)throw Error(c(189))}}if(u.alternate!==s)throw Error(c(190))}if(u.tag!==3)throw Error(c(188));return u.stateNode.current===u?t:n}function rt(t){return t=Ve(t),t!==null?st(t):null}function st(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=st(t);if(n!==null)return n;t=t.sibling}return null}function Et(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){if(t.tag!==4){var n=Et(t);if(n!==null)return n}t=t.sibling}return null}var Ae=Array.isArray,Rt=r.getPublicInstance,Kr=r.getRootHostContext,qe=r.getChildHostContext,je=r.prepareForCommit,Vt=r.resetAfterCommit,vr=r.createInstance,ir=r.appendInitialChild,ce=r.finalizeInitialChildren,Br=r.prepareUpdate,br=r.shouldSetTextContent,pi=r.createTextInstance,di=r.scheduleTimeout,Je=r.cancelTimeout,xr=r.noTimeout,kr=r.isPrimaryRenderer,Ke=r.supportsMutation,Ct=r.supportsPersistence,ct=r.supportsHydration,Cr=r.getInstanceFromNode,Eu=r.preparePortalMount,yu=r.getCurrentEventPriority,yn=r.detachDeletedInstance,hi=r.supportsMicrotasks,vu=r.scheduleMicrotask,Ur=r.supportsTestSelectors,xu=r.findFiberRoot,vn=r.getBoundingRect,xn=r.getTextContent,Bt=r.isHiddenSubtree,Cn=r.matchAccessibilityRole,mi=r.setFocusIfFocusable,Zr=r.setupIntersectionObserver,Hr=r.appendChild,Fn=r.appendChildToContainer,ur=r.commitTextUpdate,Di=r.commitMount,Xt=r.commitUpdate,gi=r.insertBefore,or=r.insertInContainerBefore,Ei=r.removeChild,Ns=r.removeChildFromContainer,Sn=r.resetTextContent,As=r.hideInstance,Is=r.hideTextInstance,_s=r.unhideInstance,Yt=r.unhideTextInstance,Tn=r.clearContainer,Cu=r.cloneInstance,Ft=r.createContainerChildSet,yi=r.appendChildToContainerChildSet,Nn=r.finalizeContainerChildren,en=r.replaceContainerChildren,An=r.cloneHiddenInstance,In=r.cloneHiddenTextInstance,vi=r.canHydrateInstance,Ls=r.canHydrateTextInstance,ws=r.canHydrateSuspenseInstance,Fu=r.isSuspenseInstancePending,xi=r.isSuspenseInstanceFallback,Os=r.getSuspenseInstanceFallbackErrorDetails,Ps=r.registerSuspenseInstanceRetry,_n=r.getNextHydratableSibling,Su=r.getFirstHydratableChild,Ln=r.getFirstHydratableChildWithinContainer,Tu=r.getFirstHydratableChildWithinSuspenseInstance,Rs=r.hydrateInstance,Nu=r.hydrateTextInstance,wn=r.hydrateSuspenseInstance,Bs=r.getNextHydratableInstanceAfterSuspenseInstance,Au=r.commitHydratedContainer,Ci=r.commitHydratedSuspenseInstance,$t=r.clearSuspenseBoundary,Iu=r.clearSuspenseBoundaryFromContainer,y=r.shouldDeleteUnhydratedTailInstances,E=r.didNotMatchHydratedContainerTextInstance,T=r.didNotMatchHydratedTextInstance,A;function N(t){if(A===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);A=n&&n[1]||""}return`
|
|
3
|
+
import{a as D0,b as v0,c as x0,d as Wi,e as ye,f as sp,i as yo,k as zi}from"./chunk-GZENQUN7.js";import{a as Vn,b as tr,c as C0}from"./chunk-K656WQZA.js";import{a as E0,b as zn,c as Lt,d as y0}from"./chunk-F67LDVCV.js";import{a as g0,b as ji,c as Re}from"./chunk-ZBJRW65P.js";import{b as za}from"./chunk-CUZEHDNU.js";import{a as Xn,c as up,e as op}from"./chunk-TCTTRAWM.js";import{a as m0,c as Ie,e as Q,i as g}from"./chunk-UO4ZAUJK.js";var yp=Ie(he=>{"use strict";g();var Vi=Symbol.for("react.element"),F0=Symbol.for("react.portal"),S0=Symbol.for("react.fragment"),T0=Symbol.for("react.strict_mode"),N0=Symbol.for("react.profiler"),A0=Symbol.for("react.provider"),I0=Symbol.for("react.context"),_0=Symbol.for("react.forward_ref"),L0=Symbol.for("react.suspense"),w0=Symbol.for("react.memo"),O0=Symbol.for("react.lazy"),ap=Symbol.iterator;function P0(e){return e===null||typeof e!="object"?null:(e=ap&&e[ap]||e["@@iterator"],typeof e=="function"?e:null)}var cp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pp=Object.assign,dp={};function Yn(e,r,i){this.props=e,this.context=r,this.refs=dp,this.updater=i||cp}Yn.prototype.isReactComponent={};Yn.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")};Yn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hp(){}hp.prototype=Yn.prototype;function Xa(e,r,i){this.props=e,this.context=r,this.refs=dp,this.updater=i||cp}var Ya=Xa.prototype=new hp;Ya.constructor=Xa;pp(Ya,Yn.prototype);Ya.isPureReactComponent=!0;var lp=Array.isArray,mp=Object.prototype.hasOwnProperty,$a={current:null},Dp={key:!0,ref:!0,__self:!0,__source:!0};function gp(e,r,i){var o,a={},f=null,c=null;if(r!=null)for(o in r.ref!==void 0&&(c=r.ref),r.key!==void 0&&(f=""+r.key),r)mp.call(r,o)&&!Dp.hasOwnProperty(o)&&(a[o]=r[o]);var d=arguments.length-2;if(d===1)a.children=i;else if(1<d){for(var h=Array(d),m=0;m<d;m++)h[m]=arguments[m+2];a.children=h}if(e&&e.defaultProps)for(o in d=e.defaultProps,d)a[o]===void 0&&(a[o]=d[o]);return{$$typeof:Vi,type:e,key:f,ref:c,props:a,_owner:$a.current}}function R0(e,r){return{$$typeof:Vi,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}function Qa(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vi}function B0(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(i){return r[i]})}var fp=/\/+/g;function Va(e,r){return typeof e=="object"&&e!==null&&e.key!=null?B0(""+e.key):r.toString(36)}function xo(e,r,i,o,a){var f=typeof e;(f==="undefined"||f==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(f){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case Vi:case F0:c=!0}}if(c)return c=e,a=a(c),e=o===""?"."+Va(c,0):o,lp(a)?(i="",e!=null&&(i=e.replace(fp,"$&/")+"/"),xo(a,r,i,"",function(m){return m})):a!=null&&(Qa(a)&&(a=R0(a,i+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(fp,"$&/")+"/")+e)),r.push(a)),1;if(c=0,o=o===""?".":o+":",lp(e))for(var d=0;d<e.length;d++){f=e[d];var h=o+Va(f,d);c+=xo(f,r,i,h,a)}else if(h=P0(e),typeof h=="function")for(e=h.call(e),d=0;!(f=e.next()).done;)f=f.value,h=o+Va(f,d++),c+=xo(f,r,i,h,a);else if(f==="object")throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function vo(e,r,i){if(e==null)return e;var o=[],a=0;return xo(e,o,"","",function(f){return r.call(i,f,a++)}),o}function b0(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i)},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var vt={current:null},Co={transition:null},k0={ReactCurrentDispatcher:vt,ReactCurrentBatchConfig:Co,ReactCurrentOwner:$a};function Ep(){throw Error("act(...) is not supported in production builds of React.")}he.Children={map:vo,forEach:function(e,r,i){vo(e,function(){r.apply(this,arguments)},i)},count:function(e){var r=0;return vo(e,function(){r++}),r},toArray:function(e){return vo(e,function(r){return r})||[]},only:function(e){if(!Qa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};he.Component=Yn;he.Fragment=S0;he.Profiler=N0;he.PureComponent=Xa;he.StrictMode=T0;he.Suspense=L0;he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k0;he.act=Ep;he.cloneElement=function(e,r,i){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=pp({},e.props),a=e.key,f=e.ref,c=e._owner;if(r!=null){if(r.ref!==void 0&&(f=r.ref,c=$a.current),r.key!==void 0&&(a=""+r.key),e.type&&e.type.defaultProps)var d=e.type.defaultProps;for(h in r)mp.call(r,h)&&!Dp.hasOwnProperty(h)&&(o[h]=r[h]===void 0&&d!==void 0?d[h]:r[h])}var h=arguments.length-2;if(h===1)o.children=i;else if(1<h){d=Array(h);for(var m=0;m<h;m++)d[m]=arguments[m+2];o.children=d}return{$$typeof:Vi,type:e.type,key:a,ref:f,props:o,_owner:c}};he.createContext=function(e){return e={$$typeof:I0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:A0,_context:e},e.Consumer=e};he.createElement=gp;he.createFactory=function(e){var r=gp.bind(null,e);return r.type=e,r};he.createRef=function(){return{current:null}};he.forwardRef=function(e){return{$$typeof:_0,render:e}};he.isValidElement=Qa;he.lazy=function(e){return{$$typeof:O0,_payload:{_status:-1,_result:e},_init:b0}};he.memo=function(e,r){return{$$typeof:w0,type:e,compare:r===void 0?null:r}};he.startTransition=function(e){var r=Co.transition;Co.transition={};try{e()}finally{Co.transition=r}};he.unstable_act=Ep;he.useCallback=function(e,r){return vt.current.useCallback(e,r)};he.useContext=function(e){return vt.current.useContext(e)};he.useDebugValue=function(){};he.useDeferredValue=function(e){return vt.current.useDeferredValue(e)};he.useEffect=function(e,r){return vt.current.useEffect(e,r)};he.useId=function(){return vt.current.useId()};he.useImperativeHandle=function(e,r,i){return vt.current.useImperativeHandle(e,r,i)};he.useInsertionEffect=function(e,r){return vt.current.useInsertionEffect(e,r)};he.useLayoutEffect=function(e,r){return vt.current.useLayoutEffect(e,r)};he.useMemo=function(e,r){return vt.current.useMemo(e,r)};he.useReducer=function(e,r,i){return vt.current.useReducer(e,r,i)};he.useRef=function(e){return vt.current.useRef(e)};he.useState=function(e){return vt.current.useState(e)};he.useSyncExternalStore=function(e,r,i){return vt.current.useSyncExternalStore(e,r,i)};he.useTransition=function(){return vt.current.useTransition()};he.version="18.3.1"});var ie=Ie((Qv,vp)=>{"use strict";g();vp.exports=yp()});var Fo=Ie((Jv,xp)=>{"use strict";g();function U0(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}xp.exports=U0});var Fp=Ie((Zv,Cp)=>{"use strict";g();var H0=typeof global=="object"&&global&&global.Object===Object&&global;Cp.exports=H0});var qa=Ie((t2,Sp)=>{"use strict";g();var M0=Fp(),G0=typeof self=="object"&&self&&self.Object===Object&&self,j0=M0||G0||Function("return this")();Sp.exports=j0});var Np=Ie((n2,Tp)=>{"use strict";g();var W0=qa(),z0=function(){return W0.Date.now()};Tp.exports=z0});var Ip=Ie((u2,Ap)=>{"use strict";g();var V0=/\s/;function X0(e){for(var r=e.length;r--&&V0.test(e.charAt(r)););return r}Ap.exports=X0});var Lp=Ie((s2,_p)=>{"use strict";g();var Y0=Ip(),$0=/^\s+/;function Q0(e){return e&&e.slice(0,Y0(e)+1).replace($0,"")}_p.exports=Q0});var Ja=Ie((l2,wp)=>{"use strict";g();var q0=qa(),J0=q0.Symbol;wp.exports=J0});var Bp=Ie((c2,Rp)=>{"use strict";g();var Op=Ja(),Pp=Object.prototype,K0=Pp.hasOwnProperty,Z0=Pp.toString,Xi=Op?Op.toStringTag:void 0;function eE(e){var r=K0.call(e,Xi),i=e[Xi];try{e[Xi]=void 0;var o=!0}catch{}var a=Z0.call(e);return o&&(r?e[Xi]=i:delete e[Xi]),a}Rp.exports=eE});var kp=Ie((d2,bp)=>{"use strict";g();var tE=Object.prototype,rE=tE.toString;function nE(e){return rE.call(e)}bp.exports=nE});var Gp=Ie((m2,Mp)=>{"use strict";g();var Up=Ja(),iE=Bp(),uE=kp(),oE="[object Null]",sE="[object Undefined]",Hp=Up?Up.toStringTag:void 0;function aE(e){return e==null?e===void 0?sE:oE:Hp&&Hp in Object(e)?iE(e):uE(e)}Mp.exports=aE});var Wp=Ie((g2,jp)=>{"use strict";g();function lE(e){return e!=null&&typeof e=="object"}jp.exports=lE});var Vp=Ie((y2,zp)=>{"use strict";g();var fE=Gp(),cE=Wp(),pE="[object Symbol]";function dE(e){return typeof e=="symbol"||cE(e)&&fE(e)==pE}zp.exports=dE});var Qp=Ie((x2,$p)=>{"use strict";g();var hE=Lp(),Xp=Fo(),mE=Vp(),Yp=NaN,DE=/^[-+]0x[0-9a-f]+$/i,gE=/^0b[01]+$/i,EE=/^0o[0-7]+$/i,yE=parseInt;function vE(e){if(typeof e=="number")return e;if(mE(e))return Yp;if(Xp(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Xp(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=hE(e);var i=gE.test(e);return i||EE.test(e)?yE(e.slice(2),i?2:8):DE.test(e)?Yp:+e}$p.exports=vE});var Kp=Ie((F2,Jp)=>{"use strict";g();var xE=Fo(),Ka=Np(),qp=Qp(),CE="Expected a function",FE=Math.max,SE=Math.min;function TE(e,r,i){var o,a,f,c,d,h,m=0,v=!1,C=!1,x=!0;if(typeof e!="function")throw new TypeError(CE);r=qp(r)||0,xE(i)&&(v=!!i.leading,C="maxWait"in i,f=C?FE(qp(i.maxWait)||0,r):f,x="trailing"in i?!!i.trailing:x);function O(H){var ne=o,Ge=a;return o=a=void 0,m=H,c=e.apply(Ge,ne),c}function R(H){return m=H,d=setTimeout(B,r),v?O(H):c}function k(H){var ne=H-h,Ge=H-m,we=r-ne;return C?SE(we,f-Ge):we}function P(H){var ne=H-h,Ge=H-m;return h===void 0||ne>=r||ne<0||C&&Ge>=f}function B(){var H=Ka();if(P(H))return j(H);d=setTimeout(B,k(H))}function j(H){return d=void 0,x&&o?O(H):(o=a=void 0,c)}function J(){d!==void 0&&clearTimeout(d),m=0,o=h=a=d=void 0}function z(){return d===void 0?c:j(Ka())}function Y(){var H=Ka(),ne=P(H);if(o=arguments,a=this,h=H,ne){if(d===void 0)return R(h);if(C)return clearTimeout(d),d=setTimeout(B,r),O(h)}return d===void 0&&(d=setTimeout(B,r)),c}return Y.cancel=J,Y.flush=z,Y}Jp.exports=TE});var ed=Ie((T2,Zp)=>{"use strict";g();var NE=Kp(),AE=Fo(),IE="Expected a function";function _E(e,r,i){var o=!0,a=!0;if(typeof e!="function")throw new TypeError(IE);return AE(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),NE(e,r,{leading:o,maxWait:r,trailing:a})}Zp.exports=_E});var _h=Ie(Oe=>{"use strict";g();function ol(e,r){var i=e.length;e.push(r);e:for(;0<i;){var o=i-1>>>1,a=e[o];if(0<So(a,r))e[o]=r,e[i]=a,i=o;else break e}}function rr(e){return e.length===0?null:e[0]}function No(e){if(e.length===0)return null;var r=e[0],i=e.pop();if(i!==r){e[0]=i;e:for(var o=0,a=e.length,f=a>>>1;o<f;){var c=2*(o+1)-1,d=e[c],h=c+1,m=e[h];if(0>So(d,i))h<a&&0>So(m,d)?(e[o]=m,e[h]=i,o=h):(e[o]=d,e[c]=i,o=c);else if(h<a&&0>So(m,i))e[o]=m,e[h]=i,o=h;else break e}}return r}function So(e,r){var i=e.sortIndex-r.sortIndex;return i!==0?i:e.id-r.id}typeof performance=="object"&&typeof performance.now=="function"?(vh=performance,Oe.unstable_now=function(){return vh.now()}):(nl=Date,xh=nl.now(),Oe.unstable_now=function(){return nl.now()-xh});var vh,nl,xh,mr=[],Qr=[],kE=1,zt=null,Dt=3,Ao=!1,pn=!1,Ji=!1,Sh=typeof setTimeout=="function"?setTimeout:null,Th=typeof clearTimeout=="function"?clearTimeout:null,Ch=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function sl(e){for(var r=rr(Qr);r!==null;){if(r.callback===null)No(Qr);else if(r.startTime<=e)No(Qr),r.sortIndex=r.expirationTime,ol(mr,r);else break;r=rr(Qr)}}function al(e){if(Ji=!1,sl(e),!pn)if(rr(mr)!==null)pn=!0,fl(ll);else{var r=rr(Qr);r!==null&&cl(al,r.startTime-e)}}function ll(e,r){pn=!1,Ji&&(Ji=!1,Th(Ki),Ki=-1),Ao=!0;var i=Dt;try{for(sl(r),zt=rr(mr);zt!==null&&(!(zt.expirationTime>r)||e&&!Ih());){var o=zt.callback;if(typeof o=="function"){zt.callback=null,Dt=zt.priorityLevel;var a=o(zt.expirationTime<=r);r=Oe.unstable_now(),typeof a=="function"?zt.callback=a:zt===rr(mr)&&No(mr),sl(r)}else No(mr);zt=rr(mr)}if(zt!==null)var f=!0;else{var c=rr(Qr);c!==null&&cl(al,c.startTime-r),f=!1}return f}finally{zt=null,Dt=i,Ao=!1}}var Io=!1,To=null,Ki=-1,Nh=5,Ah=-1;function Ih(){return!(Oe.unstable_now()-Ah<Nh)}function il(){if(To!==null){var e=Oe.unstable_now();Ah=e;var r=!0;try{r=To(!0,e)}finally{r?qi():(Io=!1,To=null)}}else Io=!1}var qi;typeof Ch=="function"?qi=function(){Ch(il)}:typeof MessageChannel<"u"?(ul=new MessageChannel,Fh=ul.port2,ul.port1.onmessage=il,qi=function(){Fh.postMessage(null)}):qi=function(){Sh(il,0)};var ul,Fh;function fl(e){To=e,Io||(Io=!0,qi())}function cl(e,r){Ki=Sh(function(){e(Oe.unstable_now())},r)}Oe.unstable_IdlePriority=5;Oe.unstable_ImmediatePriority=1;Oe.unstable_LowPriority=4;Oe.unstable_NormalPriority=3;Oe.unstable_Profiling=null;Oe.unstable_UserBlockingPriority=2;Oe.unstable_cancelCallback=function(e){e.callback=null};Oe.unstable_continueExecution=function(){pn||Ao||(pn=!0,fl(ll))};Oe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Nh=0<e?Math.floor(1e3/e):5};Oe.unstable_getCurrentPriorityLevel=function(){return Dt};Oe.unstable_getFirstCallbackNode=function(){return rr(mr)};Oe.unstable_next=function(e){switch(Dt){case 1:case 2:case 3:var r=3;break;default:r=Dt}var i=Dt;Dt=r;try{return e()}finally{Dt=i}};Oe.unstable_pauseExecution=function(){};Oe.unstable_requestPaint=function(){};Oe.unstable_runWithPriority=function(e,r){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=Dt;Dt=e;try{return r()}finally{Dt=i}};Oe.unstable_scheduleCallback=function(e,r,i){var o=Oe.unstable_now();switch(typeof i=="object"&&i!==null?(i=i.delay,i=typeof i=="number"&&0<i?o+i:o):i=o,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=i+a,e={id:kE++,callback:r,priorityLevel:e,startTime:i,expirationTime:a,sortIndex:-1},i>o?(e.sortIndex=i,ol(Qr,e),rr(mr)===null&&e===rr(Qr)&&(Ji?(Th(Ki),Ki=-1):Ji=!0,cl(al,i-o))):(e.sortIndex=a,ol(mr,e),pn||Ao||(pn=!0,fl(ll))),e};Oe.unstable_shouldYield=Ih;Oe.unstable_wrapCallback=function(e){var r=Dt;return function(){var i=Dt;Dt=r;try{return e.apply(this,arguments)}finally{Dt=i}}}});var wh=Ie((Q2,Lh)=>{"use strict";g();Lh.exports=_h()});var Ph=Ie((J2,Oh)=>{"use strict";g();Oh.exports=function(r){var i={},o=ie(),a=wh(),f=Object.assign;function c(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,u=1;u<arguments.length;u++)n+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,h=Symbol.for("react.element"),m=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),R=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),J=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var Y=Symbol.iterator;function H(t){return t===null||typeof t!="object"?null:(t=Y&&t[Y]||t["@@iterator"],typeof t=="function"?t:null)}function ne(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case v:return"Fragment";case m:return"Portal";case x:return"Profiler";case C:return"StrictMode";case P:return"Suspense";case B:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case R:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case k:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case j:return n=t.displayName||null,n!==null?n:ne(t.type)||"Memo";case J:n=t._payload,t=t._init;try{return ne(t(n))}catch{}}return null}function Ge(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ne(n);case 8:return n===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function we(t){var n=t,u=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,n.flags&4098&&(u=n.return),t=n.return;while(t)}return n.tag===3?u:null}function _e(t){if(we(t)!==t)throw Error(c(188))}function Ve(t){var n=t.alternate;if(!n){if(n=we(t),n===null)throw Error(c(188));return n!==t?null:t}for(var u=t,s=n;;){var l=u.return;if(l===null)break;var p=l.alternate;if(p===null){if(s=l.return,s!==null){u=s;continue}break}if(l.child===p.child){for(p=l.child;p;){if(p===u)return _e(l),t;if(p===s)return _e(l),n;p=p.sibling}throw Error(c(188))}if(u.return!==s.return)u=l,s=p;else{for(var D=!1,F=l.child;F;){if(F===u){D=!0,u=l,s=p;break}if(F===s){D=!0,s=l,u=p;break}F=F.sibling}if(!D){for(F=p.child;F;){if(F===u){D=!0,u=p,s=l;break}if(F===s){D=!0,s=p,u=l;break}F=F.sibling}if(!D)throw Error(c(189))}}if(u.alternate!==s)throw Error(c(190))}if(u.tag!==3)throw Error(c(188));return u.stateNode.current===u?t:n}function rt(t){return t=Ve(t),t!==null?st(t):null}function st(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=st(t);if(n!==null)return n;t=t.sibling}return null}function Et(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){if(t.tag!==4){var n=Et(t);if(n!==null)return n}t=t.sibling}return null}var Ae=Array.isArray,Rt=r.getPublicInstance,Kr=r.getRootHostContext,qe=r.getChildHostContext,je=r.prepareForCommit,Vt=r.resetAfterCommit,vr=r.createInstance,ir=r.appendInitialChild,ce=r.finalizeInitialChildren,Br=r.prepareUpdate,br=r.shouldSetTextContent,pi=r.createTextInstance,di=r.scheduleTimeout,Je=r.cancelTimeout,xr=r.noTimeout,kr=r.isPrimaryRenderer,Ke=r.supportsMutation,Ct=r.supportsPersistence,ct=r.supportsHydration,Cr=r.getInstanceFromNode,Eu=r.preparePortalMount,yu=r.getCurrentEventPriority,yn=r.detachDeletedInstance,hi=r.supportsMicrotasks,vu=r.scheduleMicrotask,Ur=r.supportsTestSelectors,xu=r.findFiberRoot,vn=r.getBoundingRect,xn=r.getTextContent,Bt=r.isHiddenSubtree,Cn=r.matchAccessibilityRole,mi=r.setFocusIfFocusable,Zr=r.setupIntersectionObserver,Hr=r.appendChild,Fn=r.appendChildToContainer,ur=r.commitTextUpdate,Di=r.commitMount,Xt=r.commitUpdate,gi=r.insertBefore,or=r.insertInContainerBefore,Ei=r.removeChild,Ns=r.removeChildFromContainer,Sn=r.resetTextContent,As=r.hideInstance,Is=r.hideTextInstance,_s=r.unhideInstance,Yt=r.unhideTextInstance,Tn=r.clearContainer,Cu=r.cloneInstance,Ft=r.createContainerChildSet,yi=r.appendChildToContainerChildSet,Nn=r.finalizeContainerChildren,en=r.replaceContainerChildren,An=r.cloneHiddenInstance,In=r.cloneHiddenTextInstance,vi=r.canHydrateInstance,Ls=r.canHydrateTextInstance,ws=r.canHydrateSuspenseInstance,Fu=r.isSuspenseInstancePending,xi=r.isSuspenseInstanceFallback,Os=r.getSuspenseInstanceFallbackErrorDetails,Ps=r.registerSuspenseInstanceRetry,_n=r.getNextHydratableSibling,Su=r.getFirstHydratableChild,Ln=r.getFirstHydratableChildWithinContainer,Tu=r.getFirstHydratableChildWithinSuspenseInstance,Rs=r.hydrateInstance,Nu=r.hydrateTextInstance,wn=r.hydrateSuspenseInstance,Bs=r.getNextHydratableInstanceAfterSuspenseInstance,Au=r.commitHydratedContainer,Ci=r.commitHydratedSuspenseInstance,$t=r.clearSuspenseBoundary,Iu=r.clearSuspenseBoundaryFromContainer,y=r.shouldDeleteUnhydratedTailInstances,E=r.didNotMatchHydratedContainerTextInstance,T=r.didNotMatchHydratedTextInstance,A;function N(t){if(A===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);A=n&&n[1]||""}return`
|
|
4
4
|
`+A+t}var L=!1;function M(t,n){if(!t||L)return"";L=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(W){var s=W}Reflect.construct(t,[],n)}else{try{n.call()}catch(W){s=W}t.call(n.prototype)}else{try{throw Error()}catch(W){s=W}t()}}catch(W){if(W&&s&&typeof W.stack=="string"){for(var l=W.stack.split(`
|
|
5
5
|
`),p=s.stack.split(`
|
|
6
6
|
`),D=l.length-1,F=p.length-1;1<=D&&0<=F&&l[D]!==p[F];)F--;for(;1<=D&&0<=F;D--,F--)if(l[D]!==p[F]){if(D!==1||F!==1)do if(D--,F--,0>F||l[D]!==p[F]){var _=`
|
|
@@ -41,7 +41,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
|
|
|
41
41
|
`;if(this.options.debug){f&&(this.fullStaticOutput+=a),this.options.stdout.write(this.fullStaticOutput+i);return}if(Kn){f&&this.options.stdout.write(a),this.lastOutput=i;return}if(f&&(this.fullStaticOutput+=a),o>=this.options.stdout.rows){this.options.stdout.write(Qi.clearTerminal+this.fullStaticOutput+i),this.lastOutput=i;return}f&&(this.log.clear(),this.options.stdout.write(a),this.log(i)),!f&&i!==this.lastOutput&&this.throttledLog(i),this.lastOutput=i}}),tl(this),this.options=r,this.rootNode=Ro("ink-root"),this.rootNode.onComputeLayout=this.calculateLayout,this.rootNode.onRender=r.debug?this.onRender:(0,Ol.default)(this.onRender,32,{leading:!0,trailing:!0}),this.rootNode.onImmediateRender=this.onRender,this.log=fm.create(r.stdout),this.throttledLog=r.debug?this.log:(0,Ol.default)(this.log,void 0,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.lastOutput="",this.fullStaticOutput="",this.container=ru.createContainer(this.rootNode,0,null,!1,null,"id",()=>{},null),this.unsubscribeExit=(0,km.default)(this.unmount,{alwaysLast:!1}),Rm.env.DEV==="true"&&ru.injectIntoDevTools({bundleType:0,version:"16.13.1",rendererPackageName:"ink"}),r.patchConsole&&this.patchConsole(),Kn||(r.stdout.on("resize",this.resized),this.unsubscribeResize=()=>{r.stdout.off("resize",this.resized)})}render(r){let i=Bm.default.createElement(Jn,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount},r);ru.updateContainer(i,this.container,null,Pm)}writeToStdout(r){if(!this.isUnmounted){if(this.options.debug){this.options.stdout.write(r+this.fullStaticOutput+this.lastOutput);return}if(Kn){this.options.stdout.write(r);return}this.log.clear(),this.options.stdout.write(r),this.log(this.lastOutput)}}writeToStderr(r){if(!this.isUnmounted){if(this.options.debug){this.options.stderr.write(r),this.options.stdout.write(this.fullStaticOutput+this.lastOutput);return}if(Kn){this.options.stderr.write(r);return}this.log.clear(),this.options.stderr.write(r),this.log(this.lastOutput)}}unmount(r){this.isUnmounted||(this.calculateLayout(),this.onRender(),this.unsubscribeExit(),typeof this.restoreConsole=="function"&&this.restoreConsole(),typeof this.unsubscribeResize=="function"&&this.unsubscribeResize(),Kn?this.options.stdout.write(this.lastOutput+`
|
|
42
42
|
`):this.options.debug||this.log.done(),this.isUnmounted=!0,ru.updateContainer(null,this.container,null,Pm),qn.delete(this.options.stdout),r instanceof Error?this.rejectExitPromise(r):this.resolveExitPromise())}async waitUntilExit(){return this.exitPromise||(this.exitPromise=new Promise((r,i)=>{this.resolveExitPromise=r,this.rejectExitPromise=i})),this.exitPromise}clear(){!Kn&&!this.options.debug&&this.log.clear()}patchConsole(){this.options.debug||(this.restoreConsole=id((r,i)=>{r==="stdout"&&this.writeToStdout(i),r==="stderr"&&(i.startsWith("The above error occurred")||this.writeToStderr(i))}))}};var M1=(e,r)=>{let i={stdout:jo.stdout,stdin:jo.stdin,stderr:jo.stderr,debug:!1,exitOnCtrlC:!0,patchConsole:!0,...G1(r)},o=j1(i.stdout,()=>new iu(i));return o.render(e),{rerender:o.render,unmount(){o.unmount()},waitUntilExit:o.waitUntilExit,cleanup:()=>qn.delete(i.stdout),clear:o.clear}},Wo=M1,G1=(e={})=>e instanceof H1?{stdout:e,stdin:jo.stdin}:e,j1=(e,r)=>{let i=qn.get(e);return i||(i=r(),qn.set(e,i)),i};g();var zo=Q(ie(),1);g();var Um=Q(ie(),1);function Vo({children:e,transform:r}){return e==null?null:Um.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row"},internal_transform:r},e)}g();var Hm=Q(ie(),1);function Pl({count:e=1}){return Hm.default.createElement("ink-text",null,`
|
|
43
43
|
`.repeat(e))}g();var W1=Q(ie(),1);g();var Rl=Q(ie(),1);g();function Mm(e){return e.toUpperCase()===e&&e.toLowerCase()!==e}g();import{Buffer as z1}from"node:buffer";var V1=/^(?:\x1b)([a-zA-Z0-9])$/,X1=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,Gm={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"},jm=[...Object.values(Gm),"backspace"],Y1=e=>["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(e),$1=e=>["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(e),Q1=(e="")=>{let r;z1.isBuffer(e)?e[0]>127&&e[1]===void 0?(e[0]-=128,e="\x1B"+String(e)):e=String(e):e!==void 0&&typeof e!="string"?e=String(e):e||(e="");let i={name:"",ctrl:!1,meta:!1,shift:!1,option:!1,sequence:e,raw:e};if(i.sequence=i.sequence||e||i.name,e==="\r")i.raw=void 0,i.name="return";else if(e===`
|
|
44
|
-
`)i.name="enter";else if(e===" ")i.name="tab";else if(e==="\b"||e==="\x1B\b")i.name="backspace",i.meta=e.charAt(0)==="\x1B";else if(e==="\x7F"||e==="\x1B\x7F")i.name="delete",i.meta=e.charAt(0)==="\x1B";else if(e==="\x1B"||e==="\x1B\x1B")i.name="escape",i.meta=e.length===2;else if(e===" "||e==="\x1B ")i.name="space",i.meta=e.length===2;else if(e<="")i.name=String.fromCharCode(e.charCodeAt(0)+97-1),i.ctrl=!0;else if(e.length===1&&e>="0"&&e<="9")i.name="number";else if(e.length===1&&e>="a"&&e<="z")i.name=e;else if(e.length===1&&e>="A"&&e<="Z")i.name=e.toLowerCase(),i.shift=!0;else if(r=V1.exec(e))i.meta=!0,i.shift=/^[A-Z]$/.test(r[1]);else if(r=X1.exec(e)){let o=[...e];o[0]==="\x1B"&&o[1]==="\x1B"&&(i.option=!0);let a=[r[1],r[2],r[4],r[6]].filter(Boolean).join(""),f=(r[3]||r[5]||1)-1;i.ctrl=!!(f&4),i.meta=!!(f&10),i.shift=!!(f&1),i.code=a,i.name=Gm[a],i.shift=Y1(a)||i.shift,i.ctrl=$1(a)||i.ctrl}return i},Wm=Q1;g();var zm=Q(ie(),1);var q1=()=>(0,zm.useContext)(Uo),Xo=q1;var J1=(e,r={})=>{let{stdin:i,setRawMode:o,internal_exitOnCtrlC:a}=Xo();(0,Rl.useEffect)(()=>{if(r.isActive!==!1)return o(!0),()=>{o(!1)}},[r.isActive,o]),(0,Rl.useEffect)(()=>{if(r.isActive===!1)return;let f=c=>{let d=Wm(c),h={upArrow:d.name==="up",downArrow:d.name==="down",leftArrow:d.name==="left",rightArrow:d.name==="right",pageDown:d.name==="pagedown",pageUp:d.name==="pageup",return:d.name==="return",escape:d.name==="escape",ctrl:d.ctrl,shift:d.shift,tab:d.name==="tab",backspace:d.name==="backspace",delete:d.name==="delete",meta:d.meta||d.name==="escape"||d.option},m=d.ctrl?d.name:d.sequence;jm.includes(d.name)&&(m=""),m.startsWith("\x1B")&&(m=m.slice(1)),m.length===1&&typeof m[0]=="string"&&Mm(m[0])&&(h.shift=!0),(!(m==="c"&&h.ctrl)||!a)&&e(m,h)};return i?.on("data",f),()=>{i?.off("data",f)}},[r.isActive,i,a,e])},Yo=J1;g();var Vm=Q(ie(),1);var K1=()=>(0,Vm.useContext)(ko),Bl=K1;g();var Z1=Q(ie(),1);g();var ey=Q(ie(),1);g();var bl=Q(ie(),1);g();var ty=Q(ie(),1);g();var ry={standard:{},secondary:{color:"gray"},success:{color:"green"},successEmphasized:{backgroundColor:"green"},question:{color:"blue"},info:{color:"blueBright"},error:{color:"red"},warning:{color:"yellow"},code:{color:"yellowBright"},legacyBlue:{color:"blueBright"}},le=({children:e,skin:r="standard",bold:i,underline:o,strikethrough:a})=>Xm.default.createElement(Te,{...ry[r],bold:i,underline:o,strikethrough:a},e);g();var nr=Q(ie(),1);g();var Ym=Q(ie(),1);function Zn(){let{exit:e}=Bl();return(0,Ym.useCallback)(r=>{r instanceof Error?e(r):r!==void 0?e(new Error(JSON.stringify(r))):e()},[e])}var kl=class extends nr.Component{state={hasError:!1};static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r){let i=r instanceof Error?r:new Error(JSON.stringify(r));i.message.includes("Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default")?this.props.onExit(new up({code:op.NonInteractiveTerminal(),cause:i})):this.props.onExit(i)}render(){return this.state.hasError?null:this.props.children}},ny=({children:e})=>{let r=Zn();return nr.default.createElement(kl,{onExit:r},e)},$m=({children:e,wrap:r})=>nr.default.createElement(nr.default.Fragment,null,r&&nr.default.createElement(Te,null,"----RENDER-FRAME-START----"),e,r&&nr.default.createElement(Te,null,"----RENDER-FRAME-END----"));async function iy(e){let r=!!za().inkDebug,{waitUntilExit:i,unmount:o}=Wo(nr.default.createElement($m,{wrap:r},nr.default.createElement(ny,null,e)),{exitOnCtrlC:!0,debug:r});process.once("beforeExit",()=>{o()}),process.once("SIGINT",()=>{o()}),await i()}function Qm(e,r){let i=!!za().inkDebug,{unmount:o}=Wo(nr.default.createElement($m,{wrap:i},e),{debug:i,...r});o()}function uy(e){Qm(e)}function oy(e){Qm(e,{stdout:process.stderr})}g();g();g();var Er=Q(ie(),1),zl=Q(Xn(),1);g();var $o=Q(Xn(),1),gr=(0,$o.variant)((0,$o.onTerms)(({T:e})=>({NotSubmitted:r=>({value:r}),Submitted:r=>({value:r})})));g();var ou=Q(ie(),1);g();g();var qm=Q(ie(),1);var Ul=()=>qm.default.createElement(le,null,tr()?"\u2716":"\xD7");g();var Qo=Q(ie(),1);var Hl=({appearance:e})=>{switch(e){case"exclamation":return Qo.default.createElement(le,null,"!");case"triangle":return Qo.default.createElement(le,null,tr()?"\u25B6":">");default:return Qo.default.createElement(le,null,tr()?"\u276F":">")}};g();var Jm=Q(ie(),1);var Ml=()=>Jm.default.createElement(le,null,"?");g();var Km=Q(ie(),1);var uu=()=>Km.default.createElement(le,null,tr()?"\u2714":"\u221A");g();var Zm=Q(ie(),1);var Gl=()=>Zm.default.createElement(le,null,tr()?"\u26A0":"\u203C");g();var eD=Q(ie(),1);var jl=()=>eD.default.createElement(le,null,tr()?"\u{1F4A1}":"!");var qo=({children:e,icon:r})=>ou.default.createElement(le,null,r??ou.default.createElement(le,{skin:"question",bold:!0},ou.default.createElement(Ml,null))," ",ou.default.createElement(le,{skin:"question",bold:!0},e));g();var Wl=Q(ie(),1),tD=Q(Xn(),1);var rD=({inputState:e})=>(0,tD.match)(e,{NotSubmitted:({value:r})=>Wl.default.createElement(le,{skin:"secondary"},"(",r?"Y/n":"y/N",")"),Submitted:({value:r})=>Wl.default.createElement(le,null,r?"Yes":"No")});g();var Ko=Q(ie(),1);g();var ei=Q(ie(),1);function sy({value:e,placeholder:r="",focus:i=!0,mask:o,highlightPastedText:a=!1,showCursor:f=!0,onChange:c,onSubmit:d}){let[h,m]=(0,ei.useState)({cursorOffset:(e||"").length,cursorWidth:0}),{cursorOffset:v,cursorWidth:C}=h;(0,ei.useEffect)(()=>{m(P=>{if(!i||!f)return P;let B=e||"";return P.cursorOffset>B.length-1?{cursorOffset:B.length,cursorWidth:0}:P})},[e,i,f]);let x=a?C:0,O=o?o.repeat(e.length):e,R=O,k=r?Re.grey(r):void 0;if(f&&i){k=r.length>0?Re.inverse(r[0])+Re.grey(r.slice(1)):Re.inverse(" "),R=O.length>0?"":Re.inverse(" ");let P=0;for(let B of O)R+=P>=v-x&&P<=v?Re.inverse(B):B,P++;O.length>0&&v===O.length&&(R+=Re.inverse(" "))}return Yo((P,B)=>{if(B.upArrow||B.downArrow||B.ctrl&&P==="c"||B.tab||B.shift&&B.tab)return;if(B.return){d&&d(e);return}let j=v,J=e,z=0;B.leftArrow?f&&j--:B.rightArrow?f&&j++:B.backspace||B.delete?v>0&&(J=e.slice(0,v-1)+e.slice(v,e.length),j--):(J=e.slice(0,v)+P+e.slice(v,e.length),j+=P.length,P.length>1&&(z=P.length)),v<0&&(j=0),v>e.length&&(j=e.length),m({cursorOffset:j,cursorWidth:z}),J!==e&&c(J)},{isActive:i}),ei.default.createElement(Te,null,r?O.length>0?R:k:R)}var Jo=sy;var nD=({initialValue:e,onSubmit:r})=>{let i=(0,Ko.useCallback)(o=>{let a=o.toLowerCase();["y","n"].includes(a)&&r(a==="y")},[r]);return Ko.default.createElement(Jo,{value:"",showCursor:!1,onChange:i,onSubmit:()=>r(e)})};var ay=({label:e,info:r,initialValue:i=!0,onSubmit:o})=>{let[a,f]=(0,Er.useState)(()=>gr.NotSubmitted(i)),c=(0,Er.useCallback)(d=>{f(gr.Submitted(d)),o(d)},[o]);return Er.default.createElement(le,null,Er.default.createElement(qo,null,e)," ",r&&(0,zl.isType)(a,gr.NotSubmitted)&&Er.default.createElement(le,{skin:"secondary"},r," "),Er.default.createElement(rD,{inputState:a}),(0,zl.isType)(a,gr.NotSubmitted)&&Er.default.createElement(nD,{initialValue:i,onSubmit:c}))};g();var Zo=Q(ie(),1);var iD=({onSubmit:e,onChange:r,placeholder:i,showCursor:o})=>{let[a,f]=(0,Zo.useState)("");return Zo.default.createElement(Jo,{showCursor:o,placeholder:i,value:a,onChange:c=>{f(c),r?.(c)},onSubmit:()=>{e?.(!a&&i?i:a)}})};g();g();var Me=Q(ie(),1);var Vl=Q(Xn(),1);var ly=({label:e,placeholder:r,onSubmit:i,validate:o=()=>!0,inCreateFlow:a=!1})=>{let[f,c]=(0,Me.useState)(()=>gr.NotSubmitted(r)),[d,h]=(0,Me.useState)(!1),[m,v]=(0,Me.useState)(),C=(0,Me.useCallback)(async O=>{h(!1);let R=await o(O);R!==!0?v(R):(v(void 0),c(gr.Submitted(O)),i(O))},[i,o]),x=!!(m&&!d);return Me.default.createElement(Me.default.Fragment,null,Me.default.createElement($e,{columnGap:1,marginBottom:1},Me.default.createElement($e,{marginLeft:a?-2:0},Me.default.createElement(qo,{icon:Me.default.createElement(le,{skin:"question"},Me.default.createElement(Hl,{appearance:"triangle"}))},e)),(0,Vl.isType)(f,gr.NotSubmitted)&&Me.default.createElement(le,{skin:x?"error":"standard"},Me.default.createElement(iD,{placeholder:f.value,onSubmit:C,onChange:()=>h(!0),showCursor:x}))),(0,Vl.isType)(f,gr.Submitted)&&Me.default.createElement($e,{marginBottom:1},Me.default.createElement(le,{skin:"secondary"},Me.default.createElement(uu,null)," ",f.value)),m&&Me.default.createElement($e,{columnGap:1},Me.default.createElement(le,{skin:"error"},Me.default.createElement(Hl,{appearance:"exclamation"})),Me.default.createElement(le,{skin:"error"},m)))};g();var Or=Q(ie(),1),hn=Q(Xn(),1);var _N=({type:e,children:r})=>{let i=(0,hn.match)(e,{error:(0,hn.constant)(Or.default.createElement(le,{skin:"error"},Or.default.createElement(Ul,null))),warning:(0,hn.constant)(Or.default.createElement(le,{skin:"warning"},Or.default.createElement(Gl,null))),success:(0,hn.constant)(Or.default.createElement(le,{skin:"success"},Or.default.createElement(uu,null))),insight:(0,hn.constant)(Or.default.createElement(jl,null))});return Or.default.createElement(le,null,i," ",r)};g();var mn=Q(ie(),1);var PN=({value:e,skin:r})=>r==="secondary"?mn.default.createElement(Te,null,mn.default.createElement(Te,{inverse:!0}," ",e," "),mn.default.createElement(Te,null,"\u2591")):mn.default.createElement(Te,null,mn.default.createElement(Te,{backgroundColor:"blueBright"}," ",e," "),mn.default.createElement(Te,{color:"blueBright"},"\u2591"));g();var rs=Q(ie(),1);g();g();var Ne="\x1B[",su="\x1B]",ti="\x07",es=";",uD=process.env.TERM_PROGRAM==="Apple_Terminal",ge={};ge.cursorTo=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof r!="number"?Ne+(e+1)+"G":Ne+(r+1)+";"+(e+1)+"H"};ge.cursorMove=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let i="";return e<0?i+=Ne+-e+"D":e>0&&(i+=Ne+e+"C"),r<0?i+=Ne+-r+"A":r>0&&(i+=Ne+r+"B"),i};ge.cursorUp=(e=1)=>Ne+e+"A";ge.cursorDown=(e=1)=>Ne+e+"B";ge.cursorForward=(e=1)=>Ne+e+"C";ge.cursorBackward=(e=1)=>Ne+e+"D";ge.cursorLeft=Ne+"G";ge.cursorSavePosition=uD?"\x1B7":Ne+"s";ge.cursorRestorePosition=uD?"\x1B8":Ne+"u";ge.cursorGetPosition=Ne+"6n";ge.cursorNextLine=Ne+"E";ge.cursorPrevLine=Ne+"F";ge.cursorHide=Ne+"?25l";ge.cursorShow=Ne+"?25h";ge.eraseLines=e=>{let r="";for(let i=0;i<e;i++)r+=ge.eraseLine+(i<e-1?ge.cursorUp():"");return e&&(r+=ge.cursorLeft),r};ge.eraseEndLine=Ne+"K";ge.eraseStartLine=Ne+"1K";ge.eraseLine=Ne+"2K";ge.eraseDown=Ne+"J";ge.eraseUp=Ne+"1J";ge.eraseScreen=Ne+"2J";ge.scrollUp=Ne+"S";ge.scrollDown=Ne+"T";ge.clearScreen="\x1Bc";ge.clearTerminal=process.platform==="win32"?`${ge.eraseScreen}${Ne}0f`:`${ge.eraseScreen}${Ne}3J${Ne}H`;ge.beep=ti;ge.link=(e,r)=>[su,"8",es,es,r,ti,e,su,"8",es,es,ti].join("");ge.image=(e,r={})=>{let i=`${su}1337;File=inline=1`;return r.width&&(i+=`;width=${r.width}`),r.height&&(i+=`;height=${r.height}`),r.preserveAspectRatio===!1&&(i+=";preserveAspectRatio=0"),i+":"+e.toString("base64")+ti};ge.iTerm={setCwd:(e=process.cwd())=>`${su}50;CurrentDir=${e}${ti}`,annotation:(e,r={})=>{let i=`${su}1337;`,o=typeof r.x<"u",a=typeof r.y<"u";if((o||a)&&!(o&&a&&typeof r.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),i+=r.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",r.length>0?i+=(o?[e,r.length,r.x,r.y]:[r.length,e]).join("|"):i+=e,i+ti}};var oD=ge;var ts=Q(lD(),1);function Dn(e,r,{target:i="stdout",...o}={}){return ts.default[i]?oD.link(e,r):o.fallback===!1?e:typeof o.fallback=="function"?o.fallback(e,r):`${e} (\u200B${r}\u200B)`}Dn.isSupported=ts.default.stdout;Dn.stderr=(e,r,i={})=>Dn(e,r,{target:"stderr",...i});Dn.stderr.isSupported=ts.default.stderr;var XN=({skin:e,children:r,url:i,transform:o=a=>a})=>r?rs.default.createElement(Vo,{transform:a=>o(Dn(a,i,{fallback:!0}))},rs.default.createElement(le,{skin:e},r)):rs.default.createElement(le,{skin:"legacyBlue"},i);g();var au=Q(ie(),1);g();var ni=Q(ie(),1);var fD=Q(C0(),1);function cy({type:e="dots"}){let[r,i]=(0,ni.useState)(0),o=fD.default[e];return(0,ni.useEffect)(()=>{let a=setInterval(()=>{i(f=>f===o.frames.length-1?0:f+1)},o.interval);return()=>{clearInterval(a)}},[o]),ni.default.createElement(Te,null,o.frames[r])}var cD=cy;var t3=({text:e})=>{let r=au.default.createElement(le,{skin:"info"},au.default.createElement(cD,{type:"dots"}));return e?au.default.createElement($e,{gap:1},r,typeof e=="string"?au.default.createElement(le,null,e):e):r};g();var Pr=Q(Xn(),1);g();var ze=Q(ie());function ii(){return ii=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},ii.apply(this,arguments)}var i3=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator",u3=typeof Symbol<"u"?Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")):"@@asyncIterator";var py=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ze.useLayoutEffect:ze.useEffect,dy=function(r){var i=(0,ze.useRef)(r);return py(function(){i.current=r}),(0,ze.useCallback)(function(){return i.current},[i])},hy={status:"not-requested",loading:!1,result:void 0,error:void 0},dD={status:"loading",loading:!0,result:void 0,error:void 0},my=function(r){return dD},Dy=function(r,i){return{status:"success",loading:!1,result:r,error:void 0}},gy=function(r,i){return{status:"error",loading:!1,result:void 0,error:r}},pD=function(){},Ey={initialState:function(r){return r&&r.executeOnMount?dD:hy},executeOnMount:!0,executeOnUpdate:!0,setLoading:my,setResult:Dy,setError:gy,onSuccess:pD,onError:pD},yy=function(r){return ii({},Ey,{},r)},vy=function(r){var i=(0,ze.useState)(function(){return r.initialState(r)}),o=i[0],a=i[1],f=(0,ze.useCallback)(function(){return a(r.initialState(r))},[a,r]),c=(0,ze.useCallback)(function(){return a(r.setLoading(o))},[o,a]),d=(0,ze.useCallback)(function(v){return a(r.setResult(v,o))},[o,a]),h=(0,ze.useCallback)(function(v){return a(r.setError(v,o))},[o,a]),m=(0,ze.useCallback)(function(v){return a(ii({},o,{},v))},[o,a]);return{value:o,set:a,merge:m,reset:f,setLoading:c,setResult:d,setError:h}},xy=function(){var r=(0,ze.useRef)(!1);return(0,ze.useEffect)(function(){return r.current=!0,function(){r.current=!1}},[]),function(){return r.current}},Cy=function(){var r=(0,ze.useRef)(null);return{set:function(o){return r.current=o},get:function(){return r.current},is:function(o){return r.current===o}}},hD=function(r,i,o){!i&&(i=[]);var a=yy(o),f=(0,ze.useState)(null),c=f[0],d=f[1],h=vy(a),m=xy(),v=Cy(),C=function(B){return m()&&v.is(B)},x=function(){for(var B=arguments.length,j=new Array(B),J=0;J<B;J++)j[J]=arguments[J];var z=function(){try{return Promise.resolve(r.apply(void 0,j))}catch(Y){return Promise.reject(Y)}}();return d(j),v.set(z),h.setLoading(),z.then(function(Y){C(z)&&h.setResult(Y),a.onSuccess(Y,{isCurrent:function(){return v.is(z)}})},function(Y){C(z)&&h.setError(Y),a.onError(Y,{isCurrent:function(){return v.is(z)}})}),z},O=dy(x),R=(0,ze.useCallback)(function(){return O().apply(void 0,arguments)},[O]),k=!m();return(0,ze.useEffect)(function(){var P=function(){return O().apply(void 0,i)};k&&a.executeOnMount&&P(),!k&&a.executeOnUpdate&&P()},i),ii({},h.value,{set:h.set,merge:h.merge,reset:h.reset,execute:R,currentPromise:v.get(),currentParams:c})};function mD(e,r,i){return hD(e,r,i)}var DD=function(r,i){return hD(r,[],ii({},i,{executeOnMount:!1,executeOnUpdate:!1}))};var ui=Q(ie(),1);var lu=(0,Pr.variant)((0,Pr.onTerms)(({T:e})=>({Error:r=>({error:r}),Success:r=>({result:r}),Loading:()=>({})}))),fu=(0,Pr.variant)((0,Pr.onTerms)(({T:e})=>({Error:r=>({error:r}),Success:r=>({result:r}),Loading:()=>({}),NotRequested:()=>({})}))),Fy=(e,r,i)=>{let o=Zn(),a=(0,ui.useMemo)(()=>new AbortController,[]),{result:f,error:c,status:d,merge:h}=mD(e.bind(null,{signal:a.signal}),r,{onError:m=>o(m),...i??{}});return(0,ui.useEffect)(()=>()=>{a.abort()},[a]),(0,Pr.match)(d,{error:()=>({status:lu.Error(c??new Error("Unexpected error state in useAsync")),merge:h}),"not-requested":()=>({status:lu.Loading(),merge:h}),loading:()=>({status:lu.Loading(),merge:h}),success:()=>({status:lu.Success(f),merge:h})})},Sy=(e,r)=>{let i=Zn(),o=(0,ui.useMemo)(()=>new AbortController,[]),{result:a,error:f,status:c,merge:d,execute:h}=DD(e.bind(null,{signal:o.signal}),{onError:m=>i(m),...r??{}});return(0,ui.useEffect)(()=>()=>{o.abort()},[o]),(0,Pr.match)(c,{error:()=>({status:fu.Error(f??new Error("Unexpected error state in useAsyncCallback")),merge:d,execute:h}),"not-requested":()=>({status:fu.NotRequested(),merge:d,execute:h}),loading:()=>({status:fu.Loading(),merge:d,execute:h}),success:()=>({status:fu.Success(a),merge:d,execute:h})})};g();var _D=Q(ie(),1);g();var tt=Q(ie(),1);g();var vD=Q(ED()),Ty=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function yD(e){var r={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=e.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(r.name=i[1],(vD.default[i[1]]||e.charAt(e.length-2)==="/")&&(r.voidElement=!0),r.name.startsWith("!--"))){var o=e.indexOf("-->");return{type:"comment",comment:o!==-1?e.slice(4,o):""}}for(var a=new RegExp(Ty),f=null;(f=a.exec(e))!==null;)if(f[0].trim())if(f[1]){var c=f[1].trim(),d=[c,""];c.indexOf("=")>-1&&(d=c.split("=")),r.attrs[d[0]]=d[1],a.lastIndex--}else f[2]&&(r.attrs[f[2]]=f[3].trim().substring(1,f[3].length-1));return r}var Ny=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Ay=/^\s*$/,Iy=Object.create(null);function xD(e,r){switch(r.type){case"text":return e+r.content;case"tag":return e+="<"+r.name+(r.attrs?function(i){var o=[];for(var a in i)o.push(a+'="'+i[a]+'"');return o.length?" "+o.join(" "):""}(r.attrs):"")+(r.voidElement?"/>":">"),r.voidElement?e:e+r.children.reduce(xD,"")+"</"+r.name+">";case"comment":return e+"<!--"+r.comment+"-->"}}var _y={parse:function(e,r){r||(r={}),r.components||(r.components=Iy);var i,o=[],a=[],f=-1,c=!1;if(e.indexOf("<")!==0){var d=e.indexOf("<");o.push({type:"text",content:d===-1?e:e.substring(0,d)})}return e.replace(Ny,function(h,m){if(c){if(h!=="</"+i.name+">")return;c=!1}var v,C=h.charAt(1)!=="/",x=h.startsWith("<!--"),O=m+h.length,R=e.charAt(O);if(x){var k=yD(h);return f<0?(o.push(k),o):((v=a[f]).children.push(k),o)}if(C&&(f++,(i=yD(h)).type==="tag"&&r.components[i.name]&&(i.type="component",c=!0),i.voidElement||c||!R||R==="<"||i.children.push({type:"text",content:e.slice(O,e.indexOf("<",O))}),f===0&&o.push(i),(v=a[f-1])&&v.children.push(i),a[f]=i),(!C||i.voidElement)&&(f>-1&&(i.voidElement||i.name===h.slice(2,-1))&&(f--,i=f===-1?o:a[f]),!c&&R!=="<"&&R)){v=f===-1?o:a[f].children;var P=e.indexOf("<",O),B=e.slice(O,P===-1?void 0:P);Ay.test(B)&&(B=" "),(P>-1&&f+v.length>=0||B!==" ")&&v.push({type:"text",content:B})}}),o},stringify:function(e){return e.reduce(function(r,i){return r+xD("",i)},"")}},CD=_y;g();function cu(){if(console&&console.warn){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];typeof r[0]=="string"&&(r[0]=`react-i18next:: ${r[0]}`),console.warn(...r)}}var FD={};function oi(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];typeof r[0]=="string"&&FD[r[0]]||(typeof r[0]=="string"&&(FD[r[0]]=new Date),cu(...r))}var SD=(e,r)=>()=>{if(e.isInitialized)r();else{let i=()=>{setTimeout(()=>{e.off("initialized",i)},0),r()};e.on("initialized",i)}};function Yl(e,r,i){e.loadNamespaces(r,SD(e,i))}function $l(e,r,i,o){typeof i=="string"&&(i=[i]),i.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(r,SD(e,o))}function Ly(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.languages[0],a=r.options?r.options.fallbackLng:!1,f=r.languages[r.languages.length-1];if(o.toLowerCase()==="cimode")return!0;let c=(d,h)=>{let m=r.services.backendConnector.state[`${d}|${h}`];return m===-1||m===2};return i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!c(r.isLanguageChangingTo,e)?!1:!!(r.hasResourceBundle(o,e)||!r.services.backendConnector.backend||r.options.resources&&!r.options.partialBundledLanguages||c(o,e)&&(!a||c(f,e)))}function TD(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!r.languages||!r.languages.length?(oi("i18n.languages were undefined or empty",r.languages),!0):r.options.ignoreJSONStructure!==void 0?r.hasLoadedNamespace(e,{lng:i.lng,precheck:(a,f)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!f(a.isLanguageChangingTo,e))return!1}}):Ly(e,r,i)}g();g();var wy=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Oy={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},Py=e=>Oy[e],ND=e=>e.replace(wy,Py);var Ql={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ND};function ns(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ql={...Ql,...e}}function si(){return Ql}g();var AD;function is(e){AD=e}function Rr(){return AD}function ql(e,r){if(!e)return!1;let i=e.props?e.props.children:e.children;return r?i.length>0:!!i}function Jl(e){if(!e)return[];let r=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?ai(r):r}function Ry(e){return Object.prototype.toString.call(e)!=="[object Array]"?!1:e.every(r=>(0,tt.isValidElement)(r))}function ai(e){return Array.isArray(e)?e:[e]}function By(e,r){let i={...r};return i.props=Object.assign(e.props,r.props),i}function Kl(e,r){if(!e)return"";let i="",o=ai(e),a=r.transSupportBasicHtmlNodes&&r.transKeepBasicHtmlNodesFor?r.transKeepBasicHtmlNodesFor:[];return o.forEach((f,c)=>{if(typeof f=="string")i+=`${f}`;else if((0,tt.isValidElement)(f)){let d=Object.keys(f.props).length,h=a.indexOf(f.type)>-1,m=f.props.children;if(!m&&h&&d===0)i+=`<${f.type}/>`;else if(!m&&(!h||d!==0))i+=`<${c}></${c}>`;else if(f.props.i18nIsDynamicList)i+=`<${c}></${c}>`;else if(h&&d===1&&typeof m=="string")i+=`<${f.type}>${m}</${f.type}>`;else{let v=Kl(m,r);i+=`<${c}>${v}</${c}>`}}else if(f===null)cu("Trans: the passed in value is invalid - seems you passed in a null child.");else if(typeof f=="object"){let{format:d,...h}=f,m=Object.keys(h);if(m.length===1){let v=d?`${m[0]}, ${d}`:m[0];i+=`{{${v}}}`}else cu("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",f)}else cu("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",f)}),i}function by(e,r,i,o,a,f){if(r==="")return[];let c=o.transKeepBasicHtmlNodesFor||[],d=r&&new RegExp(c.map(P=>`<${P}`).join("|")).test(r);if(!e&&!d&&!f)return[r];let h={};function m(P){ai(P).forEach(j=>{typeof j!="string"&&(ql(j)?m(Jl(j)):typeof j=="object"&&!(0,tt.isValidElement)(j)&&Object.assign(h,j))})}m(e);let v=CD.parse(`<0>${r}</0>`),C={...h,...a};function x(P,B,j){let J=Jl(P),z=R(J,B.children,j);return Ry(J)&&z.length===0||P.props&&P.props.i18nIsDynamicList?J:z}function O(P,B,j,J,z){P.dummy?(P.children=B,j.push((0,tt.cloneElement)(P,{key:J},z?void 0:B))):j.push(...tt.Children.map([P],Y=>{let H={...Y.props};return delete H.i18nIsDynamicList,(0,tt.createElement)(Y.type,{...H,key:J,ref:Y.ref},z?null:B)}))}function R(P,B,j){let J=ai(P);return ai(B).reduce((Y,H,ne)=>{let Ge=H.children&&H.children[0]&&H.children[0].content&&i.services.interpolator.interpolate(H.children[0].content,C,i.language);if(H.type==="tag"){let we=J[parseInt(H.name,10)];j.length===1&&!we&&(we=j[0][H.name]),we||(we={});let _e=Object.keys(H.attrs).length!==0?By({props:H.attrs},we):we,Ve=(0,tt.isValidElement)(_e),rt=Ve&&ql(H,!0)&&!H.voidElement,st=d&&typeof _e=="object"&&_e.dummy&&!Ve,Et=typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,H.name);if(typeof _e=="string"){let Ae=i.services.interpolator.interpolate(_e,C,i.language);Y.push(Ae)}else if(ql(_e)||rt){let Ae=x(_e,H,j);O(_e,Ae,Y,ne)}else if(st){let Ae=R(J,H.children,j);O(_e,Ae,Y,ne)}else if(Number.isNaN(parseFloat(H.name)))if(Et){let Ae=x(_e,H,j);O(_e,Ae,Y,ne,H.voidElement)}else if(o.transSupportBasicHtmlNodes&&c.indexOf(H.name)>-1)if(H.voidElement)Y.push((0,tt.createElement)(H.name,{key:`${H.name}-${ne}`}));else{let Ae=R(J,H.children,j);Y.push((0,tt.createElement)(H.name,{key:`${H.name}-${ne}`},Ae))}else if(H.voidElement)Y.push(`<${H.name} />`);else{let Ae=R(J,H.children,j);Y.push(`<${H.name}>${Ae}</${H.name}>`)}else if(typeof _e=="object"&&!Ve){let Ae=H.children[0]?Ge:null;Ae&&Y.push(Ae)}else O(_e,Ge,Y,ne,H.children.length!==1||!Ge)}else if(H.type==="text"){let we=o.transWrapTextNodes,_e=f?o.unescape(i.services.interpolator.interpolate(H.content,C,i.language)):i.services.interpolator.interpolate(H.content,C,i.language);we?Y.push((0,tt.createElement)(we,{key:`${H.name}-${ne}`},_e)):Y.push(_e)}return Y},[])}let k=R([{dummy:!0,children:e||[]}],v,ai(e||[]));return Jl(k[0])}function Zl(e){let{children:r,count:i,parent:o,i18nKey:a,context:f,tOptions:c={},values:d,defaults:h,components:m,ns:v,i18n:C,t:x,shouldUnescape:O,...R}=e,k=C||Rr();if(!k)return oi("You will need to pass in an i18next instance by using i18nextReactModule"),r;let P=x||k.t.bind(k)||(rt=>rt),B={...si(),...k.options&&k.options.react},j=v||P.ns||k.options&&k.options.defaultNS;j=typeof j=="string"?[j]:j||["translation"];let J=Kl(r,B),z=h||J||B.transEmptyNodeValue||a,{hashTransKey:Y}=B,H=a||(Y?Y(J||z):J||z);k.options&&k.options.interpolation&&k.options.interpolation.defaultVariables&&(d=d&&Object.keys(d).length>0?{...d,...k.options.interpolation.defaultVariables}:{...k.options.interpolation.defaultVariables});let ne=d||i!==void 0||!r?c.interpolation:{interpolation:{...c.interpolation,prefix:"#$?",suffix:"?$#"}},Ge={...c,context:f||c.context,count:i,...d,...ne,defaultValue:z,ns:j},we=H?P(H,Ge):z;m&&Object.keys(m).forEach(rt=>{let st=m[rt];if(typeof st.type=="function"||!st.props||!st.props.children||we.indexOf(`${rt}/>`)<0&&we.indexOf(`${rt} />`)<0)return;function Et(){return(0,tt.createElement)(tt.Fragment,null,st)}m[rt]=(0,tt.createElement)(Et)});let _e=by(m||r,we,k,B,Ge,O),Ve=o!==void 0?o:B.defaultTransParent;return Ve?(0,tt.createElement)(Ve,R,_e):_e}g();var ID=Q(ie(),1);g();var us={type:"3rdParty",init(e){ns(e.options.react),is(e)}};var Jr=(0,ID.createContext)(),os=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(r){r.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};function LD(e){let{children:r,count:i,parent:o,i18nKey:a,context:f,tOptions:c={},values:d,defaults:h,components:m,ns:v,i18n:C,t:x,shouldUnescape:O,...R}=e,{i18n:k,defaultNS:P}=(0,_D.useContext)(Jr)||{},B=C||k||Rr(),j=x||B&&B.t.bind(B);return Zl({children:r,count:i,parent:o,i18nKey:a,context:f,tOptions:c,values:d,defaults:h,components:m,ns:v||j&&j.ns||P||B&&B.options&&B.options.defaultNS,i18n:B,t:x,shouldUnescape:O,...R})}g();g();var Pt=Q(ie(),1);var ky=(e,r)=>{let i=(0,Pt.useRef)();return(0,Pt.useEffect)(()=>{i.current=r?i.current:e},[e,r]),i.current};function wD(e,r,i,o){return e.getFixedT(r,i,o)}function Uy(e,r,i,o){return(0,Pt.useCallback)(wD(e,r,i,o),[e,r,i,o])}function ss(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{i18n:i}=r,{i18n:o,defaultNS:a}=(0,Pt.useContext)(Jr)||{},f=i||o||Rr();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new os),!f){oi("You will need to pass in an i18next instance by using initReactI18next");let z=(H,ne)=>typeof ne=="string"?ne:ne&&typeof ne=="object"&&typeof ne.defaultValue=="string"?ne.defaultValue:Array.isArray(H)?H[H.length-1]:H,Y=[z,{},!1];return Y.t=z,Y.i18n={},Y.ready=!1,Y}f.options.react&&f.options.react.wait!==void 0&&oi("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let c={...si(),...f.options.react,...r},{useSuspense:d,keyPrefix:h}=c,m=e||a||f.options&&f.options.defaultNS;m=typeof m=="string"?[m]:m||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(m);let v=(f.isInitialized||f.initializedStoreOnce)&&m.every(z=>TD(z,f,c)),C=Uy(f,r.lng||null,c.nsMode==="fallback"?m:m[0],h),x=()=>C,O=()=>wD(f,r.lng||null,c.nsMode==="fallback"?m:m[0],h),[R,k]=(0,Pt.useState)(x),P=m.join();r.lng&&(P=`${r.lng}${P}`);let B=ky(P),j=(0,Pt.useRef)(!0);(0,Pt.useEffect)(()=>{let{bindI18n:z,bindI18nStore:Y}=c;j.current=!0,!v&&!d&&(r.lng?$l(f,r.lng,m,()=>{j.current&&k(O)}):Yl(f,m,()=>{j.current&&k(O)})),v&&B&&B!==P&&j.current&&k(O);function H(){j.current&&k(O)}return z&&f&&f.on(z,H),Y&&f&&f.store.on(Y,H),()=>{j.current=!1,z&&f&&z.split(" ").forEach(ne=>f.off(ne,H)),Y&&f&&Y.split(" ").forEach(ne=>f.store.off(ne,H))}},[f,P]),(0,Pt.useEffect)(()=>{j.current&&v&&k(x)},[f,h,v]);let J=[R,f,v];if(J.t=R,J.i18n=f,J.ready=v,v||!v&&!d)return J;throw new Promise(z=>{r.lng?$l(f,r.lng,m,()=>z()):Yl(f,m,()=>z())})}g();var OD=Q(ie(),1);g();g();var as=Q(ie(),1);function ef(e){let{i18n:r,defaultNS:i,children:o}=e,a=(0,as.useMemo)(()=>({i18n:r,defaultNS:i}),[r,i]);return(0,as.createElement)(Jr.Provider,{value:a},o)}g();var Wy=Q(ie(),1);g();var My=Q(ie(),1);g();var Ts=Q(ie(),1);g();g();g();function PD(e,r,i){function o(d){return d&&d.indexOf("###")>-1?d.replace(/###/g,"."):d}function a(){return!e||typeof e=="string"}for(var f=typeof r!="string"?[].concat(r):r.split(".");f.length>1;){if(a())return{};var c=o(f.shift());!e[c]&&i&&(e[c]=new i),e=e[c]}return a()?{}:{obj:e,k:o(f.shift())}}function RD(e,r,i){var o=PD(e,r,Object),a=o.obj,f=o.k;a[f]=i}function BD(e,r){var i=PD(e,r),o=i.obj,a=i.k;if(o)return o[a]}var bD=[],zy=bD.forEach,Vy=bD.slice;function kD(e){return zy.call(Vy.call(arguments,1),function(r){if(r)for(var i in r)e[i]===void 0&&(e[i]=r[i])}),e}g();g();zi();g();zi();g();var De;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(De||(De={}));g();zi();g();var Be;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Be||(Be={}));var gn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(gn||(gn={}));function tf(e){return e.type===Be.literal}function UD(e){return e.type===Be.argument}function ls(e){return e.type===Be.number}function fs(e){return e.type===Be.date}function cs(e){return e.type===Be.time}function ps(e){return e.type===Be.select}function ds(e){return e.type===Be.plural}function HD(e){return e.type===Be.pound}function hs(e){return e.type===Be.tag}function ms(e){return!!(e&&typeof e=="object"&&e.type===gn.number)}function pu(e){return!!(e&&typeof e=="object"&&e.type===gn.dateTime)}g();var rf=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;g();g();var Yy=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function MD(e){var r={};return e.replace(Yy,function(i){var o=i.length;switch(i[0]){case"G":r.era=o===4?"long":o===5?"narrow":"short";break;case"y":r.year=o===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][o-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][o-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=o===4?"long":o===5?"narrow":"short";break;case"e":if(o<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"c":if(o<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][o-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][o-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][o-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][o-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][o-1];break;case"s":r.second=["numeric","2-digit"][o-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=o<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}g();zi();g();var GD=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function VD(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var r=e.split(GD).filter(function(x){return x.length>0}),i=[],o=0,a=r;o<a.length;o++){var f=a[o],c=f.split("/");if(c.length===0)throw new Error("Invalid number skeleton");for(var d=c[0],h=c.slice(1),m=0,v=h;m<v.length;m++){var C=v[m];if(C.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:h})}return i}function $y(e){return e.replace(/^(.*?)-/,"")}var jD=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,XD=/^(@+)?(\+|#+)?[rs]?$/g,Qy=/(\*)(0+)|(#+)(0+)|(0+)/g,YD=/^(0+)$/;function WD(e){var r={};return e[e.length-1]==="r"?r.roundingPriority="morePrecision":e[e.length-1]==="s"&&(r.roundingPriority="lessPrecision"),e.replace(XD,function(i,o,a){return typeof a!="string"?(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length):a==="+"?r.minimumSignificantDigits=o.length:o[0]==="#"?r.maximumSignificantDigits=o.length:(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length+(typeof a=="string"?a.length:0)),""}),r}function $D(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function qy(e){var r;if(e[0]==="E"&&e[1]==="E"?(r={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(r={notation:"scientific"},e=e.slice(1)),r){var i=e.slice(0,2);if(i==="+!"?(r.signDisplay="always",e=e.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",e=e.slice(2)),!YD.test(e))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=e.length}return r}function zD(e){var r={},i=$D(e);return i||r}function QD(e){for(var r={},i=0,o=e;i<o.length;i++){var a=o[i];switch(a.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=a.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=$y(a.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=ye(ye(ye({},r),{notation:"scientific"}),a.options.reduce(function(h,m){return ye(ye({},h),zD(m))},{}));continue;case"engineering":r=ye(ye(ye({},r),{notation:"engineering"}),a.options.reduce(function(h,m){return ye(ye({},h),zD(m))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(Qy,function(h,m,v,C,x,O){if(m)r.minimumIntegerDigits=v.length;else{if(C&&x)throw new Error("We currently do not support maximum integer digits");if(O)throw new Error("We currently do not support exact integer digits")}return""});continue}if(YD.test(a.stem)){r.minimumIntegerDigits=a.stem.length;continue}if(jD.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(jD,function(h,m,v,C,x,O){return v==="*"?r.minimumFractionDigits=m.length:C&&C[0]==="#"?r.maximumFractionDigits=C.length:x&&O?(r.minimumFractionDigits=x.length,r.maximumFractionDigits=x.length+O.length):(r.minimumFractionDigits=m.length,r.maximumFractionDigits=m.length),""});var f=a.options[0];f==="w"?r=ye(ye({},r),{trailingZeroDisplay:"stripIfInteger"}):f&&(r=ye(ye({},r),WD(f)));continue}if(XD.test(a.stem)){r=ye(ye({},r),WD(a.stem));continue}var c=$D(a.stem);c&&(r=ye(ye({},r),c));var d=qy(a.stem);d&&(r=ye(ye({},r),d))}return r}g();g();var du={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function qD(e,r){for(var i="",o=0;o<e.length;o++){var a=e.charAt(o);if(a==="j"){for(var f=0;o+1<e.length&&e.charAt(o+1)===a;)f++,o++;var c=1+(f&1),d=f<2?1:3+(f>>1),h="a",m=Jy(r);for((m=="H"||m=="k")&&(d=0);d-- >0;)i+=h;for(;c-- >0;)i=m+i}else a==="J"?i+="H":i+=a}return i}function Jy(e){var r=e.hourCycle;if(r===void 0&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=e.language,o;i!=="root"&&(o=e.maximize().region);var a=du[o||""]||du[i||""]||du["".concat(i,"-001")]||du["001"];return a[0]}var nf,Ky=new RegExp("^".concat(rf.source,"*")),Zy=new RegExp("".concat(rf.source,"*$"));function ve(e,r){return{start:e,end:r}}var ev=!!String.prototype.startsWith&&"_a".startsWith("a",1),tv=!!String.fromCodePoint,rv=!!Object.fromEntries,nv=!!String.prototype.codePointAt,iv=!!String.prototype.trimStart,uv=!!String.prototype.trimEnd,ov=!!Number.isSafeInteger,sv=ov?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},of=!0;try{JD=tg("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),of=((nf=JD.exec("a"))===null||nf===void 0?void 0:nf[0])==="a"}catch{of=!1}var JD,KD=ev?function(r,i,o){return r.startsWith(i,o)}:function(r,i,o){return r.slice(o,o+i.length)===i},sf=tv?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var o="",a=r.length,f=0,c;a>f;){if(c=r[f++],c>1114111)throw RangeError(c+" is not a valid code point");o+=c<65536?String.fromCharCode(c):String.fromCharCode(((c-=65536)>>10)+55296,c%1024+56320)}return o},ZD=rv?Object.fromEntries:function(r){for(var i={},o=0,a=r;o<a.length;o++){var f=a[o],c=f[0],d=f[1];i[c]=d}return i},eg=nv?function(r,i){return r.codePointAt(i)}:function(r,i){var o=r.length;if(!(i<0||i>=o)){var a=r.charCodeAt(i),f;return a<55296||a>56319||i+1===o||(f=r.charCodeAt(i+1))<56320||f>57343?a:(a-55296<<10)+(f-56320)+65536}},av=iv?function(r){return r.trimStart()}:function(r){return r.replace(Ky,"")},lv=uv?function(r){return r.trimEnd()}:function(r){return r.replace(Zy,"")};function tg(e,r){return new RegExp(e,r)}var af;of?(uf=tg("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),af=function(r,i){var o;uf.lastIndex=i;var a=uf.exec(r);return(o=a[1])!==null&&o!==void 0?o:""}):af=function(r,i){for(var o=[];;){var a=eg(r,i);if(a===void 0||ng(a)||pv(a))break;o.push(a),i+=a>=65536?2:1}return sf.apply(void 0,o)};var uf,rg=function(){function e(r,i){i===void 0&&(i={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(r,i,o){for(var a=[];!this.isEOF();){var f=this.char();if(f===123){var c=this.parseArgument(r,o);if(c.err)return c;a.push(c.val)}else{if(f===125&&r>0)break;if(f===35&&(i==="plural"||i==="selectordinal")){var d=this.clonePosition();this.bump(),a.push({type:Be.pound,location:ve(d,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(De.UNMATCHED_CLOSING_TAG,ve(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&lf(this.peek()||0)){var c=this.parseTag(r,i);if(c.err)return c;a.push(c.val)}else{var c=this.parseLiteral(r,i);if(c.err)return c;a.push(c.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(r,i){var o=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Be.literal,value:"<".concat(a,"/>"),location:ve(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var f=this.parseMessage(r+1,i,!0);if(f.err)return f;var c=f.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!lf(this.char()))return this.error(De.INVALID_TAG,ve(d,this.clonePosition()));var h=this.clonePosition(),m=this.parseTagName();return a!==m?this.error(De.UNMATCHED_CLOSING_TAG,ve(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Be.tag,value:a,children:c,location:ve(o,this.clonePosition())},err:null}:this.error(De.INVALID_TAG,ve(d,this.clonePosition())))}else return this.error(De.UNCLOSED_TAG,ve(o,this.clonePosition()))}else return this.error(De.INVALID_TAG,ve(o,this.clonePosition()))},e.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&cv(this.char());)this.bump();return this.message.slice(r,this.offset())},e.prototype.parseLiteral=function(r,i){for(var o=this.clonePosition(),a="";;){var f=this.tryParseQuote(i);if(f){a+=f;continue}var c=this.tryParseUnquoted(r,i);if(c){a+=c;continue}var d=this.tryParseLeftAngleBracket();if(d){a+=d;continue}break}var h=ve(o,this.clonePosition());return{val:{type:Be.literal,value:a,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!fv(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(o);this.bump()}return sf.apply(void 0,i)},e.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(i==="plural"||i==="selectordinal")||o===125&&r>0?null:(this.bump(),sf(o))},e.prototype.parseArgument=function(r,i){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,ve(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(De.EMPTY_ARGUMENT,ve(o,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(De.MALFORMED_ARGUMENT,ve(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,ve(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Be.argument,value:a,location:ve(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,ve(o,this.clonePosition())):this.parseArgumentOptions(r,i,a,o);default:return this.error(De.MALFORMED_ARGUMENT,ve(o,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),o=af(this.message,i),a=i+o.length;this.bumpTo(a);var f=this.clonePosition(),c=ve(r,f);return{value:o,location:c}},e.prototype.parseArgumentOptions=function(r,i,o,a){var f,c=this.clonePosition(),d=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(d){case"":return this.error(De.EXPECT_ARGUMENT_TYPE,ve(c,h));case"number":case"date":case"time":{this.bumpSpace();var m=null;if(this.bumpIf(",")){this.bumpSpace();var v=this.clonePosition(),C=this.parseSimpleArgStyleIfPossible();if(C.err)return C;var x=lv(C.val);if(x.length===0)return this.error(De.EXPECT_ARGUMENT_STYLE,ve(this.clonePosition(),this.clonePosition()));var O=ve(v,this.clonePosition());m={style:x,styleLocation:O}}var R=this.tryParseArgumentClose(a);if(R.err)return R;var k=ve(a,this.clonePosition());if(m&&KD(m?.style,"::",0)){var P=av(m.style.slice(2));if(d==="number"){var C=this.parseNumberSkeletonFromString(P,m.styleLocation);return C.err?C:{val:{type:Be.number,value:o,location:k,style:C.val},err:null}}else{if(P.length===0)return this.error(De.EXPECT_DATE_TIME_SKELETON,k);var B=P;this.locale&&(B=qD(P,this.locale));var x={type:gn.dateTime,pattern:B,location:m.styleLocation,parsedOptions:this.shouldParseSkeletons?MD(B):{}},j=d==="date"?Be.date:Be.time;return{val:{type:j,value:o,location:k,style:x},err:null}}}return{val:{type:d==="number"?Be.number:d==="date"?Be.date:Be.time,value:o,location:k,style:(f=m?.style)!==null&&f!==void 0?f:null},err:null}}case"plural":case"selectordinal":case"select":{var J=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(De.EXPECT_SELECT_ARGUMENT_OPTIONS,ve(J,ye({},J)));this.bumpSpace();var z=this.parseIdentifierIfPossible(),Y=0;if(d!=="select"&&z.value==="offset"){if(!this.bumpIf(":"))return this.error(De.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ve(this.clonePosition(),this.clonePosition()));this.bumpSpace();var C=this.tryParseDecimalInteger(De.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,De.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(C.err)return C;this.bumpSpace(),z=this.parseIdentifierIfPossible(),Y=C.val}var H=this.tryParsePluralOrSelectOptions(r,d,i,z);if(H.err)return H;var R=this.tryParseArgumentClose(a);if(R.err)return R;var ne=ve(a,this.clonePosition());return d==="select"?{val:{type:Be.select,value:o,options:ZD(H.val),location:ne},err:null}:{val:{type:Be.plural,value:o,options:ZD(H.val),offset:Y,pluralType:d==="plural"?"cardinal":"ordinal",location:ne},err:null}}default:return this.error(De.INVALID_ARGUMENT_TYPE,ve(c,h))}},e.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,ve(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(De.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ve(a,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(r,i){var o=[];try{o=VD(r)}catch{return this.error(De.INVALID_NUMBER_SKELETON,i)}return{val:{type:gn.number,tokens:o,location:i,parsedOptions:this.shouldParseSkeletons?QD(o):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(r,i,o,a){for(var f,c=!1,d=[],h=new Set,m=a.value,v=a.location;;){if(m.length===0){var C=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var x=this.tryParseDecimalInteger(De.EXPECT_PLURAL_ARGUMENT_SELECTOR,De.INVALID_PLURAL_ARGUMENT_SELECTOR);if(x.err)return x;v=ve(C,this.clonePosition()),m=this.message.slice(C.offset,this.offset())}else break}if(h.has(m))return this.error(i==="select"?De.DUPLICATE_SELECT_ARGUMENT_SELECTOR:De.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,v);m==="other"&&(c=!0),this.bumpSpace();var O=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?De.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:De.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ve(this.clonePosition(),this.clonePosition()));var R=this.parseMessage(r+1,i,o);if(R.err)return R;var k=this.tryParseArgumentClose(O);if(k.err)return k;d.push([m,{value:R.val,location:ve(O,this.clonePosition())}]),h.add(m),this.bumpSpace(),f=this.parseIdentifierIfPossible(),m=f.value,v=f.location}return d.length===0?this.error(i==="select"?De.EXPECT_SELECT_ARGUMENT_SELECTOR:De.EXPECT_PLURAL_ARGUMENT_SELECTOR,ve(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!c?this.error(De.MISSING_OTHER_CLAUSE,ve(this.clonePosition(),this.clonePosition())):{val:d,err:null}},e.prototype.tryParseDecimalInteger=function(r,i){var o=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var f=!1,c=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)f=!0,c=c*10+(d-48),this.bump();else break}var h=ve(a,this.clonePosition());return f?(c*=o,sv(c)?{val:c,err:null}:this.error(i,h)):this.error(r,h)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=eg(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},e.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},e.prototype.bumpIf=function(r){if(KD(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(r){var i=this.offset(),o=this.message.indexOf(r,i);return o>=0?(this.bumpTo(o),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ng(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),o=this.message.charCodeAt(i+(r>=65536?2:1));return o??null},e}();function lf(e){return e>=97&&e<=122||e>=65&&e<=90}function fv(e){return lf(e)||e===47}function cv(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ng(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function pv(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ff(e){e.forEach(function(r){if(delete r.location,ps(r)||ds(r))for(var i in r.options)delete r.options[i].location,ff(r.options[i].value);else ls(r)&&ms(r.style)||(fs(r)||cs(r))&&pu(r.style)?delete r.style.location:hs(r)&&ff(r.children)})}function ig(e,r){r===void 0&&(r={}),r=ye({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new rg(e,r).parse();if(i.err){var o=SyntaxError(De[i.err.kind]);throw o.location=i.err.location,o.originalMessage=i.err.message,o}return r?.captureLocation||ff(i.val),i.val}g();function Ds(e,r){var i=r&&r.cache?r.cache:Ev,o=r&&r.serializer?r.serializer:gv,a=r&&r.strategy?r.strategy:hv;return a(e,{cache:i,serializer:o})}function dv(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ug(e,r,i,o){var a=dv(o)?o:i(o),f=r.get(a);return typeof f>"u"&&(f=e.call(this,o),r.set(a,f)),f}function og(e,r,i){var o=Array.prototype.slice.call(arguments,3),a=i(o),f=r.get(a);return typeof f>"u"&&(f=e.apply(this,o),r.set(a,f)),f}function cf(e,r,i,o,a){return i.bind(r,e,o,a)}function hv(e,r){var i=e.length===1?ug:og;return cf(e,this,i,r.cache.create(),r.serializer)}function mv(e,r){return cf(e,this,og,r.cache.create(),r.serializer)}function Dv(e,r){return cf(e,this,ug,r.cache.create(),r.serializer)}var gv=function(){return JSON.stringify(arguments)};function pf(){this.cache=Object.create(null)}pf.prototype.get=function(e){return this.cache[e]};pf.prototype.set=function(e,r){this.cache[e]=r};var Ev={create:function(){return new pf}},gs={variadic:mv,monadic:Dv};g();g();zi();var En;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(En||(En={}));var hu=function(e){Wi(r,e);function r(i,o,a){var f=e.call(this,i)||this;return f.code=o,f.originalMessage=a,f}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error);var df=function(e){Wi(r,e);function r(i,o,a,f){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(o,'". Options are "').concat(Object.keys(a).join('", "'),'"'),En.INVALID_VALUE,f)||this}return r}(hu);var sg=function(e){Wi(r,e);function r(i,o,a){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(o),En.INVALID_VALUE,a)||this}return r}(hu);var ag=function(e){Wi(r,e);function r(i,o){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(o,'"'),En.MISSING_VALUE,o)||this}return r}(hu);var gt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(gt||(gt={}));function yv(e){return e.length<2?e:e.reduce(function(r,i){var o=r[r.length-1];return!o||o.type!==gt.literal||i.type!==gt.literal?r.push(i):o.value+=i.value,r},[])}function vv(e){return typeof e=="function"}function mu(e,r,i,o,a,f,c){if(e.length===1&&tf(e[0]))return[{type:gt.literal,value:e[0].value}];for(var d=[],h=0,m=e;h<m.length;h++){var v=m[h];if(tf(v)){d.push({type:gt.literal,value:v.value});continue}if(HD(v)){typeof f=="number"&&d.push({type:gt.literal,value:i.getNumberFormat(r).format(f)});continue}var C=v.value;if(!(a&&C in a))throw new ag(C,c);var x=a[C];if(UD(v)){(!x||typeof x=="string"||typeof x=="number")&&(x=typeof x=="string"||typeof x=="number"?String(x):""),d.push({type:typeof x=="string"?gt.literal:gt.object,value:x});continue}if(fs(v)){var O=typeof v.style=="string"?o.date[v.style]:pu(v.style)?v.style.parsedOptions:void 0;d.push({type:gt.literal,value:i.getDateTimeFormat(r,O).format(x)});continue}if(cs(v)){var O=typeof v.style=="string"?o.time[v.style]:pu(v.style)?v.style.parsedOptions:o.time.medium;d.push({type:gt.literal,value:i.getDateTimeFormat(r,O).format(x)});continue}if(ls(v)){var O=typeof v.style=="string"?o.number[v.style]:ms(v.style)?v.style.parsedOptions:void 0;O&&O.scale&&(x=x*(O.scale||1)),d.push({type:gt.literal,value:i.getNumberFormat(r,O).format(x)});continue}if(hs(v)){var R=v.children,k=v.value,P=a[k];if(!vv(P))throw new sg(k,"function",c);var B=mu(R,r,i,o,a,f),j=P(B.map(function(Y){return Y.value}));Array.isArray(j)||(j=[j]),d.push.apply(d,j.map(function(Y){return{type:typeof Y=="string"?gt.literal:gt.object,value:Y}}))}if(ps(v)){var J=v.options[x]||v.options.other;if(!J)throw new df(v.value,x,Object.keys(v.options),c);d.push.apply(d,mu(J.value,r,i,o,a));continue}if(ds(v)){var J=v.options["=".concat(x)];if(!J){if(!Intl.PluralRules)throw new hu(`Intl.PluralRules is not available in this environment.
|
|
44
|
+
`)i.name="enter";else if(e===" ")i.name="tab";else if(e==="\b"||e==="\x1B\b")i.name="backspace",i.meta=e.charAt(0)==="\x1B";else if(e==="\x7F"||e==="\x1B\x7F")i.name="delete",i.meta=e.charAt(0)==="\x1B";else if(e==="\x1B"||e==="\x1B\x1B")i.name="escape",i.meta=e.length===2;else if(e===" "||e==="\x1B ")i.name="space",i.meta=e.length===2;else if(e<="")i.name=String.fromCharCode(e.charCodeAt(0)+97-1),i.ctrl=!0;else if(e.length===1&&e>="0"&&e<="9")i.name="number";else if(e.length===1&&e>="a"&&e<="z")i.name=e;else if(e.length===1&&e>="A"&&e<="Z")i.name=e.toLowerCase(),i.shift=!0;else if(r=V1.exec(e))i.meta=!0,i.shift=/^[A-Z]$/.test(r[1]);else if(r=X1.exec(e)){let o=[...e];o[0]==="\x1B"&&o[1]==="\x1B"&&(i.option=!0);let a=[r[1],r[2],r[4],r[6]].filter(Boolean).join(""),f=(r[3]||r[5]||1)-1;i.ctrl=!!(f&4),i.meta=!!(f&10),i.shift=!!(f&1),i.code=a,i.name=Gm[a],i.shift=Y1(a)||i.shift,i.ctrl=$1(a)||i.ctrl}return i},Wm=Q1;g();var zm=Q(ie(),1);var q1=()=>(0,zm.useContext)(Uo),Xo=q1;var J1=(e,r={})=>{let{stdin:i,setRawMode:o,internal_exitOnCtrlC:a}=Xo();(0,Rl.useEffect)(()=>{if(r.isActive!==!1)return o(!0),()=>{o(!1)}},[r.isActive,o]),(0,Rl.useEffect)(()=>{if(r.isActive===!1)return;let f=c=>{let d=Wm(c),h={upArrow:d.name==="up",downArrow:d.name==="down",leftArrow:d.name==="left",rightArrow:d.name==="right",pageDown:d.name==="pagedown",pageUp:d.name==="pageup",return:d.name==="return",escape:d.name==="escape",ctrl:d.ctrl,shift:d.shift,tab:d.name==="tab",backspace:d.name==="backspace",delete:d.name==="delete",meta:d.meta||d.name==="escape"||d.option},m=d.ctrl?d.name:d.sequence;jm.includes(d.name)&&(m=""),m.startsWith("\x1B")&&(m=m.slice(1)),m.length===1&&typeof m[0]=="string"&&Mm(m[0])&&(h.shift=!0),(!(m==="c"&&h.ctrl)||!a)&&e(m,h)};return i?.on("data",f),()=>{i?.off("data",f)}},[r.isActive,i,a,e])},Yo=J1;g();var Vm=Q(ie(),1);var K1=()=>(0,Vm.useContext)(ko),Bl=K1;g();var Z1=Q(ie(),1);g();var ey=Q(ie(),1);g();var bl=Q(ie(),1);g();var ty=Q(ie(),1);g();var ry={standard:{},secondary:{color:"gray"},success:{color:"green"},successEmphasized:{backgroundColor:"green"},question:{color:"blue"},info:{color:"blueBright"},error:{color:"red"},warning:{color:"yellow"},code:{color:"yellowBright"}},le=({children:e,skin:r="standard",bold:i,underline:o,strikethrough:a})=>Xm.default.createElement(Te,{...ry[r],bold:i,underline:o,strikethrough:a},e);g();var nr=Q(ie(),1);g();var Ym=Q(ie(),1);function Zn(){let{exit:e}=Bl();return(0,Ym.useCallback)(r=>{r instanceof Error?e(r):r!==void 0?e(new Error(JSON.stringify(r))):e()},[e])}var kl=class extends nr.Component{state={hasError:!1};static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r){let i=r instanceof Error?r:new Error(JSON.stringify(r));i.message.includes("Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default")?this.props.onExit(new up({code:op.NonInteractiveTerminal(),cause:i})):this.props.onExit(i)}render(){return this.state.hasError?null:this.props.children}},ny=({children:e})=>{let r=Zn();return nr.default.createElement(kl,{onExit:r},e)},$m=({children:e,wrap:r})=>nr.default.createElement(nr.default.Fragment,null,r&&nr.default.createElement(Te,null,"----RENDER-FRAME-START----"),e,r&&nr.default.createElement(Te,null,"----RENDER-FRAME-END----"));async function iy(e){let r=!!za().inkDebug,{waitUntilExit:i,unmount:o}=Wo(nr.default.createElement($m,{wrap:r},nr.default.createElement(ny,null,e)),{exitOnCtrlC:!0,debug:r});process.once("beforeExit",()=>{o()}),process.once("SIGINT",()=>{o()}),await i()}function Qm(e,r){let i=!!za().inkDebug,{unmount:o}=Wo(nr.default.createElement($m,{wrap:i},e),{debug:i,...r});o()}function uy(e){Qm(e)}function oy(e){Qm(e,{stdout:process.stderr})}g();g();g();var Er=Q(ie(),1),zl=Q(Xn(),1);g();var $o=Q(Xn(),1),gr=(0,$o.variant)((0,$o.onTerms)(({T:e})=>({NotSubmitted:r=>({value:r}),Submitted:r=>({value:r})})));g();var ou=Q(ie(),1);g();g();var qm=Q(ie(),1);var Ul=()=>qm.default.createElement(le,null,tr()?"\u2716":"\xD7");g();var Qo=Q(ie(),1);var Hl=({appearance:e})=>{switch(e){case"exclamation":return Qo.default.createElement(le,null,"!");case"triangle":return Qo.default.createElement(le,null,tr()?"\u25B6":">");default:return Qo.default.createElement(le,null,tr()?"\u276F":">")}};g();var Jm=Q(ie(),1);var Ml=()=>Jm.default.createElement(le,null,"?");g();var Km=Q(ie(),1);var uu=()=>Km.default.createElement(le,null,tr()?"\u2714":"\u221A");g();var Zm=Q(ie(),1);var Gl=()=>Zm.default.createElement(le,null,tr()?"\u26A0":"\u203C");g();var eD=Q(ie(),1);var jl=()=>eD.default.createElement(le,null,tr()?"\u{1F4A1}":"!");var qo=({children:e,icon:r})=>ou.default.createElement(le,null,r??ou.default.createElement(le,{skin:"question",bold:!0},ou.default.createElement(Ml,null))," ",ou.default.createElement(le,{skin:"question",bold:!0},e));g();var Wl=Q(ie(),1),tD=Q(Xn(),1);var rD=({inputState:e})=>(0,tD.match)(e,{NotSubmitted:({value:r})=>Wl.default.createElement(le,{skin:"secondary"},"(",r?"Y/n":"y/N",")"),Submitted:({value:r})=>Wl.default.createElement(le,null,r?"Yes":"No")});g();var Ko=Q(ie(),1);g();var ei=Q(ie(),1);function sy({value:e,placeholder:r="",focus:i=!0,mask:o,highlightPastedText:a=!1,showCursor:f=!0,onChange:c,onSubmit:d}){let[h,m]=(0,ei.useState)({cursorOffset:(e||"").length,cursorWidth:0}),{cursorOffset:v,cursorWidth:C}=h;(0,ei.useEffect)(()=>{m(P=>{if(!i||!f)return P;let B=e||"";return P.cursorOffset>B.length-1?{cursorOffset:B.length,cursorWidth:0}:P})},[e,i,f]);let x=a?C:0,O=o?o.repeat(e.length):e,R=O,k=r?Re.grey(r):void 0;if(f&&i){k=r.length>0?Re.inverse(r[0])+Re.grey(r.slice(1)):Re.inverse(" "),R=O.length>0?"":Re.inverse(" ");let P=0;for(let B of O)R+=P>=v-x&&P<=v?Re.inverse(B):B,P++;O.length>0&&v===O.length&&(R+=Re.inverse(" "))}return Yo((P,B)=>{if(B.upArrow||B.downArrow||B.ctrl&&P==="c"||B.tab||B.shift&&B.tab)return;if(B.return){d&&d(e);return}let j=v,J=e,z=0;B.leftArrow?f&&j--:B.rightArrow?f&&j++:B.backspace||B.delete?v>0&&(J=e.slice(0,v-1)+e.slice(v,e.length),j--):(J=e.slice(0,v)+P+e.slice(v,e.length),j+=P.length,P.length>1&&(z=P.length)),v<0&&(j=0),v>e.length&&(j=e.length),m({cursorOffset:j,cursorWidth:z}),J!==e&&c(J)},{isActive:i}),ei.default.createElement(Te,null,r?O.length>0?R:k:R)}var Jo=sy;var nD=({initialValue:e,onSubmit:r})=>{let i=(0,Ko.useCallback)(o=>{let a=o.toLowerCase();["y","n"].includes(a)&&r(a==="y")},[r]);return Ko.default.createElement(Jo,{value:"",showCursor:!1,onChange:i,onSubmit:()=>r(e)})};var ay=({label:e,info:r,initialValue:i=!0,onSubmit:o})=>{let[a,f]=(0,Er.useState)(()=>gr.NotSubmitted(i)),c=(0,Er.useCallback)(d=>{f(gr.Submitted(d)),o(d)},[o]);return Er.default.createElement(le,null,Er.default.createElement(qo,null,e)," ",r&&(0,zl.isType)(a,gr.NotSubmitted)&&Er.default.createElement(le,{skin:"secondary"},r," "),Er.default.createElement(rD,{inputState:a}),(0,zl.isType)(a,gr.NotSubmitted)&&Er.default.createElement(nD,{initialValue:i,onSubmit:c}))};g();var Zo=Q(ie(),1);var iD=({onSubmit:e,onChange:r,placeholder:i,showCursor:o})=>{let[a,f]=(0,Zo.useState)("");return Zo.default.createElement(Jo,{showCursor:o,placeholder:i,value:a,onChange:c=>{f(c),r?.(c)},onSubmit:()=>{e?.(!a&&i?i:a)}})};g();g();var Me=Q(ie(),1);var Vl=Q(Xn(),1);var ly=({label:e,placeholder:r,onSubmit:i,validate:o=()=>!0,inCreateFlow:a=!1})=>{let[f,c]=(0,Me.useState)(()=>gr.NotSubmitted(r)),[d,h]=(0,Me.useState)(!1),[m,v]=(0,Me.useState)(),C=(0,Me.useCallback)(async O=>{h(!1);let R=await o(O);R!==!0?v(R):(v(void 0),c(gr.Submitted(O)),i(O))},[i,o]),x=!!(m&&!d);return Me.default.createElement(Me.default.Fragment,null,Me.default.createElement($e,{columnGap:1,marginBottom:1},Me.default.createElement($e,{marginLeft:a?-2:0},Me.default.createElement(qo,{icon:Me.default.createElement(le,{skin:"question"},Me.default.createElement(Hl,{appearance:"triangle"}))},e)),(0,Vl.isType)(f,gr.NotSubmitted)&&Me.default.createElement(le,{skin:x?"error":"standard"},Me.default.createElement(iD,{placeholder:f.value,onSubmit:C,onChange:()=>h(!0),showCursor:x}))),(0,Vl.isType)(f,gr.Submitted)&&Me.default.createElement($e,{marginBottom:1},Me.default.createElement(le,{skin:"secondary"},Me.default.createElement(uu,null)," ",f.value)),m&&Me.default.createElement($e,{columnGap:1},Me.default.createElement(le,{skin:"error"},Me.default.createElement(Hl,{appearance:"exclamation"})),Me.default.createElement(le,{skin:"error"},m)))};g();var Or=Q(ie(),1),hn=Q(Xn(),1);var _N=({type:e,children:r})=>{let i=(0,hn.match)(e,{error:(0,hn.constant)(Or.default.createElement(le,{skin:"error"},Or.default.createElement(Ul,null))),warning:(0,hn.constant)(Or.default.createElement(le,{skin:"warning"},Or.default.createElement(Gl,null))),success:(0,hn.constant)(Or.default.createElement(le,{skin:"success"},Or.default.createElement(uu,null))),insight:(0,hn.constant)(Or.default.createElement(jl,null))});return Or.default.createElement(le,null,i," ",r)};g();var mn=Q(ie(),1);var PN=({value:e,skin:r})=>r==="secondary"?mn.default.createElement(Te,null,mn.default.createElement(Te,{inverse:!0}," ",e," "),mn.default.createElement(Te,null,"\u2591")):mn.default.createElement(Te,null,mn.default.createElement(Te,{backgroundColor:"blueBright"}," ",e," "),mn.default.createElement(Te,{color:"blueBright"},"\u2591"));g();var rs=Q(ie(),1);g();g();var Ne="\x1B[",su="\x1B]",ti="\x07",es=";",uD=process.env.TERM_PROGRAM==="Apple_Terminal",ge={};ge.cursorTo=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof r!="number"?Ne+(e+1)+"G":Ne+(r+1)+";"+(e+1)+"H"};ge.cursorMove=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let i="";return e<0?i+=Ne+-e+"D":e>0&&(i+=Ne+e+"C"),r<0?i+=Ne+-r+"A":r>0&&(i+=Ne+r+"B"),i};ge.cursorUp=(e=1)=>Ne+e+"A";ge.cursorDown=(e=1)=>Ne+e+"B";ge.cursorForward=(e=1)=>Ne+e+"C";ge.cursorBackward=(e=1)=>Ne+e+"D";ge.cursorLeft=Ne+"G";ge.cursorSavePosition=uD?"\x1B7":Ne+"s";ge.cursorRestorePosition=uD?"\x1B8":Ne+"u";ge.cursorGetPosition=Ne+"6n";ge.cursorNextLine=Ne+"E";ge.cursorPrevLine=Ne+"F";ge.cursorHide=Ne+"?25l";ge.cursorShow=Ne+"?25h";ge.eraseLines=e=>{let r="";for(let i=0;i<e;i++)r+=ge.eraseLine+(i<e-1?ge.cursorUp():"");return e&&(r+=ge.cursorLeft),r};ge.eraseEndLine=Ne+"K";ge.eraseStartLine=Ne+"1K";ge.eraseLine=Ne+"2K";ge.eraseDown=Ne+"J";ge.eraseUp=Ne+"1J";ge.eraseScreen=Ne+"2J";ge.scrollUp=Ne+"S";ge.scrollDown=Ne+"T";ge.clearScreen="\x1Bc";ge.clearTerminal=process.platform==="win32"?`${ge.eraseScreen}${Ne}0f`:`${ge.eraseScreen}${Ne}3J${Ne}H`;ge.beep=ti;ge.link=(e,r)=>[su,"8",es,es,r,ti,e,su,"8",es,es,ti].join("");ge.image=(e,r={})=>{let i=`${su}1337;File=inline=1`;return r.width&&(i+=`;width=${r.width}`),r.height&&(i+=`;height=${r.height}`),r.preserveAspectRatio===!1&&(i+=";preserveAspectRatio=0"),i+":"+e.toString("base64")+ti};ge.iTerm={setCwd:(e=process.cwd())=>`${su}50;CurrentDir=${e}${ti}`,annotation:(e,r={})=>{let i=`${su}1337;`,o=typeof r.x<"u",a=typeof r.y<"u";if((o||a)&&!(o&&a&&typeof r.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),i+=r.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",r.length>0?i+=(o?[e,r.length,r.x,r.y]:[r.length,e]).join("|"):i+=e,i+ti}};var oD=ge;var ts=Q(lD(),1);function Dn(e,r,{target:i="stdout",...o}={}){return ts.default[i]?oD.link(e,r):o.fallback===!1?e:typeof o.fallback=="function"?o.fallback(e,r):`${e} (\u200B${r}\u200B)`}Dn.isSupported=ts.default.stdout;Dn.stderr=(e,r,i={})=>Dn(e,r,{target:"stderr",...i});Dn.stderr.isSupported=ts.default.stderr;var XN=({skin:e,children:r,url:i,transform:o=a=>a})=>r?rs.default.createElement(Vo,{transform:a=>o(Dn(a,i,{fallback:!0}))},rs.default.createElement(le,{skin:e},r)):rs.default.createElement(le,{skin:"info"},i);g();var au=Q(ie(),1);g();var ni=Q(ie(),1);var fD=Q(C0(),1);function cy({type:e="dots"}){let[r,i]=(0,ni.useState)(0),o=fD.default[e];return(0,ni.useEffect)(()=>{let a=setInterval(()=>{i(f=>f===o.frames.length-1?0:f+1)},o.interval);return()=>{clearInterval(a)}},[o]),ni.default.createElement(Te,null,o.frames[r])}var cD=cy;var t3=({text:e})=>{let r=au.default.createElement(le,{skin:"info"},au.default.createElement(cD,{type:"dots"}));return e?au.default.createElement($e,{gap:1},r,typeof e=="string"?au.default.createElement(le,null,e):e):r};g();var Pr=Q(Xn(),1);g();var ze=Q(ie());function ii(){return ii=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},ii.apply(this,arguments)}var i3=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator",u3=typeof Symbol<"u"?Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")):"@@asyncIterator";var py=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ze.useLayoutEffect:ze.useEffect,dy=function(r){var i=(0,ze.useRef)(r);return py(function(){i.current=r}),(0,ze.useCallback)(function(){return i.current},[i])},hy={status:"not-requested",loading:!1,result:void 0,error:void 0},dD={status:"loading",loading:!0,result:void 0,error:void 0},my=function(r){return dD},Dy=function(r,i){return{status:"success",loading:!1,result:r,error:void 0}},gy=function(r,i){return{status:"error",loading:!1,result:void 0,error:r}},pD=function(){},Ey={initialState:function(r){return r&&r.executeOnMount?dD:hy},executeOnMount:!0,executeOnUpdate:!0,setLoading:my,setResult:Dy,setError:gy,onSuccess:pD,onError:pD},yy=function(r){return ii({},Ey,{},r)},vy=function(r){var i=(0,ze.useState)(function(){return r.initialState(r)}),o=i[0],a=i[1],f=(0,ze.useCallback)(function(){return a(r.initialState(r))},[a,r]),c=(0,ze.useCallback)(function(){return a(r.setLoading(o))},[o,a]),d=(0,ze.useCallback)(function(v){return a(r.setResult(v,o))},[o,a]),h=(0,ze.useCallback)(function(v){return a(r.setError(v,o))},[o,a]),m=(0,ze.useCallback)(function(v){return a(ii({},o,{},v))},[o,a]);return{value:o,set:a,merge:m,reset:f,setLoading:c,setResult:d,setError:h}},xy=function(){var r=(0,ze.useRef)(!1);return(0,ze.useEffect)(function(){return r.current=!0,function(){r.current=!1}},[]),function(){return r.current}},Cy=function(){var r=(0,ze.useRef)(null);return{set:function(o){return r.current=o},get:function(){return r.current},is:function(o){return r.current===o}}},hD=function(r,i,o){!i&&(i=[]);var a=yy(o),f=(0,ze.useState)(null),c=f[0],d=f[1],h=vy(a),m=xy(),v=Cy(),C=function(B){return m()&&v.is(B)},x=function(){for(var B=arguments.length,j=new Array(B),J=0;J<B;J++)j[J]=arguments[J];var z=function(){try{return Promise.resolve(r.apply(void 0,j))}catch(Y){return Promise.reject(Y)}}();return d(j),v.set(z),h.setLoading(),z.then(function(Y){C(z)&&h.setResult(Y),a.onSuccess(Y,{isCurrent:function(){return v.is(z)}})},function(Y){C(z)&&h.setError(Y),a.onError(Y,{isCurrent:function(){return v.is(z)}})}),z},O=dy(x),R=(0,ze.useCallback)(function(){return O().apply(void 0,arguments)},[O]),k=!m();return(0,ze.useEffect)(function(){var P=function(){return O().apply(void 0,i)};k&&a.executeOnMount&&P(),!k&&a.executeOnUpdate&&P()},i),ii({},h.value,{set:h.set,merge:h.merge,reset:h.reset,execute:R,currentPromise:v.get(),currentParams:c})};function mD(e,r,i){return hD(e,r,i)}var DD=function(r,i){return hD(r,[],ii({},i,{executeOnMount:!1,executeOnUpdate:!1}))};var ui=Q(ie(),1);var lu=(0,Pr.variant)((0,Pr.onTerms)(({T:e})=>({Error:r=>({error:r}),Success:r=>({result:r}),Loading:()=>({})}))),fu=(0,Pr.variant)((0,Pr.onTerms)(({T:e})=>({Error:r=>({error:r}),Success:r=>({result:r}),Loading:()=>({}),NotRequested:()=>({})}))),Fy=(e,r,i)=>{let o=Zn(),a=(0,ui.useMemo)(()=>new AbortController,[]),{result:f,error:c,status:d,merge:h}=mD(e.bind(null,{signal:a.signal}),r,{onError:m=>o(m),...i??{}});return(0,ui.useEffect)(()=>()=>{a.abort()},[a]),(0,Pr.match)(d,{error:()=>({status:lu.Error(c??new Error("Unexpected error state in useAsync")),merge:h}),"not-requested":()=>({status:lu.Loading(),merge:h}),loading:()=>({status:lu.Loading(),merge:h}),success:()=>({status:lu.Success(f),merge:h})})},Sy=(e,r)=>{let i=Zn(),o=(0,ui.useMemo)(()=>new AbortController,[]),{result:a,error:f,status:c,merge:d,execute:h}=DD(e.bind(null,{signal:o.signal}),{onError:m=>i(m),...r??{}});return(0,ui.useEffect)(()=>()=>{o.abort()},[o]),(0,Pr.match)(c,{error:()=>({status:fu.Error(f??new Error("Unexpected error state in useAsyncCallback")),merge:d,execute:h}),"not-requested":()=>({status:fu.NotRequested(),merge:d,execute:h}),loading:()=>({status:fu.Loading(),merge:d,execute:h}),success:()=>({status:fu.Success(a),merge:d,execute:h})})};g();var _D=Q(ie(),1);g();var tt=Q(ie(),1);g();var vD=Q(ED()),Ty=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function yD(e){var r={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=e.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(r.name=i[1],(vD.default[i[1]]||e.charAt(e.length-2)==="/")&&(r.voidElement=!0),r.name.startsWith("!--"))){var o=e.indexOf("-->");return{type:"comment",comment:o!==-1?e.slice(4,o):""}}for(var a=new RegExp(Ty),f=null;(f=a.exec(e))!==null;)if(f[0].trim())if(f[1]){var c=f[1].trim(),d=[c,""];c.indexOf("=")>-1&&(d=c.split("=")),r.attrs[d[0]]=d[1],a.lastIndex--}else f[2]&&(r.attrs[f[2]]=f[3].trim().substring(1,f[3].length-1));return r}var Ny=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Ay=/^\s*$/,Iy=Object.create(null);function xD(e,r){switch(r.type){case"text":return e+r.content;case"tag":return e+="<"+r.name+(r.attrs?function(i){var o=[];for(var a in i)o.push(a+'="'+i[a]+'"');return o.length?" "+o.join(" "):""}(r.attrs):"")+(r.voidElement?"/>":">"),r.voidElement?e:e+r.children.reduce(xD,"")+"</"+r.name+">";case"comment":return e+"<!--"+r.comment+"-->"}}var _y={parse:function(e,r){r||(r={}),r.components||(r.components=Iy);var i,o=[],a=[],f=-1,c=!1;if(e.indexOf("<")!==0){var d=e.indexOf("<");o.push({type:"text",content:d===-1?e:e.substring(0,d)})}return e.replace(Ny,function(h,m){if(c){if(h!=="</"+i.name+">")return;c=!1}var v,C=h.charAt(1)!=="/",x=h.startsWith("<!--"),O=m+h.length,R=e.charAt(O);if(x){var k=yD(h);return f<0?(o.push(k),o):((v=a[f]).children.push(k),o)}if(C&&(f++,(i=yD(h)).type==="tag"&&r.components[i.name]&&(i.type="component",c=!0),i.voidElement||c||!R||R==="<"||i.children.push({type:"text",content:e.slice(O,e.indexOf("<",O))}),f===0&&o.push(i),(v=a[f-1])&&v.children.push(i),a[f]=i),(!C||i.voidElement)&&(f>-1&&(i.voidElement||i.name===h.slice(2,-1))&&(f--,i=f===-1?o:a[f]),!c&&R!=="<"&&R)){v=f===-1?o:a[f].children;var P=e.indexOf("<",O),B=e.slice(O,P===-1?void 0:P);Ay.test(B)&&(B=" "),(P>-1&&f+v.length>=0||B!==" ")&&v.push({type:"text",content:B})}}),o},stringify:function(e){return e.reduce(function(r,i){return r+xD("",i)},"")}},CD=_y;g();function cu(){if(console&&console.warn){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];typeof r[0]=="string"&&(r[0]=`react-i18next:: ${r[0]}`),console.warn(...r)}}var FD={};function oi(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];typeof r[0]=="string"&&FD[r[0]]||(typeof r[0]=="string"&&(FD[r[0]]=new Date),cu(...r))}var SD=(e,r)=>()=>{if(e.isInitialized)r();else{let i=()=>{setTimeout(()=>{e.off("initialized",i)},0),r()};e.on("initialized",i)}};function Yl(e,r,i){e.loadNamespaces(r,SD(e,i))}function $l(e,r,i,o){typeof i=="string"&&(i=[i]),i.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(r,SD(e,o))}function Ly(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.languages[0],a=r.options?r.options.fallbackLng:!1,f=r.languages[r.languages.length-1];if(o.toLowerCase()==="cimode")return!0;let c=(d,h)=>{let m=r.services.backendConnector.state[`${d}|${h}`];return m===-1||m===2};return i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!c(r.isLanguageChangingTo,e)?!1:!!(r.hasResourceBundle(o,e)||!r.services.backendConnector.backend||r.options.resources&&!r.options.partialBundledLanguages||c(o,e)&&(!a||c(f,e)))}function TD(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!r.languages||!r.languages.length?(oi("i18n.languages were undefined or empty",r.languages),!0):r.options.ignoreJSONStructure!==void 0?r.hasLoadedNamespace(e,{lng:i.lng,precheck:(a,f)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!f(a.isLanguageChangingTo,e))return!1}}):Ly(e,r,i)}g();g();var wy=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Oy={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},Py=e=>Oy[e],ND=e=>e.replace(wy,Py);var Ql={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ND};function ns(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ql={...Ql,...e}}function si(){return Ql}g();var AD;function is(e){AD=e}function Rr(){return AD}function ql(e,r){if(!e)return!1;let i=e.props?e.props.children:e.children;return r?i.length>0:!!i}function Jl(e){if(!e)return[];let r=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?ai(r):r}function Ry(e){return Object.prototype.toString.call(e)!=="[object Array]"?!1:e.every(r=>(0,tt.isValidElement)(r))}function ai(e){return Array.isArray(e)?e:[e]}function By(e,r){let i={...r};return i.props=Object.assign(e.props,r.props),i}function Kl(e,r){if(!e)return"";let i="",o=ai(e),a=r.transSupportBasicHtmlNodes&&r.transKeepBasicHtmlNodesFor?r.transKeepBasicHtmlNodesFor:[];return o.forEach((f,c)=>{if(typeof f=="string")i+=`${f}`;else if((0,tt.isValidElement)(f)){let d=Object.keys(f.props).length,h=a.indexOf(f.type)>-1,m=f.props.children;if(!m&&h&&d===0)i+=`<${f.type}/>`;else if(!m&&(!h||d!==0))i+=`<${c}></${c}>`;else if(f.props.i18nIsDynamicList)i+=`<${c}></${c}>`;else if(h&&d===1&&typeof m=="string")i+=`<${f.type}>${m}</${f.type}>`;else{let v=Kl(m,r);i+=`<${c}>${v}</${c}>`}}else if(f===null)cu("Trans: the passed in value is invalid - seems you passed in a null child.");else if(typeof f=="object"){let{format:d,...h}=f,m=Object.keys(h);if(m.length===1){let v=d?`${m[0]}, ${d}`:m[0];i+=`{{${v}}}`}else cu("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",f)}else cu("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",f)}),i}function by(e,r,i,o,a,f){if(r==="")return[];let c=o.transKeepBasicHtmlNodesFor||[],d=r&&new RegExp(c.map(P=>`<${P}`).join("|")).test(r);if(!e&&!d&&!f)return[r];let h={};function m(P){ai(P).forEach(j=>{typeof j!="string"&&(ql(j)?m(Jl(j)):typeof j=="object"&&!(0,tt.isValidElement)(j)&&Object.assign(h,j))})}m(e);let v=CD.parse(`<0>${r}</0>`),C={...h,...a};function x(P,B,j){let J=Jl(P),z=R(J,B.children,j);return Ry(J)&&z.length===0||P.props&&P.props.i18nIsDynamicList?J:z}function O(P,B,j,J,z){P.dummy?(P.children=B,j.push((0,tt.cloneElement)(P,{key:J},z?void 0:B))):j.push(...tt.Children.map([P],Y=>{let H={...Y.props};return delete H.i18nIsDynamicList,(0,tt.createElement)(Y.type,{...H,key:J,ref:Y.ref},z?null:B)}))}function R(P,B,j){let J=ai(P);return ai(B).reduce((Y,H,ne)=>{let Ge=H.children&&H.children[0]&&H.children[0].content&&i.services.interpolator.interpolate(H.children[0].content,C,i.language);if(H.type==="tag"){let we=J[parseInt(H.name,10)];j.length===1&&!we&&(we=j[0][H.name]),we||(we={});let _e=Object.keys(H.attrs).length!==0?By({props:H.attrs},we):we,Ve=(0,tt.isValidElement)(_e),rt=Ve&&ql(H,!0)&&!H.voidElement,st=d&&typeof _e=="object"&&_e.dummy&&!Ve,Et=typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,H.name);if(typeof _e=="string"){let Ae=i.services.interpolator.interpolate(_e,C,i.language);Y.push(Ae)}else if(ql(_e)||rt){let Ae=x(_e,H,j);O(_e,Ae,Y,ne)}else if(st){let Ae=R(J,H.children,j);O(_e,Ae,Y,ne)}else if(Number.isNaN(parseFloat(H.name)))if(Et){let Ae=x(_e,H,j);O(_e,Ae,Y,ne,H.voidElement)}else if(o.transSupportBasicHtmlNodes&&c.indexOf(H.name)>-1)if(H.voidElement)Y.push((0,tt.createElement)(H.name,{key:`${H.name}-${ne}`}));else{let Ae=R(J,H.children,j);Y.push((0,tt.createElement)(H.name,{key:`${H.name}-${ne}`},Ae))}else if(H.voidElement)Y.push(`<${H.name} />`);else{let Ae=R(J,H.children,j);Y.push(`<${H.name}>${Ae}</${H.name}>`)}else if(typeof _e=="object"&&!Ve){let Ae=H.children[0]?Ge:null;Ae&&Y.push(Ae)}else O(_e,Ge,Y,ne,H.children.length!==1||!Ge)}else if(H.type==="text"){let we=o.transWrapTextNodes,_e=f?o.unescape(i.services.interpolator.interpolate(H.content,C,i.language)):i.services.interpolator.interpolate(H.content,C,i.language);we?Y.push((0,tt.createElement)(we,{key:`${H.name}-${ne}`},_e)):Y.push(_e)}return Y},[])}let k=R([{dummy:!0,children:e||[]}],v,ai(e||[]));return Jl(k[0])}function Zl(e){let{children:r,count:i,parent:o,i18nKey:a,context:f,tOptions:c={},values:d,defaults:h,components:m,ns:v,i18n:C,t:x,shouldUnescape:O,...R}=e,k=C||Rr();if(!k)return oi("You will need to pass in an i18next instance by using i18nextReactModule"),r;let P=x||k.t.bind(k)||(rt=>rt),B={...si(),...k.options&&k.options.react},j=v||P.ns||k.options&&k.options.defaultNS;j=typeof j=="string"?[j]:j||["translation"];let J=Kl(r,B),z=h||J||B.transEmptyNodeValue||a,{hashTransKey:Y}=B,H=a||(Y?Y(J||z):J||z);k.options&&k.options.interpolation&&k.options.interpolation.defaultVariables&&(d=d&&Object.keys(d).length>0?{...d,...k.options.interpolation.defaultVariables}:{...k.options.interpolation.defaultVariables});let ne=d||i!==void 0||!r?c.interpolation:{interpolation:{...c.interpolation,prefix:"#$?",suffix:"?$#"}},Ge={...c,context:f||c.context,count:i,...d,...ne,defaultValue:z,ns:j},we=H?P(H,Ge):z;m&&Object.keys(m).forEach(rt=>{let st=m[rt];if(typeof st.type=="function"||!st.props||!st.props.children||we.indexOf(`${rt}/>`)<0&&we.indexOf(`${rt} />`)<0)return;function Et(){return(0,tt.createElement)(tt.Fragment,null,st)}m[rt]=(0,tt.createElement)(Et)});let _e=by(m||r,we,k,B,Ge,O),Ve=o!==void 0?o:B.defaultTransParent;return Ve?(0,tt.createElement)(Ve,R,_e):_e}g();var ID=Q(ie(),1);g();var us={type:"3rdParty",init(e){ns(e.options.react),is(e)}};var Jr=(0,ID.createContext)(),os=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(r){r.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};function LD(e){let{children:r,count:i,parent:o,i18nKey:a,context:f,tOptions:c={},values:d,defaults:h,components:m,ns:v,i18n:C,t:x,shouldUnescape:O,...R}=e,{i18n:k,defaultNS:P}=(0,_D.useContext)(Jr)||{},B=C||k||Rr(),j=x||B&&B.t.bind(B);return Zl({children:r,count:i,parent:o,i18nKey:a,context:f,tOptions:c,values:d,defaults:h,components:m,ns:v||j&&j.ns||P||B&&B.options&&B.options.defaultNS,i18n:B,t:x,shouldUnescape:O,...R})}g();g();var Pt=Q(ie(),1);var ky=(e,r)=>{let i=(0,Pt.useRef)();return(0,Pt.useEffect)(()=>{i.current=r?i.current:e},[e,r]),i.current};function wD(e,r,i,o){return e.getFixedT(r,i,o)}function Uy(e,r,i,o){return(0,Pt.useCallback)(wD(e,r,i,o),[e,r,i,o])}function ss(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{i18n:i}=r,{i18n:o,defaultNS:a}=(0,Pt.useContext)(Jr)||{},f=i||o||Rr();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new os),!f){oi("You will need to pass in an i18next instance by using initReactI18next");let z=(H,ne)=>typeof ne=="string"?ne:ne&&typeof ne=="object"&&typeof ne.defaultValue=="string"?ne.defaultValue:Array.isArray(H)?H[H.length-1]:H,Y=[z,{},!1];return Y.t=z,Y.i18n={},Y.ready=!1,Y}f.options.react&&f.options.react.wait!==void 0&&oi("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let c={...si(),...f.options.react,...r},{useSuspense:d,keyPrefix:h}=c,m=e||a||f.options&&f.options.defaultNS;m=typeof m=="string"?[m]:m||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(m);let v=(f.isInitialized||f.initializedStoreOnce)&&m.every(z=>TD(z,f,c)),C=Uy(f,r.lng||null,c.nsMode==="fallback"?m:m[0],h),x=()=>C,O=()=>wD(f,r.lng||null,c.nsMode==="fallback"?m:m[0],h),[R,k]=(0,Pt.useState)(x),P=m.join();r.lng&&(P=`${r.lng}${P}`);let B=ky(P),j=(0,Pt.useRef)(!0);(0,Pt.useEffect)(()=>{let{bindI18n:z,bindI18nStore:Y}=c;j.current=!0,!v&&!d&&(r.lng?$l(f,r.lng,m,()=>{j.current&&k(O)}):Yl(f,m,()=>{j.current&&k(O)})),v&&B&&B!==P&&j.current&&k(O);function H(){j.current&&k(O)}return z&&f&&f.on(z,H),Y&&f&&f.store.on(Y,H),()=>{j.current=!1,z&&f&&z.split(" ").forEach(ne=>f.off(ne,H)),Y&&f&&Y.split(" ").forEach(ne=>f.store.off(ne,H))}},[f,P]),(0,Pt.useEffect)(()=>{j.current&&v&&k(x)},[f,h,v]);let J=[R,f,v];if(J.t=R,J.i18n=f,J.ready=v,v||!v&&!d)return J;throw new Promise(z=>{r.lng?$l(f,r.lng,m,()=>z()):Yl(f,m,()=>z())})}g();var OD=Q(ie(),1);g();g();var as=Q(ie(),1);function ef(e){let{i18n:r,defaultNS:i,children:o}=e,a=(0,as.useMemo)(()=>({i18n:r,defaultNS:i}),[r,i]);return(0,as.createElement)(Jr.Provider,{value:a},o)}g();var Wy=Q(ie(),1);g();var My=Q(ie(),1);g();var Ts=Q(ie(),1);g();g();g();function PD(e,r,i){function o(d){return d&&d.indexOf("###")>-1?d.replace(/###/g,"."):d}function a(){return!e||typeof e=="string"}for(var f=typeof r!="string"?[].concat(r):r.split(".");f.length>1;){if(a())return{};var c=o(f.shift());!e[c]&&i&&(e[c]=new i),e=e[c]}return a()?{}:{obj:e,k:o(f.shift())}}function RD(e,r,i){var o=PD(e,r,Object),a=o.obj,f=o.k;a[f]=i}function BD(e,r){var i=PD(e,r),o=i.obj,a=i.k;if(o)return o[a]}var bD=[],zy=bD.forEach,Vy=bD.slice;function kD(e){return zy.call(Vy.call(arguments,1),function(r){if(r)for(var i in r)e[i]===void 0&&(e[i]=r[i])}),e}g();g();zi();g();zi();g();var De;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(De||(De={}));g();zi();g();var Be;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Be||(Be={}));var gn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(gn||(gn={}));function tf(e){return e.type===Be.literal}function UD(e){return e.type===Be.argument}function ls(e){return e.type===Be.number}function fs(e){return e.type===Be.date}function cs(e){return e.type===Be.time}function ps(e){return e.type===Be.select}function ds(e){return e.type===Be.plural}function HD(e){return e.type===Be.pound}function hs(e){return e.type===Be.tag}function ms(e){return!!(e&&typeof e=="object"&&e.type===gn.number)}function pu(e){return!!(e&&typeof e=="object"&&e.type===gn.dateTime)}g();var rf=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;g();g();var Yy=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function MD(e){var r={};return e.replace(Yy,function(i){var o=i.length;switch(i[0]){case"G":r.era=o===4?"long":o===5?"narrow":"short";break;case"y":r.year=o===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][o-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][o-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=o===4?"long":o===5?"narrow":"short";break;case"e":if(o<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"c":if(o<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][o-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][o-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][o-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][o-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][o-1];break;case"s":r.second=["numeric","2-digit"][o-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=o<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}g();zi();g();var GD=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function VD(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var r=e.split(GD).filter(function(x){return x.length>0}),i=[],o=0,a=r;o<a.length;o++){var f=a[o],c=f.split("/");if(c.length===0)throw new Error("Invalid number skeleton");for(var d=c[0],h=c.slice(1),m=0,v=h;m<v.length;m++){var C=v[m];if(C.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:h})}return i}function $y(e){return e.replace(/^(.*?)-/,"")}var jD=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,XD=/^(@+)?(\+|#+)?[rs]?$/g,Qy=/(\*)(0+)|(#+)(0+)|(0+)/g,YD=/^(0+)$/;function WD(e){var r={};return e[e.length-1]==="r"?r.roundingPriority="morePrecision":e[e.length-1]==="s"&&(r.roundingPriority="lessPrecision"),e.replace(XD,function(i,o,a){return typeof a!="string"?(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length):a==="+"?r.minimumSignificantDigits=o.length:o[0]==="#"?r.maximumSignificantDigits=o.length:(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length+(typeof a=="string"?a.length:0)),""}),r}function $D(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function qy(e){var r;if(e[0]==="E"&&e[1]==="E"?(r={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(r={notation:"scientific"},e=e.slice(1)),r){var i=e.slice(0,2);if(i==="+!"?(r.signDisplay="always",e=e.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",e=e.slice(2)),!YD.test(e))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=e.length}return r}function zD(e){var r={},i=$D(e);return i||r}function QD(e){for(var r={},i=0,o=e;i<o.length;i++){var a=o[i];switch(a.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=a.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=$y(a.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=ye(ye(ye({},r),{notation:"scientific"}),a.options.reduce(function(h,m){return ye(ye({},h),zD(m))},{}));continue;case"engineering":r=ye(ye(ye({},r),{notation:"engineering"}),a.options.reduce(function(h,m){return ye(ye({},h),zD(m))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(Qy,function(h,m,v,C,x,O){if(m)r.minimumIntegerDigits=v.length;else{if(C&&x)throw new Error("We currently do not support maximum integer digits");if(O)throw new Error("We currently do not support exact integer digits")}return""});continue}if(YD.test(a.stem)){r.minimumIntegerDigits=a.stem.length;continue}if(jD.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(jD,function(h,m,v,C,x,O){return v==="*"?r.minimumFractionDigits=m.length:C&&C[0]==="#"?r.maximumFractionDigits=C.length:x&&O?(r.minimumFractionDigits=x.length,r.maximumFractionDigits=x.length+O.length):(r.minimumFractionDigits=m.length,r.maximumFractionDigits=m.length),""});var f=a.options[0];f==="w"?r=ye(ye({},r),{trailingZeroDisplay:"stripIfInteger"}):f&&(r=ye(ye({},r),WD(f)));continue}if(XD.test(a.stem)){r=ye(ye({},r),WD(a.stem));continue}var c=$D(a.stem);c&&(r=ye(ye({},r),c));var d=qy(a.stem);d&&(r=ye(ye({},r),d))}return r}g();g();var du={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function qD(e,r){for(var i="",o=0;o<e.length;o++){var a=e.charAt(o);if(a==="j"){for(var f=0;o+1<e.length&&e.charAt(o+1)===a;)f++,o++;var c=1+(f&1),d=f<2?1:3+(f>>1),h="a",m=Jy(r);for((m=="H"||m=="k")&&(d=0);d-- >0;)i+=h;for(;c-- >0;)i=m+i}else a==="J"?i+="H":i+=a}return i}function Jy(e){var r=e.hourCycle;if(r===void 0&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=e.language,o;i!=="root"&&(o=e.maximize().region);var a=du[o||""]||du[i||""]||du["".concat(i,"-001")]||du["001"];return a[0]}var nf,Ky=new RegExp("^".concat(rf.source,"*")),Zy=new RegExp("".concat(rf.source,"*$"));function ve(e,r){return{start:e,end:r}}var ev=!!String.prototype.startsWith&&"_a".startsWith("a",1),tv=!!String.fromCodePoint,rv=!!Object.fromEntries,nv=!!String.prototype.codePointAt,iv=!!String.prototype.trimStart,uv=!!String.prototype.trimEnd,ov=!!Number.isSafeInteger,sv=ov?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},of=!0;try{JD=tg("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),of=((nf=JD.exec("a"))===null||nf===void 0?void 0:nf[0])==="a"}catch{of=!1}var JD,KD=ev?function(r,i,o){return r.startsWith(i,o)}:function(r,i,o){return r.slice(o,o+i.length)===i},sf=tv?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var o="",a=r.length,f=0,c;a>f;){if(c=r[f++],c>1114111)throw RangeError(c+" is not a valid code point");o+=c<65536?String.fromCharCode(c):String.fromCharCode(((c-=65536)>>10)+55296,c%1024+56320)}return o},ZD=rv?Object.fromEntries:function(r){for(var i={},o=0,a=r;o<a.length;o++){var f=a[o],c=f[0],d=f[1];i[c]=d}return i},eg=nv?function(r,i){return r.codePointAt(i)}:function(r,i){var o=r.length;if(!(i<0||i>=o)){var a=r.charCodeAt(i),f;return a<55296||a>56319||i+1===o||(f=r.charCodeAt(i+1))<56320||f>57343?a:(a-55296<<10)+(f-56320)+65536}},av=iv?function(r){return r.trimStart()}:function(r){return r.replace(Ky,"")},lv=uv?function(r){return r.trimEnd()}:function(r){return r.replace(Zy,"")};function tg(e,r){return new RegExp(e,r)}var af;of?(uf=tg("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),af=function(r,i){var o;uf.lastIndex=i;var a=uf.exec(r);return(o=a[1])!==null&&o!==void 0?o:""}):af=function(r,i){for(var o=[];;){var a=eg(r,i);if(a===void 0||ng(a)||pv(a))break;o.push(a),i+=a>=65536?2:1}return sf.apply(void 0,o)};var uf,rg=function(){function e(r,i){i===void 0&&(i={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(r,i,o){for(var a=[];!this.isEOF();){var f=this.char();if(f===123){var c=this.parseArgument(r,o);if(c.err)return c;a.push(c.val)}else{if(f===125&&r>0)break;if(f===35&&(i==="plural"||i==="selectordinal")){var d=this.clonePosition();this.bump(),a.push({type:Be.pound,location:ve(d,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(De.UNMATCHED_CLOSING_TAG,ve(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&lf(this.peek()||0)){var c=this.parseTag(r,i);if(c.err)return c;a.push(c.val)}else{var c=this.parseLiteral(r,i);if(c.err)return c;a.push(c.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(r,i){var o=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Be.literal,value:"<".concat(a,"/>"),location:ve(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var f=this.parseMessage(r+1,i,!0);if(f.err)return f;var c=f.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!lf(this.char()))return this.error(De.INVALID_TAG,ve(d,this.clonePosition()));var h=this.clonePosition(),m=this.parseTagName();return a!==m?this.error(De.UNMATCHED_CLOSING_TAG,ve(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Be.tag,value:a,children:c,location:ve(o,this.clonePosition())},err:null}:this.error(De.INVALID_TAG,ve(d,this.clonePosition())))}else return this.error(De.UNCLOSED_TAG,ve(o,this.clonePosition()))}else return this.error(De.INVALID_TAG,ve(o,this.clonePosition()))},e.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&cv(this.char());)this.bump();return this.message.slice(r,this.offset())},e.prototype.parseLiteral=function(r,i){for(var o=this.clonePosition(),a="";;){var f=this.tryParseQuote(i);if(f){a+=f;continue}var c=this.tryParseUnquoted(r,i);if(c){a+=c;continue}var d=this.tryParseLeftAngleBracket();if(d){a+=d;continue}break}var h=ve(o,this.clonePosition());return{val:{type:Be.literal,value:a,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!fv(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(o);this.bump()}return sf.apply(void 0,i)},e.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(i==="plural"||i==="selectordinal")||o===125&&r>0?null:(this.bump(),sf(o))},e.prototype.parseArgument=function(r,i){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,ve(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(De.EMPTY_ARGUMENT,ve(o,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(De.MALFORMED_ARGUMENT,ve(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,ve(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Be.argument,value:a,location:ve(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,ve(o,this.clonePosition())):this.parseArgumentOptions(r,i,a,o);default:return this.error(De.MALFORMED_ARGUMENT,ve(o,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),o=af(this.message,i),a=i+o.length;this.bumpTo(a);var f=this.clonePosition(),c=ve(r,f);return{value:o,location:c}},e.prototype.parseArgumentOptions=function(r,i,o,a){var f,c=this.clonePosition(),d=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(d){case"":return this.error(De.EXPECT_ARGUMENT_TYPE,ve(c,h));case"number":case"date":case"time":{this.bumpSpace();var m=null;if(this.bumpIf(",")){this.bumpSpace();var v=this.clonePosition(),C=this.parseSimpleArgStyleIfPossible();if(C.err)return C;var x=lv(C.val);if(x.length===0)return this.error(De.EXPECT_ARGUMENT_STYLE,ve(this.clonePosition(),this.clonePosition()));var O=ve(v,this.clonePosition());m={style:x,styleLocation:O}}var R=this.tryParseArgumentClose(a);if(R.err)return R;var k=ve(a,this.clonePosition());if(m&&KD(m?.style,"::",0)){var P=av(m.style.slice(2));if(d==="number"){var C=this.parseNumberSkeletonFromString(P,m.styleLocation);return C.err?C:{val:{type:Be.number,value:o,location:k,style:C.val},err:null}}else{if(P.length===0)return this.error(De.EXPECT_DATE_TIME_SKELETON,k);var B=P;this.locale&&(B=qD(P,this.locale));var x={type:gn.dateTime,pattern:B,location:m.styleLocation,parsedOptions:this.shouldParseSkeletons?MD(B):{}},j=d==="date"?Be.date:Be.time;return{val:{type:j,value:o,location:k,style:x},err:null}}}return{val:{type:d==="number"?Be.number:d==="date"?Be.date:Be.time,value:o,location:k,style:(f=m?.style)!==null&&f!==void 0?f:null},err:null}}case"plural":case"selectordinal":case"select":{var J=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(De.EXPECT_SELECT_ARGUMENT_OPTIONS,ve(J,ye({},J)));this.bumpSpace();var z=this.parseIdentifierIfPossible(),Y=0;if(d!=="select"&&z.value==="offset"){if(!this.bumpIf(":"))return this.error(De.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ve(this.clonePosition(),this.clonePosition()));this.bumpSpace();var C=this.tryParseDecimalInteger(De.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,De.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(C.err)return C;this.bumpSpace(),z=this.parseIdentifierIfPossible(),Y=C.val}var H=this.tryParsePluralOrSelectOptions(r,d,i,z);if(H.err)return H;var R=this.tryParseArgumentClose(a);if(R.err)return R;var ne=ve(a,this.clonePosition());return d==="select"?{val:{type:Be.select,value:o,options:ZD(H.val),location:ne},err:null}:{val:{type:Be.plural,value:o,options:ZD(H.val),offset:Y,pluralType:d==="plural"?"cardinal":"ordinal",location:ne},err:null}}default:return this.error(De.INVALID_ARGUMENT_TYPE,ve(c,h))}},e.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,ve(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(De.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ve(a,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(r,i){var o=[];try{o=VD(r)}catch{return this.error(De.INVALID_NUMBER_SKELETON,i)}return{val:{type:gn.number,tokens:o,location:i,parsedOptions:this.shouldParseSkeletons?QD(o):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(r,i,o,a){for(var f,c=!1,d=[],h=new Set,m=a.value,v=a.location;;){if(m.length===0){var C=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var x=this.tryParseDecimalInteger(De.EXPECT_PLURAL_ARGUMENT_SELECTOR,De.INVALID_PLURAL_ARGUMENT_SELECTOR);if(x.err)return x;v=ve(C,this.clonePosition()),m=this.message.slice(C.offset,this.offset())}else break}if(h.has(m))return this.error(i==="select"?De.DUPLICATE_SELECT_ARGUMENT_SELECTOR:De.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,v);m==="other"&&(c=!0),this.bumpSpace();var O=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?De.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:De.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ve(this.clonePosition(),this.clonePosition()));var R=this.parseMessage(r+1,i,o);if(R.err)return R;var k=this.tryParseArgumentClose(O);if(k.err)return k;d.push([m,{value:R.val,location:ve(O,this.clonePosition())}]),h.add(m),this.bumpSpace(),f=this.parseIdentifierIfPossible(),m=f.value,v=f.location}return d.length===0?this.error(i==="select"?De.EXPECT_SELECT_ARGUMENT_SELECTOR:De.EXPECT_PLURAL_ARGUMENT_SELECTOR,ve(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!c?this.error(De.MISSING_OTHER_CLAUSE,ve(this.clonePosition(),this.clonePosition())):{val:d,err:null}},e.prototype.tryParseDecimalInteger=function(r,i){var o=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var f=!1,c=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)f=!0,c=c*10+(d-48),this.bump();else break}var h=ve(a,this.clonePosition());return f?(c*=o,sv(c)?{val:c,err:null}:this.error(i,h)):this.error(r,h)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=eg(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},e.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},e.prototype.bumpIf=function(r){if(KD(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(r){var i=this.offset(),o=this.message.indexOf(r,i);return o>=0?(this.bumpTo(o),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ng(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),o=this.message.charCodeAt(i+(r>=65536?2:1));return o??null},e}();function lf(e){return e>=97&&e<=122||e>=65&&e<=90}function fv(e){return lf(e)||e===47}function cv(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ng(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function pv(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ff(e){e.forEach(function(r){if(delete r.location,ps(r)||ds(r))for(var i in r.options)delete r.options[i].location,ff(r.options[i].value);else ls(r)&&ms(r.style)||(fs(r)||cs(r))&&pu(r.style)?delete r.style.location:hs(r)&&ff(r.children)})}function ig(e,r){r===void 0&&(r={}),r=ye({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new rg(e,r).parse();if(i.err){var o=SyntaxError(De[i.err.kind]);throw o.location=i.err.location,o.originalMessage=i.err.message,o}return r?.captureLocation||ff(i.val),i.val}g();function Ds(e,r){var i=r&&r.cache?r.cache:Ev,o=r&&r.serializer?r.serializer:gv,a=r&&r.strategy?r.strategy:hv;return a(e,{cache:i,serializer:o})}function dv(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ug(e,r,i,o){var a=dv(o)?o:i(o),f=r.get(a);return typeof f>"u"&&(f=e.call(this,o),r.set(a,f)),f}function og(e,r,i){var o=Array.prototype.slice.call(arguments,3),a=i(o),f=r.get(a);return typeof f>"u"&&(f=e.apply(this,o),r.set(a,f)),f}function cf(e,r,i,o,a){return i.bind(r,e,o,a)}function hv(e,r){var i=e.length===1?ug:og;return cf(e,this,i,r.cache.create(),r.serializer)}function mv(e,r){return cf(e,this,og,r.cache.create(),r.serializer)}function Dv(e,r){return cf(e,this,ug,r.cache.create(),r.serializer)}var gv=function(){return JSON.stringify(arguments)};function pf(){this.cache=Object.create(null)}pf.prototype.get=function(e){return this.cache[e]};pf.prototype.set=function(e,r){this.cache[e]=r};var Ev={create:function(){return new pf}},gs={variadic:mv,monadic:Dv};g();g();zi();var En;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(En||(En={}));var hu=function(e){Wi(r,e);function r(i,o,a){var f=e.call(this,i)||this;return f.code=o,f.originalMessage=a,f}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error);var df=function(e){Wi(r,e);function r(i,o,a,f){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(o,'". Options are "').concat(Object.keys(a).join('", "'),'"'),En.INVALID_VALUE,f)||this}return r}(hu);var sg=function(e){Wi(r,e);function r(i,o,a){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(o),En.INVALID_VALUE,a)||this}return r}(hu);var ag=function(e){Wi(r,e);function r(i,o){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(o,'"'),En.MISSING_VALUE,o)||this}return r}(hu);var gt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(gt||(gt={}));function yv(e){return e.length<2?e:e.reduce(function(r,i){var o=r[r.length-1];return!o||o.type!==gt.literal||i.type!==gt.literal?r.push(i):o.value+=i.value,r},[])}function vv(e){return typeof e=="function"}function mu(e,r,i,o,a,f,c){if(e.length===1&&tf(e[0]))return[{type:gt.literal,value:e[0].value}];for(var d=[],h=0,m=e;h<m.length;h++){var v=m[h];if(tf(v)){d.push({type:gt.literal,value:v.value});continue}if(HD(v)){typeof f=="number"&&d.push({type:gt.literal,value:i.getNumberFormat(r).format(f)});continue}var C=v.value;if(!(a&&C in a))throw new ag(C,c);var x=a[C];if(UD(v)){(!x||typeof x=="string"||typeof x=="number")&&(x=typeof x=="string"||typeof x=="number"?String(x):""),d.push({type:typeof x=="string"?gt.literal:gt.object,value:x});continue}if(fs(v)){var O=typeof v.style=="string"?o.date[v.style]:pu(v.style)?v.style.parsedOptions:void 0;d.push({type:gt.literal,value:i.getDateTimeFormat(r,O).format(x)});continue}if(cs(v)){var O=typeof v.style=="string"?o.time[v.style]:pu(v.style)?v.style.parsedOptions:o.time.medium;d.push({type:gt.literal,value:i.getDateTimeFormat(r,O).format(x)});continue}if(ls(v)){var O=typeof v.style=="string"?o.number[v.style]:ms(v.style)?v.style.parsedOptions:void 0;O&&O.scale&&(x=x*(O.scale||1)),d.push({type:gt.literal,value:i.getNumberFormat(r,O).format(x)});continue}if(hs(v)){var R=v.children,k=v.value,P=a[k];if(!vv(P))throw new sg(k,"function",c);var B=mu(R,r,i,o,a,f),j=P(B.map(function(Y){return Y.value}));Array.isArray(j)||(j=[j]),d.push.apply(d,j.map(function(Y){return{type:typeof Y=="string"?gt.literal:gt.object,value:Y}}))}if(ps(v)){var J=v.options[x]||v.options.other;if(!J)throw new df(v.value,x,Object.keys(v.options),c);d.push.apply(d,mu(J.value,r,i,o,a));continue}if(ds(v)){var J=v.options["=".concat(x)];if(!J){if(!Intl.PluralRules)throw new hu(`Intl.PluralRules is not available in this environment.
|
|
45
45
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
46
46
|
`,En.MISSING_INTL_API,c);var z=i.getPluralRules(r,{type:v.pluralType}).select(x-(v.offset||0));J=v.options[z]||v.options.other}if(!J)throw new df(v.value,x,Object.keys(v.options),c);d.push.apply(d,mu(J.value,r,i,o,a,x-(v.offset||0)));continue}}return yv(d)}function xv(e,r){return r?ye(ye(ye({},e||{}),r||{}),Object.keys(e).reduce(function(i,o){return i[o]=ye(ye({},e[o]),r[o]||{}),i},{})):e}function Cv(e,r){return r?Object.keys(e).reduce(function(i,o){return i[o]=xv(e[o],r[o]),i},ye({},e)):e}function hf(e){return{create:function(){return{get:function(r){return e[r]},set:function(r,i){e[r]=i}}}}}function Fv(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ds(function(){for(var r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new((r=Intl.NumberFormat).bind.apply(r,yo([void 0],i,!1)))},{cache:hf(e.number),strategy:gs.variadic}),getDateTimeFormat:Ds(function(){for(var r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new((r=Intl.DateTimeFormat).bind.apply(r,yo([void 0],i,!1)))},{cache:hf(e.dateTime),strategy:gs.variadic}),getPluralRules:Ds(function(){for(var r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new((r=Intl.PluralRules).bind.apply(r,yo([void 0],i,!1)))},{cache:hf(e.pluralRules),strategy:gs.variadic})}}var lg=function(){function e(r,i,o,a){var f=this;if(i===void 0&&(i=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var v=f.formatToParts(m);if(v.length===1)return v[0].value;var C=v.reduce(function(x,O){return!x.length||O.type!==gt.literal||typeof x[x.length-1]!="string"?x.push(O.value):x[x.length-1]+=O.value,x},[]);return C.length<=1?C[0]||"":C},this.formatToParts=function(m){return mu(f.ast,f.locales,f.formatters,f.formats,m,void 0,f.message)},this.resolvedOptions=function(){var m;return{locale:((m=f.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(f.locales)[0]}},this.getAst=function(){return f.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),typeof r=="string"){if(this.message=r,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=a||{},d=c.formatters,h=sp(c,["formatters"]);this.ast=e.__parse(r,ye(ye({},h),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Cv(e.formats,o),this.formatters=a&&a.formatters||Fv(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(r){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(r);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},e.__parse=ig,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var mf=lg;function fg(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,o)}return i}function cg(e){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?fg(Object(i),!0).forEach(function(o){Sv(e,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):fg(Object(i)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o))})}return e}function Sv(e,r,i){return r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function Tv(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function pg(e,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Nv(e,r,i){return r&&pg(e.prototype,r),i&&pg(e,i),e}function Av(){return{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(r,i,o,a){return o},parseLngForICU:function(r){return r}}}var dg=function(){function e(r){Tv(this,e),this.type="i18nFormat",this.mem={},this.init(null,r)}return Nv(e,[{key:"init",value:function(i,o){var a=this,f=i&&i.options&&i.options.i18nFormat||{};if(this.options=kD(f,o,this.options||{},Av()),this.formats=this.options.formats,i){var c=this.options,d=c.bindI18n,h=c.bindI18nStore,m=c.memoize;i.IntlMessageFormat=mf,i.ICU=this,m&&(d&&i.on(d,function(){return a.clearCache()}),h&&i.store.on(h,function(){return a.clearCache()}))}}},{key:"addUserDefinedFormats",value:function(i){this.formats=this.formats?cg(cg({},this.formats),i):i}},{key:"parse",value:function(i,o,a,f,c,d){var h=d&&d.resolved&&d.resolved.res,m=this.options.memoize&&"".concat(a,".").concat(f,".").concat(c.replace(/\./g,"###")),v;this.options.memoize&&(v=BD(this.mem,m));try{if(!v){var C=this.options.parseLngForICU(a);v=new mf(i,C,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!d||h)&&RD(this.mem,m,v)}return v.format(o)}catch(x){return this.options.parseErrorHandler(x,c,i,o)}}},{key:"addLookupKeys",value:function(i,o,a,f,c){return i}},{key:"clearCache",value:function(){this.mem={}}}]),e}();dg.type="i18nFormat";var hg=dg;g();var Iv={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,r){console&&console[e]&&console[e].apply(console,r)}},gf=class e{constructor(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(r,i)}init(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=r||Iv,this.options=i,this.debug=i.debug}log(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return this.forward(i,"log","",!0)}warn(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return this.forward(i,"warn","",!0)}error(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return this.forward(i,"error","")}deprecate(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(r,i,o,a){return a&&!this.debug?null:(typeof r[0]=="string"&&(r[0]=`${o}${this.prefix} ${r[0]}`),this.logger[i](r))}create(r){return new e(this.logger,{prefix:`${this.prefix}:${r}:`,...this.options})}clone(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new e(this.logger,r)}},yr=new gf,ci=class{constructor(){this.observers={}}on(r,i){return r.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);let a=this.observers[o].get(i)||0;this.observers[o].set(i,a+1)}),this}off(r,i){if(this.observers[r]){if(!i){delete this.observers[r];return}this.observers[r].delete(i)}}emit(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];this.observers[r]&&Array.from(this.observers[r].entries()).forEach(c=>{let[d,h]=c;for(let m=0;m<h;m++)d(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(c=>{let[d,h]=c;for(let m=0;m<h;m++)d.apply(d,[r,...o])})}};function Du(){let e,r,i=new Promise((o,a)=>{e=o,r=a});return i.resolve=e,i.reject=r,i}function mg(e){return e==null?"":""+e}function _v(e,r,i){e.forEach(o=>{r[o]&&(i[o]=r[o])})}var Lv=/###/g;function gu(e,r,i){function o(d){return d&&d.indexOf("###")>-1?d.replace(Lv,"."):d}function a(){return!e||typeof e=="string"}let f=typeof r!="string"?r:r.split("."),c=0;for(;c<f.length-1;){if(a())return{};let d=o(f[c]);!e[d]&&i&&(e[d]=new i),Object.prototype.hasOwnProperty.call(e,d)?e=e[d]:e={},++c}return a()?{}:{obj:e,k:o(f[c])}}function Dg(e,r,i){let{obj:o,k:a}=gu(e,r,Object);if(o!==void 0||r.length===1){o[a]=i;return}let f=r[r.length-1],c=r.slice(0,r.length-1),d=gu(e,c,Object);for(;d.obj===void 0&&c.length;)f=`${c[c.length-1]}.${f}`,c=c.slice(0,c.length-1),d=gu(e,c,Object),d&&d.obj&&typeof d.obj[`${d.k}.${f}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${f}`]=i}function wv(e,r,i,o){let{obj:a,k:f}=gu(e,r,Object);a[f]=a[f]||[],o&&(a[f]=a[f].concat(i)),o||a[f].push(i)}function ys(e,r){let{obj:i,k:o}=gu(e,r);if(i)return i[o]}function Ov(e,r,i){let o=ys(e,i);return o!==void 0?o:ys(r,i)}function Cg(e,r,i){for(let o in r)o!=="__proto__"&&o!=="constructor"&&(o in e?typeof e[o]=="string"||e[o]instanceof String||typeof r[o]=="string"||r[o]instanceof String?i&&(e[o]=r[o]):Cg(e[o],r[o],i):e[o]=r[o]);return e}function li(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Pv={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Rv(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,r=>Pv[r]):e}var Ef=class{constructor(r){this.capacity=r,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(r){let i=this.regExpMap.get(r);if(i!==void 0)return i;let o=new RegExp(r);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(r,o),this.regExpQueue.push(r),o}},Bv=[" ",",","?","!",";"],bv=new Ef(20);function kv(e,r,i){r=r||"",i=i||"";let o=Bv.filter(c=>r.indexOf(c)<0&&i.indexOf(c)<0);if(o.length===0)return!0;let a=bv.getRegExp(`(${o.map(c=>c==="?"?"\\?":c).join("|")})`),f=!a.test(e);if(!f){let c=e.indexOf(i);c>0&&!a.test(e.substring(0,c))&&(f=!0)}return f}function yf(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[r])return e[r];let o=r.split(i),a=e;for(let f=0;f<o.length;){if(!a||typeof a!="object")return;let c,d="";for(let h=f;h<o.length;++h)if(h!==f&&(d+=i),d+=o[h],c=a[d],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&h<o.length-1)continue;f+=h-f+1;break}a=c}return a}function vs(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}var xs=class extends ci{constructor(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=r||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}removeNamespaces(r){let i=this.options.ns.indexOf(r);i>-1&&this.options.ns.splice(i,1)}getResource(r,i,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,d;r.indexOf(".")>-1?d=r.split("."):(d=[r,i],o&&(Array.isArray(o)?d.push(...o):typeof o=="string"&&f?d.push(...o.split(f)):d.push(o)));let h=ys(this.data,d);return!h&&!i&&!o&&r.indexOf(".")>-1&&(r=d[0],i=d[1],o=d.slice(2).join(".")),h||!c||typeof o!="string"?h:yf(this.data&&this.data[r]&&this.data[r][i],o,f)}addResource(r,i,o,a){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,d=[r,i];o&&(d=d.concat(c?o.split(c):o)),r.indexOf(".")>-1&&(d=r.split("."),a=i,i=d[1]),this.addNamespaces(i),Dg(this.data,d,a),f.silent||this.emit("added",r,i,o,a)}addResources(r,i,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let f in o)(typeof o[f]=="string"||Array.isArray(o[f]))&&this.addResource(r,i,f,o[f],{silent:!0});a.silent||this.emit("added",r,i,o)}addResourceBundle(r,i,o,a,f){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},d=[r,i];r.indexOf(".")>-1&&(d=r.split("."),a=o,o=i,i=d[1]),this.addNamespaces(i);let h=ys(this.data,d)||{};c.skipCopy||(o=JSON.parse(JSON.stringify(o))),a?Cg(h,o,f):h={...h,...o},Dg(this.data,d,h),c.silent||this.emit("added",r,i,o)}removeResourceBundle(r,i){this.hasResourceBundle(r,i)&&delete this.data[r][i],this.removeNamespaces(i),this.emit("removed",r,i)}hasResourceBundle(r,i){return this.getResource(r,i)!==void 0}getResourceBundle(r,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(r,i)}:this.getResource(r,i)}getDataByLanguage(r){return this.data[r]}hasLanguageSomeTranslations(r){let i=this.getDataByLanguage(r);return!!(i&&Object.keys(i)||[]).find(a=>i[a]&&Object.keys(i[a]).length>0)}toJSON(){return this.data}},Fg={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,r,i,o,a){return e.forEach(f=>{this.processors[f]&&(r=this.processors[f].process(r,i,o,a))}),r}},gg={},Cs=class e extends ci{constructor(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),_v(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=yr.create("translator")}changeLanguage(r){r&&(this.language=r)}exists(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;let o=this.resolve(r,i);return o&&o.res!==void 0}extractFromKey(r,i){let o=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");let a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,f=i.ns||this.options.defaultNS||[],c=o&&r.indexOf(o)>-1,d=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!kv(r,o,a);if(c&&!d){let h=r.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:r,namespaces:f};let m=r.split(o);(o!==a||o===a&&this.options.ns.indexOf(m[0])>-1)&&(f=m.shift()),r=m.join(a)}return typeof f=="string"&&(f=[f]),{key:r,namespaces:f}}translate(r,i,o){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);let a=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,f=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:c,namespaces:d}=this.extractFromKey(r[r.length-1],i),h=d[d.length-1],m=i.lng||this.language,v=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(v){let z=i.nsSeparator||this.options.nsSeparator;return a?{res:`${h}${z}${c}`,usedKey:c,exactUsedKey:c,usedLng:m,usedNS:h,usedParams:this.getUsedParamsDetails(i)}:`${h}${z}${c}`}return a?{res:c,usedKey:c,exactUsedKey:c,usedLng:m,usedNS:h,usedParams:this.getUsedParamsDetails(i)}:c}let C=this.resolve(r,i),x=C&&C.res,O=C&&C.usedKey||c,R=C&&C.exactUsedKey||c,k=Object.prototype.toString.apply(x),P=["[object Number]","[object Function]","[object RegExp]"],B=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject;if(j&&x&&(typeof x!="string"&&typeof x!="boolean"&&typeof x!="number")&&P.indexOf(k)<0&&!(typeof B=="string"&&Array.isArray(x))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,x,{...i,ns:d}):`key '${c} (${this.language})' returned an object instead of string.`;return a?(C.res=z,C.usedParams=this.getUsedParamsDetails(i),C):z}if(f){let z=Array.isArray(x),Y=z?[]:{},H=z?R:O;for(let ne in x)if(Object.prototype.hasOwnProperty.call(x,ne)){let Ge=`${H}${f}${ne}`;Y[ne]=this.translate(Ge,{...i,joinArrays:!1,ns:d}),Y[ne]===Ge&&(Y[ne]=x[ne])}x=Y}}else if(j&&typeof B=="string"&&Array.isArray(x))x=x.join(B),x&&(x=this.extendTranslation(x,r,i,o));else{let z=!1,Y=!1,H=i.count!==void 0&&typeof i.count!="string",ne=e.hasDefaultValue(i),Ge=H?this.pluralResolver.getSuffix(m,i.count,i):"",we=i.ordinal&&H?this.pluralResolver.getSuffix(m,i.count,{ordinal:!1}):"",_e=H&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),Ve=_e&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${Ge}`]||i[`defaultValue${we}`]||i.defaultValue;!this.isValidLookup(x)&&ne&&(z=!0,x=Ve),this.isValidLookup(x)||(Y=!0,x=c);let st=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:x,Et=ne&&Ve!==x&&this.options.updateMissing;if(Y||z||Et){if(this.logger.log(Et?"updateKey":"missingKey",m,h,c,Et?Ve:x),f){let qe=this.resolve(c,{...i,keySeparator:!1});qe&&qe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ae=[],Rt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Rt&&Rt[0])for(let qe=0;qe<Rt.length;qe++)Ae.push(Rt[qe]);else this.options.saveMissingTo==="all"?Ae=this.languageUtils.toResolveHierarchy(i.lng||this.language):Ae.push(i.lng||this.language);let Kr=(qe,je,Vt)=>{let vr=ne&&Vt!==x?Vt:st;this.options.missingKeyHandler?this.options.missingKeyHandler(qe,h,je,vr,Et,i):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(qe,h,je,vr,Et,i),this.emit("missingKey",qe,h,je,x)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?Ae.forEach(qe=>{let je=this.pluralResolver.getSuffixes(qe,i);_e&&i[`defaultValue${this.options.pluralSeparator}zero`]&&je.indexOf(`${this.options.pluralSeparator}zero`)<0&&je.push(`${this.options.pluralSeparator}zero`),je.forEach(Vt=>{Kr([qe],c+Vt,i[`defaultValue${Vt}`]||Ve)})}):Kr(Ae,c,Ve))}x=this.extendTranslation(x,r,i,C,o),Y&&x===c&&this.options.appendNamespaceToMissingKey&&(x=`${h}:${c}`),(Y||z)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?x=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}:${c}`:c,z?x:void 0):x=this.options.parseMissingKeyHandler(x))}return a?(C.res=x,C.usedParams=this.getUsedParamsDetails(i),C):x}extendTranslation(r,i,o,a,f){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});let m=typeof r=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),v;if(m){let x=r.match(this.interpolator.nestingRegexp);v=x&&x.length}let C=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(C={...this.options.interpolation.defaultVariables,...C}),r=this.interpolator.interpolate(r,C,o.lng||this.language,o),m){let x=r.match(this.interpolator.nestingRegexp),O=x&&x.length;v<O&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(o.lng=a.usedLng),o.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var x=arguments.length,O=new Array(x),R=0;R<x;R++)O[R]=arguments[R];return f&&f[0]===O[0]&&!o.context?(c.logger.warn(`It seems you are nesting recursively key: ${O[0]} in key: ${i[0]}`),null):c.translate(...O,i)},o)),o.interpolation&&this.interpolator.reset()}let d=o.postProcess||this.options.postProcess,h=typeof d=="string"?[d]:d;return r!=null&&h&&h.length&&o.applyPostProcessor!==!1&&(r=Fg.handle(h,r,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),r}resolve(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,a,f,c,d;return typeof r=="string"&&(r=[r]),r.forEach(h=>{if(this.isValidLookup(o))return;let m=this.extractFromKey(h,i),v=m.key;a=v;let C=m.namespaces;this.options.fallbackNS&&(C=C.concat(this.options.fallbackNS));let x=i.count!==void 0&&typeof i.count!="string",O=x&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),R=i.context!==void 0&&(typeof i.context=="string"||typeof i.context=="number")&&i.context!=="",k=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);C.forEach(P=>{this.isValidLookup(o)||(d=P,!gg[`${k[0]}-${P}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(d)&&(gg[`${k[0]}-${P}`]=!0,this.logger.warn(`key "${a}" for languages "${k.join(", ")}" won't get resolved as namespace "${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!!!")),k.forEach(B=>{if(this.isValidLookup(o))return;c=B;let j=[v];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(j,v,B,P,i);else{let z;x&&(z=this.pluralResolver.getSuffix(B,i.count,i));let Y=`${this.options.pluralSeparator}zero`,H=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(x&&(j.push(v+z),i.ordinal&&z.indexOf(H)===0&&j.push(v+z.replace(H,this.options.pluralSeparator)),O&&j.push(v+Y)),R){let ne=`${v}${this.options.contextSeparator}${i.context}`;j.push(ne),x&&(j.push(ne+z),i.ordinal&&z.indexOf(H)===0&&j.push(ne+z.replace(H,this.options.pluralSeparator)),O&&j.push(ne+Y))}}let J;for(;J=j.pop();)this.isValidLookup(o)||(f=J,o=this.getResource(B,P,J,i))}))})}),{res:o,usedKey:a,exactUsedKey:f,usedLng:c,usedNS:d}}isValidLookup(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}getResource(r,i,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,i,o,a):this.resourceStore.getResource(r,i,o,a)}getUsedParamsDetails(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=r.replace&&typeof r.replace!="string",a=o?r.replace:r;if(o&&typeof r.count<"u"&&(a.count=r.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!o){a={...a};for(let f of i)delete a[f]}return a}static hasDefaultValue(r){let i="defaultValue";for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&i===o.substring(0,i.length)&&r[o]!==void 0)return!0;return!1}};function Df(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Fs=class{constructor(r){this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yr.create("languageUtils")}getScriptPartFromCode(r){if(r=vs(r),!r||r.indexOf("-")<0)return null;let i=r.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(r){if(r=vs(r),!r||r.indexOf("-")<0)return r;let i=r.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(r){if(typeof r=="string"&&r.indexOf("-")>-1){let i=["hans","hant","latn","cyrl","cans","mong","arab"],o=r.split("-");return this.options.lowerCaseLng?o=o.map(a=>a.toLowerCase()):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),i.indexOf(o[1].toLowerCase())>-1&&(o[1]=Df(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),i.indexOf(o[1].toLowerCase())>-1&&(o[1]=Df(o[1].toLowerCase())),i.indexOf(o[2].toLowerCase())>-1&&(o[2]=Df(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}isSupportedCode(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}getBestMatchFromCodes(r){if(!r)return null;let i;return r.forEach(o=>{if(i)return;let a=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(a))&&(i=a)}),!i&&this.options.supportedLngs&&r.forEach(o=>{if(i)return;let a=this.getLanguagePartFromCode(o);if(this.isSupportedCode(a))return i=a;i=this.options.supportedLngs.find(f=>{if(f===a)return f;if(!(f.indexOf("-")<0&&a.indexOf("-")<0)&&(f.indexOf("-")>0&&a.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===a||f.indexOf(a)===0&&a.length>1))return f})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(r,i){if(!r)return[];if(typeof r=="function"&&(r=r(i)),typeof r=="string"&&(r=[r]),Array.isArray(r))return r;if(!i)return r.default||[];let o=r[i];return o||(o=r[this.getScriptPartFromCode(i)]),o||(o=r[this.formatLanguageCode(i)]),o||(o=r[this.getLanguagePartFromCode(i)]),o||(o=r.default),o||[]}toResolveHierarchy(r,i){let o=this.getFallbackCodes(i||this.options.fallbackLng||[],r),a=[],f=c=>{c&&(this.isSupportedCode(c)?a.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return typeof r=="string"&&(r.indexOf("-")>-1||r.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(r))):typeof r=="string"&&f(this.formatLanguageCode(r)),o.forEach(c=>{a.indexOf(c)<0&&f(this.formatLanguageCode(c))}),a}},Uv=[{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}],Hv={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return 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 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 e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},Mv=["v1","v2","v3"],Gv=["v4"],Eg={zero:0,one:1,two:2,few:3,many:4,other:5};function jv(){let e={};return Uv.forEach(r=>{r.lngs.forEach(i=>{e[i]={numbers:r.nr,plurals:Hv[r.fc]}})}),e}var vf=class{constructor(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=r,this.options=i,this.logger=yr.create("pluralResolver"),(!this.options.compatibilityJSON||Gv.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=jv()}addRule(r,i){this.rules[r]=i}getRule(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(vs(r==="dev"?"en":r),{type:i.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}needsPlural(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(r,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,o).map(a=>`${i}${a}`)}getSuffixes(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((a,f)=>Eg[a]-Eg[f]).map(a=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a}`):o.numbers.map(a=>this.getSuffix(r,a,i)):[]}getSuffix(r,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(r,o);return a?this.shouldUseIntlApi()?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${a.select(i)}`:this.getSuffixRetroCompatible(a,i):(this.logger.warn(`no plural rule found for: ${r}`),"")}getSuffixRetroCompatible(r,i){let o=r.noAbs?r.plurals(i):r.plurals(Math.abs(i)),a=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));let f=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:f():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?f():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!Mv.includes(this.options.compatibilityJSON)}};function yg(e,r,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,f=Ov(e,r,i);return!f&&a&&typeof i=="string"&&(f=yf(e,i,o),f===void 0&&(f=yf(r,i,o))),f}var xf=class{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=yr.create("interpolator"),this.options=r,this.format=r.interpolation&&r.interpolation.format||(i=>i),this.init(r)}init(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});let{escape:i,escapeValue:o,useRawValueToEscape:a,prefix:f,prefixEscaped:c,suffix:d,suffixEscaped:h,formatSeparator:m,unescapeSuffix:v,unescapePrefix:C,nestingPrefix:x,nestingPrefixEscaped:O,nestingSuffix:R,nestingSuffixEscaped:k,nestingOptionsSeparator:P,maxReplaces:B,alwaysFormat:j}=r.interpolation;this.escape=i!==void 0?i:Rv,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=f?li(f):c||"{{",this.suffix=d?li(d):h||"}}",this.formatSeparator=m||",",this.unescapePrefix=v?"":C||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=x?li(x):O||li("$t("),this.nestingSuffix=R?li(R):k||li(")"),this.nestingOptionsSeparator=P||",",this.maxReplaces=B||1e3,this.alwaysFormat=j!==void 0?j:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let r=(i,o)=>i&&i.source===o?(i.lastIndex=0,i):new RegExp(o,"g");this.regexp=r(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=r(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=r(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(r,i,o,a){let f,c,d,h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function m(R){return R.replace(/\$/g,"$$$$")}let v=R=>{if(R.indexOf(this.formatSeparator)<0){let j=yg(i,h,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,o,{...a,...i,interpolationkey:R}):j}let k=R.split(this.formatSeparator),P=k.shift().trim(),B=k.join(this.formatSeparator).trim();return this.format(yg(i,h,P,this.options.keySeparator,this.options.ignoreJSONStructure),B,o,{...a,...i,interpolationkey:P})};this.resetRegExp();let C=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,x=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>m(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?m(this.escape(R)):m(R)}].forEach(R=>{for(d=0;f=R.regex.exec(r);){let k=f[1].trim();if(c=v(k),c===void 0)if(typeof C=="function"){let B=C(r,f,a);c=typeof B=="string"?B:""}else if(a&&Object.prototype.hasOwnProperty.call(a,k))c="";else if(x){c=f[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${r}`),c="";else typeof c!="string"&&!this.useRawValueToEscape&&(c=mg(c));let P=R.safeValue(c);if(r=r.replace(f[0],P),x?(R.regex.lastIndex+=c.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),r}nest(r,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,f,c;function d(h,m){let v=this.nestingOptionsSeparator;if(h.indexOf(v)<0)return h;let C=h.split(new RegExp(`${v}[ ]*{`)),x=`{${C[1]}`;h=C[0],x=this.interpolate(x,c);let O=x.match(/'/g),R=x.match(/"/g);(O&&O.length%2===0&&!R||R.length%2!==0)&&(x=x.replace(/'/g,'"'));try{c=JSON.parse(x),m&&(c={...m,...c})}catch(k){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,k),`${h}${v}${x}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,h}for(;a=this.nestingRegexp.exec(r);){let h=[];c={...o},c=c.replace&&typeof c.replace!="string"?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;let m=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){let v=a[1].split(this.formatSeparator).map(C=>C.trim());a[1]=v.shift(),h=v,m=!0}if(f=i(d.call(this,a[1].trim(),c),c),f&&a[0]===r&&typeof f!="string")return f;typeof f!="string"&&(f=mg(f)),f||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${r}`),f=""),m&&(f=h.reduce((v,C)=>this.format(v,C,o.lng,{...o,interpolationkey:a[1].trim()}),f.trim())),r=r.replace(a[0],f),this.regexp.lastIndex=0}return r}};function Wv(e){let r=e.toLowerCase().trim(),i={};if(e.indexOf("(")>-1){let o=e.split("(");r=o[0].toLowerCase().trim();let a=o[1].substring(0,o[1].length-1);r==="currency"&&a.indexOf(":")<0?i.currency||(i.currency=a.trim()):r==="relativetime"&&a.indexOf(":")<0?i.range||(i.range=a.trim()):a.split(";").forEach(c=>{if(c){let[d,...h]=c.split(":"),m=h.join(":").trim().replace(/^'+|'+$/g,""),v=d.trim();i[v]||(i[v]=m),m==="false"&&(i[v]=!1),m==="true"&&(i[v]=!0),isNaN(m)||(i[v]=parseInt(m,10))}})}return{formatName:r,formatOptions:i}}function fi(e){let r={};return function(o,a,f){let c=a+JSON.stringify(f),d=r[c];return d||(d=e(vs(a),f),r[c]=d),d(o)}}var Cf=class{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=yr.create("formatter"),this.options=r,this.formats={number:fi((i,o)=>{let a=new Intl.NumberFormat(i,{...o});return f=>a.format(f)}),currency:fi((i,o)=>{let a=new Intl.NumberFormat(i,{...o,style:"currency"});return f=>a.format(f)}),datetime:fi((i,o)=>{let a=new Intl.DateTimeFormat(i,{...o});return f=>a.format(f)}),relativetime:fi((i,o)=>{let a=new Intl.RelativeTimeFormat(i,{...o});return f=>a.format(f,o.range||"day")}),list:fi((i,o)=>{let a=new Intl.ListFormat(i,{...o});return f=>a.format(f)})},this.init(r)}init(r){let o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}add(r,i){this.formats[r.toLowerCase().trim()]=i}addCached(r,i){this.formats[r.toLowerCase().trim()]=fi(i)}format(r,i,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return i.split(this.formatSeparator).reduce((d,h)=>{let{formatName:m,formatOptions:v}=Wv(h);if(this.formats[m]){let C=d;try{let x=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},O=x.locale||x.lng||a.locale||a.lng||o;C=this.formats[m](d,O,{...v,...a,...x})}catch(x){this.logger.warn(x)}return C}else this.logger.warn(`there was no format function for ${m}`);return d},r)}};function zv(e,r){e.pending[r]!==void 0&&(delete e.pending[r],e.pendingCount--)}var Ff=class extends ci{constructor(r,i,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=r,this.store=i,this.services=o,this.languageUtils=o.languageUtils,this.options=a,this.logger=yr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,a.backend,a)}queueLoad(r,i,o,a){let f={},c={},d={},h={};return r.forEach(m=>{let v=!0;i.forEach(C=>{let x=`${m}|${C}`;!o.reload&&this.store.hasResourceBundle(m,C)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?c[x]===void 0&&(c[x]=!0):(this.state[x]=1,v=!1,c[x]===void 0&&(c[x]=!0),f[x]===void 0&&(f[x]=!0),h[C]===void 0&&(h[C]=!0)))}),v||(d[m]=!0)}),(Object.keys(f).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(f),pending:Object.keys(c),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(h)}}loaded(r,i,o){let a=r.split("|"),f=a[0],c=a[1];i&&this.emit("failedLoading",f,c,i),o&&this.store.addResourceBundle(f,c,o,void 0,void 0,{skipCopy:!0}),this.state[r]=i?-1:2;let d={};this.queue.forEach(h=>{wv(h.loaded,[f],c),zv(h,r),i&&h.errors.push(i),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(m=>{d[m]||(d[m]={});let v=h.loaded[m];v.length&&v.forEach(C=>{d[m][C]===void 0&&(d[m][C]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(h=>!h.done)}read(r,i,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!r.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:i,fcName:o,tried:a,wait:f,callback:c});return}this.readingCalls++;let d=(m,v)=>{if(this.readingCalls--,this.waitingReads.length>0){let C=this.waitingReads.shift();this.read(C.lng,C.ns,C.fcName,C.tried,C.wait,C.callback)}if(m&&v&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,r,i,o,a+1,f*2,c)},f);return}c(m,v)},h=this.backend[o].bind(this.backend);if(h.length===2){try{let m=h(r,i);m&&typeof m.then=="function"?m.then(v=>d(null,v)).catch(d):d(null,m)}catch(m){d(m)}return}return h(r,i,d)}prepareLoading(r,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=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."),a&&a();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof i=="string"&&(i=[i]);let f=this.queueLoad(r,i,o,a);if(!f.toLoad.length)return f.pending.length||a(),null;f.toLoad.forEach(c=>{this.loadOne(c)})}load(r,i,o){this.prepareLoading(r,i,{},o)}reload(r,i,o){this.prepareLoading(r,i,{reload:!0},o)}loadOne(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=r.split("|"),a=o[0],f=o[1];this.read(a,f,"read",void 0,void 0,(c,d)=>{c&&this.logger.warn(`${i}loading namespace ${f} for language ${a} failed`,c),!c&&d&&this.logger.log(`${i}loaded namespace ${f} for language ${a}`,d),this.loaded(r,c,d)})}saveMissing(r,i,o,a,f){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${o}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){let h={...c,isUpdate:f},m=this.backend.create.bind(this.backend);if(m.length<6)try{let v;m.length===5?v=m(r,i,o,a,h):v=m(r,i,o,a),v&&typeof v.then=="function"?v.then(C=>d(null,C)).catch(d):d(null,v)}catch(v){d(v)}else m(r,i,o,a,d,h)}!r||!r[0]||this.store.addResource(r[0],i,o,a)}}};function vg(){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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(r){let i={};if(typeof r[1]=="object"&&(i=r[1]),typeof r[1]=="string"&&(i.defaultValue=r[1]),typeof r[2]=="string"&&(i.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){let o=r[3]||r[2];Object.keys(o).forEach(a=>{i[a]=o[a]})}return i},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function xg(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Es(){}function Vv(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(i=>{typeof e[i]=="function"&&(e[i]=e[i].bind(e))})}var Ss=class e extends ci{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=xg(r),this.services={},this.logger=yr,this.modules={external:[]},Vv(this),i&&!this.isInitialized&&!r.isClone){if(!this.options.initImmediate)return this.init(r,i),this;setTimeout(()=>{this.init(r,i)},0)}}init(){var r=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof i=="function"&&(o=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));let a=vg();this.options={...a,...this.options,...xg(i)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function f(v){return v?typeof v=="function"?new v:v:null}if(!this.options.isClone){this.modules.logger?yr.init(f(this.modules.logger),this.options):yr.init(null,this.options);let v;this.modules.formatter?v=this.modules.formatter:typeof Intl<"u"&&(v=Cf);let C=new Fs(this.options);this.store=new xs(this.options.resources,this.options);let x=this.services;x.logger=yr,x.resourceStore=this.store,x.languageUtils=C,x.pluralResolver=new vf(C,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),v&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(x.formatter=f(v),x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new xf(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new Ff(f(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",function(O){for(var R=arguments.length,k=new Array(R>1?R-1:0),P=1;P<R;P++)k[P-1]=arguments[P];r.emit(O,...k)}),this.modules.languageDetector&&(x.languageDetector=f(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=f(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new Cs(this.services,this.options),this.translator.on("*",function(O){for(var R=arguments.length,k=new Array(R>1?R-1:0),P=1;P<R;P++)k[P-1]=arguments[P];r.emit(O,...k)}),this.modules.external.forEach(O=>{O.init&&O.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Es),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let v=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);v.length>0&&v[0]!=="dev"&&(this.options.lng=v[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(v=>{this[v]=function(){return r.store[v](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(v=>{this[v]=function(){return r.store[v](...arguments),r}});let h=Du(),m=()=>{let v=(C,x)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(x),o(C,x)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return v(null,this.t.bind(this));this.changeLanguage(this.options.lng,v)};return this.options.resources||!this.options.initImmediate?m():setTimeout(m,0),h}loadResources(r){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Es,a=typeof r=="string"?r:this.language;if(typeof r=="function"&&(o=r),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();let f=[],c=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(m=>{m!=="cimode"&&f.indexOf(m)<0&&f.push(m)})};a?c(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>c(h)),this.options.preload&&this.options.preload.forEach(d=>c(d)),this.services.backendConnector.load(f,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(d)})}else o(null)}reloadResources(r,i,o){let a=Du();return r||(r=this.languages),i||(i=this.options.ns),o||(o=Es),this.services.backendConnector.reload(r,i,f=>{a.resolve(),o(f)}),a}use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&Fg.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}setResolvedLanguage(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(let i=0;i<this.languages.length;i++){let o=this.languages[i];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(r,i){var o=this;this.isLanguageChangingTo=r;let a=Du();this.emit("languageChanging",r);let f=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},c=(h,m)=>{m?(f(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,a.resolve(function(){return o.t(...arguments)}),i&&i(h,function(){return o.t(...arguments)})},d=h=>{!r&&!h&&this.services.languageDetector&&(h=[]);let m=typeof h=="string"?h:this.services.languageUtils.getBestMatchFromCodes(h);m&&(this.language||f(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(m)),this.loadResources(m,v=>{c(v,m)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(r),a}getFixedT(r,i,o){var a=this;let f=function(c,d){let h;if(typeof d!="object"){for(var m=arguments.length,v=new Array(m>2?m-2:0),C=2;C<m;C++)v[C-2]=arguments[C];h=a.options.overloadTranslationOptionHandler([c,d].concat(v))}else h={...d};h.lng=h.lng||f.lng,h.lngs=h.lngs||f.lngs,h.ns=h.ns||f.ns,h.keyPrefix=h.keyPrefix||o||f.keyPrefix;let x=a.options.keySeparator||".",O;return h.keyPrefix&&Array.isArray(c)?O=c.map(R=>`${h.keyPrefix}${x}${R}`):O=h.keyPrefix?`${h.keyPrefix}${x}${c}`:c,a.t(O,h)};return typeof r=="string"?f.lng=r:f.lngs=r,f.ns=i,f.keyPrefix=o,f}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(r){this.options.defaultNS=r}hasLoadedNamespace(r){let i=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;let o=i.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;let c=(d,h)=>{let m=this.services.backendConnector.state[`${d}|${h}`];return m===-1||m===2};if(i.precheck){let d=i.precheck(this,c);if(d!==void 0)return d}return!!(this.hasResourceBundle(o,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(o,r)&&(!a||c(f,r)))}loadNamespaces(r,i){let o=Du();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{o.resolve(),i&&i(a)}),o):(i&&i(),Promise.resolve())}loadLanguages(r,i){let o=Du();typeof r=="string"&&(r=[r]);let a=this.options.preload||[],f=r.filter(c=>a.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return f.length?(this.options.preload=a.concat(f),this.loadResources(c=>{o.resolve(),i&&i(c)}),o):(i&&i(),Promise.resolve())}dir(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";let i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new Fs(vg());return i.indexOf(o.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new e(r,i)}cloneInstance(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Es,o=r.forkResourceStore;o&&delete r.forkResourceStore;let a={...this.options,...r,isClone:!0},f=new e(a);return(r.debug!==void 0||r.prefix!==void 0)&&(f.logger=f.logger.clone(r)),["store","services","language"].forEach(d=>{f[d]=this[d]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},o&&(f.store=new xs(this.store.data,a),f.services.resourceStore=f.store),f.translator=new Cs(f.services,a),f.translator.on("*",function(d){for(var h=arguments.length,m=new Array(h>1?h-1:0),v=1;v<h;v++)m[v-1]=arguments[v];f.emit(d,...m)}),f.init(a,i),f.translator.options=a,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},ft=Ss.createInstance();ft.createInstance=Ss.createInstance;var u_=ft.createInstance,o_=ft.dir,s_=ft.init,a_=ft.loadResources,l_=ft.reloadResources,f_=ft.use,c_=ft.changeLanguage,p_=ft.getFixedT,d_=ft.t,h_=ft.exists,m_=ft.setDefaultNamespace,D_=ft.hasLoadedNamespace,g_=ft.loadNamespaces,E_=ft.loadLanguages;function Sf(e){let r={lng:"en",resources:{en:{translation:e}},keySeparator:!1,react:{defaultTransParent:le}},i=new hg,o=ft.createInstance(r);return o.use(i),o.use(us),o.init(),o}var Xv=({children:e,messages:r,i18n:i})=>{let[o]=(0,Ts.useState)(()=>i??Sf(r));return Ts.default.createElement(ef,{i18n:o},e)};g();export{ie as a,$e as b,Pl as c,Yo as d,le as e,jl as f,ay as g,ly as h,_N as i,PN as j,Dn as k,XN as l,t3 as m,Zn as n,Fy as o,Sy as p,iy as q,uy as r,oy as s,LD as t,ss as u,Sf as v,Xv as w};
|
|
47
47
|
/*! Bundled license information:
|
|
@@ -90,4 +90,4 @@ react-reconciler/cjs/react-reconciler-constants.production.min.js:
|
|
|
90
90
|
* LICENSE file in the root directory of this source tree.
|
|
91
91
|
*)
|
|
92
92
|
*/
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
93
|
+
//# sourceMappingURL=chunk-4BTCJXQC.js.map
|