@nizza/core 0.5.9-beta.2 → 0.6.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
- "use strict";var co=Object.defineProperty;var fo=(e,t,n)=>t in e?co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var C=(e,t,n)=>(fo(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const mo=require("@tanstack/react-query"),z=require("react"),po=require("react-dom"),ho=require("react/jsx-runtime");var q={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let go=0;function vo(e,t){const n=`atom${++go}`,i={toString:()=>n};return i.init=e,i.read=ko,i.write=yo,i}function ko(e){return e(this)}function yo(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const mn=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,pn=e=>"init"in e,hn=e=>!!e.write,Rt=new WeakMap,bo=(e,t)=>{Rt.set(e,t),e.catch(()=>{}).finally(()=>Rt.delete(e))},pi=(e,t)=>{const n=Rt.get(e);n&&(Rt.delete(e),n(t))},hi=(e,t)=>{e.status="fulfilled",e.value=t},gi=(e,t)=>{e.status="rejected",e.reason=t},So=e=>typeof(e==null?void 0:e.then)=="function",Je=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),vi=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),Re=e=>!!e&&"v"in e&&e.v instanceof Promise,_o=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,St=e=>{if("e"in e)throw e.e;return e.v},aa=()=>{const e=new WeakMap,t=new WeakMap,n=[],i=new WeakMap;let a,r;(q?"production":void 0)!=="production"&&(a=new Set,r=new Set);const o=g=>e.get(g),s=(g,w)=>{w.d.forEach((A,v)=>{var b;if(!i.has(v)){const O=o(v);(b=n[n.length-1])==null||b.add(v),i.set(v,[O,new Set]),O&&s(v,O)}i.get(v)[1].add(g)})},l=(g,w)=>{var A;(q?"production":void 0)!=="production"&&Object.freeze(w);const v=o(g);if(e.set(g,w),i.has(g)||((A=n[n.length-1])==null||A.add(g),i.set(g,[v,new Set]),s(g,w)),Re(v)){const b="v"in w?w.v instanceof Promise?w.v:Promise.resolve(w.v):Promise.reject(w.e);v.v!==b&&pi(v.v,b)}},u=(g,w,A,v)=>{const b=new Map(v?w.d:null);let O=!1;A.forEach((N,E)=>{!N&&mn(g,E)&&(N=w),N?(b.set(E,N),w.d.get(E)!==N&&(O=!0)):(q?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(O||w.d.size!==b.size)&&(w.d=b)},d=(g,w,A,v)=>{const b=o(g),O={d:(b==null?void 0:b.d)||new Map,v:w};if(A&&u(g,O,A,v),Je(b,O)&&b.d===O.d)return b;if(Re(b)&&Re(O)&&_o(b,O)){if(b.d===O.d)return b;O.v=b.v}return l(g,O),O},c=(g,w,A,v)=>{if(So(w)){let b;const O=()=>{const E=o(g);if(!Re(E)||E.v!==N)return;const j=d(g,N,A);t.has(g)&&E.d!==j.d&&P(g,j,E.d)},N=new Promise((E,j)=>{let R=!1;w.then(D=>{R||(R=!0,hi(N,D),E(D),O())},D=>{R||(R=!0,gi(N,D),j(D),O())}),b=D=>{R||(R=!0,D.then(H=>hi(N,H),H=>gi(N,H)),E(D))}});return N.orig=w,N.status="pending",bo(N,E=>{E&&b(E),v==null||v()}),d(g,N,A,!0)}return d(g,w,A)},f=(g,w,A)=>{const v=o(g),b={d:(v==null?void 0:v.d)||new Map,e:w};return A&&u(g,b,A),vi(v,b)&&v.d===b.d?v:(l(g,b),b)},y=(g,w)=>{const A=o(g);if(!w&&A&&(t.has(g)||Array.from(A.d).every(([R,D])=>{if(R===g)return!0;const H=y(R);return H===D||Je(H,D)})))return A;const v=new Map;let b=!0;const O=R=>{if(mn(g,R)){const H=o(R);if(H)return v.set(R,H),St(H);if(pn(R))return v.set(R,void 0),R.init;throw new Error("no atom init")}const D=y(R);return v.set(R,D),St(D)};let N,E;const j={get signal(){return N||(N=new AbortController),N.signal},get setSelf(){return(q?"production":void 0)!=="production"&&!hn(g)&&console.warn("setSelf function cannot be used with read-only atom"),!E&&hn(g)&&(E=(...R)=>{if((q?"production":void 0)!=="production"&&b&&console.warn("setSelf function cannot be called in sync"),!b)return k(g,...R)}),E}};try{const R=g.read(O,j);return c(g,R,v,()=>N==null?void 0:N.abort())}catch(R){return f(g,R,v)}finally{b=!1}},h=g=>St(y(g)),m=g=>{const w=N=>{var E,j;const R=new Set((E=t.get(N))==null?void 0:E.t);return(j=i.get(N))==null||j[1].forEach(D=>{R.add(D)}),R},A=new Array,v=new Set,b=N=>{if(!v.has(N)){v.add(N);for(const E of w(N))N!==E&&b(E);A.push(N)}};b(g);const O=new Set([g]);for(let N=A.length-1;N>=0;--N){const E=A[N],j=o(E);if(!j)continue;let R=!1;for(const D of j.d.keys())if(D!==E&&O.has(D)){R=!0;break}if(R){const D=y(E,!0);Je(j,D)||O.add(E)}}},_=(g,...w)=>{const A=O=>St(y(O)),v=(O,...N)=>{const E=n.length>0;E||n.push(new Set([O]));let j;if(mn(g,O)){if(!pn(O))throw new Error("atom not writable");const R=o(O),D=c(O,N[0]);Je(R,D)||m(O)}else j=_(O,...N);if(!E){const R=U(n.pop());(q?"production":void 0)!=="production"&&a.forEach(D=>D({type:"async-write",flushed:R}))}return j};return g.write(A,v,...w)},k=(g,...w)=>{n.push(new Set([g]));const A=_(g,...w),v=U(n.pop());return(q?"production":void 0)!=="production"&&a.forEach(b=>b({type:"write",flushed:v})),A},x=(g,w,A)=>{var v;const b=t.get(g);if(b)return w&&b.t.add(w),b;const O=A||[];(v=o(g))==null||v.d.forEach((E,j)=>{j!==g&&x(j,g,O)}),y(g);const N={t:new Set(w&&[w]),l:new Set};if(t.set(g,N),(q?"production":void 0)!=="production"&&r.add(g),hn(g)&&g.onMount){const{onMount:E}=g;O.push(()=>{const j=E((...R)=>k(g,...R));j&&(N.u=j)})}return A||O.forEach(E=>E()),N},B=(g,w)=>!w.l.size&&(!w.t.size||w.t.size===1&&w.t.has(g)),F=(g,w)=>{if(!B(g,w))return;const A=w.u;A&&A(),t.delete(g),(q?"production":void 0)!=="production"&&r.delete(g);const v=o(g);v?(Re(v)&&pi(v.v),v.d.forEach((b,O)=>{if(O!==g){const N=t.get(O);N&&(N.t.delete(g),F(O,N))}})):(q?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",g)},P=(g,w,A)=>{const v=new Set(w.d.keys()),b=new Set;A==null||A.forEach((O,N)=>{if(v.has(N)){v.delete(N);return}b.add(N);const E=t.get(N);E&&E.t.delete(g)}),v.forEach(O=>{x(O,g)}),b.forEach(O=>{const N=t.get(O);N&&F(O,N)})},U=g=>{let w;(q?"production":void 0)!=="production"&&(w=new Set);const A=[],v=b=>{var O;if(!i.has(b))return;const[N,E]=i.get(b);i.delete(b),A.push([b,N]),E.forEach(v),(O=o(b))==null||O.d.forEach((j,R)=>v(R))};if(g.forEach(v),A.forEach(([b,O])=>{const N=o(b);if(!N){(q?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush");return}if(N!==O){const E=t.get(b);E&&N.d!==(O==null?void 0:O.d)&&P(b,N,O==null?void 0:O.d),E&&!(!Re(O)&&(Je(O,N)||vi(O,N)))&&(E.l.forEach(j=>j()),(q?"production":void 0)!=="production"&&w.add(b))}}),(q?"production":void 0)!=="production")return w},$=(g,w)=>{const A=x(g),v=U([g]),b=A.l;return b.add(w),(q?"production":void 0)!=="production"&&a.forEach(O=>O({type:"sub",flushed:v})),()=>{b.delete(w),F(g,A),(q?"production":void 0)!=="production"&&a.forEach(O=>O({type:"unsub"}))}};return(q?"production":void 0)!=="production"?{get:h,set:k,sub:$,dev_subscribe_store:g=>(a.add(g),()=>{a.delete(g)}),dev_get_mounted_atoms:()=>r.values(),dev_get_atom_state:g=>e.get(g),dev_get_mounted:g=>t.get(g),dev_restore_atoms:g=>{n.push(new Set);for(const[A,v]of g)pn(A)&&(c(A,v),m(A));const w=U(n.pop());a.forEach(A=>A({type:"restore",flushed:w}))}}:{get:h,set:k,sub:$}};let Xe;const No=()=>(Xe||(Xe=aa(),(q?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Xe),globalThis.__JOTAI_DEFAULT_STORE__!==Xe&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Xe),Oo=aa,wo=No;var Ao={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Fo=z.createContext(void 0),ra=e=>z.useContext(Fo)||wo(),Eo=e=>typeof(e==null?void 0:e.then)=="function",Co=z.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function To(e,t){const n=ra(),[[i,a,r],o]=z.useReducer(u=>{const d=n.get(e);return Object.is(u[0],d)&&u[1]===n&&u[2]===e?u:[d,n,e]},void 0,()=>[n.get(e),n,e]);let s=i;return(a!==n||r!==e)&&(o(),s=n.get(e)),z.useEffect(()=>{const u=n.sub(e,()=>{o()});return o(),u},[n,e,void 0]),z.useDebugValue(s),Eo(s)?Co(s):s}function xo(e,t){const n=ra();return z.useCallback((...a)=>{if((Ao?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...a)},[n,e])}function Ro(e,t){return[To(e),xo(e)]}const Wt=vo(null);Wt.debugLabel="accountAtom";var Po={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{NZ_AWS_REGION:Do,NZ_BACKOFFICE_BACK_URL:Lo,NZ_CORE_SERVICES_GRAPHQL_URL:Io,NZ_CORE_SERVICES_REST_URL:Vo}=Po,jo={AWS:{region:Do,cognito:{userPoolId:"us-east-1_knSlGEmJ0",userPoolWebClientId:"3hmbfhf7nl3kq20qr9i5lihf1p"}},apiUrls:{restV1:Lo||"https://pabprg32bj.execute-api.us-east-1.amazonaws.com",restV2:Vo||"https://core-services-dev.nizza.com/api",graphql:Io||"https://core-services-dev.nizza.com/graphql",corsProxy:"https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"},publicUrls:{platformSite:"https://platformdev.nizza.com",nizzaCdn:"https://cdn.nizza.com",bundleSite:"https://bundledev.nizza.com",wssIVSChat:"wss://edge.ivschat.us-east-1.amazonaws.com"}};function Uo(e,t){let n=null;const i=()=>{n||(n=t().log.createLogger(e))},a=(o,s)=>typeof o[s]=="function",r={get(o,s,l){i();const u=d=>(...c)=>{if(!n)return;const f=n[d];if(typeof f=="function")return f.apply(n,c)};return n&&a(n,s)?u(s):n?n[s]:void 0}};return new Proxy({},r)}async function qn(e){const{url:t,method:n="GET",body:i,raw:a=!1,contentTypeJson:r=!0,timeout:o,...s}=e,l=r&&!e.headers?new Headers({"content-type":"application/json"}):e.headers;try{const u=new AbortController,{signal:d}=u;let c;const f=fetch(t,{method:n,headers:l,body:i,signal:d,...s});o&&(c=setTimeout(()=>{u.abort()},o));const y=await f;if(a)return y;const h=await y.json();if(clearTimeout(c),!y.ok){const m=h?JSON.stringify(h):y.statusText;throw new Error(m)}return h}catch(u){throw console.error("[CustomFetch] ",u),u}}const Bo=e=>qn({...e,contentTypeJson:!1,raw:!1});function $o(e,t,n){fetch(t).then(i=>i.blob()).then(i=>oa(i,`${e}.${n}`))}const oa=(e,t,n)=>{const i=[e],a=new Blob(i,{type:n!=null?n:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(a,t);const r=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(a):window.webkitURL.createObjectURL(a),o=document.createElement("a");return o.style.display="none",o.href=r,o.setAttribute("download",t),typeof o.download=="undefined"&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(()=>{document.body.removeChild(o),window.URL.revokeObjectURL(r)},200)};function I(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var Mo={};function Wn(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:Mo}var sa=Object.assign,Pt=Object.getOwnPropertyDescriptor,de=Object.defineProperty,Jt=Object.prototype,Fn=[];Object.freeze(Fn);var la={};Object.freeze(la);var zo=typeof Proxy!="undefined",Go=Object.toString();function ua(){zo||I("Proxy not available")}function da(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Ve=function(){};function re(e){return typeof e=="function"}function Oe(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Xt(e){return e!==null&&typeof e=="object"}function be(e){if(!Xt(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===Go}function ca(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Zt(e,t,n){de(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function fa(e,t,n){de(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function Ee(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(i){return Xt(i)&&i[n]===!0}}function Me(e){return e instanceof Map}function ct(e){return e instanceof Set}var ma=typeof Object.getOwnPropertySymbols!="undefined";function Ko(e){var t=Object.keys(e);if(!ma)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(i){return Jt.propertyIsEnumerable.call(e,i)})):t}var Qt=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:ma?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function pa(e){return e===null?null:typeof e=="object"?""+e:e}function he(e,t){return Jt.hasOwnProperty.call(e,t)}var Ho=Object.getOwnPropertyDescriptors||function(t){var n={};return Qt(t).forEach(function(i){n[i]=Pt(t,i)}),n};function qo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Xo(i.key),i)}}function Jn(e,t,n){return t&&qo(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},we.apply(this,arguments)}function ha(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,En(e,t)}function En(e,t){return En=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},En(e,t)}function gn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wo(e,t){if(e){if(typeof e=="string")return ki(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ki(e,t)}}function ki(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function je(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Wo(e))||t){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jo(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Xo(e){var t=Jo(e,"string");return typeof t=="symbol"?t:String(t)}var se=Symbol("mobx-stored-annotations");function ce(e){function t(n,i){if(ft(i))return e.decorate_20223_(n,i);ze(n,i,e)}return Object.assign(t,e)}function ze(e,t,n){he(e,se)||Zt(e,se,we({},e[se])),rs(n)||(e[se][t]=n)}function Zo(e){return he(e,se)||Zt(e,se,we({},e[se])),e[se]}function ft(e){return typeof e=="object"&&typeof e.kind=="string"}var T=Symbol("mobx administration"),mt=function(){function e(n){n===void 0&&(n="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=V.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},t.reportObserved=function(){return Pa(this)},t.reportChanged=function(){Q(),Da(this),Y()},t.toString=function(){return this.name_},e}(),Xn=Ee("Atom",mt);function ga(e,t,n){t===void 0&&(t=Ve),n===void 0&&(n=Ve);var i=new mt(e);return t!==Ve&&ul(i,t),n!==Ve&&Ua(i,n),i}function Qo(e,t){return e===t}function Yo(e,t){return ii(e,t)}function es(e,t){return ii(e,t,1)}function ts(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Dt={identity:Qo,structural:Yo,default:ts,shallow:es};function Ae(e,t,n){return za(e)?e:Array.isArray(e)?K.array(e,{name:n}):be(e)?K.object(e,void 0,{name:n}):Me(e)?K.map(e,{name:n}):ct(e)?K.set(e,{name:n}):typeof e=="function"&&!nn(e)&&!ot(e)?ca(e)?Be(e):rt(n,e):e}function ns(e,t,n){if(e==null||rn(e)||an(e)||Te(e)||Ge(e))return e;if(Array.isArray(e))return K.array(e,{name:n,deep:!1});if(be(e))return K.object(e,void 0,{name:n,deep:!1});if(Me(e))return K.map(e,{name:n,deep:!1});if(ct(e))return K.set(e,{name:n,deep:!1})}function Yt(e){return e}function is(e,t){return ii(e,t)?t:e}var as="override";function rs(e){return e.annotationType_===as}function pt(e,t){return{annotationType_:e,options_:t,make_:os,extend_:ss,decorate_20223_:ls}}function os(e,t,n,i){var a;if((a=this.options_)!=null&&a.bound)return this.extend_(e,t,n,!1)===null?0:1;if(i===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if(nn(n.value))return 1;var r=va(e,this,t,n,!1);return de(i,t,r),2}function ss(e,t,n,i){var a=va(e,this,t,n);return e.defineProperty_(t,a,i)}function ls(e,t){var n=t.kind,i=t.name,a=t.addInitializer,r=this,o=function(u){var d,c,f,y;return Fe((d=(c=r.options_)==null?void 0:c.name)!=null?d:i.toString(),u,(f=(y=r.options_)==null?void 0:y.autoAction)!=null?f:!1)};if(n=="field"){a(function(){ze(this,i,r)});return}if(n=="method"){var s;return nn(e)||(e=o(e)),(s=this.options_)!=null&&s.bound&&a(function(){var l=this,u=l[i].bind(l);u.isMobxAction=!0,l[i]=u}),e}I("Cannot apply '"+r.annotationType_+"' to '"+String(i)+"' (kind: "+n+"):"+(`
3
- '`+r.annotationType_+"' can only be used on properties with a function value."))}function us(e,t,n,i){t.annotationType_,i.value}function va(e,t,n,i,a){var r,o,s,l,u,d,c;a===void 0&&(a=S.safeDescriptors),us(e,t,n,i);var f=i.value;if((r=t.options_)!=null&&r.bound){var y;f=f.bind((y=e.proxy_)!=null?y:e.target_)}return{value:Fe((o=(s=t.options_)==null?void 0:s.name)!=null?o:n.toString(),f,(l=(u=t.options_)==null?void 0:u.autoAction)!=null?l:!1,(d=t.options_)!=null&&d.bound?(c=e.proxy_)!=null?c:e.target_:void 0),configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function ka(e,t){return{annotationType_:e,options_:t,make_:ds,extend_:cs,decorate_20223_:fs}}function ds(e,t,n,i){var a;if(i===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((a=this.options_)!=null&&a.bound&&(!he(e.target_,t)||!ot(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(ot(n.value))return 1;var r=ya(e,this,t,n,!1,!1);return de(i,t,r),2}function cs(e,t,n,i){var a,r=ya(e,this,t,n,(a=this.options_)==null?void 0:a.bound);return e.defineProperty_(t,r,i)}function fs(e,t){var n,i=t.name,a=t.addInitializer;return ot(e)||(e=Be(e)),(n=this.options_)!=null&&n.bound&&a(function(){var r=this,o=r[i].bind(r);o.isMobXFlow=!0,r[i]=o}),e}function ms(e,t,n,i){t.annotationType_,i.value}function ya(e,t,n,i,a,r){r===void 0&&(r=S.safeDescriptors),ms(e,t,n,i);var o=i.value;if(ot(o)||(o=Be(o)),a){var s;o=o.bind((s=e.proxy_)!=null?s:e.target_),o.isMobXFlow=!0}return{value:o,configurable:r?e.isPlainObject_:!0,enumerable:!1,writable:!r}}function Zn(e,t){return{annotationType_:e,options_:t,make_:ps,extend_:hs,decorate_20223_:gs}}function ps(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function hs(e,t,n,i){return vs(e,this,t,n),e.defineComputedProperty_(t,we({},this.options_,{get:n.get,set:n.set}),i)}function gs(e,t){var n=this,i=t.name,a=t.addInitializer;return a(function(){var r=Ke(this)[T],o=we({},n.options_,{get:e,context:this});o.name||(o.name="ObservableObject."+i.toString()),r.values_.set(i,new Ue(o))}),function(){return this[T].getObservablePropValue_(i)}}function vs(e,t,n,i){t.annotationType_,i.get}function en(e,t){return{annotationType_:e,options_:t,make_:ks,extend_:ys,decorate_20223_:bs}}function ks(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function ys(e,t,n,i){var a,r;return Ss(e,this),e.defineObservableProperty_(t,n.value,(a=(r=this.options_)==null?void 0:r.enhancer)!=null?a:Ae,i)}function bs(e,t){var n=this,i=t.kind,a=t.name,r=new WeakSet;function o(s,l){var u,d,c=Ke(s)[T],f=new _e(l,(u=(d=n.options_)==null?void 0:d.enhancer)!=null?u:Ae,"ObservableObject."+a.toString(),!1);c.values_.set(a,f),r.add(s)}if(i=="accessor")return{get:function(){return r.has(this)||o(this,e.get.call(this)),this[T].getObservablePropValue_(a)},set:function(l){return r.has(this)||o(this,l),this[T].setObservablePropValue_(a,l)},init:function(l){return r.has(this)||o(this,l),l}}}function Ss(e,t,n,i){t.annotationType_}var _s="true",Ns=ba();function ba(e){return{annotationType_:_s,options_:e,make_:Os,extend_:ws,decorate_20223_:As}}function Os(e,t,n,i){var a,r;if(n.get)return Se.make_(e,t,n,i);if(n.set){var o=Fe(t.toString(),n.set);return i===e.target_?e.defineProperty_(t,{configurable:S.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(de(i,t,{configurable:!0,set:o}),2)}if(i!==e.target_&&typeof n.value=="function"){var s;if(ca(n.value)){var l,u=(l=this.options_)!=null&&l.autoBind?Be.bound:Be;return u.make_(e,t,n,i)}var d=(s=this.options_)!=null&&s.autoBind?rt.bound:rt;return d.make_(e,t,n,i)}var c=((a=this.options_)==null?void 0:a.deep)===!1?K.ref:K;if(typeof n.value=="function"&&(r=this.options_)!=null&&r.autoBind){var f;n.value=n.value.bind((f=e.proxy_)!=null?f:e.target_)}return c.make_(e,t,n,i)}function ws(e,t,n,i){var a,r;if(n.get)return Se.extend_(e,t,n,i);if(n.set)return e.defineProperty_(t,{configurable:S.safeDescriptors?e.isPlainObject_:!0,set:Fe(t.toString(),n.set)},i);if(typeof n.value=="function"&&(a=this.options_)!=null&&a.autoBind){var o;n.value=n.value.bind((o=e.proxy_)!=null?o:e.target_)}var s=((r=this.options_)==null?void 0:r.deep)===!1?K.ref:K;return s.extend_(e,t,n,i)}function As(e,t){I("'"+this.annotationType_+"' cannot be used as a decorator")}var Fs="observable",Es="observable.ref",Cs="observable.shallow",Ts="observable.struct",Sa={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Sa);function _t(e){return e||Sa}var Cn=en(Fs),xs=en(Es,{enhancer:Yt}),Rs=en(Cs,{enhancer:ns}),Ps=en(Ts,{enhancer:is}),_a=ce(Cn);function Nt(e){return e.deep===!0?Ae:e.deep===!1?Yt:Ls(e.defaultDecorator)}function Ds(e){var t;return e?(t=e.defaultDecorator)!=null?t:ba(e):void 0}function Ls(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:Ae}function Na(e,t,n){if(ft(t))return Cn.decorate_20223_(e,t);if(Oe(t)){ze(e,t,Cn);return}return za(e)?e:be(e)?K.object(e,t,n):Array.isArray(e)?K.array(e,t):Me(e)?K.map(e,t):ct(e)?K.set(e,t):typeof e=="object"&&e!==null?e:K.box(e,t)}sa(Na,_a);var Is={box:function(t,n){var i=_t(n);return new _e(t,Nt(i),i.name,!0,i.equals)},array:function(t,n){var i=_t(n);return(S.useProxies===!1||i.proxy===!1?Pl:Nl)(t,Nt(i),i.name)},map:function(t,n){var i=_t(n);return new Wa(t,Nt(i),i.name)},set:function(t,n){var i=_t(n);return new Za(t,Nt(i),i.name)},object:function(t,n,i){return xe(function(){return ml(S.useProxies===!1||(i==null?void 0:i.proxy)===!1?Ke({},i):bl({},i),t,n)})},ref:ce(xs),shallow:ce(Rs),deep:_a,struct:ce(Ps)},K=sa(Na,Is),Oa="computed",Vs="computed.struct",Tn=Zn(Oa),js=Zn(Vs,{equals:Dt.structural}),Se=function(t,n){if(ft(n))return Tn.decorate_20223_(t,n);if(Oe(n))return ze(t,n,Tn);if(be(t))return ce(Zn(Oa,t));var i=be(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new Ue(i)};Object.assign(Se,Tn);Se.struct=ce(js);var yi,bi,Lt=0,Us=1,Bs=(yi=(bi=Pt(function(){},"name"))==null?void 0:bi.configurable)!=null?yi:!1,Si={value:"action",configurable:!0,writable:!1,enumerable:!1};function Fe(e,t,n,i){n===void 0&&(n=!1);function a(){return $s(e,n,t,i||this,arguments)}return a.isMobxAction=!0,a.toString=function(){return t.toString()},Bs&&(Si.value=e,de(a,"name",Si)),a}function $s(e,t,n,i,a){var r=Ms(e,t);try{return n.apply(i,a)}catch(o){throw r.error_=o,o}finally{zs(r)}}function Ms(e,t,n,i){var a=!1,r=0,o=S.trackingDerivation,s=!t||!o;Q();var l=S.allowStateChanges;s&&(Ce(),l=Qn(!0));var u=ei(!0),d={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:l,prevAllowStateReads_:u,notifySpy_:a,startTime_:r,actionId_:Us++,parentActionId_:Lt};return Lt=d.actionId_,d}function zs(e){Lt!==e.actionId_&&I(30),Lt=e.parentActionId_,e.error_!==void 0&&(S.suppressReactionErrors=!0),Yn(e.prevAllowStateChanges_),tt(e.prevAllowStateReads_),Y(),e.runAsAction_&&ge(e.prevDerivation_),S.suppressReactionErrors=!1}function Qn(e){var t=S.allowStateChanges;return S.allowStateChanges=e,t}function Yn(e){S.allowStateChanges=e}var wa;wa=Symbol.toPrimitive;var _e=function(e){ha(t,e);function t(i,a,r,o,s){var l;return r===void 0&&(r="ObservableValue"),s===void 0&&(s=Dt.default),l=e.call(this,r)||this,l.enhancer=void 0,l.name_=void 0,l.equals=void 0,l.hasUnreportedChange_=!1,l.interceptors_=void 0,l.changeListeners_=void 0,l.value_=void 0,l.dehancer=void 0,l.enhancer=a,l.name_=r,l.equals=s,l.value_=a(i,void 0,r),l}var n=t.prototype;return n.dehanceValue=function(a){return this.dehancer!==void 0?this.dehancer(a):a},n.set=function(a){this.value_,a=this.prepareNewValue_(a),a!==S.UNCHANGED&&this.setNewValue_(a)},n.prepareNewValue_=function(a){if(X(this)){var r=Z(this,{object:this,type:fe,newValue:a});if(!r)return S.UNCHANGED;a=r.newValue}return a=this.enhancer(a,this.value_,this.name_),this.equals(this.value_,a)?S.UNCHANGED:a},n.setNewValue_=function(a){var r=this.value_;this.value_=a,this.reportChanged(),ie(this)&&ae(this,{type:fe,object:this,newValue:a,oldValue:r})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(a){return ht(this,a)},n.observe_=function(a,r){return r&&a({observableKind:"value",debugObjectName:this.name_,object:this,type:fe,newValue:this.value_,oldValue:void 0}),gt(this,a)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return pa(this.get())},n[wa]=function(){return this.valueOf()},t}(mt),Aa;Aa=Symbol.toPrimitive;var Ue=function(){function e(n){this.dependenciesState_=V.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=V.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Vt(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=It.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||I(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=Fe("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Dt.structural:Dt.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Ws(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},t.get=function(){if(this.isComputing_&&I(32,this.name_,this.derivation),S.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)xn(this)&&(this.warnAboutUntrackedRead_(),Q(),this.value_=this.computeValue_(!1),Y());else if(Pa(this),xn(this)){var i=S.trackingContext;this.keepAlive_&&!i&&(S.trackingContext=this),this.trackAndCompute()&&qs(this),S.trackingContext=i}var a=this.value_;if(At(a))throw a.cause;return a},t.set=function(i){if(this.setter_){this.isRunningSetter_&&I(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,i)}finally{this.isRunningSetter_=!1}}else I(34,this.name_)},t.trackAndCompute=function(){var i=this.value_,a=this.dependenciesState_===V.NOT_TRACKING_,r=this.computeValue_(!0),o=a||At(i)||At(r)||!this.equals_(i,r);return o&&(this.value_=r),o},t.computeValue_=function(i){this.isComputing_=!0;var a=Qn(!1),r;if(i)r=Fa(this,this.derivation,this.scope_);else if(S.disableErrorBoundaries===!0)r=this.derivation.call(this.scope_);else try{r=this.derivation.call(this.scope_)}catch(o){r=new Vt(o)}return Yn(a),this.isComputing_=!1,r},t.suspend_=function(){this.keepAlive_||(Rn(this),this.value_=void 0)},t.observe_=function(i,a){var r=this,o=!0,s=void 0;return al(function(){var l=r.get();if(!o||a){var u=Ce();i({observableKind:"computed",debugObjectName:r.name_,type:fe,object:r,newValue:l,oldValue:s}),ge(u)}o=!1,s=l})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return pa(this.get())},t[Aa]=function(){return this.valueOf()},e}(),tn=Ee("ComputedValue",Ue),V;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(V||(V={}));var It;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(It||(It={}));var Vt=function(t){this.cause=void 0,this.cause=t};function At(e){return e instanceof Vt}function xn(e){switch(e.dependenciesState_){case V.UP_TO_DATE_:return!1;case V.NOT_TRACKING_:case V.STALE_:return!0;case V.POSSIBLY_STALE_:{for(var t=ei(!0),n=Ce(),i=e.observing_,a=i.length,r=0;r<a;r++){var o=i[r];if(tn(o)){if(S.disableErrorBoundaries)o.get();else try{o.get()}catch{return ge(n),tt(t),!0}if(e.dependenciesState_===V.STALE_)return ge(n),tt(t),!0}}return Ca(e),ge(n),tt(t),!1}}}function Fa(e,t,n){var i=ei(!0);Ca(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++S.runId;var a=S.trackingDerivation;S.trackingDerivation=e,S.inBatch++;var r;if(S.disableErrorBoundaries===!0)r=t.call(n);else try{r=t.call(n)}catch(o){r=new Vt(o)}return S.inBatch--,S.trackingDerivation=a,Gs(e),tt(i),r}function Gs(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,i=V.UP_TO_DATE_,a=0,r=e.unboundDepsCount_,o=0;o<r;o++){var s=n[o];s.diffValue_===0&&(s.diffValue_=1,a!==o&&(n[a]=s),a++),s.dependenciesState_>i&&(i=s.dependenciesState_)}for(n.length=a,e.newObserving_=null,r=t.length;r--;){var l=t[r];l.diffValue_===0&&xa(l,e),l.diffValue_=0}for(;a--;){var u=n[a];u.diffValue_===1&&(u.diffValue_=0,Hs(u,e))}i!==V.UP_TO_DATE_&&(e.dependenciesState_=i,e.onBecomeStale_())}function Rn(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)xa(t[n],e);e.dependenciesState_=V.NOT_TRACKING_}function Ea(e){var t=Ce();try{return e()}finally{ge(t)}}function Ce(){var e=S.trackingDerivation;return S.trackingDerivation=null,e}function ge(e){S.trackingDerivation=e}function ei(e){var t=S.allowStateReads;return S.allowStateReads=e,t}function tt(e){S.allowStateReads=e}function Ca(e){if(e.dependenciesState_!==V.UP_TO_DATE_){e.dependenciesState_=V.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=V.UP_TO_DATE_}}var Ft=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Et=!0,Ta=!1,S=function(){var e=Wn();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Et=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Ft().version&&(Et=!1),Et?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ft):(setTimeout(function(){Ta||I(35)},1),new Ft)}();function Ks(){if((S.pendingReactions.length||S.inBatch||S.isRunningReactions)&&I(36),Ta=!0,Et){var e=Wn();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),S=new Ft}}function Hs(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function xa(e,t){e.observers_.delete(t),e.observers_.size===0&&Ra(e)}function Ra(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,S.pendingUnobservations.push(e))}function Q(){S.inBatch++}function Y(){if(--S.inBatch===0){La();for(var e=S.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,n.observers_.size===0&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof Ue&&n.suspend_())}S.pendingUnobservations=[]}}function Pa(e){var t=S.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&S.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_):(e.observers_.size===0&&S.inBatch>0&&Ra(e),!1)}function Da(e){e.lowestObserverState_!==V.STALE_&&(e.lowestObserverState_=V.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===V.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=V.STALE_}))}function qs(e){e.lowestObserverState_!==V.STALE_&&(e.lowestObserverState_=V.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===V.POSSIBLY_STALE_?t.dependenciesState_=V.STALE_:t.dependenciesState_===V.UP_TO_DATE_&&(e.lowestObserverState_=V.UP_TO_DATE_)}))}function Ws(e){e.lowestObserverState_===V.UP_TO_DATE_&&(e.lowestObserverState_=V.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===V.UP_TO_DATE_&&(t.dependenciesState_=V.POSSIBLY_STALE_,t.onBecomeStale_())}))}var at=function(){function e(n,i,a,r){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=V.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=It.NONE,this.name_=n,this.onInvalidate_=i,this.errorHandler_=a,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,S.pendingReactions.push(this),La())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){Q(),this.isScheduled_=!1;var i=S.trackingContext;if(S.trackingContext=this,xn(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(a){this.reportExceptionInDerivation_(a)}}S.trackingContext=i,Y()}},t.track=function(i){if(!this.isDisposed_){Q(),this.isRunning_=!0;var a=S.trackingContext;S.trackingContext=this;var r=Fa(this,i,void 0);S.trackingContext=a,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Rn(this),At(r)&&this.reportExceptionInDerivation_(r.cause),Y()}},t.reportExceptionInDerivation_=function(i){var a=this;if(this.errorHandler_){this.errorHandler_(i,this);return}if(S.disableErrorBoundaries)throw i;var r="[mobx] uncaught error in '"+this+"'";S.suppressReactionErrors||console.error(r,i),S.globalReactionErrorHandlers.forEach(function(o){return o(i,a)})},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Q(),Rn(this),Y()))},t.getDisposer_=function(i){var a=this,r=function o(){a.dispose(),i==null||i.removeEventListener==null||i.removeEventListener("abort",o)};return i==null||i.addEventListener==null||i.addEventListener("abort",r),r[T]=this,r},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(i){},e}(),Js=100,Pn=function(t){return t()};function La(){S.inBatch>0||S.isRunningReactions||Pn(Xs)}function Xs(){S.isRunningReactions=!0;for(var e=S.pendingReactions,t=0;e.length>0;){++t===Js&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),i=0,a=n.length;i<a;i++)n[i].runReaction_()}S.isRunningReactions=!1}var jt=Ee("Reaction",at);function Zs(e){var t=Pn;Pn=function(i){return e(function(){return t(i)})}}function nt(){return!1}function Qs(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Ia="action",Ys="action.bound",Va="autoAction",el="autoAction.bound",tl="<unnamed action>",Dn=pt(Ia),nl=pt(Ys,{bound:!0}),Ln=pt(Va,{autoAction:!0}),il=pt(el,{autoAction:!0,bound:!0});function ja(e){var t=function(i,a){if(re(i))return Fe(i.name||tl,i,e);if(re(a))return Fe(i,a,e);if(ft(a))return(e?Ln:Dn).decorate_20223_(i,a);if(Oe(a))return ze(i,a,e?Ln:Dn);if(Oe(i))return ce(pt(e?Va:Ia,{name:i,autoAction:e}))};return t}var ke=ja(!1);Object.assign(ke,Dn);var rt=ja(!0);Object.assign(rt,Ln);ke.bound=ce(nl);rt.bound=ce(il);function nn(e){return re(e)&&e.isMobxAction===!0}function al(e,t){var n,i,a,r,o;t===void 0&&(t=la);var s=(n=(i=t)==null?void 0:i.name)!=null?n:"Autorun",l=!t.scheduler&&!t.delay,u;if(l)u=new at(s,function(){this.track(f)},t.onError,t.requiresObservable);else{var d=ol(t),c=!1;u=new at(s,function(){c||(c=!0,d(function(){c=!1,u.isDisposed_||u.track(f)}))},t.onError,t.requiresObservable)}function f(){e(u)}return(a=t)!=null&&(r=a.signal)!=null&&r.aborted||u.schedule_(),u.getDisposer_((o=t)==null?void 0:o.signal)}var rl=function(t){return t()};function ol(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:rl}var sl="onBO",ll="onBUO";function ul(e,t,n){return Ba(sl,e,t,n)}function Ua(e,t,n){return Ba(ll,e,t,n)}function Ba(e,t,n,i){var a=$t(t),r=re(i)?i:n,o=e+"L";return a[o]?a[o].add(r):a[o]=new Set([r]),function(){var s=a[o];s&&(s.delete(r),s.size===0&&delete a[o])}}var dl="never",Ot="always",cl="observed";function fl(e){e.isolateGlobalState===!0&&Ks();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(S.useProxies=t===Ot?!0:t===dl?!1:typeof Proxy!="undefined"),t==="ifavailable"&&(S.verifyProxies=!0),n!==void 0){var i=n===Ot?Ot:n===cl;S.enforceActions=i,S.allowStateChanges=!(i===!0||i===Ot)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(a){a in e&&(S[a]=!!e[a])}),S.allowStateReads=!S.observableRequiresReaction,e.reactionScheduler&&Zs(e.reactionScheduler)}function ml(e,t,n,i){var a=Ho(t);return xe(function(){var r=Ke(e,i)[T];Qt(a).forEach(function(o){r.extend_(o,a[o],n&&o in n?n[o]:!0)})}),e}function pl(e,t){return $a($t(e,t))}function $a(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=hl(e.observing_).map($a)),t}function hl(e){return Array.from(new Set(e))}var gl=0;function Ma(){this.message="FLOW_CANCELLED"}Ma.prototype=Object.create(Error.prototype);var vn=ka("flow"),vl=ka("flow.bound",{bound:!0}),Be=Object.assign(function(t,n){if(ft(n))return vn.decorate_20223_(t,n);if(Oe(n))return ze(t,n,vn);var i=t,a=i.name||"<unnamed flow>",r=function(){var s=this,l=arguments,u=++gl,d=ke(a+" - runid: "+u+" - init",i).apply(s,l),c,f=void 0,y=new Promise(function(h,m){var _=0;c=m;function k(F){f=void 0;var P;try{P=ke(a+" - runid: "+u+" - yield "+_++,d.next).call(d,F)}catch(U){return m(U)}B(P)}function x(F){f=void 0;var P;try{P=ke(a+" - runid: "+u+" - yield "+_++,d.throw).call(d,F)}catch(U){return m(U)}B(P)}function B(F){if(re(F==null?void 0:F.then)){F.then(B,m);return}return F.done?h(F.value):(f=Promise.resolve(F.value),f.then(k,x))}k(void 0)});return y.cancel=ke(a+" - runid: "+u+" - cancel",function(){try{f&&_i(f);var h=d.return(void 0),m=Promise.resolve(h.value);m.then(Ve,Ve),_i(m),c(new Ma)}catch(_){c(_)}}),y};return r.isMobXFlow=!0,r},vn);Be.bound=ce(vl);function _i(e){re(e.cancel)&&e.cancel()}function ot(e){return(e==null?void 0:e.isMobXFlow)===!0}function kl(e,t){return e?rn(e)||!!e[T]||Xn(e)||jt(e)||tn(e):!1}function za(e){return kl(e)}function pe(e,t){t===void 0&&(t=void 0),Q();try{return e.apply(t)}finally{Y()}}function Pe(e){return e[T]}var yl={has:function(t,n){return Pe(t).has_(n)},get:function(t,n){return Pe(t).get_(n)},set:function(t,n,i){var a;return Oe(n)?(a=Pe(t).set_(n,i,!0))!=null?a:!0:!1},deleteProperty:function(t,n){var i;return Oe(n)?(i=Pe(t).delete_(n,!0))!=null?i:!0:!1},defineProperty:function(t,n,i){var a;return(a=Pe(t).defineProperty_(n,i))!=null?a:!0},ownKeys:function(t){return Pe(t).ownKeys_()},preventExtensions:function(t){I(13)}};function bl(e,t){var n,i;return ua(),e=Ke(e,t),(i=(n=e[T]).proxy_)!=null?i:n.proxy_=new Proxy(e,yl)}function X(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function ht(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),da(function(){var i=n.indexOf(t);i!==-1&&n.splice(i,1)})}function Z(e,t){var n=Ce();try{for(var i=[].concat(e.interceptors_||[]),a=0,r=i.length;a<r&&(t=i[a](t),t&&!t.type&&I(14),!!t);a++);return t}finally{ge(n)}}function ie(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function gt(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),da(function(){var i=n.indexOf(t);i!==-1&&n.splice(i,1)})}function ae(e,t){var n=Ce(),i=e.changeListeners_;if(i){i=i.slice();for(var a=0,r=i.length;a<r;a++)i[a](t);ge(n)}}function Ga(e,t,n){return xe(function(){var i,a=Ke(e,n)[T];(i=t)!=null||(t=Zo(e)),Qt(t).forEach(function(r){return a.make_(r,t[r])})}),e}var Ni="splice",fe="update",Sl=1e4,_l={get:function(t,n){var i=t[T];return n===T?i:n==="length"?i.getArrayLength_():typeof n=="string"&&!isNaN(n)?i.get_(parseInt(n)):he(Ut,n)?Ut[n]:t[n]},set:function(t,n,i){var a=t[T];return n==="length"&&a.setArrayLength_(i),typeof n=="symbol"||isNaN(n)?t[n]=i:a.set_(parseInt(n),i),!0},preventExtensions:function(){I(15)}},ti=function(){function e(n,i,a,r){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=a,this.legacyMode_=r,this.atom_=new mt(n),this.enhancer_=function(o,s){return i(o,s,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},t.dehanceValues_=function(i){return this.dehancer!==void 0&&i.length>0?i.map(this.dehancer):i},t.intercept_=function(i){return ht(this,i)},t.observe_=function(i,a){return a===void 0&&(a=!1),a&&i({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),gt(this,i)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(i){(typeof i!="number"||isNaN(i)||i<0)&&I("Out of range: "+i);var a=this.values_.length;if(i!==a)if(i>a){for(var r=new Array(i-a),o=0;o<i-a;o++)r[o]=void 0;this.spliceWithArray_(a,0,r)}else this.spliceWithArray_(i,a-i)},t.updateArrayLength_=function(i,a){i!==this.lastKnownLength_&&I(16),this.lastKnownLength_+=a,this.legacyMode_&&a>0&&tr(i+a+1)},t.spliceWithArray_=function(i,a,r){var o=this;this.atom_;var s=this.values_.length;if(i===void 0?i=0:i>s?i=s:i<0&&(i=Math.max(0,s+i)),arguments.length===1?a=s-i:a==null?a=0:a=Math.max(0,Math.min(a,s-i)),r===void 0&&(r=Fn),X(this)){var l=Z(this,{object:this.proxy_,type:Ni,index:i,removedCount:a,added:r});if(!l)return Fn;a=l.removedCount,r=l.added}if(r=r.length===0?r:r.map(function(c){return o.enhancer_(c,void 0)}),this.legacyMode_){var u=r.length-a;this.updateArrayLength_(s,u)}var d=this.spliceItemsIntoValues_(i,a,r);return(a!==0||r.length!==0)&&this.notifyArraySplice_(i,r,d),this.dehanceValues_(d)},t.spliceItemsIntoValues_=function(i,a,r){if(r.length<Sl){var o;return(o=this.values_).splice.apply(o,[i,a].concat(r))}else{var s=this.values_.slice(i,i+a),l=this.values_.slice(i+a);this.values_.length+=r.length-a;for(var u=0;u<r.length;u++)this.values_[i+u]=r[u];for(var d=0;d<l.length;d++)this.values_[i+r.length+d]=l[d];return s}},t.notifyArrayChildUpdate_=function(i,a,r){var o=!this.owned_&&nt(),s=ie(this),l=s||o?{observableKind:"array",object:this.proxy_,type:fe,debugObjectName:this.atom_.name_,index:i,newValue:a,oldValue:r}:null;this.atom_.reportChanged(),s&&ae(this,l)},t.notifyArraySplice_=function(i,a,r){var o=!this.owned_&&nt(),s=ie(this),l=s||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Ni,index:i,removed:r,added:a,removedCount:r.length,addedCount:a.length}:null;this.atom_.reportChanged(),s&&ae(this,l)},t.get_=function(i){if(this.legacyMode_&&i>=this.values_.length){console.warn("[mobx] Out of bounds read: "+i);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[i])},t.set_=function(i,a){var r=this.values_;if(this.legacyMode_&&i>r.length&&I(17,i,r.length),i<r.length){this.atom_;var o=r[i];if(X(this)){var s=Z(this,{type:fe,object:this.proxy_,index:i,newValue:a});if(!s)return;a=s.newValue}a=this.enhancer_(a,o);var l=a!==o;l&&(r[i]=a,this.notifyArrayChildUpdate_(i,a,o))}else{for(var u=new Array(i+1-r.length),d=0;d<u.length-1;d++)u[d]=void 0;u[u.length-1]=a,this.spliceWithArray_(r.length,0,u)}},e}();function Nl(e,t,n,i){return n===void 0&&(n="ObservableArray"),i===void 0&&(i=!1),ua(),xe(function(){var a=new ti(n,t,i,!1);fa(a.values_,T,a);var r=new Proxy(a.values_,_l);return a.proxy_=r,e&&e.length&&a.spliceWithArray_(0,0,e),r})}var Ut={clear:function(){return this.splice(0)},replace:function(t){var n=this[T];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,a=new Array(i>2?i-2:0),r=2;r<i;r++)a[r-2]=arguments[r];var o=this[T];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,n)}return o.spliceWithArray_(t,n,a)},spliceWithArray:function(t,n,i){return this[T].spliceWithArray_(t,n,i)},push:function(){for(var t=this[T],n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t.spliceWithArray_(t.values_.length,0,i),t.values_.length},pop:function(){return this.splice(Math.max(this[T].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[T],n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t.spliceWithArray_(0,0,i),t.values_.length},reverse:function(){return S.trackingDerivation&&I(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){S.trackingDerivation&&I(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[T],i=n.dehanceValues_(n.values_).indexOf(t);return i>-1?(this.splice(i,1),!0):!1}};M("at",J);M("concat",J);M("flat",J);M("includes",J);M("indexOf",J);M("join",J);M("lastIndexOf",J);M("slice",J);M("toString",J);M("toLocaleString",J);M("toSorted",J);M("toSpliced",J);M("with",J);M("every",oe);M("filter",oe);M("find",oe);M("findIndex",oe);M("findLast",oe);M("findLastIndex",oe);M("flatMap",oe);M("forEach",oe);M("map",oe);M("some",oe);M("toReversed",oe);M("reduce",Ka);M("reduceRight",Ka);function M(e,t){typeof Array.prototype[e]=="function"&&(Ut[e]=t(e))}function J(e){return function(){var t=this[T];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function oe(e){return function(t,n){var i=this,a=this[T];a.atom_.reportObserved();var r=a.dehanceValues_(a.values_);return r[e](function(o,s){return t.call(n,o,s,i)})}}function Ka(e){return function(){var t=this,n=this[T];n.atom_.reportObserved();var i=n.dehanceValues_(n.values_),a=arguments[0];return arguments[0]=function(r,o,s){return a(r,o,s,t)},i[e].apply(i,arguments)}}var Ol=Ee("ObservableArrayAdministration",ti);function an(e){return Xt(e)&&Ol(e[T])}var Ha,qa,wl={},ye="add",Bt="delete";Ha=Symbol.iterator;qa=Symbol.toStringTag;var Wa=function(){function e(n,i,a){var r=this;i===void 0&&(i=Ae),a===void 0&&(a="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[T]=wl,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=i,this.name_=a,re(Map)||I(18),xe(function(){r.keysAtom_=ga("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,n&&r.merge(n)})}var t=e.prototype;return t.has_=function(i){return this.data_.has(i)},t.has=function(i){var a=this;if(!S.trackingDerivation)return this.has_(i);var r=this.hasMap_.get(i);if(!r){var o=r=new _e(this.has_(i),Yt,"ObservableMap.key?",!1);this.hasMap_.set(i,o),Ua(o,function(){return a.hasMap_.delete(i)})}return r.get()},t.set=function(i,a){var r=this.has_(i);if(X(this)){var o=Z(this,{type:r?fe:ye,object:this,newValue:a,name:i});if(!o)return this;a=o.newValue}return r?this.updateValue_(i,a):this.addValue_(i,a),this},t.delete=function(i){var a=this;if(this.keysAtom_,X(this)){var r=Z(this,{type:Bt,object:this,name:i});if(!r)return!1}if(this.has_(i)){var o=nt(),s=ie(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:Bt,object:this,oldValue:this.data_.get(i).value_,name:i}:null;return pe(function(){var u;a.keysAtom_.reportChanged(),(u=a.hasMap_.get(i))==null||u.setNewValue_(!1);var d=a.data_.get(i);d.setNewValue_(void 0),a.data_.delete(i)}),s&&ae(this,l),!0}return!1},t.updateValue_=function(i,a){var r=this.data_.get(i);if(a=r.prepareNewValue_(a),a!==S.UNCHANGED){var o=nt(),s=ie(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:fe,object:this,oldValue:r.value_,name:i,newValue:a}:null;r.setNewValue_(a),s&&ae(this,l)}},t.addValue_=function(i,a){var r=this;this.keysAtom_,pe(function(){var u,d=new _e(a,r.enhancer_,"ObservableMap.key",!1);r.data_.set(i,d),a=d.value_,(u=r.hasMap_.get(i))==null||u.setNewValue_(!0),r.keysAtom_.reportChanged()});var o=nt(),s=ie(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:ye,object:this,name:i,newValue:a}:null;s&&ae(this,l)},t.get=function(i){return this.has(i)?this.dehanceValue_(this.data_.get(i).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var i=this,a=this.keys();return st({next:function(){var o=a.next(),s=o.done,l=o.value;return{done:s,value:s?void 0:i.get(l)}}})},t.entries=function(){var i=this,a=this.keys();return st({next:function(){var o=a.next(),s=o.done,l=o.value;return{done:s,value:s?void 0:[l,i.get(l)]}}})},t[Ha]=function(){return this.entries()},t.forEach=function(i,a){for(var r=je(this),o;!(o=r()).done;){var s=o.value,l=s[0],u=s[1];i.call(a,u,l,this)}},t.merge=function(i){var a=this;return Te(i)&&(i=new Map(i)),pe(function(){be(i)?Ko(i).forEach(function(r){return a.set(r,i[r])}):Array.isArray(i)?i.forEach(function(r){var o=r[0],s=r[1];return a.set(o,s)}):Me(i)?(i.constructor!==Map&&I(19,i),i.forEach(function(r,o){return a.set(o,r)})):i!=null&&I(20,i)}),this},t.clear=function(){var i=this;pe(function(){Ea(function(){for(var a=je(i.keys()),r;!(r=a()).done;){var o=r.value;i.delete(o)}})})},t.replace=function(i){var a=this;return pe(function(){for(var r=Al(i),o=new Map,s=!1,l=je(a.data_.keys()),u;!(u=l()).done;){var d=u.value;if(!r.has(d)){var c=a.delete(d);if(c)s=!0;else{var f=a.data_.get(d);o.set(d,f)}}}for(var y=je(r.entries()),h;!(h=y()).done;){var m=h.value,_=m[0],k=m[1],x=a.data_.has(_);if(a.set(_,k),a.data_.has(_)){var B=a.data_.get(_);o.set(_,B),x||(s=!0)}}if(!s)if(a.data_.size!==o.size)a.keysAtom_.reportChanged();else for(var F=a.data_.keys(),P=o.keys(),U=F.next(),$=P.next();!U.done;){if(U.value!==$.value){a.keysAtom_.reportChanged();break}U=F.next(),$=P.next()}a.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(i,a){return gt(this,i)},t.intercept_=function(i){return ht(this,i)},Jn(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:qa,get:function(){return"Map"}}]),e}(),Te=Ee("ObservableMap",Wa);function Al(e){if(Me(e)||Te(e))return e;if(Array.isArray(e))return new Map(e);if(be(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return I(21,e)}var Ja,Xa,Fl={};Ja=Symbol.iterator;Xa=Symbol.toStringTag;var Za=function(){function e(n,i,a){var r=this;i===void 0&&(i=Ae),a===void 0&&(a="ObservableSet"),this.name_=void 0,this[T]=Fl,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=a,re(Set)||I(22),this.enhancer_=function(o,s){return i(o,s,a)},xe(function(){r.atom_=ga(r.name_),n&&r.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},t.clear=function(){var i=this;pe(function(){Ea(function(){for(var a=je(i.data_.values()),r;!(r=a()).done;){var o=r.value;i.delete(o)}})})},t.forEach=function(i,a){for(var r=je(this),o;!(o=r()).done;){var s=o.value;i.call(a,s,s,this)}},t.add=function(i){var a=this;if(this.atom_,X(this)){var r=Z(this,{type:ye,object:this,newValue:i});if(!r)return this}if(!this.has(i)){pe(function(){a.data_.add(a.enhancer_(i,void 0)),a.atom_.reportChanged()});var o=!1,s=ie(this),l=s||o?{observableKind:"set",debugObjectName:this.name_,type:ye,object:this,newValue:i}:null;s&&ae(this,l)}return this},t.delete=function(i){var a=this;if(X(this)){var r=Z(this,{type:Bt,object:this,oldValue:i});if(!r)return!1}if(this.has(i)){var o=!1,s=ie(this),l=s||o?{observableKind:"set",debugObjectName:this.name_,type:Bt,object:this,oldValue:i}:null;return pe(function(){a.atom_.reportChanged(),a.data_.delete(i)}),s&&ae(this,l),!0}return!1},t.has=function(i){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(i))},t.entries=function(){var i=0,a=Array.from(this.keys()),r=Array.from(this.values());return st({next:function(){var s=i;return i+=1,s<r.length?{value:[a[s],r[s]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var i=this,a=0,r=Array.from(this.data_.values());return st({next:function(){return a<r.length?{value:i.dehanceValue_(r[a++]),done:!1}:{done:!0}}})},t.replace=function(i){var a=this;return Ge(i)&&(i=new Set(i)),pe(function(){Array.isArray(i)?(a.clear(),i.forEach(function(r){return a.add(r)})):ct(i)?(a.clear(),i.forEach(function(r){return a.add(r)})):i!=null&&I("Cannot initialize set from "+i)}),this},t.observe_=function(i,a){return gt(this,i)},t.intercept_=function(i){return ht(this,i)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Ja]=function(){return this.values()},Jn(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Xa,get:function(){return"Set"}}]),e}(),Ge=Ee("ObservableSet",Za),Oi=Object.create(null),wi="remove",Qa=function(){function e(n,i,a,r){i===void 0&&(i=new Map),r===void 0&&(r=Ns),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=i,this.name_=a,this.defaultAnnotation_=r,this.keysAtom_=new mt("ObservableObject.keys"),this.isPlainObject_=be(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(i){return this.values_.get(i).get()},t.setObservablePropValue_=function(i,a){var r=this.values_.get(i);if(r instanceof Ue)return r.set(a),!0;if(X(this)){var o=Z(this,{type:fe,object:this.proxy_||this.target_,name:i,newValue:a});if(!o)return null;a=o.newValue}if(a=r.prepareNewValue_(a),a!==S.UNCHANGED){var s=ie(this),l=!1,u=s||l?{type:fe,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:r.value_,name:i,newValue:a}:null;r.setNewValue_(a),s&&ae(this,u)}return!0},t.get_=function(i){return S.trackingDerivation&&!he(this.target_,i)&&this.has_(i),this.target_[i]},t.set_=function(i,a,r){return r===void 0&&(r=!1),he(this.target_,i)?this.values_.has(i)?this.setObservablePropValue_(i,a):r?Reflect.set(this.target_,i,a):(this.target_[i]=a,!0):this.extend_(i,{value:a,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,r)},t.has_=function(i){if(!S.trackingDerivation)return i in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var a=this.pendingKeys_.get(i);return a||(a=new _e(i in this.target_,Yt,"ObservableObject.key?",!1),this.pendingKeys_.set(i,a)),a.get()},t.make_=function(i,a){if(a===!0&&(a=this.defaultAnnotation_),a!==!1){if(!(i in this.target_)){var r;if((r=this.target_[se])!=null&&r[i])return;I(1,a.annotationType_,this.name_+"."+i.toString())}for(var o=this.target_;o&&o!==Jt;){var s=Pt(o,i);if(s){var l=a.make_(this,i,s,o);if(l===0)return;if(l===1)break}o=Object.getPrototypeOf(o)}Fi(this,a,i)}},t.extend_=function(i,a,r,o){if(o===void 0&&(o=!1),r===!0&&(r=this.defaultAnnotation_),r===!1)return this.defineProperty_(i,a,o);var s=r.extend_(this,i,a,o);return s&&Fi(this,r,i),s},t.defineProperty_=function(i,a,r){r===void 0&&(r=!1),this.keysAtom_;try{Q();var o=this.delete_(i);if(!o)return o;if(X(this)){var s=Z(this,{object:this.proxy_||this.target_,name:i,type:ye,newValue:a.value});if(!s)return null;var l=s.newValue;a.value!==l&&(a=we({},a,{value:l}))}if(r){if(!Reflect.defineProperty(this.target_,i,a))return!1}else de(this.target_,i,a);this.notifyPropertyAddition_(i,a.value)}finally{Y()}return!0},t.defineObservableProperty_=function(i,a,r,o){o===void 0&&(o=!1),this.keysAtom_;try{Q();var s=this.delete_(i);if(!s)return s;if(X(this)){var l=Z(this,{object:this.proxy_||this.target_,name:i,type:ye,newValue:a});if(!l)return null;a=l.newValue}var u=Ai(i),d={configurable:S.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(o){if(!Reflect.defineProperty(this.target_,i,d))return!1}else de(this.target_,i,d);var c=new _e(a,r,"ObservableObject.key",!1);this.values_.set(i,c),this.notifyPropertyAddition_(i,c.value_)}finally{Y()}return!0},t.defineComputedProperty_=function(i,a,r){r===void 0&&(r=!1),this.keysAtom_;try{Q();var o=this.delete_(i);if(!o)return o;if(X(this)){var s=Z(this,{object:this.proxy_||this.target_,name:i,type:ye,newValue:void 0});if(!s)return null}a.name||(a.name="ObservableObject.key"),a.context=this.proxy_||this.target_;var l=Ai(i),u={configurable:S.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:l.get,set:l.set};if(r){if(!Reflect.defineProperty(this.target_,i,u))return!1}else de(this.target_,i,u);this.values_.set(i,new Ue(a)),this.notifyPropertyAddition_(i,void 0)}finally{Y()}return!0},t.delete_=function(i,a){if(a===void 0&&(a=!1),this.keysAtom_,!he(this.target_,i))return!0;if(X(this)){var r=Z(this,{object:this.proxy_||this.target_,name:i,type:wi});if(!r)return null}try{var o,s;Q();var l=ie(this),u=!1,d=this.values_.get(i),c=void 0;if(!d&&(l||u)){var f;c=(f=Pt(this.target_,i))==null?void 0:f.value}if(a){if(!Reflect.deleteProperty(this.target_,i))return!1}else delete this.target_[i];if(d&&(this.values_.delete(i),d instanceof _e&&(c=d.value_),Da(d)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(s=o.get(i))==null||s.set(i in this.target_),l||u){var y={type:wi,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:i};l&&ae(this,y)}}finally{Y()}return!0},t.observe_=function(i,a){return gt(this,i)},t.intercept_=function(i){return ht(this,i)},t.notifyPropertyAddition_=function(i,a){var r,o,s=ie(this),l=!1;if(s||l){var u=s||l?{type:ye,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:i,newValue:a}:null;s&&ae(this,u)}(r=this.pendingKeys_)==null||(o=r.get(i))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Qt(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Ke(e,t){var n;if(he(e,T))return e;var i=(n=t==null?void 0:t.name)!=null?n:"ObservableObject",a=new Qa(e,new Map,String(i),Ds(t));return Zt(e,T,a),e}var El=Ee("ObservableObjectAdministration",Qa);function Ai(e){return Oi[e]||(Oi[e]={get:function(){return this[T].getObservablePropValue_(e)},set:function(n){return this[T].setObservablePropValue_(e,n)}})}function rn(e){return Xt(e)?El(e[T]):!1}function Fi(e,t,n){var i;(i=e.target_[se])==null||delete i[n]}var Cl=er(0),Tl=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),kn=0,Ya=function(){};function xl(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}xl(Ya,Array.prototype);var ni=function(e,t,n){ha(i,e);function i(r,o,s,l){var u;return s===void 0&&(s="ObservableArray"),l===void 0&&(l=!1),u=e.call(this)||this,xe(function(){var d=new ti(s,o,l,!0);d.proxy_=gn(u),fa(gn(u),T,d),r&&r.length&&u.spliceWithArray(0,0,r),Tl&&Object.defineProperty(gn(u),"0",Cl)}),u}var a=i.prototype;return a.concat=function(){this[T].atom_.reportObserved();for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return Array.prototype.concat.apply(this.slice(),s.map(function(u){return an(u)?u.slice():u}))},a[n]=function(){var r=this,o=0;return st({next:function(){return o<r.length?{value:r[o++],done:!1}:{done:!0,value:void 0}}})},Jn(i,[{key:"length",get:function(){return this[T].getArrayLength_()},set:function(o){this[T].setArrayLength_(o)}},{key:t,get:function(){return"Array"}}]),i}(Ya,Symbol.toStringTag,Symbol.iterator);Object.entries(Ut).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&Zt(ni.prototype,t,n)});function er(e){return{enumerable:!1,configurable:!0,get:function(){return this[T].get_(e)},set:function(n){this[T].set_(e,n)}}}function Rl(e){de(ni.prototype,""+e,er(e))}function tr(e){if(e>kn){for(var t=kn;t<e+100;t++)Rl(t);kn=e}}tr(1e3);function Pl(e,t,n){return new ni(e,t,n)}function $t(e,t){if(typeof e=="object"&&e!==null){if(an(e))return t!==void 0&&I(23),e[T].atom_;if(Ge(e))return e.atom_;if(Te(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||I(25,t,In(e)),n}if(rn(e)){if(!t)return I(26);var i=e[T].values_.get(t);return i||I(27,t,In(e)),i}if(Xn(e)||tn(e)||jt(e))return e}else if(re(e)&&jt(e[T]))return e[T];I(28)}function Dl(e,t){if(e||I(29),Xn(e)||tn(e)||jt(e)||Te(e)||Ge(e))return e;if(e[T])return e[T];I(24,e)}function In(e,t){var n;if(t!==void 0)n=$t(e,t);else{if(nn(e))return e.name;rn(e)||Te(e)||Ge(e)?n=Dl(e):n=$t(e)}return n.name_}function xe(e){var t=Ce(),n=Qn(!0);Q();try{return e()}finally{Y(),Yn(n),ge(t)}}var Ei=Jt.toString;function ii(e,t,n){return n===void 0&&(n=-1),Vn(e,t,n)}function Vn(e,t,n,i,a){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var r=typeof e;if(r!=="function"&&r!=="object"&&typeof t!="object")return!1;var o=Ei.call(e);if(o!==Ei.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=Ci(e),t=Ci(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var l=e.constructor,u=t.constructor;if(l!==u&&!(re(l)&&l instanceof l&&re(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),i=i||[],a=a||[];for(var d=i.length;d--;)if(i[d]===e)return a[d]===t;if(i.push(e),a.push(t),s){if(d=e.length,d!==t.length)return!1;for(;d--;)if(!Vn(e[d],t[d],n-1,i,a))return!1}else{var c=Object.keys(e),f;if(d=c.length,Object.keys(t).length!==d)return!1;for(;d--;)if(f=c[d],!(he(t,f)&&Vn(e[f],t[f],n-1,i,a)))return!1}return i.pop(),a.pop(),!0}function Ci(e){return an(e)?e.slice():Me(e)||Te(e)||ct(e)||Ge(e)?Array.from(e.entries()):e}function st(e){return e[Symbol.iterator]=Ll,e}function Ll(){return this}["Symbol","Map","Set"].forEach(function(e){var t=Wn();typeof t[e]=="undefined"&&I("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Qs,extras:{getDebugName:In},$mobx:T});class nr{constructor(t,n){C(this,"channel");C(this,"listeners",new Map);C(this,"eventQueue",new Map);this.logger=n;try{this.channel=new BroadcastChannel(t),this.channel.onmessage=i=>this.handleMessage(i),this.channel.onmessageerror=i=>this.logger.error("NizzaBroadcastChannel:",i)}catch(i){throw this.logger.error("Failed to create NizzaBroadcastChannel:",i),i}}on(t,n){return this.subscribeToEvent(t,n),{off:()=>this.unsubscribeFromEvent(t,n)}}emit(t,n,i={}){this.emitEvent(t,n,i)}handleMessage(t){const n=t.data,{name:i}=n;for(const[a,r]of this.listeners.entries())this.matchWildcard(a,i)&&r.forEach(o=>o({...n,wildcard:a}))}subscribeToEvent(t,n){if(typeof t!="string"||typeof n!="function"){const i=new Error("Invalid arguments");throw this.logger.error(i),i}for(const[i,a]of this.listeners.entries())if(this.matchWildcard(i,t)){a.add(n);const r=this.eventQueue.get(i);r&&(r.forEach(o=>{n({...o,wildcard:i})}),this.eventQueue.delete(i));return}this.listeners.set(t,new Set([n]))}emitEvent(t,n,i){if(typeof t!="string"){const o=new Error("Invalid arguments");throw this.logger.error(o),o}const a={name:t,data:n,attrs:i},r=Array.from(this.getMatchingListeners(t));if(r.length)for(const[o,s]of r)s({...a,wildcard:o});else this.eventQueue.has(t)||this.eventQueue.set(t,[]),this.eventQueue.get(t).push(a);this.channel.postMessage(a)}*getMatchingListeners(t){for(const[n,i]of this.listeners.entries())if(this.matchWildcard(n,t))for(const a of i)yield[n,a]}unsubscribeFromEvent(t,n){if(this.listeners.has(t)){const i=this.listeners.get(t);i.delete(n),i.size===0&&this.listeners.delete(t)}}matchWildcard(t,n){const i=t.replace(/\*/g,"[^:]*").replace(/\*\*/g,".*");return new RegExp(`^${i}$`).test(n)}}const Il="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Vl=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+=Il[n[e]&63];return t};const ir=(e=8)=>Vl(e),jl=e=>{const t=Object.entries(e).reduce((n,[i,a])=>a!==void 0?`${n}${n?"&":""}${i}=${a}`:n,"");return t?`?${t}`:""};function Ul(){const e=new Error().stack.split(`
4
- `);return e.length<3?"":e[2].trim().substring(3)}var ar=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var or={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.log=n()})(ar,function(){var t=function(){},n="undefined",i=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"],r={},o=null;function s(m,_){var k=m[_];if(typeof k.bind=="function")return k.bind(m);try{return Function.prototype.bind.call(k,m)}catch{return function(){return Function.prototype.apply.apply(k,[m,arguments])}}}function l(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(m){return m==="debug"&&(m="log"),typeof console===n?!1:m==="trace"&&i?l:console[m]!==void 0?s(console,m):console.log!==void 0?s(console,"log"):t}function d(){for(var m=this.getLevel(),_=0;_<a.length;_++){var k=a[_];this[k]=_<m?t:this.methodFactory(k,m,this.name)}if(this.log=this.debug,typeof console===n&&m<this.levels.SILENT)return"No console available for logging"}function c(m){return function(){typeof console!==n&&(d.call(this),this[m].apply(this,arguments))}}function f(m,_,k){return u(m)||c.apply(this,arguments)}function y(m,_){var k=this,x,B,F,P="loglevel";typeof m=="string"?P+=":"+m:typeof m=="symbol"&&(P=void 0);function U(v){var b=(a[v]||"silent").toUpperCase();if(!(typeof window===n||!P)){try{window.localStorage[P]=b;return}catch{}try{window.document.cookie=encodeURIComponent(P)+"="+b+";"}catch{}}}function $(){var v;if(!(typeof window===n||!P)){try{v=window.localStorage[P]}catch{}if(typeof v===n)try{var b=window.document.cookie,O=encodeURIComponent(P),N=b.indexOf(O+"=");N!==-1&&(v=/^([^;]+)/.exec(b.slice(N+O.length+1))[1])}catch{}return k.levels[v]===void 0&&(v=void 0),v}}function g(){if(!(typeof window===n||!P)){try{window.localStorage.removeItem(P)}catch{}try{window.document.cookie=encodeURIComponent(P)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function w(v){var b=v;if(typeof b=="string"&&k.levels[b.toUpperCase()]!==void 0&&(b=k.levels[b.toUpperCase()]),typeof b=="number"&&b>=0&&b<=k.levels.SILENT)return b;throw new TypeError("log.setLevel() called with invalid level: "+v)}k.name=m,k.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},k.methodFactory=_||f,k.getLevel=function(){return F!=null?F:B!=null?B:x},k.setLevel=function(v,b){return F=w(v),b!==!1&&U(F),d.call(k)},k.setDefaultLevel=function(v){B=w(v),$()||k.setLevel(v,!1)},k.resetLevel=function(){F=null,g(),d.call(k)},k.enableAll=function(v){k.setLevel(k.levels.TRACE,v)},k.disableAll=function(v){k.setLevel(k.levels.SILENT,v)},k.rebuild=function(){if(o!==k&&(x=w(o.getLevel())),d.call(k),o===k)for(var v in r)r[v].rebuild()},x=w(o?o.getLevel():"WARN");var A=$();A!=null&&(F=w(A)),d.call(k)}o=new y,o.getLogger=function(_){if(typeof _!="symbol"&&typeof _!="string"||_==="")throw new TypeError("You must supply a name when creating a logger.");var k=r[_];return k||(k=r[_]=new y(_,o.methodFactory)),k};var h=typeof window!==n?window.log:void 0;return o.noConflict=function(){return typeof window!==n&&window.log===o&&(window.log=h),o},o.getLoggers=function(){return r},o.default=o,o})})(or);var sr=or.exports;const yn=rr(sr);var lr={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.prefix=n(t)})(ar,function(t){var n=function(d){for(var c=1,f=arguments.length,y;c<f;c++)for(y in arguments[c])Object.prototype.hasOwnProperty.call(arguments[c],y)&&(d[y]=arguments[c][y]);return d},i={template:"[%t] %l:",levelFormatter:function(d){return d.toUpperCase()},nameFormatter:function(d){return d||"root"},timestampFormatter:function(d){return d.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},a,r={},o=function(d){if(!d||!d.getLogger)throw new TypeError("Argument is not a root logger");a=d},s=function(d,c){if(!d||!d.setLevel)throw new TypeError("Argument is not a logger");var f=d.methodFactory,y=d.name||"",h=r[y]||r[""]||i;function m(_,k,x){var B=f(_,k,x),F=r[x]||r[""],P=F.template.indexOf("%t")!==-1,U=F.template.indexOf("%l")!==-1,$=F.template.indexOf("%n")!==-1;return function(){for(var g="",w=arguments.length,A=Array(w),v=0;v<w;v++)A[v]=arguments[v];if(y||!r[x]){var b=F.timestampFormatter(new Date),O=F.levelFormatter(_),N=F.nameFormatter(x);F.format?g+=F.format(O,N,b):(g+=F.template,P&&(g=g.replace(/%t/,b)),U&&(g=g.replace(/%l/,O)),$&&(g=g.replace(/%n/,N))),A.length&&typeof A[0]=="string"?A[0]=g+" "+A[0]:A.unshift(g)}B.apply(void 0,A)}}return r[y]||(d.methodFactory=m),c=c||{},c.template&&(c.format=void 0),r[y]=n({},h,c),d.setLevel(d.getLevel()),a||d.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),d},l={reg:o,apply:s},u;return t&&(u=t.prefix,l.noConflict=function(){return t.prefix===l&&(t.prefix=u),l}),l})})(lr);var Bl=lr.exports;const Ti=rr(Bl);let ur=class{constructor(t){C(this,"defaultLevel",sr.levels.INFO);C(this,"namePrefix");C(this,"provider",yn);this.namePrefix=t?`${t}-`:"",this.provider.setDefaultLevel(this.defaultLevel),Ti.reg(yn),Ti.apply(yn,{template:"[%t] %l (%n)",nameFormatter:n=>{var i;return(i=n==null?void 0:n.toLowerCase())!=null?i:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)})}createLogger(t){const n=this.namePrefix+t.toLowerCase(),i=this.provider.getLogger(n),a=localStorage.getItem(`loglevel:${n}`);return a?i.setLevel(a):i.setLevel(this.defaultLevel),i}};const ne=class ne{constructor(){C(this,"instanceId",ir());C(this,"log",new ur("nz"));C(this,"coreLogger",this.log.createLogger("core"));C(this,"_config",null);C(this,"_account");C(this,"_productDataSource");C(this,"_eventBus",new nr("nizza",this.coreLogger));Ga(this,{_config:K,_account:K,_productDataSource:K,config:Se,account:Se,accountName:Se,configure:ke,setProductDataSource:ke},{name:"NizzaStore",autoBind:!0})}static instance(){if(!!window.nizza)ne._instance=window.nizza;else{const n=new ne;ne._instance=n}return window.nizza=ne._instance,window.nz=ne._instance,ne._instance}async configure(t){var n;try{const i=(n=this._config)==null?void 0:n.account;if(this._config=t,i!==t.account){const a=await wr(t.account);this.setAccount(a)}if(t.getProductDataSource){const a=await t.getProductDataSource();this.setProductDataSource(a)}}catch(i){this.coreLogger.error("Error configuring NizzaStore:",i)}}setAccount(t){this._account=t}setProductDataSource(t){this._productDataSource=t}get version(){return ne.version}get config(){return this._config}get account(){return this._account}get accountName(){var t;return(t=this._config)==null?void 0:t.account}get productDataSource(){return this._productDataSource}get eventBus(){return this._eventBus}};C(ne,"version","4"),C(ne,"_instance");let Mt=ne;const He=()=>Mt.instance();function Ie(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Ct(e){return function t(n){return arguments.length===0||Ie(n)?t:e.apply(this,arguments)}}function ai(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return Ie(n)?t:Ct(function(a){return e(n,a)});default:return Ie(n)&&Ie(i)?t:Ie(n)?Ct(function(a){return e(a,i)}):Ie(i)?Ct(function(a){return e(n,a)}):e(n,i)}}}const $l=Number.isInteger||function(t){return t<<0===t};function Ml(e){return Object.prototype.toString.call(e)==="[object String]"}var zl=ai(function(t,n){var i=t<0?n.length+t:t;return Ml(n)?n.charAt(i):n[i]}),Gl=Ct(function(t){return t==null}),Kl=ai(function(t,n){return t.map(function(i){for(var a=n,r=0,o;r<i.length;){if(a==null)return;o=i[r],a=$l(o)?zl(o,a):a[o],r+=1}return a})}),Hl=ai(function(t,n){return Kl([t],n)[0]});class vt extends Error{constructor(t,n,i){super(n),this.value=i,this.name=t}toDTO(){return{name:this.name,message:this.message,...this.value&&{value:this.value}}}}class dr extends vt{constructor(t){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${t}' not found.`,t)}}class cr extends vt{constructor(t){var n;super("APP_UNEXPECTED_ERROR",(n=t.message)!=null?n:"An unexpected error occurred.",t)}}class ql extends vt{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class fr extends vt{constructor(t){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
5
- Configuration property invalid: "${t}".
1
+ "use strict";var vo=Object.defineProperty;var ko=(t,e,n)=>e in t?vo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var w=(t,e,n)=>(ko(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const yo=require("@tanstack/react-query"),z=require("react"),Xr=require("react-dom"),_o=require("react/jsx-runtime");var W={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let bo=0;function So(t,e){const n=`atom${++bo}`,i={toString:()=>n};return i.init=t,i.read=No,i.write=Ao,i}function No(t){return t(this)}function Ao(t,e,n){return e(this,typeof n=="function"?n(t(this)):n)}const Dn=(t,e)=>t.unstable_is?t.unstable_is(e):e===t,$n=t=>"init"in t,In=t=>!!t.write,Xt=new WeakMap,wo=(t,e)=>{Xt.set(t,e),t.catch(()=>{}).finally(()=>Xt.delete(t))},Hi=(t,e)=>{const n=Xt.get(t);n&&(Xt.delete(t),n(e))},Gi=(t,e)=>{t.status="fulfilled",t.value=e},Ki=(t,e)=>{t.status="rejected",t.reason=e},Oo=t=>typeof(t==null?void 0:t.then)=="function",rt=(t,e)=>!!t&&"v"in t&&"v"in e&&Object.is(t.v,e.v),qi=(t,e)=>!!t&&"e"in t&&"e"in e&&Object.is(t.e,e.e),Ve=t=>!!t&&"v"in t&&t.v instanceof Promise,Eo=(t,e)=>"v"in t&&"v"in e&&t.v.orig&&t.v.orig===e.v.orig,jt=t=>{if("e"in t)throw t.e;return t.v},Zr=()=>{const t=new WeakMap,e=new WeakMap,n=[],i=new WeakMap;let r,a;(W?"production":void 0)!=="production"&&(r=new Set,a=new Set);const s=g=>t.get(g),o=(g,O)=>{O.d.forEach((E,v)=>{var _;if(!i.has(v)){const A=s(v);(_=n[n.length-1])==null||_.add(v),i.set(v,[A,new Set]),A&&o(v,A)}i.get(v)[1].add(g)})},l=(g,O)=>{var E;(W?"production":void 0)!=="production"&&Object.freeze(O);const v=s(g);if(t.set(g,O),i.has(g)||((E=n[n.length-1])==null||E.add(g),i.set(g,[v,new Set]),o(g,O)),Ve(v)){const _="v"in O?O.v instanceof Promise?O.v:Promise.resolve(O.v):Promise.reject(O.e);v.v!==_&&Hi(v.v,_)}},u=(g,O,E,v)=>{const _=new Map(v?O.d:null);let A=!1;E.forEach((N,C)=>{!N&&Dn(g,C)&&(N=O),N?(_.set(C,N),O.d.get(C)!==N&&(A=!0)):(W?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(A||O.d.size!==_.size)&&(O.d=_)},d=(g,O,E,v)=>{const _=s(g),A={d:(_==null?void 0:_.d)||new Map,v:O};if(E&&u(g,A,E,v),rt(_,A)&&_.d===A.d)return _;if(Ve(_)&&Ve(A)&&Eo(_,A)){if(_.d===A.d)return _;A.v=_.v}return l(g,A),A},c=(g,O,E,v)=>{if(Oo(O)){let _;const A=()=>{const C=s(g);if(!Ve(C)||C.v!==N)return;const V=d(g,N,E);e.has(g)&&C.d!==V.d&&P(g,V,C.d)},N=new Promise((C,V)=>{let R=!1;O.then(L=>{R||(R=!0,Gi(N,L),C(L),A())},L=>{R||(R=!0,Ki(N,L),V(L),A())}),_=L=>{R||(R=!0,L.then(q=>Gi(N,q),q=>Ki(N,q)),C(L))}});return N.orig=O,N.status="pending",wo(N,C=>{C&&_(C),v==null||v()}),d(g,N,E,!0)}return d(g,O,E)},f=(g,O,E)=>{const v=s(g),_={d:(v==null?void 0:v.d)||new Map,e:O};return E&&u(g,_,E),qi(v,_)&&v.d===_.d?v:(l(g,_),_)},k=(g,O)=>{const E=s(g);if(!O&&E&&(e.has(g)||Array.from(E.d).every(([R,L])=>{if(R===g)return!0;const q=k(R);return q===L||rt(q,L)})))return E;const v=new Map;let _=!0;const A=R=>{if(Dn(g,R)){const q=s(R);if(q)return v.set(R,q),jt(q);if($n(R))return v.set(R,void 0),R.init;throw new Error("no atom init")}const L=k(R);return v.set(R,L),jt(L)};let N,C;const V={get signal(){return N||(N=new AbortController),N.signal},get setSelf(){return(W?"production":void 0)!=="production"&&!In(g)&&console.warn("setSelf function cannot be used with read-only atom"),!C&&In(g)&&(C=(...R)=>{if((W?"production":void 0)!=="production"&&_&&console.warn("setSelf function cannot be called in sync"),!_)return y(g,...R)}),C}};try{const R=g.read(A,V);return c(g,R,v,()=>N==null?void 0:N.abort())}catch(R){return f(g,R,v)}finally{_=!1}},p=g=>jt(k(g)),m=g=>{const O=N=>{var C,V;const R=new Set((C=e.get(N))==null?void 0:C.t);return(V=i.get(N))==null||V[1].forEach(L=>{R.add(L)}),R},E=new Array,v=new Set,_=N=>{if(!v.has(N)){v.add(N);for(const C of O(N))N!==C&&_(C);E.push(N)}};_(g);const A=new Set([g]);for(let N=E.length-1;N>=0;--N){const C=E[N],V=s(C);if(!V)continue;let R=!1;for(const L of V.d.keys())if(L!==C&&A.has(L)){R=!0;break}if(R){const L=k(C,!0);rt(V,L)||A.add(C)}}},S=(g,...O)=>{const E=A=>jt(k(A)),v=(A,...N)=>{const C=n.length>0;C||n.push(new Set([A]));let V;if(Dn(g,A)){if(!$n(A))throw new Error("atom not writable");const R=s(A),L=c(A,N[0]);rt(R,L)||m(A)}else V=S(A,...N);if(!C){const R=j(n.pop());(W?"production":void 0)!=="production"&&r.forEach(L=>L({type:"async-write",flushed:R}))}return V};return g.write(E,v,...O)},y=(g,...O)=>{n.push(new Set([g]));const E=S(g,...O),v=j(n.pop());return(W?"production":void 0)!=="production"&&r.forEach(_=>_({type:"write",flushed:v})),E},T=(g,O,E)=>{var v;const _=e.get(g);if(_)return O&&_.t.add(O),_;const A=E||[];(v=s(g))==null||v.d.forEach((C,V)=>{V!==g&&T(V,g,A)}),k(g);const N={t:new Set(O&&[O]),l:new Set};if(e.set(g,N),(W?"production":void 0)!=="production"&&a.add(g),In(g)&&g.onMount){const{onMount:C}=g;A.push(()=>{const V=C((...R)=>y(g,...R));V&&(N.u=V)})}return E||A.forEach(C=>C()),N},U=(g,O)=>!O.l.size&&(!O.t.size||O.t.size===1&&O.t.has(g)),F=(g,O)=>{if(!U(g,O))return;const E=O.u;E&&E(),e.delete(g),(W?"production":void 0)!=="production"&&a.delete(g);const v=s(g);v?(Ve(v)&&Hi(v.v),v.d.forEach((_,A)=>{if(A!==g){const N=e.get(A);N&&(N.t.delete(g),F(A,N))}})):(W?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",g)},P=(g,O,E)=>{const v=new Set(O.d.keys()),_=new Set;E==null||E.forEach((A,N)=>{if(v.has(N)){v.delete(N);return}_.add(N);const C=e.get(N);C&&C.t.delete(g)}),v.forEach(A=>{T(A,g)}),_.forEach(A=>{const N=e.get(A);N&&F(A,N)})},j=g=>{let O;(W?"production":void 0)!=="production"&&(O=new Set);const E=[],v=_=>{var A;if(!i.has(_))return;const[N,C]=i.get(_);i.delete(_),E.push([_,N]),C.forEach(v),(A=s(_))==null||A.d.forEach((V,R)=>v(R))};if(g.forEach(v),E.forEach(([_,A])=>{const N=s(_);if(!N){(W?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush");return}if(N!==A){const C=e.get(_);C&&N.d!==(A==null?void 0:A.d)&&P(_,N,A==null?void 0:A.d),C&&!(!Ve(A)&&(rt(A,N)||qi(A,N)))&&(C.l.forEach(V=>V()),(W?"production":void 0)!=="production"&&O.add(_))}}),(W?"production":void 0)!=="production")return O},B=(g,O)=>{const E=T(g),v=j([g]),_=E.l;return _.add(O),(W?"production":void 0)!=="production"&&r.forEach(A=>A({type:"sub",flushed:v})),()=>{_.delete(O),F(g,E),(W?"production":void 0)!=="production"&&r.forEach(A=>A({type:"unsub"}))}};return(W?"production":void 0)!=="production"?{get:p,set:y,sub:B,dev_subscribe_store:g=>(r.add(g),()=>{r.delete(g)}),dev_get_mounted_atoms:()=>a.values(),dev_get_atom_state:g=>t.get(g),dev_get_mounted:g=>e.get(g),dev_restore_atoms:g=>{n.push(new Set);for(const[E,v]of g)$n(E)&&(c(E,v),m(E));const O=j(n.pop());r.forEach(E=>E({type:"restore",flushed:O}))}}:{get:p,set:y,sub:B}};let at;const Fo=()=>(at||(at=Zr(),(W?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=at),globalThis.__JOTAI_DEFAULT_STORE__!==at&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),at),Co=Zr,xo=Fo;var To={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Ro=z.createContext(void 0),Qr=t=>z.useContext(Ro)||xo(),Po=t=>typeof(t==null?void 0:t.then)=="function",Lo=z.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t)});function Do(t,e){const n=Qr(),[[i,r,a],s]=z.useReducer(u=>{const d=n.get(t);return Object.is(u[0],d)&&u[1]===n&&u[2]===t?u:[d,n,t]},void 0,()=>[n.get(t),n,t]);let o=i;return(r!==n||a!==t)&&(s(),o=n.get(t)),z.useEffect(()=>{const u=n.sub(t,()=>{s()});return s(),u},[n,t,void 0]),z.useDebugValue(o),Po(o)?Lo(o):o}function $o(t,e){const n=Qr();return z.useCallback((...r)=>{if((To?"production":void 0)!=="production"&&!("write"in t))throw new Error("not writable atom");return n.set(t,...r)},[n,t])}function Io(t,e){return[Do(t),$o(t)]}const gn=So(null);gn.debugLabel="accountAtom";var Vo={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{NZ_AWS_REGION:jo,NZ_BACKOFFICE_BACK_URL:Uo,NZ_CORE_SERVICES_GRAPHQL_URL:Bo,NZ_CORE_SERVICES_REST_URL:Mo}=Vo,zo={AWS:{region:jo,cognito:{userPoolId:"us-east-1_knSlGEmJ0",userPoolWebClientId:"3hmbfhf7nl3kq20qr9i5lihf1p"}},apiUrls:{restV1:Uo||"https://pabprg32bj.execute-api.us-east-1.amazonaws.com",restV2:Mo||"https://core-services-dev.nizza.com/api",graphql:Bo||"https://core-services-dev.nizza.com/graphql",corsProxy:"https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"},publicUrls:{platformSite:"https://platformdev.nizza.com",nizzaCdn:"https://cdn.nizza.com",bundleSite:"https://bundledev.nizza.com",wssIVSChat:"wss://edge.ivschat.us-east-1.amazonaws.com"}};function Ho(t,e){let n=null;const i=()=>{n||(n=e().log.createLogger(t))},r=(s,o)=>typeof s[o]=="function",a={get(s,o,l){i();const u=d=>(...c)=>{if(!n)return;const f=n[d];if(typeof f=="function")return f.apply(n,c)};return n&&r(n,o)?u(o):n?n[o]:void 0}};return new Proxy({},a)}async function bi(t){const{url:e,method:n="GET",body:i,raw:r=!1,contentTypeJson:a=!0,timeout:s,...o}=t,l=a&&!t.headers?new Headers({"content-type":"application/json"}):t.headers;try{const u=new AbortController,{signal:d}=u;let c;const f=fetch(e,{method:n,headers:l,body:i,signal:d,...o});s&&(c=setTimeout(()=>{u.abort()},s));const k=await f;if(r)return k;const p=await k.json();if(clearTimeout(c),!k.ok){const m=p?JSON.stringify(p):k.statusText;throw new Error(m)}return p}catch(u){throw console.error("[CustomFetch] ",u),u}}const Go=t=>bi({...t,contentTypeJson:!1,raw:!1});function Ko(t,e,n){fetch(e).then(i=>i.blob()).then(i=>ea(i,`${t}.${n}`))}const ea=(t,e,n)=>{const i=[t],r=new Blob(i,{type:n!=null?n:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(r,e);const a=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(r):window.webkitURL.createObjectURL(r),s=document.createElement("a");return s.style.display="none",s.href=a,s.setAttribute("download",e),typeof s.download=="undefined"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),setTimeout(()=>{document.body.removeChild(s),window.URL.revokeObjectURL(a)},200)};function $(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];throw new Error(typeof t=="number"?"[MobX] minified error nr: "+t+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}var qo={};function Si(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:qo}var ta=Object.assign,Zt=Object.getOwnPropertyDescriptor,ce=Object.defineProperty,vn=Object.prototype,ei=[];Object.freeze(ei);var na={};Object.freeze(na);var Wo=typeof Proxy!="undefined",Jo=Object.toString();function ia(){Wo||$("Proxy not available")}function ra(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var He=function(){};function ae(t){return typeof t=="function"}function Ce(t){var e=typeof t;switch(e){case"string":case"symbol":case"number":return!0}return!1}function kn(t){return t!==null&&typeof t=="object"}function Ne(t){if(!kn(t))return!1;var e=Object.getPrototypeOf(t);if(e==null)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n.toString()===Jo}function aa(t){var e=t==null?void 0:t.constructor;return e?e.name==="GeneratorFunction"||e.displayName==="GeneratorFunction":!1}function yn(t,e,n){ce(t,e,{enumerable:!1,writable:!0,configurable:!0,value:n})}function sa(t,e,n){ce(t,e,{enumerable:!1,writable:!1,configurable:!0,value:n})}function Le(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(i){return kn(i)&&i[n]===!0}}function Xe(t){return t instanceof Map}function Ft(t){return t instanceof Set}var oa=typeof Object.getOwnPropertySymbols!="undefined";function Yo(t){var e=Object.keys(t);if(!oa)return e;var n=Object.getOwnPropertySymbols(t);return n.length?[].concat(e,n.filter(function(i){return vn.propertyIsEnumerable.call(t,i)})):e}var _n=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:oa?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames;function la(t){return t===null?null:typeof t=="object"?""+t:t}function ge(t,e){return vn.hasOwnProperty.call(t,e)}var Xo=Object.getOwnPropertyDescriptors||function(e){var n={};return _n(e).forEach(function(i){n[i]=Zt(e,i)}),n};function Zo(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,tl(i.key),i)}}function Ni(t,e,n){return e&&Zo(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function xe(){return xe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},xe.apply(this,arguments)}function ua(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ti(t,e)}function ti(t,e){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},ti(t,e)}function Vn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qo(t,e){if(t){if(typeof t=="string")return Wi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wi(t,e)}}function Wi(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Ge(t,e){var n=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Qo(t))||e){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function el(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function tl(t){var e=el(t,"string");return typeof e=="symbol"?e:String(e)}var le=Symbol("mobx-stored-annotations");function fe(t){function e(n,i){if(Ct(i))return t.decorate_20223_(n,i);Ze(n,i,t)}return Object.assign(e,t)}function Ze(t,e,n){ge(t,le)||yn(t,le,xe({},t[le])),dl(n)||(t[le][e]=n)}function nl(t){return ge(t,le)||yn(t,le,xe({},t[le])),t[le]}function Ct(t){return typeof t=="object"&&typeof t.kind=="string"}var x=Symbol("mobx administration"),xt=function(){function t(n){n===void 0&&(n="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=I.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var e=t.prototype;return e.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},e.reportObserved=function(){return Ea(this)},e.reportChanged=function(){Q(),Fa(this),ee()},e.toString=function(){return this.name_},t}(),Ai=Le("Atom",xt);function da(t,e,n){e===void 0&&(e=He),n===void 0&&(n=He);var i=new xt(t);return e!==He&&hu(i,e),n!==He&&Pa(i,n),i}function il(t,e){return t===e}function rl(t,e){return Ti(t,e)}function al(t,e){return Ti(t,e,1)}function sl(t,e){return Object.is?Object.is(t,e):t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Qt={identity:il,structural:rl,default:sl,shallow:al};function Te(t,e,n){return Ia(t)?t:Array.isArray(t)?K.array(t,{name:n}):Ne(t)?K.object(t,void 0,{name:n}):Xe(t)?K.map(t,{name:n}):Ft(t)?K.set(t,{name:n}):typeof t=="function"&&!An(t)&&!_t(t)?aa(t)?qe(t):yt(n,t):t}function ol(t,e,n){if(t==null||On(t)||wn(t)||$e(t)||Qe(t))return t;if(Array.isArray(t))return K.array(t,{name:n,deep:!1});if(Ne(t))return K.object(t,void 0,{name:n,deep:!1});if(Xe(t))return K.map(t,{name:n,deep:!1});if(Ft(t))return K.set(t,{name:n,deep:!1})}function bn(t){return t}function ll(t,e){return Ti(t,e)?e:t}var ul="override";function dl(t){return t.annotationType_===ul}function Tt(t,e){return{annotationType_:t,options_:e,make_:cl,extend_:fl,decorate_20223_:ml}}function cl(t,e,n,i){var r;if((r=this.options_)!=null&&r.bound)return this.extend_(t,e,n,!1)===null?0:1;if(i===t.target_)return this.extend_(t,e,n,!1)===null?0:2;if(An(n.value))return 1;var a=ca(t,this,e,n,!1);return ce(i,e,a),2}function fl(t,e,n,i){var r=ca(t,this,e,n);return t.defineProperty_(e,r,i)}function ml(t,e){var n=e.kind,i=e.name,r=e.addInitializer,a=this,s=function(u){var d,c,f,k;return Re((d=(c=a.options_)==null?void 0:c.name)!=null?d:i.toString(),u,(f=(k=a.options_)==null?void 0:k.autoAction)!=null?f:!1)};if(n=="field"){r(function(){Ze(this,i,a)});return}if(n=="method"){var o;return An(t)||(t=s(t)),(o=this.options_)!=null&&o.bound&&r(function(){var l=this,u=l[i].bind(l);u.isMobxAction=!0,l[i]=u}),t}$("Cannot apply '"+a.annotationType_+"' to '"+String(i)+"' (kind: "+n+"):"+(`
3
+ '`+a.annotationType_+"' can only be used on properties with a function value."))}function hl(t,e,n,i){e.annotationType_,i.value}function ca(t,e,n,i,r){var a,s,o,l,u,d,c;r===void 0&&(r=b.safeDescriptors),hl(t,e,n,i);var f=i.value;if((a=e.options_)!=null&&a.bound){var k;f=f.bind((k=t.proxy_)!=null?k:t.target_)}return{value:Re((s=(o=e.options_)==null?void 0:o.name)!=null?s:n.toString(),f,(l=(u=e.options_)==null?void 0:u.autoAction)!=null?l:!1,(d=e.options_)!=null&&d.bound?(c=t.proxy_)!=null?c:t.target_:void 0),configurable:r?t.isPlainObject_:!0,enumerable:!1,writable:!r}}function fa(t,e){return{annotationType_:t,options_:e,make_:pl,extend_:gl,decorate_20223_:vl}}function pl(t,e,n,i){var r;if(i===t.target_)return this.extend_(t,e,n,!1)===null?0:2;if((r=this.options_)!=null&&r.bound&&(!ge(t.target_,e)||!_t(t.target_[e]))&&this.extend_(t,e,n,!1)===null)return 0;if(_t(n.value))return 1;var a=ma(t,this,e,n,!1,!1);return ce(i,e,a),2}function gl(t,e,n,i){var r,a=ma(t,this,e,n,(r=this.options_)==null?void 0:r.bound);return t.defineProperty_(e,a,i)}function vl(t,e){var n,i=e.name,r=e.addInitializer;return _t(t)||(t=qe(t)),(n=this.options_)!=null&&n.bound&&r(function(){var a=this,s=a[i].bind(a);s.isMobXFlow=!0,a[i]=s}),t}function kl(t,e,n,i){e.annotationType_,i.value}function ma(t,e,n,i,r,a){a===void 0&&(a=b.safeDescriptors),kl(t,e,n,i);var s=i.value;if(_t(s)||(s=qe(s)),r){var o;s=s.bind((o=t.proxy_)!=null?o:t.target_),s.isMobXFlow=!0}return{value:s,configurable:a?t.isPlainObject_:!0,enumerable:!1,writable:!a}}function wi(t,e){return{annotationType_:t,options_:e,make_:yl,extend_:_l,decorate_20223_:bl}}function yl(t,e,n){return this.extend_(t,e,n,!1)===null?0:1}function _l(t,e,n,i){return Sl(t,this,e,n),t.defineComputedProperty_(e,xe({},this.options_,{get:n.get,set:n.set}),i)}function bl(t,e){var n=this,i=e.name,r=e.addInitializer;return r(function(){var a=et(this)[x],s=xe({},n.options_,{get:t,context:this});s.name||(s.name="ObservableObject."+i.toString()),a.values_.set(i,new Ke(s))}),function(){return this[x].getObservablePropValue_(i)}}function Sl(t,e,n,i){e.annotationType_,i.get}function Sn(t,e){return{annotationType_:t,options_:e,make_:Nl,extend_:Al,decorate_20223_:wl}}function Nl(t,e,n){return this.extend_(t,e,n,!1)===null?0:1}function Al(t,e,n,i){var r,a;return Ol(t,this),t.defineObservableProperty_(e,n.value,(r=(a=this.options_)==null?void 0:a.enhancer)!=null?r:Te,i)}function wl(t,e){var n=this,i=e.kind,r=e.name,a=new WeakSet;function s(o,l){var u,d,c=et(o)[x],f=new Ee(l,(u=(d=n.options_)==null?void 0:d.enhancer)!=null?u:Te,"ObservableObject."+r.toString(),!1);c.values_.set(r,f),a.add(o)}if(i=="accessor")return{get:function(){return a.has(this)||s(this,t.get.call(this)),this[x].getObservablePropValue_(r)},set:function(l){return a.has(this)||s(this,l),this[x].setObservablePropValue_(r,l)},init:function(l){return a.has(this)||s(this,l),l}}}function Ol(t,e,n,i){e.annotationType_}var El="true",Fl=ha();function ha(t){return{annotationType_:El,options_:t,make_:Cl,extend_:xl,decorate_20223_:Tl}}function Cl(t,e,n,i){var r,a;if(n.get)return Oe.make_(t,e,n,i);if(n.set){var s=Re(e.toString(),n.set);return i===t.target_?t.defineProperty_(e,{configurable:b.safeDescriptors?t.isPlainObject_:!0,set:s})===null?0:2:(ce(i,e,{configurable:!0,set:s}),2)}if(i!==t.target_&&typeof n.value=="function"){var o;if(aa(n.value)){var l,u=(l=this.options_)!=null&&l.autoBind?qe.bound:qe;return u.make_(t,e,n,i)}var d=(o=this.options_)!=null&&o.autoBind?yt.bound:yt;return d.make_(t,e,n,i)}var c=((r=this.options_)==null?void 0:r.deep)===!1?K.ref:K;if(typeof n.value=="function"&&(a=this.options_)!=null&&a.autoBind){var f;n.value=n.value.bind((f=t.proxy_)!=null?f:t.target_)}return c.make_(t,e,n,i)}function xl(t,e,n,i){var r,a;if(n.get)return Oe.extend_(t,e,n,i);if(n.set)return t.defineProperty_(e,{configurable:b.safeDescriptors?t.isPlainObject_:!0,set:Re(e.toString(),n.set)},i);if(typeof n.value=="function"&&(r=this.options_)!=null&&r.autoBind){var s;n.value=n.value.bind((s=t.proxy_)!=null?s:t.target_)}var o=((a=this.options_)==null?void 0:a.deep)===!1?K.ref:K;return o.extend_(t,e,n,i)}function Tl(t,e){$("'"+this.annotationType_+"' cannot be used as a decorator")}var Rl="observable",Pl="observable.ref",Ll="observable.shallow",Dl="observable.struct",pa={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(pa);function Ut(t){return t||pa}var ni=Sn(Rl),$l=Sn(Pl,{enhancer:bn}),Il=Sn(Ll,{enhancer:ol}),Vl=Sn(Dl,{enhancer:ll}),ga=fe(ni);function Bt(t){return t.deep===!0?Te:t.deep===!1?bn:Ul(t.defaultDecorator)}function jl(t){var e;return t?(e=t.defaultDecorator)!=null?e:ha(t):void 0}function Ul(t){var e,n;return t&&(e=(n=t.options_)==null?void 0:n.enhancer)!=null?e:Te}function va(t,e,n){if(Ct(e))return ni.decorate_20223_(t,e);if(Ce(e)){Ze(t,e,ni);return}return Ia(t)?t:Ne(t)?K.object(t,e,n):Array.isArray(t)?K.array(t,e):Xe(t)?K.map(t,e):Ft(t)?K.set(t,e):typeof t=="object"&&t!==null?t:K.box(t,e)}ta(va,ga);var Bl={box:function(e,n){var i=Ut(n);return new Ee(e,Bt(i),i.name,!0,i.equals)},array:function(e,n){var i=Ut(n);return(b.useProxies===!1||i.proxy===!1?Vu:Fu)(e,Bt(i),i.name)},map:function(e,n){var i=Ut(n);return new Ma(e,Bt(i),i.name)},set:function(e,n){var i=Ut(n);return new Ga(e,Bt(i),i.name)},object:function(e,n,i){return Ie(function(){return ku(b.useProxies===!1||(i==null?void 0:i.proxy)===!1?et({},i):wu({},i),e,n)})},ref:fe($l),shallow:fe(Il),deep:ga,struct:fe(Vl)},K=ta(va,Bl),ka="computed",Ml="computed.struct",ii=wi(ka),zl=wi(Ml,{equals:Qt.structural}),Oe=function(e,n){if(Ct(n))return ii.decorate_20223_(e,n);if(Ce(n))return Ze(e,n,ii);if(Ne(e))return fe(wi(ka,e));var i=Ne(n)?n:{};return i.get=e,i.name||(i.name=e.name||""),new Ke(i)};Object.assign(Oe,ii);Oe.struct=fe(zl);var Ji,Yi,en=0,Hl=1,Gl=(Ji=(Yi=Zt(function(){},"name"))==null?void 0:Yi.configurable)!=null?Ji:!1,Xi={value:"action",configurable:!0,writable:!1,enumerable:!1};function Re(t,e,n,i){n===void 0&&(n=!1);function r(){return Kl(t,n,e,i||this,arguments)}return r.isMobxAction=!0,r.toString=function(){return e.toString()},Gl&&(Xi.value=t,ce(r,"name",Xi)),r}function Kl(t,e,n,i,r){var a=ql(t,e);try{return n.apply(i,r)}catch(s){throw a.error_=s,s}finally{Wl(a)}}function ql(t,e,n,i){var r=!1,a=0,s=b.trackingDerivation,o=!e||!s;Q();var l=b.allowStateChanges;o&&(De(),l=Oi(!0));var u=Fi(!0),d={runAsAction_:o,prevDerivation_:s,prevAllowStateChanges_:l,prevAllowStateReads_:u,notifySpy_:r,startTime_:a,actionId_:Hl++,parentActionId_:en};return en=d.actionId_,d}function Wl(t){en!==t.actionId_&&$(30),en=t.parentActionId_,t.error_!==void 0&&(b.suppressReactionErrors=!0),Ei(t.prevAllowStateChanges_),ct(t.prevAllowStateReads_),ee(),t.runAsAction_&&ve(t.prevDerivation_),b.suppressReactionErrors=!1}function Oi(t){var e=b.allowStateChanges;return b.allowStateChanges=t,e}function Ei(t){b.allowStateChanges=t}var ya;ya=Symbol.toPrimitive;var Ee=function(t){ua(e,t);function e(i,r,a,s,o){var l;return a===void 0&&(a="ObservableValue"),o===void 0&&(o=Qt.default),l=t.call(this,a)||this,l.enhancer=void 0,l.name_=void 0,l.equals=void 0,l.hasUnreportedChange_=!1,l.interceptors_=void 0,l.changeListeners_=void 0,l.value_=void 0,l.dehancer=void 0,l.enhancer=r,l.name_=a,l.equals=o,l.value_=r(i,void 0,a),l}var n=e.prototype;return n.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},n.set=function(r){this.value_,r=this.prepareNewValue_(r),r!==b.UNCHANGED&&this.setNewValue_(r)},n.prepareNewValue_=function(r){if(X(this)){var a=Z(this,{object:this,type:me,newValue:r});if(!a)return b.UNCHANGED;r=a.newValue}return r=this.enhancer(r,this.value_,this.name_),this.equals(this.value_,r)?b.UNCHANGED:r},n.setNewValue_=function(r){var a=this.value_;this.value_=r,this.reportChanged(),ie(this)&&re(this,{type:me,object:this,newValue:r,oldValue:a})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(r){return Rt(this,r)},n.observe_=function(r,a){return a&&r({observableKind:"value",debugObjectName:this.name_,object:this,type:me,newValue:this.value_,oldValue:void 0}),Pt(this,r)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return la(this.get())},n[ya]=function(){return this.valueOf()},e}(xt),_a;_a=Symbol.toPrimitive;var Ke=function(){function t(n){this.dependenciesState_=I.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=I.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new nn(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=tn.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||$(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=Re("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Qt.structural:Qt.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var e=t.prototype;return e.onBecomeStale_=function(){Ql(this)},e.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},e.get=function(){if(this.isComputing_&&$(32,this.name_,this.derivation),b.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)ri(this)&&(this.warnAboutUntrackedRead_(),Q(),this.value_=this.computeValue_(!1),ee());else if(Ea(this),ri(this)){var i=b.trackingContext;this.keepAlive_&&!i&&(b.trackingContext=this),this.trackAndCompute()&&Zl(this),b.trackingContext=i}var r=this.value_;if(Ht(r))throw r.cause;return r},e.set=function(i){if(this.setter_){this.isRunningSetter_&&$(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,i)}finally{this.isRunningSetter_=!1}}else $(34,this.name_)},e.trackAndCompute=function(){var i=this.value_,r=this.dependenciesState_===I.NOT_TRACKING_,a=this.computeValue_(!0),s=r||Ht(i)||Ht(a)||!this.equals_(i,a);return s&&(this.value_=a),s},e.computeValue_=function(i){this.isComputing_=!0;var r=Oi(!1),a;if(i)a=ba(this,this.derivation,this.scope_);else if(b.disableErrorBoundaries===!0)a=this.derivation.call(this.scope_);else try{a=this.derivation.call(this.scope_)}catch(s){a=new nn(s)}return Ei(r),this.isComputing_=!1,a},e.suspend_=function(){this.keepAlive_||(ai(this),this.value_=void 0)},e.observe_=function(i,r){var a=this,s=!0,o=void 0;return uu(function(){var l=a.get();if(!s||r){var u=De();i({observableKind:"computed",debugObjectName:a.name_,type:me,object:a,newValue:l,oldValue:o}),ve(u)}s=!1,o=l})},e.warnAboutUntrackedRead_=function(){},e.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},e.valueOf=function(){return la(this.get())},e[_a]=function(){return this.valueOf()},t}(),Nn=Le("ComputedValue",Ke),I;(function(t){t[t.NOT_TRACKING_=-1]="NOT_TRACKING_",t[t.UP_TO_DATE_=0]="UP_TO_DATE_",t[t.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",t[t.STALE_=2]="STALE_"})(I||(I={}));var tn;(function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"})(tn||(tn={}));var nn=function(e){this.cause=void 0,this.cause=e};function Ht(t){return t instanceof nn}function ri(t){switch(t.dependenciesState_){case I.UP_TO_DATE_:return!1;case I.NOT_TRACKING_:case I.STALE_:return!0;case I.POSSIBLY_STALE_:{for(var e=Fi(!0),n=De(),i=t.observing_,r=i.length,a=0;a<r;a++){var s=i[a];if(Nn(s)){if(b.disableErrorBoundaries)s.get();else try{s.get()}catch{return ve(n),ct(e),!0}if(t.dependenciesState_===I.STALE_)return ve(n),ct(e),!0}}return Na(t),ve(n),ct(e),!1}}}function ba(t,e,n){var i=Fi(!0);Na(t),t.newObserving_=new Array(t.runId_===0?100:t.observing_.length),t.unboundDepsCount_=0,t.runId_=++b.runId;var r=b.trackingDerivation;b.trackingDerivation=t,b.inBatch++;var a;if(b.disableErrorBoundaries===!0)a=e.call(n);else try{a=e.call(n)}catch(s){a=new nn(s)}return b.inBatch--,b.trackingDerivation=r,Jl(t),ct(i),a}function Jl(t){for(var e=t.observing_,n=t.observing_=t.newObserving_,i=I.UP_TO_DATE_,r=0,a=t.unboundDepsCount_,s=0;s<a;s++){var o=n[s];o.diffValue_===0&&(o.diffValue_=1,r!==s&&(n[r]=o),r++),o.dependenciesState_>i&&(i=o.dependenciesState_)}for(n.length=r,t.newObserving_=null,a=e.length;a--;){var l=e[a];l.diffValue_===0&&wa(l,t),l.diffValue_=0}for(;r--;){var u=n[r];u.diffValue_===1&&(u.diffValue_=0,Xl(u,t))}i!==I.UP_TO_DATE_&&(t.dependenciesState_=i,t.onBecomeStale_())}function ai(t){var e=t.observing_;t.observing_=[];for(var n=e.length;n--;)wa(e[n],t);t.dependenciesState_=I.NOT_TRACKING_}function Sa(t){var e=De();try{return t()}finally{ve(e)}}function De(){var t=b.trackingDerivation;return b.trackingDerivation=null,t}function ve(t){b.trackingDerivation=t}function Fi(t){var e=b.allowStateReads;return b.allowStateReads=t,e}function ct(t){b.allowStateReads=t}function Na(t){if(t.dependenciesState_!==I.UP_TO_DATE_){t.dependenciesState_=I.UP_TO_DATE_;for(var e=t.observing_,n=e.length;n--;)e[n].lowestObserverState_=I.UP_TO_DATE_}}var Gt=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Kt=!0,Aa=!1,b=function(){var t=Si();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Kt=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==new Gt().version&&(Kt=!1),Kt?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new Gt):(setTimeout(function(){Aa||$(35)},1),new Gt)}();function Yl(){if((b.pendingReactions.length||b.inBatch||b.isRunningReactions)&&$(36),Aa=!0,Kt){var t=Si();--t.__mobxInstanceCount===0&&(t.__mobxGlobals=void 0),b=new Gt}}function Xl(t,e){t.observers_.add(e),t.lowestObserverState_>e.dependenciesState_&&(t.lowestObserverState_=e.dependenciesState_)}function wa(t,e){t.observers_.delete(e),t.observers_.size===0&&Oa(t)}function Oa(t){t.isPendingUnobservation_===!1&&(t.isPendingUnobservation_=!0,b.pendingUnobservations.push(t))}function Q(){b.inBatch++}function ee(){if(--b.inBatch===0){Ca();for(var t=b.pendingUnobservations,e=0;e<t.length;e++){var n=t[e];n.isPendingUnobservation_=!1,n.observers_.size===0&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof Ke&&n.suspend_())}b.pendingUnobservations=[]}}function Ea(t){var e=b.trackingDerivation;return e!==null?(e.runId_!==t.lastAccessedBy_&&(t.lastAccessedBy_=e.runId_,e.newObserving_[e.unboundDepsCount_++]=t,!t.isBeingObserved_&&b.trackingContext&&(t.isBeingObserved_=!0,t.onBO())),t.isBeingObserved_):(t.observers_.size===0&&b.inBatch>0&&Oa(t),!1)}function Fa(t){t.lowestObserverState_!==I.STALE_&&(t.lowestObserverState_=I.STALE_,t.observers_.forEach(function(e){e.dependenciesState_===I.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=I.STALE_}))}function Zl(t){t.lowestObserverState_!==I.STALE_&&(t.lowestObserverState_=I.STALE_,t.observers_.forEach(function(e){e.dependenciesState_===I.POSSIBLY_STALE_?e.dependenciesState_=I.STALE_:e.dependenciesState_===I.UP_TO_DATE_&&(t.lowestObserverState_=I.UP_TO_DATE_)}))}function Ql(t){t.lowestObserverState_===I.UP_TO_DATE_&&(t.lowestObserverState_=I.POSSIBLY_STALE_,t.observers_.forEach(function(e){e.dependenciesState_===I.UP_TO_DATE_&&(e.dependenciesState_=I.POSSIBLY_STALE_,e.onBecomeStale_())}))}var kt=function(){function t(n,i,r,a){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=I.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=tn.NONE,this.name_=n,this.onInvalidate_=i,this.errorHandler_=r,this.requiresObservable_=a}var e=t.prototype;return e.onBecomeStale_=function(){this.schedule_()},e.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,b.pendingReactions.push(this),Ca())},e.isScheduled=function(){return this.isScheduled_},e.runReaction_=function(){if(!this.isDisposed_){Q(),this.isScheduled_=!1;var i=b.trackingContext;if(b.trackingContext=this,ri(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(r){this.reportExceptionInDerivation_(r)}}b.trackingContext=i,ee()}},e.track=function(i){if(!this.isDisposed_){Q(),this.isRunning_=!0;var r=b.trackingContext;b.trackingContext=this;var a=ba(this,i,void 0);b.trackingContext=r,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&ai(this),Ht(a)&&this.reportExceptionInDerivation_(a.cause),ee()}},e.reportExceptionInDerivation_=function(i){var r=this;if(this.errorHandler_){this.errorHandler_(i,this);return}if(b.disableErrorBoundaries)throw i;var a="[mobx] uncaught error in '"+this+"'";b.suppressReactionErrors||console.error(a,i),b.globalReactionErrorHandlers.forEach(function(s){return s(i,r)})},e.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Q(),ai(this),ee()))},e.getDisposer_=function(i){var r=this,a=function s(){r.dispose(),i==null||i.removeEventListener==null||i.removeEventListener("abort",s)};return i==null||i.addEventListener==null||i.addEventListener("abort",a),a[x]=this,a},e.toString=function(){return"Reaction["+this.name_+"]"},e.trace=function(i){},t}(),eu=100,si=function(e){return e()};function Ca(){b.inBatch>0||b.isRunningReactions||si(tu)}function tu(){b.isRunningReactions=!0;for(var t=b.pendingReactions,e=0;t.length>0;){++e===eu&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var n=t.splice(0),i=0,r=n.length;i<r;i++)n[i].runReaction_()}b.isRunningReactions=!1}var rn=Le("Reaction",kt);function nu(t){var e=si;si=function(i){return t(function(){return e(i)})}}function ft(){return!1}function iu(t){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var xa="action",ru="action.bound",Ta="autoAction",au="autoAction.bound",su="<unnamed action>",oi=Tt(xa),ou=Tt(ru,{bound:!0}),li=Tt(Ta,{autoAction:!0}),lu=Tt(au,{autoAction:!0,bound:!0});function Ra(t){var e=function(i,r){if(ae(i))return Re(i.name||su,i,t);if(ae(r))return Re(i,r,t);if(Ct(r))return(t?li:oi).decorate_20223_(i,r);if(Ce(r))return Ze(i,r,t?li:oi);if(Ce(i))return fe(Tt(t?Ta:xa,{name:i,autoAction:t}))};return e}var _e=Ra(!1);Object.assign(_e,oi);var yt=Ra(!0);Object.assign(yt,li);_e.bound=fe(ou);yt.bound=fe(lu);function An(t){return ae(t)&&t.isMobxAction===!0}function uu(t,e){var n,i,r,a,s;e===void 0&&(e=na);var o=(n=(i=e)==null?void 0:i.name)!=null?n:"Autorun",l=!e.scheduler&&!e.delay,u;if(l)u=new kt(o,function(){this.track(f)},e.onError,e.requiresObservable);else{var d=cu(e),c=!1;u=new kt(o,function(){c||(c=!0,d(function(){c=!1,u.isDisposed_||u.track(f)}))},e.onError,e.requiresObservable)}function f(){t(u)}return(r=e)!=null&&(a=r.signal)!=null&&a.aborted||u.schedule_(),u.getDisposer_((s=e)==null?void 0:s.signal)}var du=function(e){return e()};function cu(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:du}var fu="onBO",mu="onBUO";function hu(t,e,n){return La(fu,t,e,n)}function Pa(t,e,n){return La(mu,t,e,n)}function La(t,e,n,i){var r=on(e),a=ae(i)?i:n,s=t+"L";return r[s]?r[s].add(a):r[s]=new Set([a]),function(){var o=r[s];o&&(o.delete(a),o.size===0&&delete r[s])}}var pu="never",Mt="always",gu="observed";function vu(t){t.isolateGlobalState===!0&&Yl();var e=t.useProxies,n=t.enforceActions;if(e!==void 0&&(b.useProxies=e===Mt?!0:e===pu?!1:typeof Proxy!="undefined"),e==="ifavailable"&&(b.verifyProxies=!0),n!==void 0){var i=n===Mt?Mt:n===gu;b.enforceActions=i,b.allowStateChanges=!(i===!0||i===Mt)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(r){r in t&&(b[r]=!!t[r])}),b.allowStateReads=!b.observableRequiresReaction,t.reactionScheduler&&nu(t.reactionScheduler)}function ku(t,e,n,i){var r=Xo(e);return Ie(function(){var a=et(t,i)[x];_n(r).forEach(function(s){a.extend_(s,r[s],n&&s in n?n[s]:!0)})}),t}function yu(t,e){return Da(on(t,e))}function Da(t){var e={name:t.name_};return t.observing_&&t.observing_.length>0&&(e.dependencies=_u(t.observing_).map(Da)),e}function _u(t){return Array.from(new Set(t))}var bu=0;function $a(){this.message="FLOW_CANCELLED"}$a.prototype=Object.create(Error.prototype);var jn=fa("flow"),Su=fa("flow.bound",{bound:!0}),qe=Object.assign(function(e,n){if(Ct(n))return jn.decorate_20223_(e,n);if(Ce(n))return Ze(e,n,jn);var i=e,r=i.name||"<unnamed flow>",a=function(){var o=this,l=arguments,u=++bu,d=_e(r+" - runid: "+u+" - init",i).apply(o,l),c,f=void 0,k=new Promise(function(p,m){var S=0;c=m;function y(F){f=void 0;var P;try{P=_e(r+" - runid: "+u+" - yield "+S++,d.next).call(d,F)}catch(j){return m(j)}U(P)}function T(F){f=void 0;var P;try{P=_e(r+" - runid: "+u+" - yield "+S++,d.throw).call(d,F)}catch(j){return m(j)}U(P)}function U(F){if(ae(F==null?void 0:F.then)){F.then(U,m);return}return F.done?p(F.value):(f=Promise.resolve(F.value),f.then(y,T))}y(void 0)});return k.cancel=_e(r+" - runid: "+u+" - cancel",function(){try{f&&Zi(f);var p=d.return(void 0),m=Promise.resolve(p.value);m.then(He,He),Zi(m),c(new $a)}catch(S){c(S)}}),k};return a.isMobXFlow=!0,a},jn);qe.bound=fe(Su);function Zi(t){ae(t.cancel)&&t.cancel()}function _t(t){return(t==null?void 0:t.isMobXFlow)===!0}function Nu(t,e){return t?On(t)||!!t[x]||Ai(t)||rn(t)||Nn(t):!1}function Ia(t){return Nu(t)}function pe(t,e){e===void 0&&(e=void 0),Q();try{return t.apply(e)}finally{ee()}}function je(t){return t[x]}var Au={has:function(e,n){return je(e).has_(n)},get:function(e,n){return je(e).get_(n)},set:function(e,n,i){var r;return Ce(n)?(r=je(e).set_(n,i,!0))!=null?r:!0:!1},deleteProperty:function(e,n){var i;return Ce(n)?(i=je(e).delete_(n,!0))!=null?i:!0:!1},defineProperty:function(e,n,i){var r;return(r=je(e).defineProperty_(n,i))!=null?r:!0},ownKeys:function(e){return je(e).ownKeys_()},preventExtensions:function(e){$(13)}};function wu(t,e){var n,i;return ia(),t=et(t,e),(i=(n=t[x]).proxy_)!=null?i:n.proxy_=new Proxy(t,Au)}function X(t){return t.interceptors_!==void 0&&t.interceptors_.length>0}function Rt(t,e){var n=t.interceptors_||(t.interceptors_=[]);return n.push(e),ra(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function Z(t,e){var n=De();try{for(var i=[].concat(t.interceptors_||[]),r=0,a=i.length;r<a&&(e=i[r](e),e&&!e.type&&$(14),!!e);r++);return e}finally{ve(n)}}function ie(t){return t.changeListeners_!==void 0&&t.changeListeners_.length>0}function Pt(t,e){var n=t.changeListeners_||(t.changeListeners_=[]);return n.push(e),ra(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function re(t,e){var n=De(),i=t.changeListeners_;if(i){i=i.slice();for(var r=0,a=i.length;r<a;r++)i[r](e);ve(n)}}function Va(t,e,n){return Ie(function(){var i,r=et(t,n)[x];(i=e)!=null||(e=nl(t)),_n(e).forEach(function(a){return r.make_(a,e[a])})}),t}var Qi="splice",me="update",Ou=1e4,Eu={get:function(e,n){var i=e[x];return n===x?i:n==="length"?i.getArrayLength_():typeof n=="string"&&!isNaN(n)?i.get_(parseInt(n)):ge(an,n)?an[n]:e[n]},set:function(e,n,i){var r=e[x];return n==="length"&&r.setArrayLength_(i),typeof n=="symbol"||isNaN(n)?e[n]=i:r.set_(parseInt(n),i),!0},preventExtensions:function(){$(15)}},Ci=function(){function t(n,i,r,a){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=r,this.legacyMode_=a,this.atom_=new xt(n),this.enhancer_=function(s,o){return i(s,o,"ObservableArray[..]")}}var e=t.prototype;return e.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},e.dehanceValues_=function(i){return this.dehancer!==void 0&&i.length>0?i.map(this.dehancer):i},e.intercept_=function(i){return Rt(this,i)},e.observe_=function(i,r){return r===void 0&&(r=!1),r&&i({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Pt(this,i)},e.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},e.setArrayLength_=function(i){(typeof i!="number"||isNaN(i)||i<0)&&$("Out of range: "+i);var r=this.values_.length;if(i!==r)if(i>r){for(var a=new Array(i-r),s=0;s<i-r;s++)a[s]=void 0;this.spliceWithArray_(r,0,a)}else this.spliceWithArray_(i,r-i)},e.updateArrayLength_=function(i,r){i!==this.lastKnownLength_&&$(16),this.lastKnownLength_+=r,this.legacyMode_&&r>0&&Ja(i+r+1)},e.spliceWithArray_=function(i,r,a){var s=this;this.atom_;var o=this.values_.length;if(i===void 0?i=0:i>o?i=o:i<0&&(i=Math.max(0,o+i)),arguments.length===1?r=o-i:r==null?r=0:r=Math.max(0,Math.min(r,o-i)),a===void 0&&(a=ei),X(this)){var l=Z(this,{object:this.proxy_,type:Qi,index:i,removedCount:r,added:a});if(!l)return ei;r=l.removedCount,a=l.added}if(a=a.length===0?a:a.map(function(c){return s.enhancer_(c,void 0)}),this.legacyMode_){var u=a.length-r;this.updateArrayLength_(o,u)}var d=this.spliceItemsIntoValues_(i,r,a);return(r!==0||a.length!==0)&&this.notifyArraySplice_(i,a,d),this.dehanceValues_(d)},e.spliceItemsIntoValues_=function(i,r,a){if(a.length<Ou){var s;return(s=this.values_).splice.apply(s,[i,r].concat(a))}else{var o=this.values_.slice(i,i+r),l=this.values_.slice(i+r);this.values_.length+=a.length-r;for(var u=0;u<a.length;u++)this.values_[i+u]=a[u];for(var d=0;d<l.length;d++)this.values_[i+a.length+d]=l[d];return o}},e.notifyArrayChildUpdate_=function(i,r,a){var s=!this.owned_&&ft(),o=ie(this),l=o||s?{observableKind:"array",object:this.proxy_,type:me,debugObjectName:this.atom_.name_,index:i,newValue:r,oldValue:a}:null;this.atom_.reportChanged(),o&&re(this,l)},e.notifyArraySplice_=function(i,r,a){var s=!this.owned_&&ft(),o=ie(this),l=o||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Qi,index:i,removed:a,added:r,removedCount:a.length,addedCount:r.length}:null;this.atom_.reportChanged(),o&&re(this,l)},e.get_=function(i){if(this.legacyMode_&&i>=this.values_.length){console.warn("[mobx] Out of bounds read: "+i);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[i])},e.set_=function(i,r){var a=this.values_;if(this.legacyMode_&&i>a.length&&$(17,i,a.length),i<a.length){this.atom_;var s=a[i];if(X(this)){var o=Z(this,{type:me,object:this.proxy_,index:i,newValue:r});if(!o)return;r=o.newValue}r=this.enhancer_(r,s);var l=r!==s;l&&(a[i]=r,this.notifyArrayChildUpdate_(i,r,s))}else{for(var u=new Array(i+1-a.length),d=0;d<u.length-1;d++)u[d]=void 0;u[u.length-1]=r,this.spliceWithArray_(a.length,0,u)}},t}();function Fu(t,e,n,i){return n===void 0&&(n="ObservableArray"),i===void 0&&(i=!1),ia(),Ie(function(){var r=new Ci(n,e,i,!1);sa(r.values_,x,r);var a=new Proxy(r.values_,Eu);return r.proxy_=a,t&&t.length&&r.spliceWithArray_(0,0,t),a})}var an={clear:function(){return this.splice(0)},replace:function(e){var n=this[x];return n.spliceWithArray_(0,n.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),a=2;a<i;a++)r[a-2]=arguments[a];var s=this[x];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(e);case 2:return s.spliceWithArray_(e,n)}return s.spliceWithArray_(e,n,r)},spliceWithArray:function(e,n,i){return this[x].spliceWithArray_(e,n,i)},push:function(){for(var e=this[x],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,i),e.values_.length},pop:function(){return this.splice(Math.max(this[x].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[x],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.spliceWithArray_(0,0,i),e.values_.length},reverse:function(){return b.trackingDerivation&&$(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){b.trackingDerivation&&$(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var n=this[x],i=n.dehanceValues_(n.values_).indexOf(e);return i>-1?(this.splice(i,1),!0):!1}};M("at",Y);M("concat",Y);M("flat",Y);M("includes",Y);M("indexOf",Y);M("join",Y);M("lastIndexOf",Y);M("slice",Y);M("toString",Y);M("toLocaleString",Y);M("toSorted",Y);M("toSpliced",Y);M("with",Y);M("every",se);M("filter",se);M("find",se);M("findIndex",se);M("findLast",se);M("findLastIndex",se);M("flatMap",se);M("forEach",se);M("map",se);M("some",se);M("toReversed",se);M("reduce",ja);M("reduceRight",ja);function M(t,e){typeof Array.prototype[t]=="function"&&(an[t]=e(t))}function Y(t){return function(){var e=this[x];e.atom_.reportObserved();var n=e.dehanceValues_(e.values_);return n[t].apply(n,arguments)}}function se(t){return function(e,n){var i=this,r=this[x];r.atom_.reportObserved();var a=r.dehanceValues_(r.values_);return a[t](function(s,o){return e.call(n,s,o,i)})}}function ja(t){return function(){var e=this,n=this[x];n.atom_.reportObserved();var i=n.dehanceValues_(n.values_),r=arguments[0];return arguments[0]=function(a,s,o){return r(a,s,o,e)},i[t].apply(i,arguments)}}var Cu=Le("ObservableArrayAdministration",Ci);function wn(t){return kn(t)&&Cu(t[x])}var Ua,Ba,xu={},be="add",sn="delete";Ua=Symbol.iterator;Ba=Symbol.toStringTag;var Ma=function(){function t(n,i,r){var a=this;i===void 0&&(i=Te),r===void 0&&(r="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[x]=xu,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=i,this.name_=r,ae(Map)||$(18),Ie(function(){a.keysAtom_=da("ObservableMap.keys()"),a.data_=new Map,a.hasMap_=new Map,n&&a.merge(n)})}var e=t.prototype;return e.has_=function(i){return this.data_.has(i)},e.has=function(i){var r=this;if(!b.trackingDerivation)return this.has_(i);var a=this.hasMap_.get(i);if(!a){var s=a=new Ee(this.has_(i),bn,"ObservableMap.key?",!1);this.hasMap_.set(i,s),Pa(s,function(){return r.hasMap_.delete(i)})}return a.get()},e.set=function(i,r){var a=this.has_(i);if(X(this)){var s=Z(this,{type:a?me:be,object:this,newValue:r,name:i});if(!s)return this;r=s.newValue}return a?this.updateValue_(i,r):this.addValue_(i,r),this},e.delete=function(i){var r=this;if(this.keysAtom_,X(this)){var a=Z(this,{type:sn,object:this,name:i});if(!a)return!1}if(this.has_(i)){var s=ft(),o=ie(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:sn,object:this,oldValue:this.data_.get(i).value_,name:i}:null;return pe(function(){var u;r.keysAtom_.reportChanged(),(u=r.hasMap_.get(i))==null||u.setNewValue_(!1);var d=r.data_.get(i);d.setNewValue_(void 0),r.data_.delete(i)}),o&&re(this,l),!0}return!1},e.updateValue_=function(i,r){var a=this.data_.get(i);if(r=a.prepareNewValue_(r),r!==b.UNCHANGED){var s=ft(),o=ie(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:me,object:this,oldValue:a.value_,name:i,newValue:r}:null;a.setNewValue_(r),o&&re(this,l)}},e.addValue_=function(i,r){var a=this;this.keysAtom_,pe(function(){var u,d=new Ee(r,a.enhancer_,"ObservableMap.key",!1);a.data_.set(i,d),r=d.value_,(u=a.hasMap_.get(i))==null||u.setNewValue_(!0),a.keysAtom_.reportChanged()});var s=ft(),o=ie(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:be,object:this,name:i,newValue:r}:null;o&&re(this,l)},e.get=function(i){return this.has(i)?this.dehanceValue_(this.data_.get(i).get()):this.dehanceValue_(void 0)},e.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},e.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},e.values=function(){var i=this,r=this.keys();return bt({next:function(){var s=r.next(),o=s.done,l=s.value;return{done:o,value:o?void 0:i.get(l)}}})},e.entries=function(){var i=this,r=this.keys();return bt({next:function(){var s=r.next(),o=s.done,l=s.value;return{done:o,value:o?void 0:[l,i.get(l)]}}})},e[Ua]=function(){return this.entries()},e.forEach=function(i,r){for(var a=Ge(this),s;!(s=a()).done;){var o=s.value,l=o[0],u=o[1];i.call(r,u,l,this)}},e.merge=function(i){var r=this;return $e(i)&&(i=new Map(i)),pe(function(){Ne(i)?Yo(i).forEach(function(a){return r.set(a,i[a])}):Array.isArray(i)?i.forEach(function(a){var s=a[0],o=a[1];return r.set(s,o)}):Xe(i)?(i.constructor!==Map&&$(19,i),i.forEach(function(a,s){return r.set(s,a)})):i!=null&&$(20,i)}),this},e.clear=function(){var i=this;pe(function(){Sa(function(){for(var r=Ge(i.keys()),a;!(a=r()).done;){var s=a.value;i.delete(s)}})})},e.replace=function(i){var r=this;return pe(function(){for(var a=Tu(i),s=new Map,o=!1,l=Ge(r.data_.keys()),u;!(u=l()).done;){var d=u.value;if(!a.has(d)){var c=r.delete(d);if(c)o=!0;else{var f=r.data_.get(d);s.set(d,f)}}}for(var k=Ge(a.entries()),p;!(p=k()).done;){var m=p.value,S=m[0],y=m[1],T=r.data_.has(S);if(r.set(S,y),r.data_.has(S)){var U=r.data_.get(S);s.set(S,U),T||(o=!0)}}if(!o)if(r.data_.size!==s.size)r.keysAtom_.reportChanged();else for(var F=r.data_.keys(),P=s.keys(),j=F.next(),B=P.next();!j.done;){if(j.value!==B.value){r.keysAtom_.reportChanged();break}j=F.next(),B=P.next()}r.data_=s}),this},e.toString=function(){return"[object ObservableMap]"},e.toJSON=function(){return Array.from(this)},e.observe_=function(i,r){return Pt(this,i)},e.intercept_=function(i){return Rt(this,i)},Ni(t,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Ba,get:function(){return"Map"}}]),t}(),$e=Le("ObservableMap",Ma);function Tu(t){if(Xe(t)||$e(t))return t;if(Array.isArray(t))return new Map(t);if(Ne(t)){var e=new Map;for(var n in t)e.set(n,t[n]);return e}else return $(21,t)}var za,Ha,Ru={};za=Symbol.iterator;Ha=Symbol.toStringTag;var Ga=function(){function t(n,i,r){var a=this;i===void 0&&(i=Te),r===void 0&&(r="ObservableSet"),this.name_=void 0,this[x]=Ru,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=r,ae(Set)||$(22),this.enhancer_=function(s,o){return i(s,o,r)},Ie(function(){a.atom_=da(a.name_),n&&a.replace(n)})}var e=t.prototype;return e.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},e.clear=function(){var i=this;pe(function(){Sa(function(){for(var r=Ge(i.data_.values()),a;!(a=r()).done;){var s=a.value;i.delete(s)}})})},e.forEach=function(i,r){for(var a=Ge(this),s;!(s=a()).done;){var o=s.value;i.call(r,o,o,this)}},e.add=function(i){var r=this;if(this.atom_,X(this)){var a=Z(this,{type:be,object:this,newValue:i});if(!a)return this}if(!this.has(i)){pe(function(){r.data_.add(r.enhancer_(i,void 0)),r.atom_.reportChanged()});var s=!1,o=ie(this),l=o||s?{observableKind:"set",debugObjectName:this.name_,type:be,object:this,newValue:i}:null;o&&re(this,l)}return this},e.delete=function(i){var r=this;if(X(this)){var a=Z(this,{type:sn,object:this,oldValue:i});if(!a)return!1}if(this.has(i)){var s=!1,o=ie(this),l=o||s?{observableKind:"set",debugObjectName:this.name_,type:sn,object:this,oldValue:i}:null;return pe(function(){r.atom_.reportChanged(),r.data_.delete(i)}),o&&re(this,l),!0}return!1},e.has=function(i){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(i))},e.entries=function(){var i=0,r=Array.from(this.keys()),a=Array.from(this.values());return bt({next:function(){var o=i;return i+=1,o<a.length?{value:[r[o],a[o]],done:!1}:{done:!0}}})},e.keys=function(){return this.values()},e.values=function(){this.atom_.reportObserved();var i=this,r=0,a=Array.from(this.data_.values());return bt({next:function(){return r<a.length?{value:i.dehanceValue_(a[r++]),done:!1}:{done:!0}}})},e.replace=function(i){var r=this;return Qe(i)&&(i=new Set(i)),pe(function(){Array.isArray(i)?(r.clear(),i.forEach(function(a){return r.add(a)})):Ft(i)?(r.clear(),i.forEach(function(a){return r.add(a)})):i!=null&&$("Cannot initialize set from "+i)}),this},e.observe_=function(i,r){return Pt(this,i)},e.intercept_=function(i){return Rt(this,i)},e.toJSON=function(){return Array.from(this)},e.toString=function(){return"[object ObservableSet]"},e[za]=function(){return this.values()},Ni(t,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Ha,get:function(){return"Set"}}]),t}(),Qe=Le("ObservableSet",Ga),er=Object.create(null),tr="remove",Ka=function(){function t(n,i,r,a){i===void 0&&(i=new Map),a===void 0&&(a=Fl),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=i,this.name_=r,this.defaultAnnotation_=a,this.keysAtom_=new xt("ObservableObject.keys"),this.isPlainObject_=Ne(this.target_)}var e=t.prototype;return e.getObservablePropValue_=function(i){return this.values_.get(i).get()},e.setObservablePropValue_=function(i,r){var a=this.values_.get(i);if(a instanceof Ke)return a.set(r),!0;if(X(this)){var s=Z(this,{type:me,object:this.proxy_||this.target_,name:i,newValue:r});if(!s)return null;r=s.newValue}if(r=a.prepareNewValue_(r),r!==b.UNCHANGED){var o=ie(this),l=!1,u=o||l?{type:me,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:a.value_,name:i,newValue:r}:null;a.setNewValue_(r),o&&re(this,u)}return!0},e.get_=function(i){return b.trackingDerivation&&!ge(this.target_,i)&&this.has_(i),this.target_[i]},e.set_=function(i,r,a){return a===void 0&&(a=!1),ge(this.target_,i)?this.values_.has(i)?this.setObservablePropValue_(i,r):a?Reflect.set(this.target_,i,r):(this.target_[i]=r,!0):this.extend_(i,{value:r,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,a)},e.has_=function(i){if(!b.trackingDerivation)return i in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var r=this.pendingKeys_.get(i);return r||(r=new Ee(i in this.target_,bn,"ObservableObject.key?",!1),this.pendingKeys_.set(i,r)),r.get()},e.make_=function(i,r){if(r===!0&&(r=this.defaultAnnotation_),r!==!1){if(!(i in this.target_)){var a;if((a=this.target_[le])!=null&&a[i])return;$(1,r.annotationType_,this.name_+"."+i.toString())}for(var s=this.target_;s&&s!==vn;){var o=Zt(s,i);if(o){var l=r.make_(this,i,o,s);if(l===0)return;if(l===1)break}s=Object.getPrototypeOf(s)}ir(this,r,i)}},e.extend_=function(i,r,a,s){if(s===void 0&&(s=!1),a===!0&&(a=this.defaultAnnotation_),a===!1)return this.defineProperty_(i,r,s);var o=a.extend_(this,i,r,s);return o&&ir(this,a,i),o},e.defineProperty_=function(i,r,a){a===void 0&&(a=!1),this.keysAtom_;try{Q();var s=this.delete_(i);if(!s)return s;if(X(this)){var o=Z(this,{object:this.proxy_||this.target_,name:i,type:be,newValue:r.value});if(!o)return null;var l=o.newValue;r.value!==l&&(r=xe({},r,{value:l}))}if(a){if(!Reflect.defineProperty(this.target_,i,r))return!1}else ce(this.target_,i,r);this.notifyPropertyAddition_(i,r.value)}finally{ee()}return!0},e.defineObservableProperty_=function(i,r,a,s){s===void 0&&(s=!1),this.keysAtom_;try{Q();var o=this.delete_(i);if(!o)return o;if(X(this)){var l=Z(this,{object:this.proxy_||this.target_,name:i,type:be,newValue:r});if(!l)return null;r=l.newValue}var u=nr(i),d={configurable:b.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.target_,i,d))return!1}else ce(this.target_,i,d);var c=new Ee(r,a,"ObservableObject.key",!1);this.values_.set(i,c),this.notifyPropertyAddition_(i,c.value_)}finally{ee()}return!0},e.defineComputedProperty_=function(i,r,a){a===void 0&&(a=!1),this.keysAtom_;try{Q();var s=this.delete_(i);if(!s)return s;if(X(this)){var o=Z(this,{object:this.proxy_||this.target_,name:i,type:be,newValue:void 0});if(!o)return null}r.name||(r.name="ObservableObject.key"),r.context=this.proxy_||this.target_;var l=nr(i),u={configurable:b.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:l.get,set:l.set};if(a){if(!Reflect.defineProperty(this.target_,i,u))return!1}else ce(this.target_,i,u);this.values_.set(i,new Ke(r)),this.notifyPropertyAddition_(i,void 0)}finally{ee()}return!0},e.delete_=function(i,r){if(r===void 0&&(r=!1),this.keysAtom_,!ge(this.target_,i))return!0;if(X(this)){var a=Z(this,{object:this.proxy_||this.target_,name:i,type:tr});if(!a)return null}try{var s,o;Q();var l=ie(this),u=!1,d=this.values_.get(i),c=void 0;if(!d&&(l||u)){var f;c=(f=Zt(this.target_,i))==null?void 0:f.value}if(r){if(!Reflect.deleteProperty(this.target_,i))return!1}else delete this.target_[i];if(d&&(this.values_.delete(i),d instanceof Ee&&(c=d.value_),Fa(d)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(o=s.get(i))==null||o.set(i in this.target_),l||u){var k={type:tr,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:i};l&&re(this,k)}}finally{ee()}return!0},e.observe_=function(i,r){return Pt(this,i)},e.intercept_=function(i){return Rt(this,i)},e.notifyPropertyAddition_=function(i,r){var a,s,o=ie(this),l=!1;if(o||l){var u=o||l?{type:be,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:i,newValue:r}:null;o&&re(this,u)}(a=this.pendingKeys_)==null||(s=a.get(i))==null||s.set(!0),this.keysAtom_.reportChanged()},e.ownKeys_=function(){return this.keysAtom_.reportObserved(),_n(this.target_)},e.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},t}();function et(t,e){var n;if(ge(t,x))return t;var i=(n=e==null?void 0:e.name)!=null?n:"ObservableObject",r=new Ka(t,new Map,String(i),jl(e));return yn(t,x,r),t}var Pu=Le("ObservableObjectAdministration",Ka);function nr(t){return er[t]||(er[t]={get:function(){return this[x].getObservablePropValue_(t)},set:function(n){return this[x].setObservablePropValue_(t,n)}})}function On(t){return kn(t)?Pu(t[x]):!1}function ir(t,e,n){var i;(i=t.target_[le])==null||delete i[n]}var Lu=Wa(0),Du=function(){var t=!1,e={};return Object.defineProperty(e,"0",{set:function(){t=!0}}),Object.create(e)[0]=1,t===!1}(),Un=0,qa=function(){};function $u(t,e){Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,e):t.prototype.__proto__!==void 0?t.prototype.__proto__=e:t.prototype=e}$u(qa,Array.prototype);var xi=function(t,e,n){ua(i,t);function i(a,s,o,l){var u;return o===void 0&&(o="ObservableArray"),l===void 0&&(l=!1),u=t.call(this)||this,Ie(function(){var d=new Ci(o,s,l,!0);d.proxy_=Vn(u),sa(Vn(u),x,d),a&&a.length&&u.spliceWithArray(0,0,a),Du&&Object.defineProperty(Vn(u),"0",Lu)}),u}var r=i.prototype;return r.concat=function(){this[x].atom_.reportObserved();for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return Array.prototype.concat.apply(this.slice(),o.map(function(u){return wn(u)?u.slice():u}))},r[n]=function(){var a=this,s=0;return bt({next:function(){return s<a.length?{value:a[s++],done:!1}:{done:!0,value:void 0}}})},Ni(i,[{key:"length",get:function(){return this[x].getArrayLength_()},set:function(s){this[x].setArrayLength_(s)}},{key:e,get:function(){return"Array"}}]),i}(qa,Symbol.toStringTag,Symbol.iterator);Object.entries(an).forEach(function(t){var e=t[0],n=t[1];e!=="concat"&&yn(xi.prototype,e,n)});function Wa(t){return{enumerable:!1,configurable:!0,get:function(){return this[x].get_(t)},set:function(n){this[x].set_(t,n)}}}function Iu(t){ce(xi.prototype,""+t,Wa(t))}function Ja(t){if(t>Un){for(var e=Un;e<t+100;e++)Iu(e);Un=t}}Ja(1e3);function Vu(t,e,n){return new xi(t,e,n)}function on(t,e){if(typeof t=="object"&&t!==null){if(wn(t))return e!==void 0&&$(23),t[x].atom_;if(Qe(t))return t.atom_;if($e(t)){if(e===void 0)return t.keysAtom_;var n=t.data_.get(e)||t.hasMap_.get(e);return n||$(25,e,ui(t)),n}if(On(t)){if(!e)return $(26);var i=t[x].values_.get(e);return i||$(27,e,ui(t)),i}if(Ai(t)||Nn(t)||rn(t))return t}else if(ae(t)&&rn(t[x]))return t[x];$(28)}function ju(t,e){if(t||$(29),Ai(t)||Nn(t)||rn(t)||$e(t)||Qe(t))return t;if(t[x])return t[x];$(24,t)}function ui(t,e){var n;if(e!==void 0)n=on(t,e);else{if(An(t))return t.name;On(t)||$e(t)||Qe(t)?n=ju(t):n=on(t)}return n.name_}function Ie(t){var e=De(),n=Oi(!0);Q();try{return t()}finally{ee(),Ei(n),ve(e)}}var rr=vn.toString;function Ti(t,e,n){return n===void 0&&(n=-1),di(t,e,n)}function di(t,e,n,i,r){if(t===e)return t!==0||1/t===1/e;if(t==null||e==null)return!1;if(t!==t)return e!==e;var a=typeof t;if(a!=="function"&&a!=="object"&&typeof e!="object")return!1;var s=rr.call(t);if(s!==rr.call(e))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:+t==0?1/+t===1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(t)===Symbol.valueOf.call(e);case"[object Map]":case"[object Set]":n>=0&&n++;break}t=ar(t),e=ar(e);var o=s==="[object Array]";if(!o){if(typeof t!="object"||typeof e!="object")return!1;var l=t.constructor,u=e.constructor;if(l!==u&&!(ae(l)&&l instanceof l&&ae(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}if(n===0)return!1;n<0&&(n=-1),i=i||[],r=r||[];for(var d=i.length;d--;)if(i[d]===t)return r[d]===e;if(i.push(t),r.push(e),o){if(d=t.length,d!==e.length)return!1;for(;d--;)if(!di(t[d],e[d],n-1,i,r))return!1}else{var c=Object.keys(t),f;if(d=c.length,Object.keys(e).length!==d)return!1;for(;d--;)if(f=c[d],!(ge(e,f)&&di(t[f],e[f],n-1,i,r)))return!1}return i.pop(),r.pop(),!0}function ar(t){return wn(t)?t.slice():Xe(t)||$e(t)||Ft(t)||Qe(t)?Array.from(t.entries()):t}function bt(t){return t[Symbol.iterator]=Uu,t}function Uu(){return this}["Symbol","Map","Set"].forEach(function(t){var e=Si();typeof e[t]=="undefined"&&$("MobX requires global '"+t+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:iu,extras:{getDebugName:ui},$mobx:x});class Ya{constructor(e,n){w(this,"channel");w(this,"listeners",new Map);w(this,"eventQueue",new Map);this.logger=n;try{this.channel=new BroadcastChannel(e),this.channel.onmessage=i=>this.handleMessage(i),this.channel.onmessageerror=i=>this.logger.error("NizzaBroadcastChannel:",i)}catch(i){throw this.logger.error("Failed to create NizzaBroadcastChannel:",i),i}}on(e,n){return this.subscribeToEvent(e,n),{off:()=>this.unsubscribeFromEvent(e,n)}}emit(e,n,i={}){this.emitEvent(e,n,i)}handleMessage(e){const n=e.data,{name:i}=n;for(const[r,a]of this.listeners.entries())this.matchWildcard(r,i)&&a.forEach(s=>s({...n,wildcard:r}))}subscribeToEvent(e,n){if(typeof e!="string"||typeof n!="function"){const i=new Error("Invalid arguments");throw this.logger.error(i),i}for(const[i,r]of this.listeners.entries())if(this.matchWildcard(i,e)){r.add(n);const a=this.eventQueue.get(i);a&&(a.forEach(s=>{n({...s,wildcard:i})}),this.eventQueue.delete(i));return}this.listeners.set(e,new Set([n]))}emitEvent(e,n,i){if(typeof e!="string"){const s=new Error("Invalid arguments");throw this.logger.error(s),s}const r={name:e,data:n,attrs:i},a=Array.from(this.getMatchingListeners(e));if(a.length)for(const[s,o]of a)o({...r,wildcard:s});else this.eventQueue.has(e)||this.eventQueue.set(e,[]),this.eventQueue.get(e).push(r);this.channel.postMessage(r)}*getMatchingListeners(e){for(const[n,i]of this.listeners.entries())if(this.matchWildcard(n,e))for(const r of i)yield[n,r]}unsubscribeFromEvent(e,n){if(this.listeners.has(e)){const i=this.listeners.get(e);i.delete(n),i.size===0&&this.listeners.delete(e)}}matchWildcard(e,n){const i=e.replace(/\*/g,"[^:]*").replace(/\*\*/g,".*");return new RegExp(`^${i}$`).test(n)}}const Bu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Mu=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=Bu[n[t]&63];return e};const Xa=(t=8)=>Mu(t),zu=t=>{const e=Object.entries(t).reduce((n,[i,r])=>r!==void 0?`${n}${n?"&":""}${i}=${r}`:n,"");return e?`?${e}`:""},Za=t=>{const e=document.getElementById(t);return e?new URL(e.src).searchParams:new URLSearchParams};function Hu(){const t=new Error().stack.split(`
4
+ `);return t.length<3?"":t[2].trim().substring(3)}function Gu(t){return new Promise(e=>setTimeout(e,t))}var Qa=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function es(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ts={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(Qa,function(){var e=function(){},n="undefined",i=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],a={},s=null;function o(m,S){var y=m[S];if(typeof y.bind=="function")return y.bind(m);try{return Function.prototype.bind.call(y,m)}catch{return function(){return Function.prototype.apply.apply(y,[m,arguments])}}}function l(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(m){return m==="debug"&&(m="log"),typeof console===n?!1:m==="trace"&&i?l:console[m]!==void 0?o(console,m):console.log!==void 0?o(console,"log"):e}function d(){for(var m=this.getLevel(),S=0;S<r.length;S++){var y=r[S];this[y]=S<m?e:this.methodFactory(y,m,this.name)}if(this.log=this.debug,typeof console===n&&m<this.levels.SILENT)return"No console available for logging"}function c(m){return function(){typeof console!==n&&(d.call(this),this[m].apply(this,arguments))}}function f(m,S,y){return u(m)||c.apply(this,arguments)}function k(m,S){var y=this,T,U,F,P="loglevel";typeof m=="string"?P+=":"+m:typeof m=="symbol"&&(P=void 0);function j(v){var _=(r[v]||"silent").toUpperCase();if(!(typeof window===n||!P)){try{window.localStorage[P]=_;return}catch{}try{window.document.cookie=encodeURIComponent(P)+"="+_+";"}catch{}}}function B(){var v;if(!(typeof window===n||!P)){try{v=window.localStorage[P]}catch{}if(typeof v===n)try{var _=window.document.cookie,A=encodeURIComponent(P),N=_.indexOf(A+"=");N!==-1&&(v=/^([^;]+)/.exec(_.slice(N+A.length+1))[1])}catch{}return y.levels[v]===void 0&&(v=void 0),v}}function g(){if(!(typeof window===n||!P)){try{window.localStorage.removeItem(P)}catch{}try{window.document.cookie=encodeURIComponent(P)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function O(v){var _=v;if(typeof _=="string"&&y.levels[_.toUpperCase()]!==void 0&&(_=y.levels[_.toUpperCase()]),typeof _=="number"&&_>=0&&_<=y.levels.SILENT)return _;throw new TypeError("log.setLevel() called with invalid level: "+v)}y.name=m,y.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},y.methodFactory=S||f,y.getLevel=function(){return F!=null?F:U!=null?U:T},y.setLevel=function(v,_){return F=O(v),_!==!1&&j(F),d.call(y)},y.setDefaultLevel=function(v){U=O(v),B()||y.setLevel(v,!1)},y.resetLevel=function(){F=null,g(),d.call(y)},y.enableAll=function(v){y.setLevel(y.levels.TRACE,v)},y.disableAll=function(v){y.setLevel(y.levels.SILENT,v)},y.rebuild=function(){if(s!==y&&(T=O(s.getLevel())),d.call(y),s===y)for(var v in a)a[v].rebuild()},T=O(s?s.getLevel():"WARN");var E=B();E!=null&&(F=O(E)),d.call(y)}s=new k,s.getLogger=function(S){if(typeof S!="symbol"&&typeof S!="string"||S==="")throw new TypeError("You must supply a name when creating a logger.");var y=a[S];return y||(y=a[S]=new k(S,s.methodFactory)),y};var p=typeof window!==n?window.log:void 0;return s.noConflict=function(){return typeof window!==n&&window.log===s&&(window.log=p),s},s.getLoggers=function(){return a},s.default=s,s})})(ts);var ns=ts.exports;const Bn=es(ns);var is={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.prefix=n(e)})(Qa,function(e){var n=function(d){for(var c=1,f=arguments.length,k;c<f;c++)for(k in arguments[c])Object.prototype.hasOwnProperty.call(arguments[c],k)&&(d[k]=arguments[c][k]);return d},i={template:"[%t] %l:",levelFormatter:function(d){return d.toUpperCase()},nameFormatter:function(d){return d||"root"},timestampFormatter:function(d){return d.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},r,a={},s=function(d){if(!d||!d.getLogger)throw new TypeError("Argument is not a root logger");r=d},o=function(d,c){if(!d||!d.setLevel)throw new TypeError("Argument is not a logger");var f=d.methodFactory,k=d.name||"",p=a[k]||a[""]||i;function m(S,y,T){var U=f(S,y,T),F=a[T]||a[""],P=F.template.indexOf("%t")!==-1,j=F.template.indexOf("%l")!==-1,B=F.template.indexOf("%n")!==-1;return function(){for(var g="",O=arguments.length,E=Array(O),v=0;v<O;v++)E[v]=arguments[v];if(k||!a[T]){var _=F.timestampFormatter(new Date),A=F.levelFormatter(S),N=F.nameFormatter(T);F.format?g+=F.format(A,N,_):(g+=F.template,P&&(g=g.replace(/%t/,_)),j&&(g=g.replace(/%l/,A)),B&&(g=g.replace(/%n/,N))),E.length&&typeof E[0]=="string"?E[0]=g+" "+E[0]:E.unshift(g)}U.apply(void 0,E)}}return a[k]||(d.methodFactory=m),c=c||{},c.template&&(c.format=void 0),a[k]=n({},p,c),d.setLevel(d.getLevel()),r||d.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),d},l={reg:s,apply:o},u;return e&&(u=e.prefix,l.noConflict=function(){return e.prefix===l&&(e.prefix=u),l}),l})})(is);var Ku=is.exports;const sr=es(Ku);let rs=class{constructor(e){w(this,"defaultLevel",ns.levels.INFO);w(this,"namePrefix");w(this,"provider",Bn);this.namePrefix=e?`${e}-`:"",this.provider.setDefaultLevel(this.defaultLevel),sr.reg(Bn),sr.apply(Bn,{template:"[%t] %l (%n)",nameFormatter:n=>{var i;return(i=n==null?void 0:n.toLowerCase())!=null?i:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)})}createLogger(e){const n=this.namePrefix+e.toLowerCase(),i=this.provider.getLogger(n),r=localStorage.getItem(`loglevel:${n}`);return r?i.setLevel(r):i.setLevel(this.defaultLevel),i}};const oe=class oe{constructor(){w(this,"instanceId",Xa());w(this,"log",new rs("nz"));w(this,"coreLogger",this.log.createLogger("core"));w(this,"_config",null);w(this,"_account");w(this,"_productDataSource");w(this,"_eventBus",new Ya("nizza",this.coreLogger));Va(this,{_config:K,_account:K,_productDataSource:K,config:Oe,account:Oe,accountName:Oe,configure:_e,setProductDataSource:_e},{name:"NizzaStore",autoBind:!0})}static instance(){var n,i;if(!!((n=window==null?void 0:window.nizza)!=null&&n.store))oe._instance=(i=window==null?void 0:window.nizza)==null?void 0:i.store;else{const r=new oe;oe._instance=r}return window.nizza||(window.nizza={}),window.nizza.store=oe._instance,window.nz=window.nizza,oe._instance}async configure(e){var n;try{const i=(n=this._config)==null?void 0:n.account;if(this._config=e,i!==e.account){const r=await _s(e.account);this.setAccount(r)}if(e.getProductDataSource){const r=await e.getProductDataSource();this.setProductDataSource(r)}}catch(i){this.coreLogger.error("Error configuring NizzaStore:",i)}}setAccount(e){this._account=e}setProductDataSource(e){this._productDataSource=e}get version(){return oe.version}get config(){return this._config}get account(){return this._account}get accountName(){var e;return(e=this._config)==null?void 0:e.account}get productDataSource(){return this._productDataSource}get eventBus(){return this._eventBus}};w(oe,"version","4"),w(oe,"_instance");let ln=oe;const tt=()=>ln.instance();function Me(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function qt(t){return function e(n){return arguments.length===0||Me(n)?e:t.apply(this,arguments)}}function Ri(t){return function e(n,i){switch(arguments.length){case 0:return e;case 1:return Me(n)?e:qt(function(r){return t(n,r)});default:return Me(n)&&Me(i)?e:Me(n)?qt(function(r){return t(r,i)}):Me(i)?qt(function(r){return t(n,r)}):t(n,i)}}}const qu=Number.isInteger||function(e){return e<<0===e};function Wu(t){return Object.prototype.toString.call(t)==="[object String]"}var Ju=Ri(function(e,n){var i=e<0?n.length+e:e;return Wu(n)?n.charAt(i):n[i]}),Yu=qt(function(e){return e==null}),Xu=Ri(function(e,n){return e.map(function(i){for(var r=n,a=0,s;a<i.length;){if(r==null)return;s=i[a],r=qu(s)?Ju(s,r):r[s],a+=1}return r})}),Zu=Ri(function(e,n){return Xu([e],n)[0]});class Lt extends Error{constructor(e,n,i){super(n),this.value=i,this.name=e}toDTO(){return{name:this.name,message:this.message,...this.value&&{value:this.value}}}}class as extends Lt{constructor(e){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${e}' not found.`,e)}}class ss extends Lt{constructor(e){var n;super("APP_UNEXPECTED_ERROR",(n=e.message)!=null?n:"An unexpected error occurred.",e)}}class Qu extends Lt{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class os extends Lt{constructor(e){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
5
+ Configuration property invalid: "${e}".
6
6
 
7
7
  It looks like you are trying to use a configuration property that is required but is "undefined", make sure you have initialized the global object "nizza".
8
8
 
@@ -23,10 +23,48 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
23
23
  account: env.account,
24
24
  ...
25
25
  });
26
- `)}}function Wl(e,t){t.forEach(n=>{if(Gl(Hl(n.split("."),e)))throw new fr(n)})}if(!z.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Ga)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Jl(e){e()}function Xl(e){e||(e=Jl),fl({reactionScheduler:e})}function Zl(e){return pl(e)}var Ql=1e4,Yl=1e4,eu=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(i){i===void 0&&(i=Ql),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var a=Date.now();n.registrations.forEach(function(r,o){a-r.registeredAt>=i&&(n.finalize(r.value),n.registrations.delete(o))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,i){this.registrations.set(i,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Yl))}}),e}(),tu=typeof FinalizationRegistry!="undefined"?FinalizationRegistry:eu,jn=new tu(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),xi=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),a,r=[],o;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return r};function Ri(e){return"observer".concat(e)}var nu=function(){function e(){}return e}();function iu(){return new nu}function au(e,t){t===void 0&&(t="observed");var n=xi(z.useState(iu),1),i=n[0],a=xi(z.useState(),2),r=a[1],o=function(){return r([])},s=z.useRef(null);s.current||(s.current={reaction:null,mounted:!1,changedBeforeMount:!1});var l=s.current;l.reaction||(l.reaction=new at(Ri(t),function(){l.mounted?o():l.changedBeforeMount=!0}),jn.register(i,l,l)),z.useDebugValue(l.reaction,Zl),z.useEffect(function(){return jn.unregister(l),l.mounted=!0,l.reaction?l.changedBeforeMount&&(l.changedBeforeMount=!1,o()):(l.reaction=new at(Ri(t),function(){o()}),o()),function(){l.reaction.dispose(),l.reaction=null,l.mounted=!1,l.changedBeforeMount=!1}},[]);var u,d;if(l.reaction.track(function(){try{u=e()}catch(c){d=c}}),d)throw d;return u}var mr=typeof Symbol=="function"&&Symbol.for;mr?Symbol.for("react.forward_ref"):typeof z.forwardRef=="function"&&z.forwardRef(function(e){return null}).$$typeof;mr?Symbol.for("react.memo"):typeof z.memo=="function"&&z.memo(function(e){return null}).$$typeof;var bn;Xl(po.unstable_batchedUpdates);bn=jn.finalizeAllImmediately;function ru(e,t){return t===void 0&&(t="observed"),au(e,t)}function pr(){return z.useMemo(He,[])}function hr(e){const t=pr();return ru(()=>e(t))}function ou(){var a,r,o;const{coreLogger:e}=He();let t=null,n=null,i=null;try{t=(o=(r=(a=Intl.DateTimeFormat())==null?void 0:a.resolvedOptions())==null?void 0:r.timeZone)!=null?o:null;const s=-new Date().getTimezoneOffset();i=s;const l=s>=0?"+":"-",u=String(Math.floor(Math.abs(s)/60)).padStart(2,"0"),d=String(Math.abs(s)%60).padStart(2,"0");n=`${l}${u}:${d}`}catch{e.error("Error obtaining time zone or offset")}return{offset:n,offsetValue:i,value:t,country:null,included:null,label:null}}class gr{constructor(t){C(this,"aggregate");C(this,"_numSetPropsApplied",0);this.aggregate=t}setProps(t){for(const[n,i]of Object.entries(t))n in this.aggregate&&(this.aggregate[n]=i);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function vr(e){return new gr(e)}class su{}class lu{constructor(t){C(this,"_value");t!==void 0&&(this._value=t)}get value(){return this._value}}var ri=(e=>(e.VTEX="VTEX",e.VTEX_IO="VTEX-IO",e.VTEX_CMS="PORTAL-VTEX",e.PLATFORM="PLATFORM",e.UNKNOWN="UNKNOWN",e))(ri||{}),kr=(e=>(e.PLATFORM="platform_module",e.ADENDA="subscription_module",e.APP_STORE="app_store",e))(kr||{}),oi=(e=>(e.ACTIVE="active_contract",e.INACTIVE="inactive_contract",e))(oi||{}),yr=(e=>(e.LITE="lite",e.STANDARD="standard",e.PRO="pro",e))(yr||{}),br=(e=>(e.LITE="PLAN_LITE",e.STANDARD="PLAN_ESTANDAR",e.PRO="PLAN_PRO",e.NONE="NO_PLAN",e))(br||{}),Sr=(e=>(e.PAST="past",e.LIVE="live",e.FUTURE="future",e))(Sr||{});class on{constructor(t){C(this,"root",vr(this));C(this,"id");C(this,"account");C(this,"accountType",ri.UNKNOWN);C(this,"username");C(this,"currencyConfig");C(this,"contractType");C(this,"nextDateMetricRecord");C(this,"spendedMinutes",0);C(this,"unlimitedService",!1);C(this,"hoursAvailable",0);C(this,"contractStatus",oi.ACTIVE);C(this,"createdAt");C(this,"installationDateApp");C(this,"cxAccount");C(this,"freeService",!1);C(this,"subscriptionType",null);C(this,"minutesAvailable",0);C(this,"globalPage");C(this,"stripe");C(this,"descriptionPlan");C(this,"planType");C(this,"selectFreeTrial");C(this,"exceededFeatures");C(this,"host",null);C(this,"variationThumbnailName");C(this,"variationsConfig");this.root.setProps(t)}static toDomain(t){const{createdAt:n,username:i,...a}=t,r={...a,username:i!=null?i:a.account,createdAt:new Date(Number(n))};return new on(r)}toPrimitives(){const{root:t,createdAt:n,...i}=this;return{...i,created:n.toISOString()}}}const uu=`${jo.apiUrls.restV1}/accounts/v2`;class _r{async get(t){const n=`${uu}/${t}`,{data:i}=await qn({url:n});return i?on.toDomain(i):null}}class Nr{constructor(t){this.accountRepository=t}async get(t){try{const n=await this.accountRepository.get(t);if(!n)throw new dr(t);return n}catch(n){throw new cr(n)}}}const du=new _r,si=new Nr(du),cu=()=>["account"],fu=()=>{const e=hr(a=>a.accountName),[t,n]=Ro(Wt),i=mo.useQuery(cu(),()=>si.get(e),{enabled:!!e&&!t,refetchOnWindowFocus:!1,refetchOnMount:!1});return z.useEffect(()=>{const a=i.data;!i.isSuccess||!a||n(a)},[i.status]),{findQuery:i,account:t}},Or=Oo();async function wr(e){const t=await si.get(e);return Or.set(Wt,t),t}var Ar=(e=>(e.CREATED="CREATED",e.STARTING="STARTING",e.LIVE="LIVE",e.FINALIZED="FINALIZED",e))(Ar||{});const mu={ALL:"*",CORE:"core:**",ADD_TO_CART_HOOKS:"core:addToCartHooks:**",LIVE_STREAMING_EVENT:"event:**",EVENT_CHAT:"event:chat:**",EVENT_PRODUCTS:"event:products:**",CUSTOMIZE_LIVE:"customize-live:**",PLAYER:"player:**",SNACK_SIZE_VIDEO:"ssv:**",SNACK_SIZE_VIDEO_ADMIN:"ssv-admin:**",UI:"ui:**",UTILS:"utils:**"},Fr={EVENT_STATUS_CHANGED:"event:statusChanged",ATCH_ACTION_EXECUTED:"core:addToCartHooks:actionExecuted"};var Er=(e=>(e.English="en",e.Spanish="es",e.Portuguese="pt",e))(Er||{}),Cr=(e=>(e.COMBO="Combo",e.BADGE="Badged",e))(Cr||{}),Tr=(e=>(e.VTEX="VTEX",e.PLATFORM="platform",e.CACE="CACE",e.GLOBAL_PAGE="globalPage",e.DEV_LOCAL="dev:local",e.CUSTOMIZATION="customization",e.FAST_STORE="faststore",e))(Tr||{}),xr=(e=>(e.Created="CREATED",e.Finalized="FINALIZED",e.Live="LIVE",e.Starting="STARTING",e))(xr||{}),Rr=(e=>(e.Add="add",e.Remove="remove",e))(Rr||{}),Pr=(e=>(e.Active="active",e.Inactive="inactive",e))(Pr||{});const pu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},hu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},gu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},vu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ku={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ManageCollectionProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ManageCollectionProductInInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"manageCollectionProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},yu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},bu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Su={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindMinimalEvent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"thumbnailsPath"}},{kind:"Field",name:{kind:"Name",value:"recordVideoPath"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"thumbnails"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},_u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchMinimalEvents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"thumbnailsPath"}},{kind:"Field",name:{kind:"Name",value:"recordVideoPath"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Nu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BlockUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BlockUserInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blockUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BlockUserSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Ou={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeAccountUsername"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeAccountUsername"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},wu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteChatInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DeleteChatMessageSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Au={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetAllChatMessageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatMessageArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"connectionId"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"idEvent"}},{kind:"Field",name:{kind:"Name",value:"sendDate"}},{kind:"Field",name:{kind:"Name",value:"sessionId"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"isAdmin"}},{kind:"Field",name:{kind:"Name",value:"urlGif"}},{kind:"Field",name:{kind:"Name",value:"second"}},{kind:"Field",name:{kind:"Name",value:"ip"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Fu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetChatRoomToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetChatRoomInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getChatRoomToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatRoomTokenData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"token"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Eu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PinChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PinChatInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pinChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PinChatMessageSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Cu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInputAccount"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Tu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"section"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},xu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Ru={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTimeLine"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetTimeLineInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTimeLine"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TimeLineArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}},{kind:"Field",name:{kind:"Name",value:"likes"}},{kind:"Field",name:{kind:"Name",value:"comments"}},{kind:"Field",name:{kind:"Name",value:"viewers"}},{kind:"Field",name:{kind:"Name",value:"orders"}},{kind:"Field",name:{kind:"Name",value:"minute"}},{kind:"Field",name:{kind:"Name",value:"hour"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Pu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AppendProductsToSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RelateToProductsSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appendProductsSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Du={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Lu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateSnackVideoBatch"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Iu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteRelationshipWithSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoRelationshipKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteRelationshipSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}}]}}]}}]},Vu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},ju={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindManySnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindManySnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findManySnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Uu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"totalItems"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Bu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayLists"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"videoAmount"}},{kind:"Field",name:{kind:"Name",value:"productAmount"}},{kind:"Field",name:{kind:"Name",value:"updated"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},$u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSnackVideoRelationships"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoRelationshipInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getRelationshipSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RelationshipSnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sourceEntity"}},{kind:"Field",name:{kind:"Name",value:"attributeId"}}]}}]}}]}}]}}]},Mu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"totalItems"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},zu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatePlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Gu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindByProductSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindByProductSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findByProductSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Ku={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetPlayListQueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productId"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}},{kind:"Field",name:{kind:"Name",value:"order"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Hu=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:pu,AppendProductsToSnackVideoDocument:Pu,BlockUserDocument:Nu,ChangeAccountUsernameDocument:Ou,CreatePlayListDocument:Du,CreateSnackVideoBatchDocument:Lu,DeleteAllCustomizationDocument:Cu,DeleteChatMessageDocument:wu,DeleteCollectionDocument:hu,DeleteRelationshipWithSnackVideoDocument:Iu,DeleteSnackVideoDocument:Vu,EventStatus:xr,FindByProductSnackVideoDocument:Gu,FindCollectionDocument:gu,FindManySnackVideosDocument:ju,FindMinimalEventDocument:Su,GetAllChatMessageDocument:Au,GetAllCollectionsDocument:vu,GetAllCustomizationDocument:Tu,GetAllSnackVideosDocument:Uu,GetChatRoomTokenDocument:Fu,GetPlayListDocument:Ku,GetPlayListsDocument:Bu,GetSnackVideoRelationshipsDocument:$u,GetTimeLineDocument:Ru,ManageCollectionProductDocument:ku,Methods:Rr,PinChatMessageDocument:Eu,SearchCollectionsDocument:yu,SearchMinimalEventsDocument:_u,SearchSnackVideosDocument:Mu,Status:Pr,UpdateCollectionDocument:bu,UpdateCustomizationDocument:xu,UpdatePlayListDocument:zu},Symbol.toStringTag,{value:"Module"}));var sn=(e=>(e.OPEN_TAB="openTab",e.OPEN_VARIATION_SELECTOR="openVariationSelector",e.ADD_TO_CART="addToCart",e))(sn||{});function qu(e){return{class:e,_value:null,get value(){return this._value||(this._value=new e,Object.freeze(this)),this._value}}}const Sn="addToCartHooks.notification.error",Un={errorAddingToCart:Sn,errorOpeningVariationSelector:Sn,errorOpeningNewTab:Sn,successAddingToCart:"addToCartHooks.notification.success"};async function Wu(e){const{coreLogger:t}=He(),n={...e,action:{type:sn.ADD_TO_CART,exec:()=>t.error("addToCartHooks: action no implemented in validate hook")}};try{const i=await Ju(n),a=await Xu(i);await Zu(a)}catch(i){t.error("addToCartHooks: error unhandled",i)}}async function Ju(e){var r,o;const{context:t,userAddToCartConfig:n}=e,i=(r=n==null?void 0:n.hooks)==null?void 0:r.transform;let a=e.product;if(i)try{a=await i({product:{...a},data:(o=t.data)!=null?o:{}})}catch(s){zt("transform",s)}return{...e,product:a}}async function Xu(e){var l,u;const{context:t,hookStrategy:n,userAddToCartConfig:i,product:a}=e,r=Dr(e),o=(l=i==null?void 0:i.hooks)==null?void 0:l.validate;let s=n.validate({...e,actionFactory:r});if(o)try{s=await o({product:{...a},defaultAction:{...s},action:r,data:(u=t.data)!=null?u:{}})}catch(d){zt("validate",d)}return{...e,action:s,actionFactory:r}}async function Zu(e){var _;const{eventBus:t}=He(),{product:n,userAddToCartConfig:i,notifyFactory:a,action:r,actionFactory:o}=e,{isVariationSelectorOpen:s,data:l={}}=e.context,u=(_=i==null?void 0:i.hooks)==null?void 0:_.end,d=r.type===sn.ADD_TO_CART;let c=null,f=!1;const y=()=>{!d||!s||o.openVariationSelector(!1).exec()},h=()=>{!d||f||(c?a.error(Un.errorAddingToCart):a.success(Un.successAddingToCart))},m=()=>{const k={product:n,actionType:r.type,success:!c,error:c};t.emit(Fr.ATCH_ACTION_EXECUTED,k)};try{if(!r.type||!r.exec)throw new Error("Invalid action object, missing keys 'type' or 'exec'");await r.exec()}catch(k){zt("end",k),c=k}if(u)try{f=!!await u({data:l,error:c,notify:a,actionExecuted:r})}catch(k){zt("end",k)}y(),h(),m()}function Dr(e){const{actionFactory:t,userAddToCartConfig:n}=e,i=a=>Object.entries(a!=null?a:{}).reduce((r,[o,s])=>({...r,[o]:l=>({type:o,exec:()=>s(l)})}),{});return{...i(t),...i(n==null?void 0:n.actionFactory)}}function zt(e,t){const{coreLogger:n}=He();n.error(`addToCartHooks error running ${e}: `,t)}function Lr(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qu}=Object.prototype,{getPrototypeOf:li}=Object,ln=(e=>t=>{const n=Qu.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),me=e=>(e=e.toLowerCase(),t=>ln(t)===e),un=e=>t=>typeof t===e,{isArray:qe}=Array,lt=un("undefined");function Yu(e){return e!==null&&!lt(e)&&e.constructor!==null&&!lt(e.constructor)&&ee(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ir=me("ArrayBuffer");function ed(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ir(e.buffer),t}const td=un("string"),ee=un("function"),Vr=un("number"),dn=e=>e!==null&&typeof e=="object",nd=e=>e===!0||e===!1,Tt=e=>{if(ln(e)!=="object")return!1;const t=li(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},id=me("Date"),ad=me("File"),rd=me("Blob"),od=me("FileList"),sd=e=>dn(e)&&ee(e.pipe),ld=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ee(e.append)&&((t=ln(e))==="formdata"||t==="object"&&ee(e.toString)&&e.toString()==="[object FormData]"))},ud=me("URLSearchParams"),dd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kt(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let i,a;if(typeof e!="object"&&(e=[e]),qe(e))for(i=0,a=e.length;i<a;i++)t.call(null,e[i],i,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let s;for(i=0;i<o;i++)s=r[i],t.call(null,e[s],s,e)}}function jr(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,a;for(;i-- >0;)if(a=n[i],t===a.toLowerCase())return a;return null}const Ur=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Br=e=>!lt(e)&&e!==Ur;function Bn(){const{caseless:e}=Br(this)&&this||{},t={},n=(i,a)=>{const r=e&&jr(t,a)||a;Tt(t[r])&&Tt(i)?t[r]=Bn(t[r],i):Tt(i)?t[r]=Bn({},i):qe(i)?t[r]=i.slice():t[r]=i};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&kt(arguments[i],n);return t}const cd=(e,t,n,{allOwnKeys:i}={})=>(kt(t,(a,r)=>{n&&ee(a)?e[r]=Lr(a,n):e[r]=a},{allOwnKeys:i}),e),fd=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),md=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},pd=(e,t,n,i)=>{let a,r,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),r=a.length;r-- >0;)o=a[r],(!i||i(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&li(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},hd=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},gd=e=>{if(!e)return null;if(qe(e))return e;let t=e.length;if(!Vr(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vd=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&li(Uint8Array)),kd=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=i.next())&&!a.done;){const r=a.value;t.call(e,r[0],r[1])}},yd=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},bd=me("HTMLFormElement"),Sd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),Pi=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_d=me("RegExp"),$r=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};kt(n,(a,r)=>{let o;(o=t(a,r,e))!==!1&&(i[r]=o||a)}),Object.defineProperties(e,i)},Nd=e=>{$r(e,(t,n)=>{if(ee(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(ee(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Od=(e,t)=>{const n={},i=a=>{a.forEach(r=>{n[r]=!0})};return qe(e)?i(e):i(String(e).split(t)),n},wd=()=>{},Ad=(e,t)=>(e=+e,Number.isFinite(e)?e:t),_n="abcdefghijklmnopqrstuvwxyz",Di="0123456789",Mr={DIGIT:Di,ALPHA:_n,ALPHA_DIGIT:_n+_n.toUpperCase()+Di},Fd=(e=16,t=Mr.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Ed(e){return!!(e&&ee(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Cd=e=>{const t=new Array(10),n=(i,a)=>{if(dn(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[a]=i;const r=qe(i)?[]:{};return kt(i,(o,s)=>{const l=n(o,a+1);!lt(l)&&(r[s]=l)}),t[a]=void 0,r}}return i};return n(e,0)},Td=me("AsyncFunction"),xd=e=>e&&(dn(e)||ee(e))&&ee(e.then)&&ee(e.catch),p={isArray:qe,isArrayBuffer:Ir,isBuffer:Yu,isFormData:ld,isArrayBufferView:ed,isString:td,isNumber:Vr,isBoolean:nd,isObject:dn,isPlainObject:Tt,isUndefined:lt,isDate:id,isFile:ad,isBlob:rd,isRegExp:_d,isFunction:ee,isStream:sd,isURLSearchParams:ud,isTypedArray:vd,isFileList:od,forEach:kt,merge:Bn,extend:cd,trim:dd,stripBOM:fd,inherits:md,toFlatObject:pd,kindOf:ln,kindOfTest:me,endsWith:hd,toArray:gd,forEachEntry:kd,matchAll:yd,isHTMLForm:bd,hasOwnProperty:Pi,hasOwnProp:Pi,reduceDescriptors:$r,freezeMethods:Nd,toObjectSet:Od,toCamelCase:Sd,noop:wd,toFiniteNumber:Ad,findKey:jr,global:Ur,isContextDefined:Br,ALPHABET:Mr,generateString:Fd,isSpecCompliantForm:Ed,toJSONObject:Cd,isAsyncFn:Td,isThenable:xd};function L(e,t,n,i,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a)}p.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:p.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const zr=L.prototype,Gr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Gr[e]={value:e}});Object.defineProperties(L,Gr);Object.defineProperty(zr,"isAxiosError",{value:!0});L.from=(e,t,n,i,a,r)=>{const o=Object.create(zr);return p.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),L.call(o,e.message,t,n,i,a),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};const Rd=null;function $n(e){return p.isPlainObject(e)||p.isArray(e)}function Kr(e){return p.endsWith(e,"[]")?e.slice(0,-2):e}function Li(e,t,n){return e?e.concat(t).map(function(a,r){return a=Kr(a),!n&&r?"["+a+"]":a}).join(n?".":""):t}function Pd(e){return p.isArray(e)&&!e.some($n)}const Dd=p.toFlatObject(p,{},null,function(t){return/^is[A-Z]/.test(t)});function cn(e,t,n){if(!p.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=p.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,_){return!p.isUndefined(_[m])});const i=n.metaTokens,a=n.visitor||d,r=n.dots,o=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&p.isSpecCompliantForm(t);if(!p.isFunction(a))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(p.isDate(h))return h.toISOString();if(!l&&p.isBlob(h))throw new L("Blob is not supported. Use a Buffer instead.");return p.isArrayBuffer(h)||p.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,m,_){let k=h;if(h&&!_&&typeof h=="object"){if(p.endsWith(m,"{}"))m=i?m:m.slice(0,-2),h=JSON.stringify(h);else if(p.isArray(h)&&Pd(h)||(p.isFileList(h)||p.endsWith(m,"[]"))&&(k=p.toArray(h)))return m=Kr(m),k.forEach(function(B,F){!(p.isUndefined(B)||B===null)&&t.append(o===!0?Li([m],F,r):o===null?m:m+"[]",u(B))}),!1}return $n(h)?!0:(t.append(Li(_,m,r),u(h)),!1)}const c=[],f=Object.assign(Dd,{defaultVisitor:d,convertValue:u,isVisitable:$n});function y(h,m){if(!p.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));c.push(h),p.forEach(h,function(k,x){(!(p.isUndefined(k)||k===null)&&a.call(t,k,p.isString(x)?x.trim():x,m,f))===!0&&y(k,m?m.concat(x):[x])}),c.pop()}}if(!p.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Ii(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function ui(e,t){this._pairs=[],e&&cn(e,this,t)}const Hr=ui.prototype;Hr.append=function(t,n){this._pairs.push([t,n])};Hr.toString=function(t){const n=t?function(i){return t.call(this,i,Ii)}:Ii;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function Ld(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qr(e,t,n){if(!t)return e;const i=n&&n.encode||Ld,a=n&&n.serialize;let r;if(a?r=a(t,n):r=p.isURLSearchParams(t)?t.toString():new ui(t,n).toString(i),r){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Vi{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){p.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Wr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Id=typeof URLSearchParams!="undefined"?URLSearchParams:ui,Vd=typeof FormData!="undefined"?FormData:null,jd=typeof Blob!="undefined"?Blob:null,Ud={isBrowser:!0,classes:{URLSearchParams:Id,FormData:Vd,Blob:jd},protocols:["http","https","file","blob","url","data"]},Jr=typeof window!="undefined"&&typeof document!="undefined",Bd=(e=>Jr&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!="undefined"&&navigator.product),$d=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Md=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jr,hasStandardBrowserEnv:Bd,hasStandardBrowserWebWorkerEnv:$d},Symbol.toStringTag,{value:"Module"})),le={...Md,...Ud};function zd(e,t){return cn(e,new le.classes.URLSearchParams,Object.assign({visitor:function(n,i,a,r){return le.isNode&&p.isBuffer(n)?(this.append(i,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Gd(e){return p.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Kd(e){const t={},n=Object.keys(e);let i;const a=n.length;let r;for(i=0;i<a;i++)r=n[i],t[r]=e[r];return t}function Xr(e){function t(n,i,a,r){let o=n[r++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=r>=n.length;return o=!o&&p.isArray(a)?a.length:o,l?(p.hasOwnProp(a,o)?a[o]=[a[o],i]:a[o]=i,!s):((!a[o]||!p.isObject(a[o]))&&(a[o]=[]),t(n,i,a[o],r)&&p.isArray(a[o])&&(a[o]=Kd(a[o])),!s)}if(p.isFormData(e)&&p.isFunction(e.entries)){const n={};return p.forEachEntry(e,(i,a)=>{t(Gd(i),a,n,0)}),n}return null}function Hd(e,t,n){if(p.isString(e))try{return(t||JSON.parse)(e),p.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const yt={transitional:Wr,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,r=p.isObject(t);if(r&&p.isHTMLForm(t)&&(t=new FormData(t)),p.isFormData(t))return a?JSON.stringify(Xr(t)):t;if(p.isArrayBuffer(t)||p.isBuffer(t)||p.isStream(t)||p.isFile(t)||p.isBlob(t))return t;if(p.isArrayBufferView(t))return t.buffer;if(p.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return zd(t,this.formSerializer).toString();if((s=p.isFileList(t))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return cn(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||a?(n.setContentType("application/json",!1),Hd(t)):t}],transformResponse:[function(t){const n=this.transitional||yt.transitional,i=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&p.isString(t)&&(i&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?L.from(s,L.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:le.classes.FormData,Blob:le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch"],e=>{yt.headers[e]={}});const qd=p.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Wd=e=>{const t={};let n,i,a;return e&&e.split(`
27
- `).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),i=o.substring(a+1).trim(),!(!n||t[n]&&qd[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},ji=Symbol("internals");function Ze(e){return e&&String(e).trim().toLowerCase()}function xt(e){return e===!1||e==null?e:p.isArray(e)?e.map(xt):String(e)}function Jd(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const Xd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Nn(e,t,n,i,a){if(p.isFunction(i))return i.call(this,t,n);if(a&&(t=n),!!p.isString(t)){if(p.isString(i))return t.indexOf(i)!==-1;if(p.isRegExp(i))return i.test(t)}}function Zd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Qd(e,t){const n=p.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(a,r,o){return this[i].call(this,t,a,r,o)},configurable:!0})})}class te{constructor(t){t&&this.set(t)}set(t,n,i){const a=this;function r(s,l,u){const d=Ze(l);if(!d)throw new Error("header name must be a non-empty string");const c=p.findKey(a,d);(!c||a[c]===void 0||u===!0||u===void 0&&a[c]!==!1)&&(a[c||l]=xt(s))}const o=(s,l)=>p.forEach(s,(u,d)=>r(u,d,l));return p.isPlainObject(t)||t instanceof this.constructor?o(t,n):p.isString(t)&&(t=t.trim())&&!Xd(t)?o(Wd(t),n):t!=null&&r(n,t,i),this}get(t,n){if(t=Ze(t),t){const i=p.findKey(this,t);if(i){const a=this[i];if(!n)return a;if(n===!0)return Jd(a);if(p.isFunction(n))return n.call(this,a,i);if(p.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ze(t),t){const i=p.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Nn(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let a=!1;function r(o){if(o=Ze(o),o){const s=p.findKey(i,o);s&&(!n||Nn(i,i[s],s,n))&&(delete i[s],a=!0)}}return p.isArray(t)?t.forEach(r):r(t),a}clear(t){const n=Object.keys(this);let i=n.length,a=!1;for(;i--;){const r=n[i];(!t||Nn(this,this[r],r,t,!0))&&(delete this[r],a=!0)}return a}normalize(t){const n=this,i={};return p.forEach(this,(a,r)=>{const o=p.findKey(i,r);if(o){n[o]=xt(a),delete n[r];return}const s=t?Zd(r):String(r).trim();s!==r&&delete n[r],n[s]=xt(a),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return p.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=t&&p.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
28
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(a=>i.set(a)),i}static accessor(t){const i=(this[ji]=this[ji]={accessors:{}}).accessors,a=this.prototype;function r(o){const s=Ze(o);i[s]||(Qd(a,o),i[s]=!0)}return p.isArray(t)?t.forEach(r):r(t),this}}te.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);p.reduceDescriptors(te.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});p.freezeMethods(te);function On(e,t){const n=this||yt,i=t||n,a=te.from(i.headers);let r=i.data;return p.forEach(e,function(s){r=s.call(n,r,a.normalize(),t?t.status:void 0)}),a.normalize(),r}function Zr(e){return!!(e&&e.__CANCEL__)}function bt(e,t,n){L.call(this,e==null?"canceled":e,L.ERR_CANCELED,t,n),this.name="CanceledError"}p.inherits(bt,L,{__CANCEL__:!0});function Yd(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new L("Request failed with status code "+n.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const ec=le.hasStandardBrowserEnv?{write(e,t,n,i,a,r){const o=[e+"="+encodeURIComponent(t)];p.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),p.isString(i)&&o.push("path="+i),p.isString(a)&&o.push("domain="+a),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function tc(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nc(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Qr(e,t){return e&&!tc(t)?nc(e,t):t}const ic=le.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function a(r){let o=r;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=a(window.location.href),function(o){const s=p.isString(o)?a(o):o;return s.protocol===i.protocol&&s.host===i.host}}():function(){return function(){return!0}}();function ac(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function rc(e,t){e=e||10;const n=new Array(e),i=new Array(e);let a=0,r=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=i[r];o||(o=u),n[a]=l,i[a]=u;let c=r,f=0;for(;c!==a;)f+=n[c++],c=c%e;if(a=(a+1)%e,a===r&&(r=(r+1)%e),u-o<t)return;const y=d&&u-d;return y?Math.round(f*1e3/y):void 0}}function Ui(e,t){let n=0;const i=rc(50,250);return a=>{const r=a.loaded,o=a.lengthComputable?a.total:void 0,s=r-n,l=i(s),u=r<=o;n=r;const d={loaded:r,total:o,progress:o?r/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-r)/l:void 0,event:a};d[t?"download":"upload"]=!0,e(d)}}const oc=typeof XMLHttpRequest!="undefined",sc=oc&&function(e){return new Promise(function(n,i){let a=e.data;const r=te.from(e.headers).normalize();let{responseType:o,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let d;if(p.isFormData(a)){if(le.hasStandardBrowserEnv||le.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((d=r.getContentType())!==!1){const[m,..._]=d?d.split(";").map(k=>k.trim()).filter(Boolean):[];r.setContentType([m||"multipart/form-data",..._].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(m+":"+_))}const f=Qr(e.baseURL,e.url);c.open(e.method.toUpperCase(),qr(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function y(){if(!c)return;const m=te.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),k={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};Yd(function(B){n(B),u()},function(B){i(B),u()},k),c=null}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(i(new L("Request aborted",L.ECONNABORTED,e,c)),c=null)},c.onerror=function(){i(new L("Network Error",L.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let _=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const k=e.transitional||Wr;e.timeoutErrorMessage&&(_=e.timeoutErrorMessage),i(new L(_,k.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,e,c)),c=null},le.hasStandardBrowserEnv&&(s&&p.isFunction(s)&&(s=s(e)),s||s!==!1&&ic(f))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&ec.read(e.xsrfCookieName);m&&r.set(e.xsrfHeaderName,m)}a===void 0&&r.setContentType(null),"setRequestHeader"in c&&p.forEach(r.toJSON(),function(_,k){c.setRequestHeader(k,_)}),p.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Ui(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Ui(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{c&&(i(!m||m.type?new bt(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const h=ac(f);if(h&&le.protocols.indexOf(h)===-1){i(new L("Unsupported protocol "+h+":",L.ERR_BAD_REQUEST,e));return}c.send(a||null)})},Mn={http:Rd,xhr:sc};p.forEach(Mn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Bi=e=>`- ${e}`,lc=e=>p.isFunction(e)||e===null||e===!1,Yr={getAdapter:e=>{e=p.isArray(e)?e:[e];const{length:t}=e;let n,i;const a={};for(let r=0;r<t;r++){n=e[r];let o;if(i=n,!lc(n)&&(i=Mn[(o=String(n)).toLowerCase()],i===void 0))throw new L(`Unknown adapter '${o}'`);if(i)break;a[o||"#"+r]=i}if(!i){const r=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?r.length>1?`since :
29
- `+r.map(Bi).join(`
30
- `):" "+Bi(r[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:Mn};function wn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bt(null,e)}function $i(e){return wn(e),e.headers=te.from(e.headers),e.data=On.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yr.getAdapter(e.adapter||yt.adapter)(e).then(function(i){return wn(e),i.data=On.call(e,e.transformResponse,i),i.headers=te.from(i.headers),i},function(i){return Zr(i)||(wn(e),i&&i.response&&(i.response.data=On.call(e,e.transformResponse,i.response),i.response.headers=te.from(i.response.headers))),Promise.reject(i)})}const Mi=e=>e instanceof te?{...e}:e;function $e(e,t){t=t||{};const n={};function i(u,d,c){return p.isPlainObject(u)&&p.isPlainObject(d)?p.merge.call({caseless:c},u,d):p.isPlainObject(d)?p.merge({},d):p.isArray(d)?d.slice():d}function a(u,d,c){if(p.isUndefined(d)){if(!p.isUndefined(u))return i(void 0,u,c)}else return i(u,d,c)}function r(u,d){if(!p.isUndefined(d))return i(void 0,d)}function o(u,d){if(p.isUndefined(d)){if(!p.isUndefined(u))return i(void 0,u)}else return i(void 0,d)}function s(u,d,c){if(c in t)return i(u,d);if(c in e)return i(void 0,u)}const l={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,d)=>a(Mi(u),Mi(d),!0)};return p.forEach(Object.keys(Object.assign({},e,t)),function(d){const c=l[d]||a,f=c(e[d],t[d],d);p.isUndefined(f)&&c!==s||(n[d]=f)}),n}const eo="1.6.8",di={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{di[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const zi={};di.transitional=function(t,n,i){function a(r,o){return"[Axios v"+eo+"] Transitional option '"+r+"'"+o+(i?". "+i:"")}return(r,o,s)=>{if(t===!1)throw new L(a(o," has been removed"+(n?" in "+n:"")),L.ERR_DEPRECATED);return n&&!zi[o]&&(zi[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,o,s):!0}};function uc(e,t,n){if(typeof e!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let a=i.length;for(;a-- >0;){const r=i[a],o=t[r];if(o){const s=e[r],l=s===void 0||o(s,r,e);if(l!==!0)throw new L("option "+r+" must be "+l,L.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new L("Unknown option "+r,L.ERR_BAD_OPTION)}}const zn={assertOptions:uc,validators:di},ve=zn.validators;class Ne{constructor(t){this.defaults=t,this.interceptors={request:new Vi,response:new Vi}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const r=a.stack?a.stack.replace(/^.+\n/,""):"";i.stack?r&&!String(i.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(i.stack+=`
31
- `+r):i.stack=r}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$e(this.defaults,n);const{transitional:i,paramsSerializer:a,headers:r}=n;i!==void 0&&zn.assertOptions(i,{silentJSONParsing:ve.transitional(ve.boolean),forcedJSONParsing:ve.transitional(ve.boolean),clarifyTimeoutError:ve.transitional(ve.boolean)},!1),a!=null&&(p.isFunction(a)?n.paramsSerializer={serialize:a}:zn.assertOptions(a,{encode:ve.function,serialize:ve.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=r&&p.merge(r.common,r[n.method]);r&&p.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),n.headers=te.concat(o,r);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let d,c=0,f;if(!l){const h=[$i.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,u),f=h.length,d=Promise.resolve(n);c<f;)d=d.then(h[c++],h[c++]);return d}f=s.length;let y=n;for(c=0;c<f;){const h=s[c++],m=s[c++];try{y=h(y)}catch(_){m.call(this,_);break}}try{d=$i.call(this,y)}catch(h){return Promise.reject(h)}for(c=0,f=u.length;c<f;)d=d.then(u[c++],u[c++]);return d}getUri(t){t=$e(this.defaults,t);const n=Qr(t.baseURL,t.url);return qr(n,t.params,t.paramsSerializer)}}p.forEach(["delete","get","head","options"],function(t){Ne.prototype[t]=function(n,i){return this.request($e(i||{},{method:t,url:n,data:(i||{}).data}))}});p.forEach(["post","put","patch"],function(t){function n(i){return function(r,o,s){return this.request($e(s||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Ne.prototype[t]=n(),Ne.prototype[t+"Form"]=n(!0)});class ci{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const i=this;this.promise.then(a=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](a);i._listeners=null}),this.promise.then=a=>{let r;const o=new Promise(s=>{i.subscribe(s),r=s}).then(a);return o.cancel=function(){i.unsubscribe(r)},o},t(function(r,o,s){i.reason||(i.reason=new bt(r,o,s),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ci(function(a){t=a}),cancel:t}}}function dc(e){return function(n){return e.apply(null,n)}}function cc(e){return p.isObject(e)&&e.isAxiosError===!0}const Gn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Gn).forEach(([e,t])=>{Gn[t]=e});function to(e){const t=new Ne(e),n=Lr(Ne.prototype.request,t);return p.extend(n,Ne.prototype,t,{allOwnKeys:!0}),p.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return to($e(e,a))},n}const G=to(yt);G.Axios=Ne;G.CanceledError=bt;G.CancelToken=ci;G.isCancel=Zr;G.VERSION=eo;G.toFormData=cn;G.AxiosError=L;G.Cancel=G.CanceledError;G.all=function(t){return Promise.all(t)};G.spread=dc;G.isAxiosError=cc;G.mergeConfig=$e;G.AxiosHeaders=te;G.formToJSON=e=>Xr(p.isHTMLForm(e)?new FormData(e):e);G.getAdapter=Yr.getAdapter;G.HttpStatusCode=Gn;G.default=G;class fc{constructor(t){C(this,"logger");C(this,"axiosInstance");this.logger=t.logger,this.axiosInstance=G.create({baseURL:t.baseUrl,headers:t.accessToken?{Authorization:`Bearer ${t.accessToken}`}:{}})}async get(t){try{return(await this.axiosInstance.get(t)).data}catch(n){throw this.handleError(n),n}}async post(t,n){var r;const{data:i={},ignoreError:a=!1}=n;try{return(await this.axiosInstance.post(t,i)).data}catch(o){if(this.handleError(o),a&&G.isAxiosError(o))return(r=o.response)==null?void 0:r.data;throw o}}handleError(t){var n,i;G.isAxiosError(t)&&(this.logger.error("Error Code:",(n=t.response)==null?void 0:n.status),this.logger.error("Result Data:",(i=t.response)==null?void 0:i.data))}}function no(e){const t=Object.values(e);return Object.assign({},...t)}function io(e){return Object.entries(e).reduce((t,[n,i])=>{const a=no(i);return{...t,[n]:a}},{})}function ao(e,t){const n=io(t);Object.entries(n).forEach(([i,a])=>{e.addResourceBundle(i,"translation",a,!0)})}function mc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ut(e){"@babel/helpers - typeof";return ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ut(e)}function pc(e,t){if(ut(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(ut(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function hc(e){var t=pc(e,"string");return ut(t)=="symbol"?t:t+""}function gc(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,hc(i.key),i)}}function vc(e,t,n){return t&&gc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var ro=[],kc=ro.forEach,yc=ro.slice;function bc(e){return kc.call(yc.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var Gi=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Sc=function(t,n,i){var a=i||{};a.path=a.path||"/";var r=encodeURIComponent(n),o="".concat(t,"=").concat(r);if(a.maxAge>0){var s=a.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(a.domain){if(!Gi.test(a.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(a.domain)}if(a.path){if(!Gi.test(a.path))throw new TypeError("option path is invalid");o+="; Path=".concat(a.path)}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(a.expires.toUTCString())}if(a.httpOnly&&(o+="; HttpOnly"),a.secure&&(o+="; Secure"),a.sameSite){var l=typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite;switch(l){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},Ki={create:function(t,n,i,a){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+i*60*1e3)),a&&(r.domain=a),document.cookie=Sc(t,encodeURIComponent(n),r)},read:function(t){for(var n="".concat(t,"="),i=document.cookie.split(";"),a=0;a<i.length;a++){for(var r=i[a];r.charAt(0)===" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return r.substring(n.length,r.length)}return null},remove:function(t){this.create(t,"",-1)}},_c={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document!="undefined"){var i=Ki.read(t.lookupCookie);i&&(n=i)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document!="undefined"&&Ki.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Nc={name:"querystring",lookup:function(t){var n;if(typeof window!="undefined"){var i=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var a=i.substring(1),r=a.split("&"),o=0;o<r.length;o++){var s=r[o].indexOf("=");if(s>0){var l=r[o].substring(0,s);l===t.lookupQuerystring&&(n=r[o].substring(s+1))}}}return n}},Qe=null,Hi=function(){if(Qe!==null)return Qe;try{Qe=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Qe=!1}return Qe},Oc={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&Hi()){var i=window.localStorage.getItem(t.lookupLocalStorage);i&&(n=i)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&Hi()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Ye=null,qi=function(){if(Ye!==null)return Ye;try{Ye=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Ye=!1}return Ye},wc={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&qi()){var i=window.sessionStorage.getItem(t.lookupSessionStorage);i&&(n=i)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&qi()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},Ac={name:"navigator",lookup:function(t){var n=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var i=0;i<navigator.languages.length;i++)n.push(navigator.languages[i]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},Fc={name:"htmlTag",lookup:function(t){var n,i=t.htmlTag||(typeof document!="undefined"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(n=i.getAttribute("lang")),n}},Ec={name:"path",lookup:function(t){var n;if(typeof window!="undefined"){var i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(i instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof i[t.lookupFromPathIndex]!="string")return;n=i[t.lookupFromPathIndex].replace("/","")}else n=i[0].replace("/","")}return n}},Cc={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,i=typeof window!="undefined"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[n]}};function Tc(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var oo=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};mc(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return vc(e,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=bc(i,this.options||{},Tc()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(r){return r.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(_c),this.addDetector(Nc),this.addDetector(Oc),this.addDetector(wc),this.addDetector(Ac),this.addDetector(Fc),this.addDetector(Ec),this.addDetector(Cc)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var i=this;n||(n=this.options.order);var a=[];return n.forEach(function(r){if(i.detectors[r]){var o=i.detectors[r].lookup(i.options);o&&typeof o=="string"&&(o=[o]),o&&(a=a.concat(o))}}),a=a.map(function(r){return i.options.convertDetectedLanguage(r)}),this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}},{key:"cacheUserLanguage",value:function(n,i){var a=this;i||(i=this.options.caches),i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||i.forEach(function(r){a.detectors[r]&&a.detectors[r].cacheUserLanguage(n,a.options)}))}}]),e}();oo.type="languageDetector";function so(e,t){e.use(t).use(oo).init({resources:{},fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(n,i,a)=>{if(i){const[r,...o]=i.split(",").map(s=>s.trim());if(r==="number")return new Intl.NumberFormat(a).format(n);if(r==="date")return new Intl.DateTimeFormat(a).format(n);if(r==="currency")return new Intl.NumberFormat(a,{style:"currency",currency:o[0]||"USD",currencyDisplay:"narrowSymbol"}).format(n).replace("$","").trim()}return n}},detection:{order:["navigator","cookie","localStorage","sessionStorage","querystring","htmlTag","path","subdomain"]}})}const xc={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Gt{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||xc,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,a){return a&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Gt(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Gt(this.logger,t)}}var ue=new Gt;class fn{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const a=this.observers[i].get(n)||0;this.observers[i].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[s,l]=o;for(let u=0;u<l;u++)s(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[s,l]=o;for(let u=0;u<l;u++)s.apply(s,[t,...i])})}}function et(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});return n.resolve=e,n.reject=t,n}function Wi(e){return e==null?"":""+e}function Rc(e,t,n){e.forEach(i=>{t[i]&&(n[i]=t[i])})}const Pc=/###/g;function it(e,t,n){function i(s){return s&&s.indexOf("###")>-1?s.replace(Pc,"."):s}function a(){return!e||typeof e=="string"}const r=typeof t!="string"?t:t.split(".");let o=0;for(;o<r.length-1;){if(a())return{};const s=i(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return a()?{}:{obj:e,k:i(r[o])}}function Ji(e,t,n){const{obj:i,k:a}=it(e,t,Object);if(i!==void 0||t.length===1){i[a]=n;return}let r=t[t.length-1],o=t.slice(0,t.length-1),s=it(e,o,Object);for(;s.obj===void 0&&o.length;)r=`${o[o.length-1]}.${r}`,o=o.slice(0,o.length-1),s=it(e,o,Object),s&&s.obj&&typeof s.obj[`${s.k}.${r}`]!="undefined"&&(s.obj=void 0);s.obj[`${s.k}.${r}`]=n}function Dc(e,t,n,i){const{obj:a,k:r}=it(e,t,Object);a[r]=a[r]||[],a[r].push(n)}function Kt(e,t){const{obj:n,k:i}=it(e,t);if(n)return n[i]}function Lc(e,t,n){const i=Kt(e,n);return i!==void 0?i:Kt(t,n)}function lo(e,t,n){for(const i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):lo(e[i],t[i],n):e[i]=t[i]);return e}function De(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ic={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Vc(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Ic[t]):e}class jc{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}}const Uc=[" ",",","?","!",";"],Bc=new jc(20);function $c(e,t,n){t=t||"",n=n||"";const i=Uc.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(i.length===0)return!0;const a=Bc.getRegExp(`(${i.map(o=>o==="?"?"\\?":o).join("|")})`);let r=!a.test(e);if(!r){const o=e.indexOf(n);o>0&&!a.test(e.substring(0,o))&&(r=!0)}return r}function Kn(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const i=t.split(n);let a=e;for(let r=0;r<i.length;){if(!a||typeof a!="object")return;let o,s="";for(let l=r;l<i.length;++l)if(l!==r&&(s+=n),s+=i[l],o=a[s],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<i.length-1)continue;r+=l-r+1;break}a=o}return a}function Ht(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Xi extends fn{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,o=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],i&&(Array.isArray(i)?s.push(...i):typeof i=="string"&&r?s.push(...i.split(r)):s.push(i)));const l=Kt(this.data,s);return!l&&!n&&!i&&t.indexOf(".")>-1&&(t=s[0],n=s[1],i=s.slice(2).join(".")),l||!o||typeof i!="string"?l:Kn(this.data&&this.data[t]&&this.data[t][n],i,r)}addResource(t,n,i,a){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let s=[t,n];i&&(s=s.concat(o?i.split(o):i)),t.indexOf(".")>-1&&(s=t.split("."),a=n,n=s[1]),this.addNamespaces(n),Ji(this.data,s,a),r.silent||this.emit("added",t,n,i,a)}addResources(t,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const r in i)(typeof i[r]=="string"||Object.prototype.toString.apply(i[r])==="[object Array]")&&this.addResource(t,n,r,i[r],{silent:!0});a.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,a,r){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),a=i,i=n,n=s[1]),this.addNamespaces(n);let l=Kt(this.data,s)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),a?lo(l,i,r):l={...l,...i},Ji(this.data,s,l),o.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var uo={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,a){return e.forEach(r=>{this.processors[r]&&(t=this.processors[r].process(t,n,i,a))}),t}};const Zi={};class qt extends fn{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Rc(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ue.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let r=n.ns||this.options.defaultNS||[];const o=i&&t.indexOf(i)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!$c(t,i,a);if(o&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:r};const u=t.split(i);(i!==a||i===a&&this.options.ns.indexOf(u[0])>-1)&&(r=u.shift()),t=u.join(a)}return typeof r=="string"&&(r=[r]),{key:t,namespaces:r}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),l=s[s.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const F=n.nsSeparator||this.options.nsSeparator;return a?{res:`${l}${F}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${F}${o}`}return a?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const c=this.resolve(t,n);let f=c&&c.res;const y=c&&c.usedKey||o,h=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),_=["[object Number]","[object Function]","[object RegExp]"],k=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&_.indexOf(m)<0&&!(typeof k=="string"&&m==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,f,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return a?(c.res=F,c.usedParams=this.getUsedParamsDetails(n),c):F}if(r){const F=m==="[object Array]",P=F?[]:{},U=F?h:y;for(const $ in f)if(Object.prototype.hasOwnProperty.call(f,$)){const g=`${U}${r}${$}`;P[$]=this.translate(g,{...n,joinArrays:!1,ns:s}),P[$]===g&&(P[$]=f[$])}f=P}}else if(x&&typeof k=="string"&&m==="[object Array]")f=f.join(k),f&&(f=this.extendTranslation(f,t,n,i));else{let F=!1,P=!1;const U=n.count!==void 0&&typeof n.count!="string",$=qt.hasDefaultValue(n),g=U?this.pluralResolver.getSuffix(u,n.count,n):"",w=n.ordinal&&U?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",A=U&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=A&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${g}`]||n[`defaultValue${w}`]||n.defaultValue;!this.isValidLookup(f)&&$&&(F=!0,f=v),this.isValidLookup(f)||(P=!0,f=o);const O=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&P?void 0:f,N=$&&v!==f&&this.options.updateMissing;if(P||F||N){if(this.logger.log(N?"updateKey":"missingKey",u,l,o,N?v:f),r){const D=this.resolve(o,{...n,keySeparator:!1});D&&D.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 E=[];const j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(let D=0;D<j.length;D++)E.push(j[D]);else this.options.saveMissingTo==="all"?E=this.languageUtils.toResolveHierarchy(n.lng||this.language):E.push(n.lng||this.language);const R=(D,H,We)=>{const mi=$&&We!==f?We:O;this.options.missingKeyHandler?this.options.missingKeyHandler(D,l,H,mi,N,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(D,l,H,mi,N,n),this.emit("missingKey",D,l,H,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?E.forEach(D=>{const H=this.pluralResolver.getSuffixes(D,n);A&&n[`defaultValue${this.options.pluralSeparator}zero`]&&H.indexOf(`${this.options.pluralSeparator}zero`)<0&&H.push(`${this.options.pluralSeparator}zero`),H.forEach(We=>{R([D],o+We,n[`defaultValue${We}`]||v)})}):R(E,o,v))}f=this.extendTranslation(f,t,n,c,i),P&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${o}`),(P||F)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,F?f:void 0):f=this.options.parseMissingKeyHandler(f))}return a?(c.res=f,c.usedParams=this.getUsedParamsDetails(n),c):f}extendTranslation(t,n,i,a,r){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const u=typeof t=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const f=t.match(this.interpolator.nestingRegexp);d=f&&f.length}let c=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),t=this.interpolator.interpolate(t,c,i.lng||this.language,i),u){const f=t.match(this.interpolator.nestingRegexp),y=f&&f.length;d<y&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(i.lng=a.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,y=new Array(f),h=0;h<f;h++)y[h]=arguments[h];return r&&r[0]===y[0]&&!i.context?(o.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):o.translate(...y,n)},i)),i.interpolation&&this.interpolator.reset()}const s=i.postProcess||this.options.postProcess,l=typeof s=="string"?[s]:s;return t!=null&&l&&l.length&&i.applyPostProcessor!==!1&&(t=uo.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,a,r,o,s;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(i))return;const u=this.extractFromKey(l,n),d=u.key;a=d;let c=u.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const f=n.count!==void 0&&typeof n.count!="string",y=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),h=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach(_=>{this.isValidLookup(i)||(s=_,!Zi[`${m[0]}-${_}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Zi[`${m[0]}-${_}`]=!0,this.logger.warn(`key "${a}" for languages "${m.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(k=>{if(this.isValidLookup(i))return;o=k;const x=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(x,d,k,_,n);else{let F;f&&(F=this.pluralResolver.getSuffix(k,n.count,n));const P=`${this.options.pluralSeparator}zero`,U=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(x.push(d+F),n.ordinal&&F.indexOf(U)===0&&x.push(d+F.replace(U,this.options.pluralSeparator)),y&&x.push(d+P)),h){const $=`${d}${this.options.contextSeparator}${n.context}`;x.push($),f&&(x.push($+F),n.ordinal&&F.indexOf(U)===0&&x.push($+F.replace(U,this.options.pluralSeparator)),y&&x.push($+P))}}let B;for(;B=x.pop();)this.isValidLookup(i)||(r=B,i=this.getResource(k,_,B,n))}))})}),{res:i,usedKey:a,exactUsedKey:r,usedLng:o,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,a):this.resourceStore.getResource(t,n,i,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&typeof t.replace!="string";let a=i?t.replace:t;if(i&&typeof t.count!="undefined"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!i){a={...a};for(const r of n)delete a[r]}return a}static hasDefaultValue(t){const n="defaultValue";for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}}function An(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Qi{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ue.create("languageUtils")}getScriptPartFromCode(t){if(t=Ht(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ht(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let i=t.split("-");return this.options.lowerCaseLng?i=i.map(a=>a.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=An(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=An(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=An(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;const a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;const a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(r=>{if(r===a)return r;if(!(r.indexOf("-")<0&&a.indexOf("-")<0)&&(r.indexOf("-")>0&&a.indexOf("-")<0&&r.substring(0,r.indexOf("-"))===a||r.indexOf(a)===0&&a.length>1))return r})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){const i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],r=o=>{o&&(this.isSupportedCode(o)?a.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(t))):typeof t=="string"&&r(this.formatLanguageCode(t)),i.forEach(o=>{a.indexOf(o)<0&&r(this.formatLanguageCode(o))}),a}}let Mc=[{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}],zc={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}};const Gc=["v1","v2","v3"],Kc=["v4"],Yi={zero:0,one:1,two:2,few:3,many:4,other:5};function Hc(){const e={};return Mc.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:zc[t.fc]}})}),e}class qc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=ue.create("pluralResolver"),(!this.options.compatibilityJSON||Kc.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Hc()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Ht(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((a,r)=>Yi[a]-Yi[r]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):i.numbers.map(a=>this.getSuffix(t,a,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,i);return a?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:this.getSuffixRetroCompatible(a,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let a=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const r=()=>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()}`:r():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?r():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Gc.includes(this.options.compatibilityJSON)}}function ea(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,r=Lc(e,t,n);return!r&&a&&typeof n=="string"&&(r=Kn(e,n,i),r===void 0&&(r=Kn(t,n,i))),r}class Wc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ue.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:Vc,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?De(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?De(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?De(n.nestingPrefix):n.nestingPrefixEscaped||De("$t("),this.nestingSuffix=n.nestingSuffix?De(n.nestingSuffix):n.nestingSuffixEscaped||De(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,a){let r,o,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(h){return h.replace(/\$/g,"$$$$")}const d=h=>{if(h.indexOf(this.formatSeparator)<0){const x=ea(n,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,i,{...a,...n,interpolationkey:h}):x}const m=h.split(this.formatSeparator),_=m.shift().trim(),k=m.join(this.formatSeparator).trim();return this.format(ea(n,l,_,this.options.keySeparator,this.options.ignoreJSONStructure),k,i,{...a,...n,interpolationkey:_})};this.resetRegExp();const c=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,f=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>u(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?u(this.escape(h)):u(h)}].forEach(h=>{for(s=0;r=h.regex.exec(t);){const m=r[1].trim();if(o=d(m),o===void 0)if(typeof c=="function"){const k=c(t,r,a);o=typeof k=="string"?k:""}else if(a&&Object.prototype.hasOwnProperty.call(a,m))o="";else if(f){o=r[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Wi(o));const _=h.safeValue(o);if(t=t.replace(r[0],_),f?(h.regex.lastIndex+=o.length,h.regex.lastIndex-=r[0].length):h.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,r,o;function s(l,u){const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const c=l.split(new RegExp(`${d}[ ]*{`));let f=`{${c[1]}`;l=c[0],f=this.interpolate(f,o);const y=f.match(/'/g),h=f.match(/"/g);(y&&y.length%2===0&&!h||h.length%2!==0)&&(f=f.replace(/'/g,'"'));try{o=JSON.parse(f),u&&(o={...u,...o})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${d}${f}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l}for(;a=this.nestingRegexp.exec(t);){let l=[];o={...i},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(c=>c.trim());a[1]=d.shift(),l=d,u=!0}if(r=n(s.call(this,a[1].trim(),o),o),r&&a[0]===t&&typeof r!="string")return r;typeof r!="string"&&(r=Wi(r)),r||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),r=""),u&&(r=l.reduce((d,c)=>this.format(d,c,i.lng,{...i,interpolationkey:a[1].trim()}),r.trim())),t=t.replace(a[0],r),this.regexp.lastIndex=0}return t}}function Jc(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const i=e.split("(");t=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(o=>{if(!o)return;const[s,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[s.trim()]||(n[s.trim()]=u),u==="false"&&(n[s.trim()]=!1),u==="true"&&(n[s.trim()]=!0),isNaN(u)||(n[s.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function Le(e){const t={};return function(i,a,r){const o=a+JSON.stringify(r);let s=t[o];return s||(s=e(Ht(a),r),t[o]=s),s(i)}}class Xc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ue.create("formatter"),this.options=t,this.formats={number:Le((n,i)=>{const a=new Intl.NumberFormat(n,{...i});return r=>a.format(r)}),currency:Le((n,i)=>{const a=new Intl.NumberFormat(n,{...i,style:"currency"});return r=>a.format(r)}),datetime:Le((n,i)=>{const a=new Intl.DateTimeFormat(n,{...i});return r=>a.format(r)}),relativetime:Le((n,i)=>{const a=new Intl.RelativeTimeFormat(n,{...i});return r=>a.format(r,i.range||"day")}),list:Le((n,i)=>{const a=new Intl.ListFormat(n,{...i});return r=>a.format(r)})},this.init(t)}init(t){const i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Le(n)}format(t,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((s,l)=>{const{formatName:u,formatOptions:d}=Jc(l);if(this.formats[u]){let c=s;try{const f=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},y=f.locale||f.lng||a.locale||a.lng||i;c=this.formats[u](s,y,{...d,...a,...f})}catch(f){this.logger.warn(f)}return c}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}function Zc(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class Qc extends fn{constructor(t,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=a,this.logger=ue.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(i,a.backend,a)}queueLoad(t,n,i,a){const r={},o={},s={},l={};return t.forEach(u=>{let d=!0;n.forEach(c=>{const f=`${u}|${c}`;!i.reload&&this.store.hasResourceBundle(u,c)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?o[f]===void 0&&(o[f]=!0):(this.state[f]=1,d=!1,o[f]===void 0&&(o[f]=!0),r[f]===void 0&&(r[f]=!0),l[c]===void 0&&(l[c]=!0)))}),d||(s[u]=!0)}),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,i){const a=t.split("|"),r=a[0],o=a[1];n&&this.emit("failedLoading",r,o,n),i&&this.store.addResourceBundle(r,o,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const s={};this.queue.forEach(l=>{Dc(l.loaded,[r],o),Zc(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const d=l.loaded[u];d.length&&d.forEach(c=>{s[u][c]===void 0&&(s[u][c]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:a,wait:r,callback:o});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(u&&d&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,a+1,r*2,o)},r);return}o(u,d)},l=this.backend[i].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return l(t,n,s)}prepareLoading(t,n){let i=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 t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const r=this.queueLoad(t,n,i,a);if(!r.toLoad.length)return r.pending.length||a(),null;r.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=t.split("|"),a=i[0],r=i[1];this.read(a,r,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${n}loading namespace ${r} for language ${a} failed`,o),!o&&s&&this.logger.log(`${n}loaded namespace ${r} for language ${a}`,s),this.loaded(t,o,s)})}saveMissing(t,n,i,a,r){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:r},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,i,a,l):d=u(t,n,i,a),d&&typeof d.then=="function"?d.then(c=>s(null,c)).catch(s):s(null,d)}catch(d){s(d)}else u(t,n,i,a,s,l)}!t||!t[0]||this.store.addResource(t[0],n,i,a)}}}function ta(){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(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const i=t[3]||t[2];Object.keys(i).forEach(a=>{n[a]=i[a]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function na(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 wt(){}function Yc(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class dt extends fn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=na(t),this.services={},this.logger=ue,this.modules={external:[]},Yc(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=ta();this.options={...a,...this.options,...na(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function r(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?ue.init(r(this.modules.logger),this.options):ue.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl!="undefined"&&(d=Xc);const c=new Qi(this.options);this.store=new Xi(this.options.resources,this.options);const f=this.services;f.logger=ue,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new qc(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(f.formatter=r(d),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Wc(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new Qc(r(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(y){for(var h=arguments.length,m=new Array(h>1?h-1:0),_=1;_<h;_++)m[_-1]=arguments[_];t.emit(y,...m)}),this.modules.languageDetector&&(f.languageDetector=r(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=r(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new qt(this.services,this.options),this.translator.on("*",function(y){for(var h=arguments.length,m=new Array(h>1?h-1:0),_=1;_<h;_++)m[_-1]=arguments[_];t.emit(y,...m)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,i||(i=wt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=et(),u=()=>{const d=(c,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),i(c,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wt;const a=typeof t=="string"?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const r=[],o=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&r.indexOf(u)<0&&r.push(u)})};a?o(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(s=>o(s)),this.services.backendConnector.load(r,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(s)})}else i(null)}reloadResources(t,n,i){const a=et();return t||(t=this.languages),n||(n=this.options.ns),i||(i=wt),this.services.backendConnector.reload(t,n,r=>{a.resolve(),i(r)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&uo.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;const a=et();this.emit("languageChanging",t);const r=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(r(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,a.resolve(function(){return i.t(...arguments)}),n&&n(l,function(){return i.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||r(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{o(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),a}getFixedT(t,n,i){var a=this;const r=function(o,s){let l;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),c=2;c<u;c++)d[c-2]=arguments[c];l=a.options.overloadTranslationOptionHandler([o,s].concat(d))}else l={...s};l.lng=l.lng||r.lng,l.lngs=l.lngs||r.lngs,l.ns=l.ns||r.ns,l.keyPrefix=l.keyPrefix||i||r.keyPrefix;const f=a.options.keySeparator||".";let y;return l.keyPrefix&&Array.isArray(o)?y=o.map(h=>`${l.keyPrefix}${f}${h}`):y=l.keyPrefix?`${l.keyPrefix}${f}${o}`:o,a.t(y,l)};return typeof t=="string"?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=i,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=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;const i=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===2};if(n.precheck){const s=n.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,t)&&(!a||o(r,t)))}loadNamespaces(t,n){const i=et();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){const i=et();typeof t=="string"&&(t=[t]);const a=this.options.preload||[],r=t.filter(o=>a.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return r.length?(this.options.preload=a.concat(r),this.loadResources(o=>{i.resolve(),n&&n(o)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Qi(ta());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new dt(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wt;const i=t.forkResourceStore;i&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},r=new dt(a);return(t.debug!==void 0||t.prefix!==void 0)&&(r.logger=r.logger.clone(t)),["store","services","language"].forEach(s=>{r[s]=this[s]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},i&&(r.store=new Xi(this.store.data,a),r.services.resourceStore=r.store),r.translator=new qt(r.services,a),r.translator.on("*",function(s){for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];r.emit(s,...u)}),r.init(a,n),r.translator.options=a,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const W=dt.createInstance();W.createInstance=dt.createInstance;W.createInstance;W.dir;W.init;W.loadResources;W.reloadResources;W.use;W.changeLanguage;W.getFixedT;W.t;W.exists;W.setDefaultNamespace;W.hasLoadedNamespace;W.loadNamespaces;W.loadLanguages;const ef=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,tf={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},nf=e=>tf[e],af=e=>e.replace(ef,nf);let ia={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:af};function rf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ia={...ia,...e}}const of={type:"3rdParty",init(e){rf(e.options.react)}};so(W,of);const sf=e=>ao(W,e);let fi=new Map;const Hn=z.createContext(fi),lf=({children:e,stores:t})=>{const n=z.useContext(Hn),i=z.useMemo(()=>{const a=new Map;return t.forEach(r=>a.set(r.class,r.value)),fi=new Map([...n,...a])},[]);return ho.jsx(Hn.Provider,{value:i,children:e})};function uf(e){return z.useContext(Hn).get(e)}function df(e){return fi.get(e)}exports.AccountContractStatusTypes=oi;exports.AccountContractTypes=kr;exports.AccountInvalidError=ql;exports.AccountPlanDescriptionTypes=br;exports.AccountRestRepository=_r;exports.AccountService=Nr;exports.AccountSubscriptionTypes=yr;exports.AccountTypes=ri;exports.AddToCartActionTypes=sn;exports.AggregateRoot=gr;exports.ApiGraphqlTypes=Hu;exports.BaseMobxStore=su;exports.BroadcastChannelEventBus=nr;exports.DomainError=vt;exports.EventBusWildcards=mu;exports.EventNames=Fr;exports.GlobalPageSectionTypes=Sr;exports.HttpAxiosClient=fc;exports.InvalidNizzaGlobalObjectError=fr;exports.LanguageTypes=Er;exports.Logger=ur;exports.NizzaAccount=on;exports.NizzaEventStatus=Ar;exports.NizzaProductRequestOriginTypes=Tr;exports.NizzaStore=Mt;exports.NizzaVariationTypes=Cr;exports.ResourceNotFoundError=dr;exports.StoreProvider=lf;exports.UnexpectedError=cr;exports.ValueObject=lu;exports.accountAtom=Wt;exports.accountService=si;exports.addToCartMessages=Un;exports.apiCall=Bo;exports.buildLanguageTranslations=no;exports.buildTranslations=io;exports.createActionFactory=Dr;exports.createAggregateRoot=vr;exports.createLazyLogger=Uo;exports.createStore=qu;exports.customFetch=qn;exports.downloadFile=$o;exports.fileOrigin=Ul;exports.getAccount=wr;exports.getClientTimeZone=ou;exports.getNizza=He;exports.getStore=df;exports.globalAtomStore=Or;exports.i18Init=so;exports.jsDownload=oa;exports.registerTranslations=sf;exports.registerTranslationsOf=ao;exports.runAddToCartHooks=Wu;exports.searchParams=jl;exports.shortId=ir;exports.useAccount=fu;exports.useNZ=pr;exports.useNizza=hr;exports.useStore=uf;exports.validateRequiredProps=Wl;
26
+ `)}}function ed(t,e){e.forEach(n=>{if(Yu(Zu(n.split("."),t)))throw new os(n)})}if(!z.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Va)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function td(t){t()}function nd(t){t||(t=td),vu({reactionScheduler:t})}function id(t){return yu(t)}var rd=1e4,ad=1e4,sd=function(){function t(e){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(i){i===void 0&&(i=rd),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var r=Date.now();n.registrations.forEach(function(a,s){r-a.registeredAt>=i&&(n.finalize(a.value),n.registrations.delete(s))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(t.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,n,i){this.registrations.set(i,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(t.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(t.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,ad))}}),t}(),od=typeof FinalizationRegistry!="undefined"?FinalizationRegistry:sd,ci=new od(function(t){var e;(e=t.reaction)===null||e===void 0||e.dispose(),t.reaction=null}),or=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),r,a=[],s;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(o){s={error:o}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return a};function lr(t){return"observer".concat(t)}var ld=function(){function t(){}return t}();function ud(){return new ld}function dd(t,e){e===void 0&&(e="observed");var n=or(z.useState(ud),1),i=n[0],r=or(z.useState(),2),a=r[1],s=function(){return a([])},o=z.useRef(null);o.current||(o.current={reaction:null,mounted:!1,changedBeforeMount:!1});var l=o.current;l.reaction||(l.reaction=new kt(lr(e),function(){l.mounted?s():l.changedBeforeMount=!0}),ci.register(i,l,l)),z.useDebugValue(l.reaction,id),z.useEffect(function(){return ci.unregister(l),l.mounted=!0,l.reaction?l.changedBeforeMount&&(l.changedBeforeMount=!1,s()):(l.reaction=new kt(lr(e),function(){s()}),s()),function(){l.reaction.dispose(),l.reaction=null,l.mounted=!1,l.changedBeforeMount=!1}},[]);var u,d;if(l.reaction.track(function(){try{u=t()}catch(c){d=c}}),d)throw d;return u}var ls=typeof Symbol=="function"&&Symbol.for;ls?Symbol.for("react.forward_ref"):typeof z.forwardRef=="function"&&z.forwardRef(function(t){return null}).$$typeof;ls?Symbol.for("react.memo"):typeof z.memo=="function"&&z.memo(function(t){return null}).$$typeof;var Mn;nd(Xr.unstable_batchedUpdates);Mn=ci.finalizeAllImmediately;function cd(t,e){return e===void 0&&(e="observed"),dd(t,e)}function us(){return z.useMemo(tt,[])}function ds(t){const e=us();return cd(()=>t(e))}function fd(){var r,a,s;const{coreLogger:t}=tt();let e=null,n=null,i=null;try{e=(s=(a=(r=Intl.DateTimeFormat())==null?void 0:r.resolvedOptions())==null?void 0:a.timeZone)!=null?s:null;const o=-new Date().getTimezoneOffset();i=o;const l=o>=0?"+":"-",u=String(Math.floor(Math.abs(o)/60)).padStart(2,"0"),d=String(Math.abs(o)%60).padStart(2,"0");n=`${l}${u}:${d}`}catch{t.error("Error obtaining time zone or offset")}return{offset:n,offsetValue:i,value:e,country:null,included:null,label:null}}class cs{constructor(e){w(this,"aggregate");w(this,"_numSetPropsApplied",0);this.aggregate=e}setProps(e){for(const[n,i]of Object.entries(e))n in this.aggregate&&(this.aggregate[n]=i);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function fs(t){return new cs(t)}class md{}class hd{constructor(e){w(this,"_value");e!==void 0&&(this._value=e)}get value(){return this._value}}var Pi=(t=>(t.VTEX="VTEX",t.VTEX_IO="VTEX-IO",t.VTEX_CMS="PORTAL-VTEX",t.PLATFORM="PLATFORM",t.UNKNOWN="UNKNOWN",t))(Pi||{}),ms=(t=>(t.PLATFORM="platform_module",t.ADENDA="subscription_module",t.APP_STORE="app_store",t))(ms||{}),Li=(t=>(t.ACTIVE="active_contract",t.INACTIVE="inactive_contract",t))(Li||{}),hs=(t=>(t.LITE="lite",t.STANDARD="standard",t.PRO="pro",t))(hs||{}),ps=(t=>(t.LITE="PLAN_LITE",t.STANDARD="PLAN_ESTANDAR",t.PRO="PLAN_PRO",t.NONE="NO_PLAN",t))(ps||{}),gs=(t=>(t.PAST="past",t.LIVE="live",t.FUTURE="future",t))(gs||{});class En{constructor(e){w(this,"root",fs(this));w(this,"id");w(this,"account");w(this,"accountType",Pi.UNKNOWN);w(this,"username");w(this,"currencyConfig");w(this,"contractType");w(this,"nextDateMetricRecord");w(this,"spendedMinutes",0);w(this,"unlimitedService",!1);w(this,"hoursAvailable",0);w(this,"contractStatus",Li.ACTIVE);w(this,"createdAt");w(this,"installationDateApp");w(this,"cxAccount");w(this,"freeService",!1);w(this,"subscriptionType",null);w(this,"minutesAvailable",0);w(this,"globalPage");w(this,"stripe");w(this,"descriptionPlan");w(this,"planType");w(this,"selectFreeTrial");w(this,"exceededFeatures");w(this,"host",null);w(this,"variationThumbnailName");w(this,"variationsConfig");this.root.setProps(e)}static toDomain(e){const{createdAt:n,username:i,...r}=e,a={...r,username:i!=null?i:r.account,createdAt:new Date(Number(n))};return new En(a)}toPrimitives(){const{root:e,createdAt:n,...i}=this;return{...i,created:n.toISOString()}}}const pd=`${zo.apiUrls.restV1}/accounts/v2`;class vs{async get(e){const n=`${pd}/${e}`,{data:i}=await bi({url:n});return i?En.toDomain(i):null}}class ks{constructor(e){this.accountRepository=e}async get(e){try{const n=await this.accountRepository.get(e);if(!n)throw new as(e);return n}catch(n){throw new ss(n)}}}const gd=new vs,Di=new ks(gd),vd=()=>["account"],kd=()=>{const t=ds(r=>r.accountName),[e,n]=Io(gn),i=yo.useQuery(vd(),()=>Di.get(t),{enabled:!!t&&!e,refetchOnWindowFocus:!1,refetchOnMount:!1});return z.useEffect(()=>{const r=i.data;!i.isSuccess||!r||n(r)},[i.status]),{findQuery:i,account:e}},ys=Co();async function _s(t){const e=await Di.get(t);return ys.set(gn,e),e}var bs=(t=>(t.CREATED="CREATED",t.STARTING="STARTING",t.LIVE="LIVE",t.FINALIZED="FINALIZED",t))(bs||{});const yd={ALL:"*",CORE:"core:**",ADD_TO_CART_HOOKS:"core:addToCartHooks:**",LIVE_STREAMING_EVENT:"event:**",EVENT_CHAT:"event:chat:**",EVENT_PRODUCTS:"event:products:**",CUSTOMIZE_LIVE:"customize-live:**",PLAYER:"player:**",SNACK_SIZE_VIDEO:"ssv:**",SNACK_SIZE_VIDEO_ADMIN:"ssv-admin:**",UI:"ui:**",UTILS:"utils:**"},Ss={EVENT_STATUS_CHANGED:"event:statusChanged",ATCH_ACTION_EXECUTED:"core:addToCartHooks:actionExecuted"};var Ns=(t=>(t.English="en",t.Spanish="es",t.Portuguese="pt",t))(Ns||{}),As=(t=>(t.COMBO="Combo",t.BADGE="Badged",t))(As||{}),ws=(t=>(t.VTEX="VTEX",t.PLATFORM="platform",t.CACE="CACE",t.GLOBAL_PAGE="globalPage",t.DEV_LOCAL="dev:local",t.CUSTOMIZATION="customization",t.FAST_STORE="faststore",t))(ws||{}),Os=(t=>(t.Created="CREATED",t.Finalized="FINALIZED",t.Live="LIVE",t.Starting="STARTING",t))(Os||{}),Es=(t=>(t.Add="add",t.Remove="remove",t))(Es||{}),Fs=(t=>(t.Active="active",t.Inactive="inactive",t))(Fs||{});const _d={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},bd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Sd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Nd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Ad={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ManageCollectionProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ManageCollectionProductInInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"manageCollectionProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},wd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Od={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Ed={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindMinimalEvent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"thumbnailsPath"}},{kind:"Field",name:{kind:"Name",value:"recordVideoPath"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"thumbnails"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Fd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchMinimalEvents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"thumbnailsPath"}},{kind:"Field",name:{kind:"Name",value:"recordVideoPath"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Cd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BlockUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BlockUserInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blockUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BlockUserSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},xd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeAccountUsername"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeAccountUsername"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Td={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteChatInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DeleteChatMessageSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Rd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetAllChatMessageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatMessageArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"connectionId"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"idEvent"}},{kind:"Field",name:{kind:"Name",value:"sendDate"}},{kind:"Field",name:{kind:"Name",value:"sessionId"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"isAdmin"}},{kind:"Field",name:{kind:"Name",value:"urlGif"}},{kind:"Field",name:{kind:"Name",value:"second"}},{kind:"Field",name:{kind:"Name",value:"ip"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Pd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetChatRoomToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetChatRoomInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getChatRoomToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatRoomTokenData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"token"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Ld={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PinChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PinChatInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pinChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PinChatMessageSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Dd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInputAccount"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},$d={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"section"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Id={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Vd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTimeLine"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetTimeLineInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTimeLine"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TimeLineArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}},{kind:"Field",name:{kind:"Name",value:"likes"}},{kind:"Field",name:{kind:"Name",value:"comments"}},{kind:"Field",name:{kind:"Name",value:"viewers"}},{kind:"Field",name:{kind:"Name",value:"orders"}},{kind:"Field",name:{kind:"Name",value:"minute"}},{kind:"Field",name:{kind:"Name",value:"hour"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},jd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AppendProductsToSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RelateToProductsSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appendProductsSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Ud={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Bd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateSnackVideoBatch"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Md={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteRelationshipWithSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoRelationshipKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteRelationshipSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}}]}}]}}]},zd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Hd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindManySnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindManySnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findManySnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Gd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"totalItems"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Kd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayLists"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"videoAmount"}},{kind:"Field",name:{kind:"Name",value:"productAmount"}},{kind:"Field",name:{kind:"Name",value:"updated"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},qd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSnackVideoRelationships"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoRelationshipInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getRelationshipSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RelationshipSnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sourceEntity"}},{kind:"Field",name:{kind:"Name",value:"attributeId"}}]}}]}}]}}]}}]},Wd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"totalItems"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Jd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatePlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Yd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindByProductSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindByProductSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findByProductSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Xd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetPlayListQueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productId"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}},{kind:"Field",name:{kind:"Name",value:"order"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Zd=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:_d,AppendProductsToSnackVideoDocument:jd,BlockUserDocument:Cd,ChangeAccountUsernameDocument:xd,CreatePlayListDocument:Ud,CreateSnackVideoBatchDocument:Bd,DeleteAllCustomizationDocument:Dd,DeleteChatMessageDocument:Td,DeleteCollectionDocument:bd,DeleteRelationshipWithSnackVideoDocument:Md,DeleteSnackVideoDocument:zd,EventStatus:Os,FindByProductSnackVideoDocument:Yd,FindCollectionDocument:Sd,FindManySnackVideosDocument:Hd,FindMinimalEventDocument:Ed,GetAllChatMessageDocument:Rd,GetAllCollectionsDocument:Nd,GetAllCustomizationDocument:$d,GetAllSnackVideosDocument:Gd,GetChatRoomTokenDocument:Pd,GetPlayListDocument:Xd,GetPlayListsDocument:Kd,GetSnackVideoRelationshipsDocument:qd,GetTimeLineDocument:Vd,ManageCollectionProductDocument:Ad,Methods:Es,PinChatMessageDocument:Ld,SearchCollectionsDocument:wd,SearchMinimalEventsDocument:Fd,SearchSnackVideosDocument:Wd,Status:Fs,UpdateCollectionDocument:Od,UpdateCustomizationDocument:Id,UpdatePlayListDocument:Jd},Symbol.toStringTag,{value:"Module"}));var Fn=(t=>(t.OPEN_TAB="openTab",t.OPEN_VARIATION_SELECTOR="openVariationSelector",t.ADD_TO_CART="addToCart",t))(Fn||{});function Qd(t){return{class:t,_value:null,get value(){return this._value||(this._value=new t,Object.freeze(this)),this._value}}}const zn="addToCartHooks.notification.error",fi={errorAddingToCart:zn,errorOpeningVariationSelector:zn,errorOpeningNewTab:zn,successAddingToCart:"addToCartHooks.notification.success"};async function ec(t){const{coreLogger:e}=tt(),n={...t,action:{type:Fn.ADD_TO_CART,exec:()=>e.error("addToCartHooks: action no implemented in validate hook")}};try{const i=await tc(n),r=await nc(i);await ic(r)}catch(i){e.error("addToCartHooks: error unhandled",i)}}async function tc(t){var a,s;const{context:e,userAddToCartConfig:n}=t,i=(a=n==null?void 0:n.hooks)==null?void 0:a.transform;let r=t.product;if(i)try{r=await i({product:{...r},data:(s=e.data)!=null?s:{}})}catch(o){un("transform",o)}return{...t,product:r}}async function nc(t){var l,u;const{context:e,hookStrategy:n,userAddToCartConfig:i,product:r}=t,a=Cs(t),s=(l=i==null?void 0:i.hooks)==null?void 0:l.validate;let o=n.validate({...t,actionFactory:a});if(s)try{o=await s({product:{...r},defaultAction:{...o},action:a,data:(u=e.data)!=null?u:{}})}catch(d){un("validate",d)}return{...t,action:o,actionFactory:a}}async function ic(t){var S;const{eventBus:e}=tt(),{product:n,userAddToCartConfig:i,notifyFactory:r,action:a,actionFactory:s}=t,{isVariationSelectorOpen:o,data:l={}}=t.context,u=(S=i==null?void 0:i.hooks)==null?void 0:S.end,d=a.type===Fn.ADD_TO_CART;let c=null,f=!1;const k=()=>{!d||!o||s.openVariationSelector(!1).exec()},p=()=>{!d||f||(c?r.error(fi.errorAddingToCart):r.success(fi.successAddingToCart))},m=()=>{const y={product:n,actionType:a.type,success:!c,error:c};e.emit(Ss.ATCH_ACTION_EXECUTED,y)};try{if(!a.type||!a.exec)throw new Error("Invalid action object, missing keys 'type' or 'exec'");await a.exec()}catch(y){un("end",y),c=y}if(u)try{f=!!await u({data:l,error:c,notify:r,actionExecuted:a})}catch(y){un("end",y)}k(),p(),m()}function Cs(t){const{actionFactory:e,userAddToCartConfig:n}=t,i=r=>Object.entries(r!=null?r:{}).reduce((a,[s,o])=>({...a,[s]:l=>({type:s,exec:()=>o(l)})}),{});return{...i(e),...i(n==null?void 0:n.actionFactory)}}function un(t,e){const{coreLogger:n}=tt();n.error(`addToCartHooks error running ${t}: `,e)}function xs(t,e){return function(){return t.apply(e,arguments)}}const{toString:rc}=Object.prototype,{getPrototypeOf:$i}=Object,Cn=(t=>e=>{const n=rc.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),he=t=>(t=t.toLowerCase(),e=>Cn(e)===t),xn=t=>e=>typeof e===t,{isArray:nt}=Array,St=xn("undefined");function ac(t){return t!==null&&!St(t)&&t.constructor!==null&&!St(t.constructor)&&te(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ts=he("ArrayBuffer");function sc(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ts(t.buffer),e}const oc=xn("string"),te=xn("function"),Rs=xn("number"),Tn=t=>t!==null&&typeof t=="object",lc=t=>t===!0||t===!1,Wt=t=>{if(Cn(t)!=="object")return!1;const e=$i(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},uc=he("Date"),dc=he("File"),cc=he("Blob"),fc=he("FileList"),mc=t=>Tn(t)&&te(t.pipe),hc=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||te(t.append)&&((e=Cn(t))==="formdata"||e==="object"&&te(t.toString)&&t.toString()==="[object FormData]"))},pc=he("URLSearchParams"),gc=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Dt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let i,r;if(typeof t!="object"&&(t=[t]),nt(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const a=n?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;let o;for(i=0;i<s;i++)o=a[i],e.call(null,t[o],o,t)}}function Ps(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,r;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const Ls=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Ds=t=>!St(t)&&t!==Ls;function mi(){const{caseless:t}=Ds(this)&&this||{},e={},n=(i,r)=>{const a=t&&Ps(e,r)||r;Wt(e[a])&&Wt(i)?e[a]=mi(e[a],i):Wt(i)?e[a]=mi({},i):nt(i)?e[a]=i.slice():e[a]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&Dt(arguments[i],n);return e}const vc=(t,e,n,{allOwnKeys:i}={})=>(Dt(e,(r,a)=>{n&&te(r)?t[a]=xs(r,n):t[a]=r},{allOwnKeys:i}),t),kc=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),yc=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},_c=(t,e,n,i)=>{let r,a,s;const o={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),a=r.length;a-- >0;)s=r[a],(!i||i(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=n!==!1&&$i(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},bc=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},Sc=t=>{if(!t)return null;if(nt(t))return t;let e=t.length;if(!Rs(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Nc=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&$i(Uint8Array)),Ac=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=i.next())&&!r.done;){const a=r.value;e.call(t,a[0],a[1])}},wc=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},Oc=he("HTMLFormElement"),Ec=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),ur=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Fc=he("RegExp"),$s=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};Dt(n,(r,a)=>{let s;(s=e(r,a,t))!==!1&&(i[a]=s||r)}),Object.defineProperties(t,i)},Cc=t=>{$s(t,(e,n)=>{if(te(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(te(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xc=(t,e)=>{const n={},i=r=>{r.forEach(a=>{n[a]=!0})};return nt(t)?i(t):i(String(t).split(e)),n},Tc=()=>{},Rc=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Hn="abcdefghijklmnopqrstuvwxyz",dr="0123456789",Is={DIGIT:dr,ALPHA:Hn,ALPHA_DIGIT:Hn+Hn.toUpperCase()+dr},Pc=(t=16,e=Is.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function Lc(t){return!!(t&&te(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Dc=t=>{const e=new Array(10),n=(i,r)=>{if(Tn(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const a=nt(i)?[]:{};return Dt(i,(s,o)=>{const l=n(s,r+1);!St(l)&&(a[o]=l)}),e[r]=void 0,a}}return i};return n(t,0)},$c=he("AsyncFunction"),Ic=t=>t&&(Tn(t)||te(t))&&te(t.then)&&te(t.catch),h={isArray:nt,isArrayBuffer:Ts,isBuffer:ac,isFormData:hc,isArrayBufferView:sc,isString:oc,isNumber:Rs,isBoolean:lc,isObject:Tn,isPlainObject:Wt,isUndefined:St,isDate:uc,isFile:dc,isBlob:cc,isRegExp:Fc,isFunction:te,isStream:mc,isURLSearchParams:pc,isTypedArray:Nc,isFileList:fc,forEach:Dt,merge:mi,extend:vc,trim:gc,stripBOM:kc,inherits:yc,toFlatObject:_c,kindOf:Cn,kindOfTest:he,endsWith:bc,toArray:Sc,forEachEntry:Ac,matchAll:wc,isHTMLForm:Oc,hasOwnProperty:ur,hasOwnProp:ur,reduceDescriptors:$s,freezeMethods:Cc,toObjectSet:xc,toCamelCase:Ec,noop:Tc,toFiniteNumber:Rc,findKey:Ps,global:Ls,isContextDefined:Ds,ALPHABET:Is,generateString:Pc,isSpecCompliantForm:Lc,toJSONObject:Dc,isAsyncFn:$c,isThenable:Ic};function D(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}h.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:h.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Vs=D.prototype,js={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{js[t]={value:t}});Object.defineProperties(D,js);Object.defineProperty(Vs,"isAxiosError",{value:!0});D.from=(t,e,n,i,r,a)=>{const s=Object.create(Vs);return h.toFlatObject(t,s,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),D.call(s,t.message,e,n,i,r),s.cause=t,s.name=t.name,a&&Object.assign(s,a),s};const Vc=null;function hi(t){return h.isPlainObject(t)||h.isArray(t)}function Us(t){return h.endsWith(t,"[]")?t.slice(0,-2):t}function cr(t,e,n){return t?t.concat(e).map(function(r,a){return r=Us(r),!n&&a?"["+r+"]":r}).join(n?".":""):e}function jc(t){return h.isArray(t)&&!t.some(hi)}const Uc=h.toFlatObject(h,{},null,function(e){return/^is[A-Z]/.test(e)});function Rn(t,e,n){if(!h.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=h.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,S){return!h.isUndefined(S[m])});const i=n.metaTokens,r=n.visitor||d,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&h.isSpecCompliantForm(e);if(!h.isFunction(r))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(h.isDate(p))return p.toISOString();if(!l&&h.isBlob(p))throw new D("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(p)||h.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,m,S){let y=p;if(p&&!S&&typeof p=="object"){if(h.endsWith(m,"{}"))m=i?m:m.slice(0,-2),p=JSON.stringify(p);else if(h.isArray(p)&&jc(p)||(h.isFileList(p)||h.endsWith(m,"[]"))&&(y=h.toArray(p)))return m=Us(m),y.forEach(function(U,F){!(h.isUndefined(U)||U===null)&&e.append(s===!0?cr([m],F,a):s===null?m:m+"[]",u(U))}),!1}return hi(p)?!0:(e.append(cr(S,m,a),u(p)),!1)}const c=[],f=Object.assign(Uc,{defaultVisitor:d,convertValue:u,isVisitable:hi});function k(p,m){if(!h.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));c.push(p),h.forEach(p,function(y,T){(!(h.isUndefined(y)||y===null)&&r.call(e,y,h.isString(T)?T.trim():T,m,f))===!0&&k(y,m?m.concat(T):[T])}),c.pop()}}if(!h.isObject(t))throw new TypeError("data must be an object");return k(t),e}function fr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function Ii(t,e){this._pairs=[],t&&Rn(t,this,e)}const Bs=Ii.prototype;Bs.append=function(e,n){this._pairs.push([e,n])};Bs.toString=function(e){const n=e?function(i){return e.call(this,i,fr)}:fr;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Bc(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ms(t,e,n){if(!e)return t;const i=n&&n.encode||Bc,r=n&&n.serialize;let a;if(r?a=r(e,n):a=h.isURLSearchParams(e)?e.toString():new Ii(e,n).toString(i),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class mr{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){h.forEach(this.handlers,function(i){i!==null&&e(i)})}}const zs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mc=typeof URLSearchParams!="undefined"?URLSearchParams:Ii,zc=typeof FormData!="undefined"?FormData:null,Hc=typeof Blob!="undefined"?Blob:null,Gc={isBrowser:!0,classes:{URLSearchParams:Mc,FormData:zc,Blob:Hc},protocols:["http","https","file","blob","url","data"]},Hs=typeof window!="undefined"&&typeof document!="undefined",Kc=(t=>Hs&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator!="undefined"&&navigator.product),qc=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Wc=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hs,hasStandardBrowserEnv:Kc,hasStandardBrowserWebWorkerEnv:qc},Symbol.toStringTag,{value:"Module"})),ue={...Wc,...Gc};function Jc(t,e){return Rn(t,new ue.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,a){return ue.isNode&&h.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Yc(t){return h.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Xc(t){const e={},n=Object.keys(t);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],e[a]=t[a];return e}function Gs(t){function e(n,i,r,a){let s=n[a++];if(s==="__proto__")return!0;const o=Number.isFinite(+s),l=a>=n.length;return s=!s&&h.isArray(r)?r.length:s,l?(h.hasOwnProp(r,s)?r[s]=[r[s],i]:r[s]=i,!o):((!r[s]||!h.isObject(r[s]))&&(r[s]=[]),e(n,i,r[s],a)&&h.isArray(r[s])&&(r[s]=Xc(r[s])),!o)}if(h.isFormData(t)&&h.isFunction(t.entries)){const n={};return h.forEachEntry(t,(i,r)=>{e(Yc(i),r,n,0)}),n}return null}function Zc(t,e,n){if(h.isString(t))try{return(e||JSON.parse)(t),h.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const $t={transitional:zs,adapter:["xhr","http"],transformRequest:[function(e,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,a=h.isObject(e);if(a&&h.isHTMLForm(e)&&(e=new FormData(e)),h.isFormData(e))return r?JSON.stringify(Gs(e)):e;if(h.isArrayBuffer(e)||h.isBuffer(e)||h.isStream(e)||h.isFile(e)||h.isBlob(e))return e;if(h.isArrayBufferView(e))return e.buffer;if(h.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Jc(e,this.formSerializer).toString();if((o=h.isFileList(e))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Rn(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||r?(n.setContentType("application/json",!1),Zc(e)):e}],transformResponse:[function(e){const n=this.transitional||$t.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(e&&h.isString(e)&&(i&&!this.responseType||r)){const s=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?D.from(o,D.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};h.forEach(["delete","get","head","post","put","patch"],t=>{$t.headers[t]={}});const Qc=h.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ef=t=>{const e={};let n,i,r;return t&&t.split(`
27
+ `).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),i=s.substring(r+1).trim(),!(!n||e[n]&&Qc[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},hr=Symbol("internals");function st(t){return t&&String(t).trim().toLowerCase()}function Jt(t){return t===!1||t==null?t:h.isArray(t)?t.map(Jt):String(t)}function tf(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const nf=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Gn(t,e,n,i,r){if(h.isFunction(i))return i.call(this,e,n);if(r&&(e=n),!!h.isString(e)){if(h.isString(i))return e.indexOf(i)!==-1;if(h.isRegExp(i))return i.test(e)}}function rf(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function af(t,e){const n=h.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(r,a,s){return this[i].call(this,e,r,a,s)},configurable:!0})})}class ne{constructor(e){e&&this.set(e)}set(e,n,i){const r=this;function a(o,l,u){const d=st(l);if(!d)throw new Error("header name must be a non-empty string");const c=h.findKey(r,d);(!c||r[c]===void 0||u===!0||u===void 0&&r[c]!==!1)&&(r[c||l]=Jt(o))}const s=(o,l)=>h.forEach(o,(u,d)=>a(u,d,l));return h.isPlainObject(e)||e instanceof this.constructor?s(e,n):h.isString(e)&&(e=e.trim())&&!nf(e)?s(ef(e),n):e!=null&&a(n,e,i),this}get(e,n){if(e=st(e),e){const i=h.findKey(this,e);if(i){const r=this[i];if(!n)return r;if(n===!0)return tf(r);if(h.isFunction(n))return n.call(this,r,i);if(h.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=st(e),e){const i=h.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||Gn(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let r=!1;function a(s){if(s=st(s),s){const o=h.findKey(i,s);o&&(!n||Gn(i,i[o],o,n))&&(delete i[o],r=!0)}}return h.isArray(e)?e.forEach(a):a(e),r}clear(e){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const a=n[i];(!e||Gn(this,this[a],a,e,!0))&&(delete this[a],r=!0)}return r}normalize(e){const n=this,i={};return h.forEach(this,(r,a)=>{const s=h.findKey(i,a);if(s){n[s]=Jt(r),delete n[a];return}const o=e?rf(a):String(a).trim();o!==a&&delete n[a],n[o]=Jt(r),i[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return h.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=e&&h.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
28
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(r=>i.set(r)),i}static accessor(e){const i=(this[hr]=this[hr]={accessors:{}}).accessors,r=this.prototype;function a(s){const o=st(s);i[o]||(af(r,s),i[o]=!0)}return h.isArray(e)?e.forEach(a):a(e),this}}ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);h.reduceDescriptors(ne.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});h.freezeMethods(ne);function Kn(t,e){const n=this||$t,i=e||n,r=ne.from(i.headers);let a=i.data;return h.forEach(t,function(o){a=o.call(n,a,r.normalize(),e?e.status:void 0)}),r.normalize(),a}function Ks(t){return!!(t&&t.__CANCEL__)}function It(t,e,n){D.call(this,t==null?"canceled":t,D.ERR_CANCELED,e,n),this.name="CanceledError"}h.inherits(It,D,{__CANCEL__:!0});function sf(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new D("Request failed with status code "+n.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const of=ue.hasStandardBrowserEnv?{write(t,e,n,i,r,a){const s=[t+"="+encodeURIComponent(e)];h.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),h.isString(i)&&s.push("path="+i),h.isString(r)&&s.push("domain="+r),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function lf(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function uf(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function qs(t,e){return t&&!lf(e)?uf(t,e):e}const df=ue.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function r(a){let s=a;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=r(window.location.href),function(s){const o=h.isString(s)?r(s):s;return o.protocol===i.protocol&&o.host===i.host}}():function(){return function(){return!0}}();function cf(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ff(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r=0,a=0,s;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),d=i[a];s||(s=u),n[r]=l,i[r]=u;let c=a,f=0;for(;c!==r;)f+=n[c++],c=c%t;if(r=(r+1)%t,r===a&&(a=(a+1)%t),u-s<e)return;const k=d&&u-d;return k?Math.round(f*1e3/k):void 0}}function pr(t,e){let n=0;const i=ff(50,250);return r=>{const a=r.loaded,s=r.lengthComputable?r.total:void 0,o=a-n,l=i(o),u=a<=s;n=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:r};d[e?"download":"upload"]=!0,t(d)}}const mf=typeof XMLHttpRequest!="undefined",hf=mf&&function(t){return new Promise(function(n,i){let r=t.data;const a=ne.from(t.headers).normalize();let{responseType:s,withXSRFToken:o}=t,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let d;if(h.isFormData(r)){if(ue.hasStandardBrowserEnv||ue.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((d=a.getContentType())!==!1){const[m,...S]=d?d.split(";").map(y=>y.trim()).filter(Boolean):[];a.setContentType([m||"multipart/form-data",...S].join("; "))}}let c=new XMLHttpRequest;if(t.auth){const m=t.auth.username||"",S=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.set("Authorization","Basic "+btoa(m+":"+S))}const f=qs(t.baseURL,t.url);c.open(t.method.toUpperCase(),Ms(f,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function k(){if(!c)return;const m=ne.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:t,request:c};sf(function(U){n(U),u()},function(U){i(U),u()},y),c=null}if("onloadend"in c?c.onloadend=k:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(k)},c.onabort=function(){c&&(i(new D("Request aborted",D.ECONNABORTED,t,c)),c=null)},c.onerror=function(){i(new D("Network Error",D.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let S=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const y=t.transitional||zs;t.timeoutErrorMessage&&(S=t.timeoutErrorMessage),i(new D(S,y.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,t,c)),c=null},ue.hasStandardBrowserEnv&&(o&&h.isFunction(o)&&(o=o(t)),o||o!==!1&&df(f))){const m=t.xsrfHeaderName&&t.xsrfCookieName&&of.read(t.xsrfCookieName);m&&a.set(t.xsrfHeaderName,m)}r===void 0&&a.setContentType(null),"setRequestHeader"in c&&h.forEach(a.toJSON(),function(S,y){c.setRequestHeader(y,S)}),h.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),s&&s!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",pr(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",pr(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=m=>{c&&(i(!m||m.type?new It(null,t,c):m),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const p=cf(f);if(p&&ue.protocols.indexOf(p)===-1){i(new D("Unsupported protocol "+p+":",D.ERR_BAD_REQUEST,t));return}c.send(r||null)})},pi={http:Vc,xhr:hf};h.forEach(pi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const gr=t=>`- ${t}`,pf=t=>h.isFunction(t)||t===null||t===!1,Ws={getAdapter:t=>{t=h.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let a=0;a<e;a++){n=t[a];let s;if(i=n,!pf(n)&&(i=pi[(s=String(n)).toLowerCase()],i===void 0))throw new D(`Unknown adapter '${s}'`);if(i)break;r[s||"#"+a]=i}if(!i){const a=Object.entries(r).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=e?a.length>1?`since :
29
+ `+a.map(gr).join(`
30
+ `):" "+gr(a[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:pi};function qn(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new It(null,t)}function vr(t){return qn(t),t.headers=ne.from(t.headers),t.data=Kn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ws.getAdapter(t.adapter||$t.adapter)(t).then(function(i){return qn(t),i.data=Kn.call(t,t.transformResponse,i),i.headers=ne.from(i.headers),i},function(i){return Ks(i)||(qn(t),i&&i.response&&(i.response.data=Kn.call(t,t.transformResponse,i.response),i.response.headers=ne.from(i.response.headers))),Promise.reject(i)})}const kr=t=>t instanceof ne?{...t}:t;function We(t,e){e=e||{};const n={};function i(u,d,c){return h.isPlainObject(u)&&h.isPlainObject(d)?h.merge.call({caseless:c},u,d):h.isPlainObject(d)?h.merge({},d):h.isArray(d)?d.slice():d}function r(u,d,c){if(h.isUndefined(d)){if(!h.isUndefined(u))return i(void 0,u,c)}else return i(u,d,c)}function a(u,d){if(!h.isUndefined(d))return i(void 0,d)}function s(u,d){if(h.isUndefined(d)){if(!h.isUndefined(u))return i(void 0,u)}else return i(void 0,d)}function o(u,d,c){if(c in e)return i(u,d);if(c in t)return i(void 0,u)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(u,d)=>r(kr(u),kr(d),!0)};return h.forEach(Object.keys(Object.assign({},t,e)),function(d){const c=l[d]||r,f=c(t[d],e[d],d);h.isUndefined(f)&&c!==o||(n[d]=f)}),n}const Js="1.6.8",Vi={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Vi[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const yr={};Vi.transitional=function(e,n,i){function r(a,s){return"[Axios v"+Js+"] Transitional option '"+a+"'"+s+(i?". "+i:"")}return(a,s,o)=>{if(e===!1)throw new D(r(s," has been removed"+(n?" in "+n:"")),D.ERR_DEPRECATED);return n&&!yr[s]&&(yr[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,s,o):!0}};function gf(t,e,n){if(typeof t!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const a=i[r],s=e[a];if(s){const o=t[a],l=o===void 0||s(o,a,t);if(l!==!0)throw new D("option "+a+" must be "+l,D.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new D("Unknown option "+a,D.ERR_BAD_OPTION)}}const gi={assertOptions:gf,validators:Vi},ke=gi.validators;class Fe{constructor(e){this.defaults=e,this.interceptors={request:new mr,response:new mr}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const a=r.stack?r.stack.replace(/^.+\n/,""):"";i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
31
+ `+a):i.stack=a}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=We(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:a}=n;i!==void 0&&gi.assertOptions(i,{silentJSONParsing:ke.transitional(ke.boolean),forcedJSONParsing:ke.transitional(ke.boolean),clarifyTimeoutError:ke.transitional(ke.boolean)},!1),r!=null&&(h.isFunction(r)?n.paramsSerializer={serialize:r}:gi.assertOptions(r,{encode:ke.function,serialize:ke.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&h.merge(a.common,a[n.method]);a&&h.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),n.headers=ne.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let d,c=0,f;if(!l){const p=[vr.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,u),f=p.length,d=Promise.resolve(n);c<f;)d=d.then(p[c++],p[c++]);return d}f=o.length;let k=n;for(c=0;c<f;){const p=o[c++],m=o[c++];try{k=p(k)}catch(S){m.call(this,S);break}}try{d=vr.call(this,k)}catch(p){return Promise.reject(p)}for(c=0,f=u.length;c<f;)d=d.then(u[c++],u[c++]);return d}getUri(e){e=We(this.defaults,e);const n=qs(e.baseURL,e.url);return Ms(n,e.params,e.paramsSerializer)}}h.forEach(["delete","get","head","options"],function(e){Fe.prototype[e]=function(n,i){return this.request(We(i||{},{method:e,url:n,data:(i||{}).data}))}});h.forEach(["post","put","patch"],function(e){function n(i){return function(a,s,o){return this.request(We(o||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}Fe.prototype[e]=n(),Fe.prototype[e+"Form"]=n(!0)});class ji{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const s=new Promise(o=>{i.subscribe(o),a=o}).then(r);return s.cancel=function(){i.unsubscribe(a)},s},e(function(a,s,o){i.reason||(i.reason=new It(a,s,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new ji(function(r){e=r}),cancel:e}}}function vf(t){return function(n){return t.apply(null,n)}}function kf(t){return h.isObject(t)&&t.isAxiosError===!0}const vi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vi).forEach(([t,e])=>{vi[e]=t});function Ys(t){const e=new Fe(t),n=xs(Fe.prototype.request,e);return h.extend(n,Fe.prototype,e,{allOwnKeys:!0}),h.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Ys(We(t,r))},n}const H=Ys($t);H.Axios=Fe;H.CanceledError=It;H.CancelToken=ji;H.isCancel=Ks;H.VERSION=Js;H.toFormData=Rn;H.AxiosError=D;H.Cancel=H.CanceledError;H.all=function(e){return Promise.all(e)};H.spread=vf;H.isAxiosError=kf;H.mergeConfig=We;H.AxiosHeaders=ne;H.formToJSON=t=>Gs(h.isHTMLForm(t)?new FormData(t):t);H.getAdapter=Ws.getAdapter;H.HttpStatusCode=vi;H.default=H;class yf{constructor(e){w(this,"logger");w(this,"axiosInstance");this.logger=e.logger,this.axiosInstance=H.create({baseURL:e.baseUrl,headers:e.accessToken?{Authorization:`Bearer ${e.accessToken}`}:{}})}async get(e){try{return(await this.axiosInstance.get(e)).data}catch(n){throw this.handleError(n),n}}async post(e,n){var a;const{data:i={},ignoreError:r=!1}=n;try{return(await this.axiosInstance.post(e,i)).data}catch(s){if(this.handleError(s),r&&H.isAxiosError(s))return(a=s.response)==null?void 0:a.data;throw s}}handleError(e){var n,i;H.isAxiosError(e)&&(this.logger.error("Error Code:",(n=e.response)==null?void 0:n.status),this.logger.error("Result Data:",(i=e.response)==null?void 0:i.data))}}function Xs(t){const e=Object.values(t);return Object.assign({},...e)}function Zs(t){return Object.entries(t).reduce((e,[n,i])=>{const r=Xs(i);return{...e,[n]:r}},{})}function Qs(t,e){const n=Zs(e);Object.entries(n).forEach(([i,r])=>{t.addResourceBundle(i,"translation",r,!0)})}function _f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nt(t){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function bf(t,e){if(Nt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(Nt(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Sf(t){var e=bf(t,"string");return Nt(e)=="symbol"?e:e+""}function Nf(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Sf(i.key),i)}}function Af(t,e,n){return e&&Nf(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var eo=[],wf=eo.forEach,Of=eo.slice;function Ef(t){return wf.call(Of.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var _r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Ff=function(e,n,i){var r=i||{};r.path=r.path||"/";var a=encodeURIComponent(n),s="".concat(e,"=").concat(a);if(r.maxAge>0){var o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(o))}if(r.domain){if(!_r.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(r.domain)}if(r.path){if(!_r.test(r.path))throw new TypeError("option path is invalid");s+="; Path=".concat(r.path)}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},br={create:function(e,n,i,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+i*60*1e3)),r&&(a.domain=r),document.cookie=Ff(e,encodeURIComponent(n),a)},read:function(e){for(var n="".concat(e,"="),i=document.cookie.split(";"),r=0;r<i.length;r++){for(var a=i[r];a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(n)===0)return a.substring(n.length,a.length)}return null},remove:function(e){this.create(e,"",-1)}},Cf={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document!="undefined"){var i=br.read(e.lookupCookie);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document!="undefined"&&br.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},xf={name:"querystring",lookup:function(e){var n;if(typeof window!="undefined"){var i=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=i.substring(1),a=r.split("&"),s=0;s<a.length;s++){var o=a[s].indexOf("=");if(o>0){var l=a[s].substring(0,o);l===e.lookupQuerystring&&(n=a[s].substring(o+1))}}}return n}},ot=null,Sr=function(){if(ot!==null)return ot;try{ot=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{ot=!1}return ot},Tf={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&Sr()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&Sr()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},lt=null,Nr=function(){if(lt!==null)return lt;try{lt=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{lt=!1}return lt},Rf={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&Nr()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&Nr()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},Pf={name:"navigator",lookup:function(e){var n=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var i=0;i<navigator.languages.length;i++)n.push(navigator.languages[i]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},Lf={name:"htmlTag",lookup:function(e){var n,i=e.htmlTag||(typeof document!="undefined"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(n=i.getAttribute("lang")),n}},Df={name:"path",lookup:function(e){var n;if(typeof window!="undefined"){var i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(i instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof i[e.lookupFromPathIndex]!="string")return;n=i[e.lookupFromPathIndex].replace("/","")}else n=i[0].replace("/","")}return n}},$f={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,i=typeof window!="undefined"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[n]}};function If(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var to=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_f(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return Af(t,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=Ef(i,this.options||{},If()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(a){return a.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Cf),this.addDetector(xf),this.addDetector(Tf),this.addDetector(Rf),this.addDetector(Pf),this.addDetector(Lf),this.addDetector(Df),this.addDetector($f)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var i=this;n||(n=this.options.order);var r=[];return n.forEach(function(a){if(i.detectors[a]){var s=i.detectors[a].lookup(i.options);s&&typeof s=="string"&&(s=[s]),s&&(r=r.concat(s))}}),r=r.map(function(a){return i.options.convertDetectedLanguage(a)}),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(n,i){var r=this;i||(i=this.options.caches),i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||i.forEach(function(a){r.detectors[a]&&r.detectors[a].cacheUserLanguage(n,r.options)}))}}]),t}();to.type="languageDetector";function no(t,e){t.use(e).use(to).init({resources:{},fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(n,i,r)=>{if(i){const[a,...s]=i.split(",").map(o=>o.trim());if(a==="number")return new Intl.NumberFormat(r).format(n);if(a==="date")return new Intl.DateTimeFormat(r).format(n);if(a==="currency")return new Intl.NumberFormat(r,{style:"currency",currency:s[0]||"USD",currencyDisplay:"narrowSymbol"}).format(n).replace("$","").trim()}return n}},detection:{order:["navigator","cookie","localStorage","sessionStorage","querystring","htmlTag","path","subdomain"]}})}const Vf={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class dn{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||Vf,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,i,r){return r&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new dn(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new dn(this.logger,e)}}var de=new dn;class Pn{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(s=>{let[o,l]=s;for(let u=0;u<l;u++)o(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[o,l]=s;for(let u=0;u<l;u++)o.apply(o,[e,...i])})}}function ut(){let t,e;const n=new Promise((i,r)=>{t=i,e=r});return n.resolve=t,n.reject=e,n}function Ar(t){return t==null?"":""+t}function jf(t,e,n){t.forEach(i=>{e[i]&&(n[i]=e[i])})}const Uf=/###/g;function mt(t,e,n){function i(o){return o&&o.indexOf("###")>-1?o.replace(Uf,"."):o}function r(){return!t||typeof t=="string"}const a=typeof e!="string"?e:e.split(".");let s=0;for(;s<a.length-1;){if(r())return{};const o=i(a[s]);!t[o]&&n&&(t[o]=new n),Object.prototype.hasOwnProperty.call(t,o)?t=t[o]:t={},++s}return r()?{}:{obj:t,k:i(a[s])}}function wr(t,e,n){const{obj:i,k:r}=mt(t,e,Object);if(i!==void 0||e.length===1){i[r]=n;return}let a=e[e.length-1],s=e.slice(0,e.length-1),o=mt(t,s,Object);for(;o.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),o=mt(t,s,Object),o&&o.obj&&typeof o.obj[`${o.k}.${a}`]!="undefined"&&(o.obj=void 0);o.obj[`${o.k}.${a}`]=n}function Bf(t,e,n,i){const{obj:r,k:a}=mt(t,e,Object);r[a]=r[a]||[],r[a].push(n)}function cn(t,e){const{obj:n,k:i}=mt(t,e);if(n)return n[i]}function Mf(t,e,n){const i=cn(t,n);return i!==void 0?i:cn(e,n)}function io(t,e,n){for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?typeof t[i]=="string"||t[i]instanceof String||typeof e[i]=="string"||e[i]instanceof String?n&&(t[i]=e[i]):io(t[i],e[i],n):t[i]=e[i]);return t}function Ue(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var zf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Hf(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>zf[e]):t}class Gf{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const Kf=[" ",",","?","!",";"],qf=new Gf(20);function Wf(t,e,n){e=e||"",n=n||"";const i=Kf.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;const r=qf.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`);let a=!r.test(t);if(!a){const s=t.indexOf(n);s>0&&!r.test(t.substring(0,s))&&(a=!0)}return a}function ki(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const i=e.split(n);let r=t;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,o="";for(let l=a;l<i.length;++l)if(l!==a&&(o+=n),o+=i[l],s=r[o],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<i.length-1)continue;a+=l-a+1;break}r=s}return r}function fn(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class Or extends Pn{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,n],i&&(Array.isArray(i)?o.push(...i):typeof i=="string"&&a?o.push(...i.split(a)):o.push(i)));const l=cn(this.data,o);return!l&&!n&&!i&&e.indexOf(".")>-1&&(e=o[0],n=o[1],i=o.slice(2).join(".")),l||!s||typeof i!="string"?l:ki(this.data&&this.data[e]&&this.data[e][n],i,a)}addResource(e,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let o=[e,n];i&&(o=o.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(o=e.split("."),r=n,n=o[1]),this.addNamespaces(n),wr(this.data,o,r),a.silent||this.emit("added",e,n,i,r)}addResources(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in i)(typeof i[a]=="string"||Object.prototype.toString.apply(i[a])==="[object Array]")&&this.addResource(e,n,a,i[a],{silent:!0});r.silent||this.emit("added",e,n,i)}addResourceBundle(e,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,n];e.indexOf(".")>-1&&(o=e.split("."),r=i,i=n,n=o[1]),this.addNamespaces(n);let l=cn(this.data,o)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?io(l,i,a):l={...l,...i},wr(this.data,o,l),s.silent||this.emit("added",e,n,i)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var ro={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){return t.forEach(a=>{this.processors[a]&&(e=this.processors[a].process(e,n,i,r))}),e}};const Er={};class mn extends Pn{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),jf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=de.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const i=this.resolve(e,n);return i&&i.res!==void 0}extractFromKey(e,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const s=i&&e.indexOf(i)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Wf(e,i,r);if(s&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:a};const u=e.split(i);(i!==r||i===r&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(r)}return typeof a=="string"&&(a=[a]),{key:e,namespaces:a}}translate(e,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:o}=this.extractFromKey(e[e.length-1],n),l=o[o.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const F=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${F}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${F}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const c=this.resolve(e,n);let f=c&&c.res;const k=c&&c.usedKey||s,p=c&&c.exactUsedKey||s,m=Object.prototype.toString.apply(f),S=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject;if(T&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&S.indexOf(m)<0&&!(typeof y=="string"&&m==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(k,f,{...n,ns:o}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(c.res=F,c.usedParams=this.getUsedParamsDetails(n),c):F}if(a){const F=m==="[object Array]",P=F?[]:{},j=F?p:k;for(const B in f)if(Object.prototype.hasOwnProperty.call(f,B)){const g=`${j}${a}${B}`;P[B]=this.translate(g,{...n,joinArrays:!1,ns:o}),P[B]===g&&(P[B]=f[B])}f=P}}else if(T&&typeof y=="string"&&m==="[object Array]")f=f.join(y),f&&(f=this.extendTranslation(f,e,n,i));else{let F=!1,P=!1;const j=n.count!==void 0&&typeof n.count!="string",B=mn.hasDefaultValue(n),g=j?this.pluralResolver.getSuffix(u,n.count,n):"",O=n.ordinal&&j?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",E=j&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=E&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${g}`]||n[`defaultValue${O}`]||n.defaultValue;!this.isValidLookup(f)&&B&&(F=!0,f=v),this.isValidLookup(f)||(P=!0,f=s);const A=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&P?void 0:f,N=B&&v!==f&&this.options.updateMissing;if(P||F||N){if(this.logger.log(N?"updateKey":"missingKey",u,l,s,N?v:f),a){const L=this.resolve(s,{...n,keySeparator:!1});L&&L.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 C=[];const V=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&V&&V[0])for(let L=0;L<V.length;L++)C.push(V[L]);else this.options.saveMissingTo==="all"?C=this.languageUtils.toResolveHierarchy(n.lng||this.language):C.push(n.lng||this.language);const R=(L,q,it)=>{const zi=B&&it!==f?it:A;this.options.missingKeyHandler?this.options.missingKeyHandler(L,l,q,zi,N,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(L,l,q,zi,N,n),this.emit("missingKey",L,l,q,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?C.forEach(L=>{const q=this.pluralResolver.getSuffixes(L,n);E&&n[`defaultValue${this.options.pluralSeparator}zero`]&&q.indexOf(`${this.options.pluralSeparator}zero`)<0&&q.push(`${this.options.pluralSeparator}zero`),q.forEach(it=>{R([L],s+it,n[`defaultValue${it}`]||v)})}):R(C,s,v))}f=this.extendTranslation(f,e,n,c,i),P&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(P||F)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,F?f:void 0):f=this.options.parseMissingKeyHandler(f))}return r?(c.res=f,c.usedParams=this.getUsedParamsDetails(n),c):f}extendTranslation(e,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const u=typeof e=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const f=e.match(this.interpolator.nestingRegexp);d=f&&f.length}let c=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,i.lng||this.language,i),u){const f=e.match(this.interpolator.nestingRegexp),k=f&&f.length;d<k&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=r.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var f=arguments.length,k=new Array(f),p=0;p<f;p++)k[p]=arguments[p];return a&&a[0]===k[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${k[0]} in key: ${n[0]}`),null):s.translate(...k,n)},i)),i.interpolation&&this.interpolator.reset()}const o=i.postProcess||this.options.postProcess,l=typeof o=="string"?[o]:o;return e!=null&&l&&l.length&&i.applyPostProcessor!==!1&&(e=ro.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,o;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(i))return;const u=this.extractFromKey(l,n),d=u.key;r=d;let c=u.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const f=n.count!==void 0&&typeof n.count!="string",k=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach(S=>{this.isValidLookup(i)||(o=S,!Er[`${m[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Er[`${m[0]}-${S}`]=!0,this.logger.warn(`key "${r}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(y=>{if(this.isValidLookup(i))return;s=y;const T=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(T,d,y,S,n);else{let F;f&&(F=this.pluralResolver.getSuffix(y,n.count,n));const P=`${this.options.pluralSeparator}zero`,j=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(T.push(d+F),n.ordinal&&F.indexOf(j)===0&&T.push(d+F.replace(j,this.options.pluralSeparator)),k&&T.push(d+P)),p){const B=`${d}${this.options.contextSeparator}${n.context}`;T.push(B),f&&(T.push(B+F),n.ordinal&&F.indexOf(j)===0&&T.push(B+F.replace(j,this.options.pluralSeparator)),k&&T.push(B+P))}}let U;for(;U=T.pop();)this.isValidLookup(i)||(a=U,i=this.getResource(y,S,U,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,i,r):this.resourceStore.getResource(e,n,i,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&typeof e.replace!="string";let r=i?e.replace:e;if(i&&typeof e.count!="undefined"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(const a of n)delete r[a]}return r}static hasDefaultValue(e){const n="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n===i.substring(0,n.length)&&e[i]!==void 0)return!0;return!1}}function Wn(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Fr{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=de.create("languageUtils")}getScriptPartFromCode(e){if(e=fn(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=fn(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let i=e.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Wn(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Wn(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Wn(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(i=>{if(n)return;const r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(i=>{if(n)return;const r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];let i=e[n];return i||(i=e[this.getScriptPartFromCode(n)]),i||(i=e[this.formatLanguageCode(n)]),i||(i=e[this.getLanguagePartFromCode(n)]),i||(i=e.default),i||[]}toResolveHierarchy(e,n){const i=this.getFallbackCodes(n||this.options.fallbackLng||[],e),r=[],a=s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}}let Jf=[{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}],Yf={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const Xf=["v1","v2","v3"],Zf=["v4"],Cr={zero:0,one:1,two:2,few:3,many:4,other:5};function Qf(){const t={};return Jf.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:Yf[e.fc]}})}),t}class em{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=de.create("pluralResolver"),(!this.options.compatibilityJSON||Zf.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Qf()}addRule(e,n){this.rules[e]=n}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(fn(e==="dev"?"en":e),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(r=>`${n}${r}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>Cr[r]-Cr[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(e,r,n)):[]}getSuffix(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const i=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let r=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const a=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Xf.includes(this.options.compatibilityJSON)}}function xr(t,e,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Mf(t,e,n);return!a&&r&&typeof n=="string"&&(a=ki(t,n,i),a===void 0&&(a=ki(e,n,i))),a}class tm{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=de.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const n=e.interpolation;this.escape=n.escape!==void 0?n.escape:Hf,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Ue(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Ue(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Ue(n.nestingPrefix):n.nestingPrefixEscaped||Ue("$t("),this.nestingSuffix=n.nestingSuffix?Ue(n.nestingSuffix):n.nestingSuffixEscaped||Ue(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,i,r){let a,s,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const d=p=>{if(p.indexOf(this.formatSeparator)<0){const T=xr(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,i,{...r,...n,interpolationkey:p}):T}const m=p.split(this.formatSeparator),S=m.shift().trim(),y=m.join(this.formatSeparator).trim();return this.format(xr(n,l,S,this.options.keySeparator,this.options.ignoreJSONStructure),y,i,{...r,...n,interpolationkey:S})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(o=0;a=p.regex.exec(e);){const m=a[1].trim();if(s=d(m),s===void 0)if(typeof c=="function"){const y=c(e,a,r);s=typeof y=="string"?y:""}else if(r&&Object.prototype.hasOwnProperty.call(r,m))s="";else if(f){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=Ar(s));const S=p.safeValue(s);if(e=e.replace(a[0],S),f?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=a[0].length):p.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s;function o(l,u){const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const c=l.split(new RegExp(`${d}[ ]*{`));let f=`{${c[1]}`;l=c[0],f=this.interpolate(f,s);const k=f.match(/'/g),p=f.match(/"/g);(k&&k.length%2===0&&!p||p.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${d}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l}for(;r=this.nestingRegexp.exec(e);){let l=[];s={...i},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const d=r[1].split(this.formatSeparator).map(c=>c.trim());r[1]=d.shift(),l=d,u=!0}if(a=n(o.call(this,r[1].trim(),s),s),a&&r[0]===e&&typeof a!="string")return a;typeof a!="string"&&(a=Ar(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),a=""),u&&(a=l.reduce((d,c)=>this.format(d,c,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),e=e.replace(r[0],a),this.regexp.lastIndex=0}return e}}function nm(t){let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(!s)return;const[o,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[o.trim()]||(n[o.trim()]=u),u==="false"&&(n[o.trim()]=!1),u==="true"&&(n[o.trim()]=!0),isNaN(u)||(n[o.trim()]=parseInt(u,10))})}return{formatName:e,formatOptions:n}}function Be(t){const e={};return function(i,r,a){const s=r+JSON.stringify(a);let o=e[s];return o||(o=t(fn(r),a),e[s]=o),o(i)}}class im{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=de.create("formatter"),this.options=e,this.formats={number:Be((n,i)=>{const r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:Be((n,i)=>{const r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:Be((n,i)=>{const r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:Be((n,i)=>{const r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:Be((n,i)=>{const r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(e)}init(e){const i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=Be(n)}format(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((o,l)=>{const{formatName:u,formatOptions:d}=nm(l);if(this.formats[u]){let c=o;try{const f=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},k=f.locale||f.lng||r.locale||r.lng||i;c=this.formats[u](o,k,{...d,...r,...f})}catch(f){this.logger.warn(f)}return c}else this.logger.warn(`there was no format function for ${u}`);return o},e)}}function rm(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class am extends Pn{constructor(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=de.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(e,n,i,r){const a={},s={},o={},l={};return e.forEach(u=>{let d=!0;n.forEach(c=>{const f=`${u}|${c}`;!i.reload&&this.store.hasResourceBundle(u,c)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,d=!1,s[f]===void 0&&(s[f]=!0),a[f]===void 0&&(a[f]=!0),l[c]===void 0&&(l[c]=!0)))}),d||(o[u]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,n,i){const r=e.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2;const o={};this.queue.forEach(l=>{Bf(l.loaded,[a],s),rm(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});const d=l.loaded[u];d.length&&d.forEach(c=>{o[u][c]===void 0&&(o[u][c]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;const o=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(u&&d&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,i,r+1,a*2,s)},a);return}s(u,d)},l=this.backend[i].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(d=>o(null,d)).catch(o):o(null,u)}catch(u){o(u)}return}return l(e,n,o)}prepareLoading(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=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."),r&&r();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(n=[n]);const a=this.queueLoad(e,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,i){this.prepareLoading(e,n,{},i)}reload(e,n,i){this.prepareLoading(e,n,{reload:!0},i)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,o)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&o&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,o),this.loaded(e,s,o)})}saveMissing(e,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(e,n,i,r,l):d=u(e,n,i,r),d&&typeof d.then=="function"?d.then(c=>o(null,c)).catch(o):o(null,d)}catch(d){o(d)}else u(e,n,i,r,o,l)}!e||!e[0]||this.store.addResource(e[0],n,i,r)}}}function Tr(){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(e){let n={};if(typeof e[1]=="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];Object.keys(i).forEach(r=>{n[r]=i[r]})}return n},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Rr(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function zt(){}function sm(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}class At extends Pn{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Rr(e),this.services={},this.logger=de,this.modules={external:[]},sm(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=Tr();this.options={...r,...this.options,...Rr(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function a(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?de.init(a(this.modules.logger),this.options):de.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl!="undefined"&&(d=im);const c=new Fr(this.options);this.store=new Or(this.options.resources,this.options);const f=this.services;f.logger=de,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new em(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(f.formatter=a(d),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new tm(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new am(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(k){for(var p=arguments.length,m=new Array(p>1?p-1:0),S=1;S<p;S++)m[S-1]=arguments[S];e.emit(k,...m)}),this.modules.languageDetector&&(f.languageDetector=a(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=a(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new mn(this.services,this.options),this.translator.on("*",function(k){for(var p=arguments.length,m=new Array(p>1?p-1:0),S=1;S<p;S++)m[S-1]=arguments[S];e.emit(k,...m)}),this.modules.external.forEach(k=>{k.init&&k.init(this)})}if(this.format=this.options.interpolation.format,i||(i=zt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const l=ut(),u=()=>{const d=(c,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),i(c,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zt;const r=typeof e=="string"?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const a=[],s=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(o=>s(o)),this.services.backendConnector.load(a,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(o)})}else i(null)}reloadResources(e,n,i){const r=ut();return e||(e=this.languages),n||(n=this.options.ns),i||(i=zt),this.services.backendConnector.reload(e,n,a=>{r.resolve(),i(a)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&ro.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(e,n){var i=this;this.isLanguageChangingTo=e;const r=ut();this.emit("languageChanging",e);const a=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(l,function(){return i.t(...arguments)})},o=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{s(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,n,i){var r=this;const a=function(s,o){let l;if(typeof o!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),c=2;c<u;c++)d[c-2]=arguments[c];l=r.options.overloadTranslationOptionHandler([s,o].concat(d))}else l={...o};l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix=l.keyPrefix||i||a.keyPrefix;const f=r.options.keySeparator||".";let k;return l.keyPrefix&&Array.isArray(s)?k=s.map(p=>`${l.keyPrefix}${f}${p}`):k=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,r.t(k,l)};return typeof e=="string"?a.lng=e:a.lngs=e,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=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;const i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const s=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===2};if(n.precheck){const o=n.precheck(this,s);if(o!==void 0)return o}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!r||s(a,e)))}loadNamespaces(e,n){const i=ut();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(e,n){const i=ut();typeof e=="string"&&(e=[e]);const r=this.options.preload||[],a=e.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Fr(Tr());return n.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new At(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zt;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},a=new At(r);return(e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(o=>{a[o]=this[o]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new Or(this.store.data,r),a.services.resourceStore=a.store),a.translator=new mn(a.services,r),a.translator.on("*",function(o){for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];a.emit(o,...u)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const J=At.createInstance();J.createInstance=At.createInstance;J.createInstance;J.dir;J.init;J.loadResources;J.reloadResources;J.use;J.changeLanguage;J.getFixedT;J.t;J.exists;J.setDefaultNamespace;J.hasLoadedNamespace;J.loadNamespaces;J.loadLanguages;const om=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,lm={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},um=t=>lm[t],dm=t=>t.replace(om,um);let Pr={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:dm};function cm(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pr={...Pr,...t}}const fm={type:"3rdParty",init(t){cm(t.options.react)}};no(J,fm);const mm=t=>Qs(J,t);/**
32
+ * @license
33
+ * Copyright 2019 Google LLC
34
+ * SPDX-License-Identifier: BSD-3-Clause
35
+ */const Yt=globalThis,Ui=Yt.ShadowRoot&&(Yt.ShadyCSS===void 0||Yt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bi=Symbol(),Lr=new WeakMap;let ao=class{constructor(e,n,i){if(this._$cssResult$=!0,i!==Bi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(Ui&&e===void 0){const i=n!==void 0&&n.length===1;i&&(e=Lr.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Lr.set(n,e))}return e}toString(){return this.cssText}};const hm=t=>new ao(typeof t=="string"?t:t+"",void 0,Bi),pm=(t,...e)=>{const n=t.length===1?t[0]:e.reduce((i,r,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[a+1],t[0]);return new ao(n,t,Bi)},gm=(t,e)=>{if(Ui)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const i=document.createElement("style"),r=Yt.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=n.cssText,t.appendChild(i)}},Dr=Ui?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const i of e.cssRules)n+=i.cssText;return hm(n)})(t):t;/**
36
+ * @license
37
+ * Copyright 2017 Google LLC
38
+ * SPDX-License-Identifier: BSD-3-Clause
39
+ */const{is:vm,defineProperty:km,getOwnPropertyDescriptor:ym,getOwnPropertyNames:_m,getOwnPropertySymbols:bm,getPrototypeOf:Sm}=Object,Se=globalThis,$r=Se.trustedTypes,Nm=$r?$r.emptyScript:"",Jn=Se.reactiveElementPolyfillSupport,ht=(t,e)=>t,yi={toAttribute(t,e){switch(e){case Boolean:t=t?Nm:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch{n=null}}return n}},so=(t,e)=>!vm(t,e),Ir={attribute:!0,type:String,converter:yi,reflect:!1,hasChanged:so};var Gr,Kr;(Gr=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Kr=Se.litPropertyMetadata)!=null||(Se.litPropertyMetadata=new WeakMap);class ze extends HTMLElement{static addInitializer(e){var n;this._$Ei(),((n=this.l)!=null?n:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=Ir){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(e,n),!n.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(e,i,n);r!==void 0&&km(this.prototype,e,r)}}static getPropertyDescriptor(e,n,i){var s;const{get:r,set:a}=(s=ym(this.prototype,e))!=null?s:{get(){return this[n]},set(o){this[n]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const l=r==null?void 0:r.call(this);a.call(this,o),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var n;return(n=this.elementProperties.get(e))!=null?n:Ir}static _$Ei(){if(this.hasOwnProperty(ht("elementProperties")))return;const e=Sm(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ht("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ht("properties"))){const n=this.properties,i=[..._m(n),...bm(n)];for(const r of i)this.createProperty(r,n[r])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[i,r]of n)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[n,i]of this.elementProperties){const r=this._$Eu(n,i);r!==void 0&&this._$Eh.set(r,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)n.unshift(Dr(r))}else e!==void 0&&n.push(Dr(e));return n}static _$Eu(e,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(n=>n(this))}addController(e){var n,i;((n=this._$EO)!=null?n:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var n;(n=this._$EO)==null||n.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const i of n.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var n;const e=(n=this.shadowRoot)!=null?n:this.attachShadow(this.constructor.shadowRootOptions);return gm(e,this.constructor.elementStyles),e}connectedCallback(){var e,n;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$EO)==null||n.forEach(i=>{var r;return(r=i.hostConnected)==null?void 0:r.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(n=>{var i;return(i=n.hostDisconnected)==null?void 0:i.call(n)})}attributeChangedCallback(e,n,i){this._$AK(e,i)}_$EC(e,n){var a;const i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(r!==void 0&&i.reflect===!0){const s=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:yi).toAttribute(n,i.type);this._$Em=e,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(e,n){var a;const i=this.constructor,r=i._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const s=i.getPropertyOptions(r),o=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:yi;this._$Em=r,this[r]=o.fromAttribute(n,s.type),this._$Em=null}}requestUpdate(e,n,i){var r;if(e!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(e)),!((r=i.hasChanged)!=null?r:so)(this[e],n))return;this.P(e,n,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,n,i){var r;this._$AL.has(e)||this._$AL.set(e,n),i.reflect===!0&&this._$Em!==e&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[s,o]of a)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),(r=this._$EO)==null||r.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(n)):this._$EU()}catch(a){throw e=!1,this._$EU(),a}e&&this._$AE(n)}willUpdate(e){}_$AE(e){var n;(n=this._$EO)==null||n.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(e){}firstUpdated(e){}}var qr;ze.elementStyles=[],ze.shadowRootOptions={mode:"open"},ze[ht("elementProperties")]=new Map,ze[ht("finalized")]=new Map,Jn==null||Jn({ReactiveElement:ze}),((qr=Se.reactiveElementVersions)!=null?qr:Se.reactiveElementVersions=[]).push("2.0.4");/**
40
+ * @license
41
+ * Copyright 2017 Google LLC
42
+ * SPDX-License-Identifier: BSD-3-Clause
43
+ */const pt=globalThis,hn=pt.trustedTypes,Vr=hn?hn.createPolicy("lit-html",{createHTML:t=>t}):void 0,oo="$lit$",ye=`lit$${Math.random().toFixed(9).slice(2)}$`,lo="?"+ye,Am=`<${lo}>`,Pe=document,wt=()=>Pe.createComment(""),Ot=t=>t===null||typeof t!="object"&&typeof t!="function",uo=Array.isArray,wm=t=>uo(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Yn=`[
44
+ \f\r]`,dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jr=/-->/g,Ur=/>/g,Ae=RegExp(`>|${Yn}(?:([^\\s"'>=/]+)(${Yn}*=${Yn}*(?:[^
45
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Br=/'/g,Mr=/"/g,co=/^(?:script|style|textarea|title)$/i,Om=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),Em=Om(1),Je=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),zr=new WeakMap,we=Pe.createTreeWalker(Pe,129);function fo(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vr!==void 0?Vr.createHTML(e):e}const Fm=(t,e)=>{const n=t.length-1,i=[];let r,a=e===2?"<svg>":"",s=dt;for(let o=0;o<n;o++){const l=t[o];let u,d,c=-1,f=0;for(;f<l.length&&(s.lastIndex=f,d=s.exec(l),d!==null);)f=s.lastIndex,s===dt?d[1]==="!--"?s=jr:d[1]!==void 0?s=Ur:d[2]!==void 0?(co.test(d[2])&&(r=RegExp("</"+d[2],"g")),s=Ae):d[3]!==void 0&&(s=Ae):s===Ae?d[0]===">"?(s=r!=null?r:dt,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?Ae:d[3]==='"'?Mr:Br):s===Mr||s===Br?s=Ae:s===jr||s===Ur?s=dt:(s=Ae,r=void 0);const k=s===Ae&&t[o+1].startsWith("/>")?" ":"";a+=s===dt?l+Am:c>=0?(i.push(u),l.slice(0,c)+oo+l.slice(c)+ye+k):l+ye+(c===-2?o:k)}return[fo(t,a+(t[n]||"<?>")+(e===2?"</svg>":"")),i]};class Et{constructor({strings:e,_$litType$:n},i){let r;this.parts=[];let a=0,s=0;const o=e.length-1,l=this.parts,[u,d]=Fm(e,n);if(this.el=Et.createElement(u,i),we.currentNode=this.el.content,n===2){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=we.nextNode())!==null&&l.length<o;){if(r.nodeType===1){if(r.hasAttributes())for(const c of r.getAttributeNames())if(c.endsWith(oo)){const f=d[s++],k=r.getAttribute(c).split(ye),p=/([.?@])?(.*)/.exec(f);l.push({type:1,index:a,name:p[2],strings:k,ctor:p[1]==="."?xm:p[1]==="?"?Tm:p[1]==="@"?Rm:Ln}),r.removeAttribute(c)}else c.startsWith(ye)&&(l.push({type:6,index:a}),r.removeAttribute(c));if(co.test(r.tagName)){const c=r.textContent.split(ye),f=c.length-1;if(f>0){r.textContent=hn?hn.emptyScript:"";for(let k=0;k<f;k++)r.append(c[k],wt()),we.nextNode(),l.push({type:2,index:++a});r.append(c[f],wt())}}}else if(r.nodeType===8)if(r.data===lo)l.push({type:2,index:a});else{let c=-1;for(;(c=r.data.indexOf(ye,c+1))!==-1;)l.push({type:7,index:a}),c+=ye.length-1}a++}}static createElement(e,n){const i=Pe.createElement("template");return i.innerHTML=e,i}}function Ye(t,e,n=t,i){var s,o,l;if(e===Je)return e;let r=i!==void 0?(s=n._$Co)==null?void 0:s[i]:n._$Cl;const a=Ot(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==a&&((o=r==null?void 0:r._$AO)==null||o.call(r,!1),a===void 0?r=void 0:(r=new a(t),r._$AT(t,n,i)),i!==void 0?((l=n._$Co)!=null?l:n._$Co=[])[i]=r:n._$Cl=r),r!==void 0&&(e=Ye(t,r._$AS(t,e.values),r,i)),e}class Cm{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:n},parts:i}=this._$AD,r=((u=e==null?void 0:e.creationScope)!=null?u:Pe).importNode(n,!0);we.currentNode=r;let a=we.nextNode(),s=0,o=0,l=i[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new Vt(a,a.nextSibling,this,e):l.type===1?d=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(d=new Pm(a,this,e)),this._$AV.push(d),l=i[++o]}s!==(l==null?void 0:l.index)&&(a=we.nextNode(),s++)}return we.currentNode=Pe,r}p(e){let n=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,n),n+=i.strings.length-2):i._$AI(e[n])),n++}}class Vt{get _$AU(){var e,n;return(n=(e=this._$AM)==null?void 0:e._$AU)!=null?n:this._$Cv}constructor(e,n,i,r){var a;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=i,this.options=r,this._$Cv=(a=r==null?void 0:r.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=Ye(this,e,n),Ot(e)?e===G||e==null||e===""?(this._$AH!==G&&this._$AR(),this._$AH=G):e!==this._$AH&&e!==Je&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wm(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==G&&Ot(this._$AH)?this._$AA.nextSibling.data=e:this.T(Pe.createTextNode(e)),this._$AH=e}$(e){var a;const{values:n,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Et.createElement(fo(i.h,i.h[0]),this.options)),i);if(((a=this._$AH)==null?void 0:a._$AD)===r)this._$AH.p(n);else{const s=new Cm(r,this),o=s.u(this.options);s.p(n),this.T(o),this._$AH=s}}_$AC(e){let n=zr.get(e.strings);return n===void 0&&zr.set(e.strings,n=new Et(e)),n}k(e){uo(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,r=0;for(const a of e)r===n.length?n.push(i=new Vt(this.S(wt()),this.S(wt()),this,this.options)):i=n[r],i._$AI(a),r++;r<n.length&&(this._$AR(i&&i._$AB.nextSibling,r),n.length=r)}_$AR(e=this._$AA.nextSibling,n){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,n);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var n;this._$AM===void 0&&(this._$Cv=e,(n=this._$AP)==null||n.call(this,e))}}class Ln{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,i,r,a){this.type=1,this._$AH=G,this._$AN=void 0,this.element=e,this.name=n,this._$AM=r,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}_$AI(e,n=this,i,r){const a=this.strings;let s=!1;if(a===void 0)e=Ye(this,e,n,0),s=!Ot(e)||e!==this._$AH&&e!==Je,s&&(this._$AH=e);else{const o=e;let l,u;for(e=a[0],l=0;l<a.length-1;l++)u=Ye(this,o[i+l],n,l),u===Je&&(u=this._$AH[l]),s||(s=!Ot(u)||u!==this._$AH[l]),u===G?e=G:e!==G&&(e+=(u!=null?u:"")+a[l+1]),this._$AH[l]=u}s&&!r&&this.j(e)}j(e){e===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class xm extends Ln{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===G?void 0:e}}class Tm extends Ln{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==G)}}class Rm extends Ln{constructor(e,n,i,r,a){super(e,n,i,r,a),this.type=5}_$AI(e,n=this){var s;if((e=(s=Ye(this,e,n,0))!=null?s:G)===Je)return;const i=this._$AH,r=e===G&&i!==G||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==G&&(i===G||r);r&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var n,i;typeof this._$AH=="function"?this._$AH.call((i=(n=this.options)==null?void 0:n.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class Pm{constructor(e,n,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Ye(this,e)}}const Xn=pt.litHtmlPolyfillSupport;var Wr;Xn==null||Xn(Et,Vt),((Wr=pt.litHtmlVersions)!=null?Wr:pt.litHtmlVersions=[]).push("3.1.3");const Lm=(t,e,n)=>{var a,s;const i=(a=n==null?void 0:n.renderBefore)!=null?a:e;let r=i._$litPart$;if(r===void 0){const o=(s=n==null?void 0:n.renderBefore)!=null?s:null;i._$litPart$=r=new Vt(e.insertBefore(wt(),o),o,void 0,n!=null?n:{})}return r._$AI(t),r};/**
46
+ * @license
47
+ * Copyright 2017 Google LLC
48
+ * SPDX-License-Identifier: BSD-3-Clause
49
+ */let gt=class extends ze{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,i;const e=super.createRenderRoot();return(i=(n=this.renderOptions).renderBefore)!=null||(n.renderBefore=e.firstChild),e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Lm(n,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return Je}};var Jr;gt._$litElement$=!0,gt.finalized=!0,(Jr=globalThis.litElementHydrateSupport)==null||Jr.call(globalThis,{LitElement:gt});const Zn=globalThis.litElementPolyfillSupport;Zn==null||Zn({LitElement:gt});var Yr;((Yr=globalThis.litElementVersions)!=null?Yr:globalThis.litElementVersions=[]).push("4.0.5");/**
50
+ * @license
51
+ * Copyright 2020 Google LLC
52
+ * SPDX-License-Identifier: BSD-3-Clause
53
+ */const Dm=t=>t.strings===void 0;/**
54
+ * @license
55
+ * Copyright 2017 Google LLC
56
+ * SPDX-License-Identifier: BSD-3-Clause
57
+ */const $m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Im=t=>(...e)=>({_$litDirective$:t,values:e});class Vm{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,n,i){this._$Ct=e,this._$AM=n,this._$Ci=i}_$AS(e,n){return this.update(e,n)}update(e,n){return this.render(...n)}}/**
58
+ * @license
59
+ * Copyright 2017 Google LLC
60
+ * SPDX-License-Identifier: BSD-3-Clause
61
+ */const vt=(t,e)=>{var i;const n=t._$AN;if(n===void 0)return!1;for(const r of n)(i=r._$AO)==null||i.call(r,e,!1),vt(r,e);return!0},pn=t=>{let e,n;do{if((e=t._$AM)===void 0)break;n=e._$AN,n.delete(t),t=e}while((n==null?void 0:n.size)===0)},mo=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(n===void 0)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),Bm(e)}};function jm(t){this._$AN!==void 0?(pn(this),this._$AM=t,mo(this)):this._$AM=t}function Um(t,e=!1,n=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(e)if(Array.isArray(i))for(let a=n;a<i.length;a++)vt(i[a],!1),pn(i[a]);else i!=null&&(vt(i,!1),pn(i));else vt(this,t)}const Bm=t=>{var e,n;t.type==$m.CHILD&&((e=t._$AP)!=null||(t._$AP=Um),(n=t._$AQ)!=null||(t._$AQ=jm))};class Mm extends Vm{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,n,i){super._$AT(e,n,i),mo(this),this.isConnected=e._$AU}_$AO(e,n=!0){var i,r;e!==this.isConnected&&(this.isConnected=e,e?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),n&&(vt(this,e),pn(this))}setValue(e){if(Dm(this._$Ct))this._$Ct._$AI(e,this);else{const n=[...this._$Ct._$AH];n[this._$Ci]=e,this._$Ct._$AI(n,this,0)}}disconnected(){}reconnected(){}}/**
62
+ * @license
63
+ * Copyright 2020 Google LLC
64
+ * SPDX-License-Identifier: BSD-3-Clause
65
+ */const zm=()=>new Hm;class Hm{}const Qn=new WeakMap,Gm=Im(class extends Mm{render(t){return G}update(t,[e]){var i;const n=e!==this.Y;return n&&this.Y!==void 0&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.Y=e,this.ht=(i=t.options)==null?void 0:i.host,this.rt(this.ct=t.element)),G}rt(t){var e;if(typeof this.Y=="function"){const n=(e=this.ht)!=null?e:globalThis;let i=Qn.get(n);i===void 0&&(i=new WeakMap,Qn.set(n,i)),i.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),i.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){var t,e,n;return typeof this.Y=="function"?(e=Qn.get((t=this.ht)!=null?t:globalThis))==null?void 0:e.get(this.Y):(n=this.Y)==null?void 0:n.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ho,Hr=Xr;ho=Hr.createRoot,Hr.hydrateRoot;class po extends gt{constructor(){super(...arguments);w(this,"rootRef",zm());w(this,"rootInstance")}render(){return Em`<div ${Gm(this.rootRef)}></div>`}updated(){this.updateReactComponent()}updateReactComponent(){if(!this.rootRef.value)return;this.rootInstance||(this.rootInstance=ho(this.rootRef.value));const n=z.createElement(this.getReactComponent(),this.getReactProps(),z.createElement("slot"));this.rootInstance.render(n)}handleHMR(n){}injectStyles(n){const i=r=>r.replace("./","");for(const[r,a]of Object.entries(n)){const s=i(r),o=document.createElement("style");o.setAttribute("type","text/css"),o.setAttribute("id",s),o.innerHTML=a,setTimeout(()=>{var l;return(l=this.shadowRoot)==null?void 0:l.appendChild(o)})}}setupHMRListener(){}}w(po,"baseStyles",pm`
66
+ :host {
67
+ width: 100%;
68
+ }
69
+ `);let Mi=new Map;const _i=z.createContext(Mi),Km=({children:t,stores:e})=>{const n=z.useContext(_i),i=z.useMemo(()=>{const r=new Map;return e.forEach(a=>r.set(a.class,a.value)),Mi=new Map([...n,...r])},[]);return _o.jsx(_i.Provider,{value:i,children:t})};function qm(t){return z.useContext(_i).get(t)}function Wm(t){return Mi.get(t)}class go{constructor(e,n,i){w(this,"renderFn");w(this,"logger");w(this,"rootId");w(this,"element",null);w(this,"unmount");w(this,"updateProps");this.rootId=e,this.renderFn=n,this.logger=i}async render(e={}){var n;if(this.element)this.updateProps(e);else{const i=await this.renderFn(this.rootId,e);this.element=(n=i==null?void 0:i.element)!=null?n:null,this.updateProps=r=>i==null?void 0:i.updateProps(r),this.unmount=()=>{i==null||i.unmount(),this.element=null}}}}class Jm{constructor(e){w(this,"globalId");w(this,"logger");w(this,"env");w(this,"configureLocal");w(this,"configureVtexLegacy");w(this,"configureVtexIO");w(this,"cancelBaseBehavior");w(this,"isProd");w(this,"isVtexIO");w(this,"isVtexLegacy");w(this,"isLocal");w(this,"vtexio");w(this,"vtexjs");w(this,"moduleId");w(this,"renderHandler");w(this,"store");var n,i,r;this.globalId=e.globalId,this.store=e.getStore(),this.logger=e.logger,this.env=e.env,this.isProd=!0,this.isLocal=!this.isProd,this.vtexjs=window==null?void 0:window.vtexjs,this.vtexio=window==null?void 0:window.__RUNTIME__,this.isVtexIO=!!this.vtexio,this.isVtexLegacy=!!this.vtexjs,this.cancelBaseBehavior={local:((n=e.cancelBaseBehavior)==null?void 0:n.local)||!1,vtexIO:((i=e.cancelBaseBehavior)==null?void 0:i.vtexIO)||!1,vtexLegacy:((r=e.cancelBaseBehavior)==null?void 0:r.vtexLegacy)||!1},window[this.globalId]||(window[this.globalId]={}),window[this.globalId].runtime||(window[this.globalId].runtime=this)}configLocal(e){return this.configureLocal=e,this}configVtexLegacy(e){return this.configureVtexLegacy=e,this}configVtexIO(e){return this.configureVtexIO=e,this}register(e,n){this.moduleId={value:e,formatted:this.toCamel(e)},this.renderHandler=(r,a)=>n(this,r,a);const i={render:this.renderHandler};return window[this.globalId][this.moduleId.formatted]=i,this}async execute(e){var n,i,r,a;if(this.isLocal){if(!this.cancelBaseBehavior.local){if(!((n=this.env)!=null&&n.account)){this.logger.error("missing account in local environment");return}await this.configureStore(this.env)}const s=new go(this.moduleId.value,this.renderHandler,this.logger);await((i=this.configureLocal)==null?void 0:i.call(this,this,s))}if(this.isVtexLegacy){let s={};if(!this.cancelBaseBehavior.vtexLegacy){const o=`${this.moduleId.value}-script`,l=Za(o);if(s=Object.fromEntries(l.entries()),!s.account){this.logger.error(`missing the account in the search params of the script #${o}`);return}await this.configureStore({account:s.account})}await((r=this.configureVtexLegacy)==null?void 0:r.call(this,this,this.vtexjs,s))}if(this.isVtexIO){if(!this.cancelBaseBehavior.vtexIO){if(!this.vtexio.account){this.logger.error("missing the account in window.__RUNTIME__");return}await this.configureStore({account:this.vtexio.account})}await((a=this.configureVtexIO)==null?void 0:a.call(this,this,this.vtexio))}e==null||e(this)}async configureStore(e){await this.store.configure(e)}toCamel(e){return e.replace(/^[a-z]{2}-/,"").replace(/-./g,n=>n[1].toUpperCase())}}exports.AccountContractStatusTypes=Li;exports.AccountContractTypes=ms;exports.AccountInvalidError=Qu;exports.AccountPlanDescriptionTypes=ps;exports.AccountRestRepository=vs;exports.AccountService=ks;exports.AccountSubscriptionTypes=hs;exports.AccountTypes=Pi;exports.AddToCartActionTypes=Fn;exports.AggregateRoot=cs;exports.ApiGraphqlTypes=Zd;exports.BaseMobxStore=md;exports.BroadcastChannelEventBus=Ya;exports.ComponentManager=go;exports.DomainError=Lt;exports.EventBusWildcards=yd;exports.EventNames=Ss;exports.GlobalPageSectionTypes=gs;exports.HttpAxiosClient=yf;exports.InvalidNizzaGlobalObjectError=os;exports.LanguageTypes=Ns;exports.Logger=rs;exports.NizzaAccount=En;exports.NizzaEventStatus=bs;exports.NizzaProductRequestOriginTypes=ws;exports.NizzaStore=ln;exports.NizzaVariationTypes=As;exports.ReactHostElement=po;exports.ResourceNotFoundError=as;exports.Runtime=Jm;exports.StoreProvider=Km;exports.UnexpectedError=ss;exports.ValueObject=hd;exports.accountAtom=gn;exports.accountService=Di;exports.addToCartMessages=fi;exports.apiCall=Go;exports.buildLanguageTranslations=Xs;exports.buildTranslations=Zs;exports.createActionFactory=Cs;exports.createAggregateRoot=fs;exports.createLazyLogger=Ho;exports.createStore=Qd;exports.customFetch=bi;exports.downloadFile=Ko;exports.fileOrigin=Hu;exports.getAccount=_s;exports.getClientTimeZone=fd;exports.getNizza=tt;exports.getScriptParams=Za;exports.getStore=Wm;exports.globalAtomStore=ys;exports.i18Init=no;exports.jsDownload=ea;exports.registerTranslations=mm;exports.registerTranslationsOf=Qs;exports.runAddToCartHooks=ec;exports.searchParams=zu;exports.shortId=Xa;exports.sleep=Gu;exports.useAccount=kd;exports.useNZ=us;exports.useNizza=ds;exports.useStore=qm;exports.validateRequiredProps=ed;
32
70
  //# sourceMappingURL=index.cjs.map