@nizza/core 0.6.0-beta.3 → 0.6.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -8
- package/dist/index.cjs +21 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2246 -2154
- package/dist/index.mjs.map +1 -1
- package/dist/lib/accounts/core/domain/Account.d.ts +2 -2
- package/dist/lib/accounts/core/domain/Account.d.ts.map +1 -1
- package/dist/lib/add-to-cart/hooks.d.ts.map +1 -1
- package/dist/lib/clean-architecture/domain/AggregateRoot.d.ts.map +1 -0
- package/dist/lib/clean-architecture/domain/ValueObject.d.ts.map +1 -0
- package/dist/lib/clean-architecture/domain/index.d.ts +2 -0
- package/dist/lib/clean-architecture/domain/index.d.ts.map +1 -1
- package/dist/lib/constants/products.d.ts +2 -2
- package/dist/lib/constants/products.d.ts.map +1 -1
- package/dist/lib/event-buses/BroadcastChannelEventBus.d.ts +7 -7
- package/dist/lib/event-buses/BroadcastChannelEventBus.d.ts.map +1 -1
- package/dist/lib/index.d.ts +0 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/nizza-store/NizzaStore.d.ts.map +1 -1
- package/dist/lib/runtime/implementations/external-runtime.d.ts +11 -0
- package/dist/lib/runtime/implementations/external-runtime.d.ts.map +1 -0
- package/dist/lib/runtime/implementations/index.d.ts +11 -0
- package/dist/lib/runtime/implementations/index.d.ts.map +1 -0
- package/dist/lib/runtime/implementations/local-runtime.d.ts +11 -0
- package/dist/lib/runtime/implementations/local-runtime.d.ts.map +1 -0
- package/dist/lib/runtime/implementations/vtex-io-runtime.d.ts +11 -0
- package/dist/lib/runtime/implementations/vtex-io-runtime.d.ts.map +1 -0
- package/dist/lib/runtime/implementations/vtex-legacy-runtime.d.ts +11 -0
- package/dist/lib/runtime/implementations/vtex-legacy-runtime.d.ts.map +1 -0
- package/dist/lib/runtime/index.d.ts +1 -0
- package/dist/lib/runtime/index.d.ts.map +1 -1
- package/dist/lib/runtime/runtime.d.ts +17 -26
- package/dist/lib/runtime/runtime.d.ts.map +1 -1
- package/dist/lib/runtime/types.d.ts +25 -0
- package/dist/lib/runtime/types.d.ts.map +1 -0
- package/dist/lib/runtime/utils.d.ts +4 -0
- package/dist/lib/runtime/utils.d.ts.map +1 -0
- package/dist/lib/types/runtime/base.d.ts +51 -0
- package/dist/lib/types/runtime/base.d.ts.map +1 -0
- package/dist/lib/types/runtime/index.d.ts +3 -0
- package/dist/lib/types/runtime/index.d.ts.map +1 -0
- package/dist/lib/types/runtime/metadata.d.ts +19 -0
- package/dist/lib/types/runtime/metadata.d.ts.map +1 -0
- package/dist/lib/utils/customFetch.d.ts.map +1 -1
- package/dist/lib/utils/getClientTimeZone.d.ts.map +1 -1
- package/dist/lib/utils/logger.d.ts +4 -2
- package/dist/lib/utils/logger.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/environments/environment.staging.d.ts +0 -23
- package/dist/environments/environment.staging.d.ts.map +0 -1
- package/dist/lib/domain/AggregateRoot.d.ts.map +0 -1
- package/dist/lib/domain/BaseMobxStore.d.ts +0 -3
- package/dist/lib/domain/BaseMobxStore.d.ts.map +0 -1
- package/dist/lib/domain/ValueObject.d.ts.map +0 -1
- package/dist/lib/domain/index.d.ts +0 -4
- package/dist/lib/domain/index.d.ts.map +0 -1
- package/dist/lib/event-buses/EventEmitter2EventBus.d.ts +0 -9
- package/dist/lib/event-buses/EventEmitter2EventBus.d.ts.map +0 -1
- package/dist/lib/types/runtime.d.ts +0 -42
- package/dist/lib/types/runtime.d.ts.map +0 -1
- /package/dist/lib/{domain → clean-architecture/domain}/AggregateRoot.d.ts +0 -0
- /package/dist/lib/{domain → clean-architecture/domain}/ValueObject.d.ts +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
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
|
|
1
|
+
"use strict";var Fo=Object.defineProperty;var Co=(t,e,n)=>e in t?Fo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var w=(t,e,n)=>(Co(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react"),la=require("react-dom"),To=require("@tanstack/react-query"),xo=require("react/jsx-runtime");var W={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STAGE:"dev"};let Ro=0;function Po(t,e){const n=`atom${++Ro}`,i={toString:()=>n};return i.init=t,i.read=Lo,i.write=$o,i}function Lo(t){return t(this)}function $o(t,e,n){return e(this,typeof n=="function"?n(t(this)):n)}const zn=(t,e)=>t.unstable_is?t.unstable_is(e):e===t,Hn=t=>"init"in t,Gn=t=>!!t.write,tn=new WeakMap,Do=(t,e)=>{tn.set(t,e),t.catch(()=>{}).finally(()=>tn.delete(t))},er=(t,e)=>{const n=tn.get(t);n&&(tn.delete(t),n(e))},tr=(t,e)=>{t.status="fulfilled",t.value=e},nr=(t,e)=>{t.status="rejected",t.reason=e},Io=t=>typeof(t==null?void 0:t.then)=="function",ot=(t,e)=>!!t&&"v"in t&&"v"in e&&Object.is(t.v,e.v),ir=(t,e)=>!!t&&"e"in t&&"e"in e&&Object.is(t.e,e.e),Ue=t=>!!t&&"v"in t&&t.v instanceof Promise,Vo=(t,e)=>"v"in t&&"v"in e&&t.v.orig&&t.v.orig===e.v.orig,Bt=t=>{if("e"in t)throw t.e;return t.v},ua=()=>{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 b;if(!i.has(v)){const A=s(v);(b=n[n.length-1])==null||b.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)),Ue(v)){const b="v"in O?O.v instanceof Promise?O.v:Promise.resolve(O.v):Promise.reject(O.e);v.v!==b&&er(v.v,b)}},u=(g,O,E,v)=>{const b=new Map(v?O.d:null);let A=!1;E.forEach((N,C)=>{!N&&zn(g,C)&&(N=O),N?(b.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!==b.size)&&(O.d=b)},d=(g,O,E,v)=>{const b=s(g),A={d:(b==null?void 0:b.d)||new Map,v:O};if(E&&u(g,A,E,v),ot(b,A)&&b.d===A.d)return b;if(Ue(b)&&Ue(A)&&Vo(b,A)){if(b.d===A.d)return b;A.v=b.v}return l(g,A),A},c=(g,O,E,v)=>{if(Io(O)){let b;const A=()=>{const C=s(g);if(!Ue(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,tr(N,L),C(L),A())},L=>{R||(R=!0,nr(N,L),V(L),A())}),b=L=>{R||(R=!0,L.then(q=>tr(N,q),q=>nr(N,q)),C(L))}});return N.orig=O,N.status="pending",Do(N,C=>{C&&b(C),v==null||v()}),d(g,N,E,!0)}return d(g,O,E)},f=(g,O,E)=>{const v=s(g),b={d:(v==null?void 0:v.d)||new Map,e:O};return E&&u(g,b,E),ir(v,b)&&v.d===b.d?v:(l(g,b),b)},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||ot(q,L)})))return E;const v=new Map;let b=!0;const A=R=>{if(zn(g,R)){const q=s(R);if(q)return v.set(R,q),Bt(q);if(Hn(R))return v.set(R,void 0),R.init;throw new Error("no atom init")}const L=k(R);return v.set(R,L),Bt(L)};let N,C;const V={get signal(){return N||(N=new AbortController),N.signal},get setSelf(){return(W?"production":void 0)!=="production"&&!Gn(g)&&console.warn("setSelf function cannot be used with read-only atom"),!C&&Gn(g)&&(C=(...R)=>{if((W?"production":void 0)!=="production"&&b&&console.warn("setSelf function cannot be called in sync"),!b)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{b=!1}},p=g=>Bt(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,b=N=>{if(!v.has(N)){v.add(N);for(const C of O(N))N!==C&&b(C);E.push(N)}};b(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);ot(V,L)||A.add(C)}}},S=(g,...O)=>{const E=A=>Bt(k(A)),v=(A,...N)=>{const C=n.length>0;C||n.push(new Set([A]));let V;if(zn(g,A)){if(!Hn(A))throw new Error("atom not writable");const R=s(A),L=c(A,N[0]);ot(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(b=>b({type:"write",flushed:v})),E},x=(g,O,E)=>{var v;const b=e.get(g);if(b)return O&&b.t.add(O),b;const A=E||[];(v=s(g))==null||v.d.forEach((C,V)=>{V!==g&&x(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),Gn(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?(Ue(v)&&er(v.v),v.d.forEach((b,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()),b=new Set;E==null||E.forEach((A,N)=>{if(v.has(N)){v.delete(N);return}b.add(N);const C=e.get(N);C&&C.t.delete(g)}),v.forEach(A=>{x(A,g)}),b.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=b=>{var A;if(!i.has(b))return;const[N,C]=i.get(b);i.delete(b),E.push([b,N]),C.forEach(v),(A=s(b))==null||A.d.forEach((V,R)=>v(R))};if(g.forEach(v),E.forEach(([b,A])=>{const N=s(b);if(!N){(W?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush");return}if(N!==A){const C=e.get(b);C&&N.d!==(A==null?void 0:A.d)&&P(b,N,A==null?void 0:A.d),C&&!(!Ue(A)&&(ot(A,N)||ir(A,N)))&&(C.l.forEach(V=>V()),(W?"production":void 0)!=="production"&&O.add(b))}}),(W?"production":void 0)!=="production")return O},M=(g,O)=>{const E=x(g),v=j([g]),b=E.l;return b.add(O),(W?"production":void 0)!=="production"&&r.forEach(A=>A({type:"sub",flushed:v})),()=>{b.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:M,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)Hn(E)&&(c(E,v),m(E));const O=j(n.pop());r.forEach(E=>E({type:"restore",flushed:O}))}}:{get:p,set:y,sub:M}};let lt;const jo=()=>(lt||(lt=ua(),(W?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=lt),globalThis.__JOTAI_DEFAULT_STORE__!==lt&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),lt),Uo=ua,Mo=jo;var Bo={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STAGE:"dev"};const zo=z.createContext(void 0),da=t=>z.useContext(zo)||Mo(),Ho=t=>typeof(t==null?void 0:t.then)=="function",Go=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 Ko(t,e){const n=da(),[[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),Ho(o)?Go(o):o}function qo(t,e){const n=da();return z.useCallback((...r)=>{if((Bo?"production":void 0)!=="production"&&!("write"in t))throw new Error("not writable atom");return n.set(t,...r)},[n,t])}function Wo(t,e){return[Ko(t),qo(t)]}const bn=Po(null);bn.debugLabel="accountAtom";var Jo={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STAGE:"dev"};const{NZ_AWS_REGION:Yo,NZ_BACKOFFICE_BACK_URL:Xo,NZ_CORE_SERVICES_GRAPHQL_URL:Zo,NZ_CORE_SERVICES_REST_URL:Qo}=Jo,el={AWS:{region:Yo,cognito:{userPoolId:"us-east-1_knSlGEmJ0",userPoolWebClientId:"3hmbfhf7nl3kq20qr9i5lihf1p"}},apiUrls:{restV1:Xo||"https://pabprg32bj.execute-api.us-east-1.amazonaws.com",restV2:Qo||"https://core-services-dev.nizza.com/api",graphql:Zo||"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 tl(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)}function D(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 nl={};function Ti(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:nl}var ca=Object.assign,nn=Object.getOwnPropertyDescriptor,ce=Object.defineProperty,_n=Object.prototype,li=[];Object.freeze(li);var fa={};Object.freeze(fa);var il=typeof Proxy!="undefined",rl=Object.toString();function ma(){il||D("Proxy not available")}function ha(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var Ke=function(){};function se(t){return typeof t=="function"}function Te(t){var e=typeof t;switch(e){case"string":case"symbol":case"number":return!0}return!1}function Sn(t){return t!==null&&typeof t=="object"}function Ne(t){if(!Sn(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()===rl}function pa(t){var e=t==null?void 0:t.constructor;return e?e.name==="GeneratorFunction"||e.displayName==="GeneratorFunction":!1}function Nn(t,e,n){ce(t,e,{enumerable:!1,writable:!0,configurable:!0,value:n})}function ga(t,e,n){ce(t,e,{enumerable:!1,writable:!1,configurable:!0,value:n})}function $e(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(i){return Sn(i)&&i[n]===!0}}function et(t){return t instanceof Map}function xt(t){return t instanceof Set}var va=typeof Object.getOwnPropertySymbols!="undefined";function al(t){var e=Object.keys(t);if(!va)return e;var n=Object.getOwnPropertySymbols(t);return n.length?[].concat(e,n.filter(function(i){return _n.propertyIsEnumerable.call(t,i)})):e}var An=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:va?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames;function ka(t){return t===null?null:typeof t=="object"?""+t:t}function ge(t,e){return _n.hasOwnProperty.call(t,e)}var sl=Object.getOwnPropertyDescriptors||function(e){var n={};return An(e).forEach(function(i){n[i]=nn(e,i)}),n};function ol(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,dl(i.key),i)}}function xi(t,e,n){return e&&ol(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 ya(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ui(t,e)}function ui(t,e){return ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},ui(t,e)}function Kn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ll(t,e){if(t){if(typeof t=="string")return rr(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 rr(t,e)}}function rr(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 qe(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=ll(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 ul(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 dl(t){var e=ul(t,"string");return typeof e=="symbol"?e:String(e)}var le=Symbol("mobx-stored-annotations");function fe(t){function e(n,i){if(Rt(i))return t.decorate_20223_(n,i);tt(n,i,t)}return Object.assign(e,t)}function tt(t,e,n){ge(t,le)||Nn(t,le,xe({},t[le])),yl(n)||(t[le][e]=n)}function cl(t){return ge(t,le)||Nn(t,le,xe({},t[le])),t[le]}function Rt(t){return typeof t=="object"&&typeof t.kind=="string"}var T=Symbol("mobx administration"),Pt=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 Ia(this)},e.reportChanged=function(){Q(),Va(this),ee()},e.toString=function(){return this.name_},t}(),Ri=$e("Atom",Pt);function ba(t,e,n){e===void 0&&(e=Ke),n===void 0&&(n=Ke);var i=new Pt(t);return e!==Ke&&Nu(i,e),n!==Ke&&za(i,n),i}function fl(t,e){return t===e}function ml(t,e){return ji(t,e)}function hl(t,e){return ji(t,e,1)}function pl(t,e){return Object.is?Object.is(t,e):t===e?t!==0||1/t===1/e:t!==t&&e!==e}var rn={identity:fl,structural:ml,default:pl,shallow:hl};function Re(t,e,n){return qa(t)?t:Array.isArray(t)?K.array(t,{name:n}):Ne(t)?K.object(t,void 0,{name:n}):et(t)?K.map(t,{name:n}):xt(t)?K.set(t,{name:n}):typeof t=="function"&&!Fn(t)&&!Nt(t)?pa(t)?Ye(t):St(n,t):t}function gl(t,e,n){if(t==null||Tn(t)||Cn(t)||Ie(t)||nt(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(et(t))return K.map(t,{name:n,deep:!1});if(xt(t))return K.set(t,{name:n,deep:!1})}function wn(t){return t}function vl(t,e){return ji(t,e)?e:t}var kl="override";function yl(t){return t.annotationType_===kl}function Lt(t,e){return{annotationType_:t,options_:e,make_:bl,extend_:_l,decorate_20223_:Sl}}function bl(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(Fn(n.value))return 1;var a=_a(t,this,e,n,!1);return ce(i,e,a),2}function _l(t,e,n,i){var r=_a(t,this,e,n);return t.defineProperty_(e,r,i)}function Sl(t,e){var n=e.kind,i=e.name,r=e.addInitializer,a=this,s=function(u){var d,c,f,k;return Pe((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(){tt(this,i,a)});return}if(n=="method"){var o;return Fn(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}D("Cannot apply '"+a.annotationType_+"' to '"+String(i)+"' (kind: "+n+"):"+(`
|
|
3
|
+
'`+a.annotationType_+"' can only be used on properties with a function value."))}function Nl(t,e,n,i){e.annotationType_,i.value}function _a(t,e,n,i,r){var a,s,o,l,u,d,c;r===void 0&&(r=_.safeDescriptors),Nl(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:Pe((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 Sa(t,e){return{annotationType_:t,options_:e,make_:Al,extend_:wl,decorate_20223_:Ol}}function Al(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)||!Nt(t.target_[e]))&&this.extend_(t,e,n,!1)===null)return 0;if(Nt(n.value))return 1;var a=Na(t,this,e,n,!1,!1);return ce(i,e,a),2}function wl(t,e,n,i){var r,a=Na(t,this,e,n,(r=this.options_)==null?void 0:r.bound);return t.defineProperty_(e,a,i)}function Ol(t,e){var n,i=e.name,r=e.addInitializer;return Nt(t)||(t=Ye(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 El(t,e,n,i){e.annotationType_,i.value}function Na(t,e,n,i,r,a){a===void 0&&(a=_.safeDescriptors),El(t,e,n,i);var s=i.value;if(Nt(s)||(s=Ye(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 Pi(t,e){return{annotationType_:t,options_:e,make_:Fl,extend_:Cl,decorate_20223_:Tl}}function Fl(t,e,n){return this.extend_(t,e,n,!1)===null?0:1}function Cl(t,e,n,i){return xl(t,this,e,n),t.defineComputedProperty_(e,xe({},this.options_,{get:n.get,set:n.set}),i)}function Tl(t,e){var n=this,i=e.name,r=e.addInitializer;return r(function(){var a=it(this)[T],s=xe({},n.options_,{get:t,context:this});s.name||(s.name="ObservableObject."+i.toString()),a.values_.set(i,new Je(s))}),function(){return this[T].getObservablePropValue_(i)}}function xl(t,e,n,i){e.annotationType_,i.get}function On(t,e){return{annotationType_:t,options_:e,make_:Rl,extend_:Pl,decorate_20223_:Ll}}function Rl(t,e,n){return this.extend_(t,e,n,!1)===null?0:1}function Pl(t,e,n,i){var r,a;return $l(t,this),t.defineObservableProperty_(e,n.value,(r=(a=this.options_)==null?void 0:a.enhancer)!=null?r:Re,i)}function Ll(t,e){var n=this,i=e.kind,r=e.name,a=new WeakSet;function s(o,l){var u,d,c=it(o)[T],f=new Fe(l,(u=(d=n.options_)==null?void 0:d.enhancer)!=null?u:Re,"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[T].getObservablePropValue_(r)},set:function(l){return a.has(this)||s(this,l),this[T].setObservablePropValue_(r,l)},init:function(l){return a.has(this)||s(this,l),l}}}function $l(t,e,n,i){e.annotationType_}var Dl="true",Il=Aa();function Aa(t){return{annotationType_:Dl,options_:t,make_:Vl,extend_:jl,decorate_20223_:Ul}}function Vl(t,e,n,i){var r,a;if(n.get)return Ee.make_(t,e,n,i);if(n.set){var s=Pe(e.toString(),n.set);return i===t.target_?t.defineProperty_(e,{configurable:_.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(pa(n.value)){var l,u=(l=this.options_)!=null&&l.autoBind?Ye.bound:Ye;return u.make_(t,e,n,i)}var d=(o=this.options_)!=null&&o.autoBind?St.bound:St;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 jl(t,e,n,i){var r,a;if(n.get)return Ee.extend_(t,e,n,i);if(n.set)return t.defineProperty_(e,{configurable:_.safeDescriptors?t.isPlainObject_:!0,set:Pe(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 Ul(t,e){D("'"+this.annotationType_+"' cannot be used as a decorator")}var Ml="observable",Bl="observable.ref",zl="observable.shallow",Hl="observable.struct",wa={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(wa);function zt(t){return t||wa}var di=On(Ml),Gl=On(Bl,{enhancer:wn}),Kl=On(zl,{enhancer:gl}),ql=On(Hl,{enhancer:vl}),Oa=fe(di);function Ht(t){return t.deep===!0?Re:t.deep===!1?wn:Jl(t.defaultDecorator)}function Wl(t){var e;return t?(e=t.defaultDecorator)!=null?e:Aa(t):void 0}function Jl(t){var e,n;return t&&(e=(n=t.options_)==null?void 0:n.enhancer)!=null?e:Re}function Ea(t,e,n){if(Rt(e))return di.decorate_20223_(t,e);if(Te(e)){tt(t,e,di);return}return qa(t)?t:Ne(t)?K.object(t,e,n):Array.isArray(t)?K.array(t,e):et(t)?K.map(t,e):xt(t)?K.set(t,e):typeof t=="object"&&t!==null?t:K.box(t,e)}ca(Ea,Oa);var Yl={box:function(e,n){var i=zt(n);return new Fe(e,Ht(i),i.name,!0,i.equals)},array:function(e,n){var i=zt(n);return(_.useProxies===!1||i.proxy===!1?qu:Iu)(e,Ht(i),i.name)},map:function(e,n){var i=zt(n);return new Za(e,Ht(i),i.name)},set:function(e,n){var i=zt(n);return new ts(e,Ht(i),i.name)},object:function(e,n,i){return Ve(function(){return Eu(_.useProxies===!1||(i==null?void 0:i.proxy)===!1?it({},i):Lu({},i),e,n)})},ref:fe(Gl),shallow:fe(Kl),deep:Oa,struct:fe(ql)},K=ca(Ea,Yl),Fa="computed",Xl="computed.struct",ci=Pi(Fa),Zl=Pi(Xl,{equals:rn.structural}),Ee=function(e,n){if(Rt(n))return ci.decorate_20223_(e,n);if(Te(n))return tt(e,n,ci);if(Ne(e))return fe(Pi(Fa,e));var i=Ne(n)?n:{};return i.get=e,i.name||(i.name=e.name||""),new Je(i)};Object.assign(Ee,ci);Ee.struct=fe(Zl);var ar,sr,an=0,Ql=1,eu=(ar=(sr=nn(function(){},"name"))==null?void 0:sr.configurable)!=null?ar:!1,or={value:"action",configurable:!0,writable:!1,enumerable:!1};function Pe(t,e,n,i){n===void 0&&(n=!1);function r(){return tu(t,n,e,i||this,arguments)}return r.isMobxAction=!0,r.toString=function(){return e.toString()},eu&&(or.value=t,ce(r,"name",or)),r}function tu(t,e,n,i,r){var a=nu(t,e);try{return n.apply(i,r)}catch(s){throw a.error_=s,s}finally{iu(a)}}function nu(t,e,n,i){var r=!1,a=0,s=_.trackingDerivation,o=!e||!s;Q();var l=_.allowStateChanges;o&&(De(),l=Li(!0));var u=Di(!0),d={runAsAction_:o,prevDerivation_:s,prevAllowStateChanges_:l,prevAllowStateReads_:u,notifySpy_:r,startTime_:a,actionId_:Ql++,parentActionId_:an};return an=d.actionId_,d}function iu(t){an!==t.actionId_&&D(30),an=t.parentActionId_,t.error_!==void 0&&(_.suppressReactionErrors=!0),$i(t.prevAllowStateChanges_),ht(t.prevAllowStateReads_),ee(),t.runAsAction_&&ve(t.prevDerivation_),_.suppressReactionErrors=!1}function Li(t){var e=_.allowStateChanges;return _.allowStateChanges=t,e}function $i(t){_.allowStateChanges=t}var Ca;Ca=Symbol.toPrimitive;var Fe=function(t){ya(e,t);function e(i,r,a,s,o){var l;return a===void 0&&(a="ObservableValue"),o===void 0&&(o=rn.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!==_.UNCHANGED&&this.setNewValue_(r)},n.prepareNewValue_=function(r){if(X(this)){var a=Z(this,{object:this,type:me,newValue:r});if(!a)return _.UNCHANGED;r=a.newValue}return r=this.enhancer(r,this.value_,this.name_),this.equals(this.value_,r)?_.UNCHANGED:r},n.setNewValue_=function(r){var a=this.value_;this.value_=r,this.reportChanged(),re(this)&&ae(this,{type:me,object:this,newValue:r,oldValue:a})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(r){return $t(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}),Dt(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 ka(this.get())},n[Ca]=function(){return this.valueOf()},e}(Pt),Ta;Ta=Symbol.toPrimitive;var Je=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 on(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_=sn.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||D(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=Pe("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?rn.structural:rn.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var e=t.prototype;return e.onBecomeStale_=function(){lu(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_&&D(32,this.name_,this.derivation),_.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)fi(this)&&(this.warnAboutUntrackedRead_(),Q(),this.value_=this.computeValue_(!1),ee());else if(Ia(this),fi(this)){var i=_.trackingContext;this.keepAlive_&&!i&&(_.trackingContext=this),this.trackAndCompute()&&ou(this),_.trackingContext=i}var r=this.value_;if(Wt(r))throw r.cause;return r},e.set=function(i){if(this.setter_){this.isRunningSetter_&&D(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,i)}finally{this.isRunningSetter_=!1}}else D(34,this.name_)},e.trackAndCompute=function(){var i=this.value_,r=this.dependenciesState_===I.NOT_TRACKING_,a=this.computeValue_(!0),s=r||Wt(i)||Wt(a)||!this.equals_(i,a);return s&&(this.value_=a),s},e.computeValue_=function(i){this.isComputing_=!0;var r=Li(!1),a;if(i)a=xa(this,this.derivation,this.scope_);else if(_.disableErrorBoundaries===!0)a=this.derivation.call(this.scope_);else try{a=this.derivation.call(this.scope_)}catch(s){a=new on(s)}return $i(r),this.isComputing_=!1,a},e.suspend_=function(){this.keepAlive_||(mi(this),this.value_=void 0)},e.observe_=function(i,r){var a=this,s=!0,o=void 0;return ku(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 ka(this.get())},e[Ta]=function(){return this.valueOf()},t}(),En=$e("ComputedValue",Je),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 sn;(function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"})(sn||(sn={}));var on=function(e){this.cause=void 0,this.cause=e};function Wt(t){return t instanceof on}function fi(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=Di(!0),n=De(),i=t.observing_,r=i.length,a=0;a<r;a++){var s=i[a];if(En(s)){if(_.disableErrorBoundaries)s.get();else try{s.get()}catch{return ve(n),ht(e),!0}if(t.dependenciesState_===I.STALE_)return ve(n),ht(e),!0}}return Pa(t),ve(n),ht(e),!1}}}function xa(t,e,n){var i=Di(!0);Pa(t),t.newObserving_=new Array(t.runId_===0?100:t.observing_.length),t.unboundDepsCount_=0,t.runId_=++_.runId;var r=_.trackingDerivation;_.trackingDerivation=t,_.inBatch++;var a;if(_.disableErrorBoundaries===!0)a=e.call(n);else try{a=e.call(n)}catch(s){a=new on(s)}return _.inBatch--,_.trackingDerivation=r,ru(t),ht(i),a}function ru(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&&$a(l,t),l.diffValue_=0}for(;r--;){var u=n[r];u.diffValue_===1&&(u.diffValue_=0,su(u,t))}i!==I.UP_TO_DATE_&&(t.dependenciesState_=i,t.onBecomeStale_())}function mi(t){var e=t.observing_;t.observing_=[];for(var n=e.length;n--;)$a(e[n],t);t.dependenciesState_=I.NOT_TRACKING_}function Ra(t){var e=De();try{return t()}finally{ve(e)}}function De(){var t=_.trackingDerivation;return _.trackingDerivation=null,t}function ve(t){_.trackingDerivation=t}function Di(t){var e=_.allowStateReads;return _.allowStateReads=t,e}function ht(t){_.allowStateReads=t}function Pa(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 Jt=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},Yt=!0,La=!1,_=function(){var t=Ti();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Yt=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==new Jt().version&&(Yt=!1),Yt?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new Jt):(setTimeout(function(){La||D(35)},1),new Jt)}();function au(){if((_.pendingReactions.length||_.inBatch||_.isRunningReactions)&&D(36),La=!0,Yt){var t=Ti();--t.__mobxInstanceCount===0&&(t.__mobxGlobals=void 0),_=new Jt}}function su(t,e){t.observers_.add(e),t.lowestObserverState_>e.dependenciesState_&&(t.lowestObserverState_=e.dependenciesState_)}function $a(t,e){t.observers_.delete(e),t.observers_.size===0&&Da(t)}function Da(t){t.isPendingUnobservation_===!1&&(t.isPendingUnobservation_=!0,_.pendingUnobservations.push(t))}function Q(){_.inBatch++}function ee(){if(--_.inBatch===0){ja();for(var t=_.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 Je&&n.suspend_())}_.pendingUnobservations=[]}}function Ia(t){var e=_.trackingDerivation;return e!==null?(e.runId_!==t.lastAccessedBy_&&(t.lastAccessedBy_=e.runId_,e.newObserving_[e.unboundDepsCount_++]=t,!t.isBeingObserved_&&_.trackingContext&&(t.isBeingObserved_=!0,t.onBO())),t.isBeingObserved_):(t.observers_.size===0&&_.inBatch>0&&Da(t),!1)}function Va(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 ou(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 lu(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 _t=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_=sn.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,_.pendingReactions.push(this),ja())},e.isScheduled=function(){return this.isScheduled_},e.runReaction_=function(){if(!this.isDisposed_){Q(),this.isScheduled_=!1;var i=_.trackingContext;if(_.trackingContext=this,fi(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(r){this.reportExceptionInDerivation_(r)}}_.trackingContext=i,ee()}},e.track=function(i){if(!this.isDisposed_){Q(),this.isRunning_=!0;var r=_.trackingContext;_.trackingContext=this;var a=xa(this,i,void 0);_.trackingContext=r,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&mi(this),Wt(a)&&this.reportExceptionInDerivation_(a.cause),ee()}},e.reportExceptionInDerivation_=function(i){var r=this;if(this.errorHandler_){this.errorHandler_(i,this);return}if(_.disableErrorBoundaries)throw i;var a="[mobx] uncaught error in '"+this+"'";_.suppressReactionErrors||console.error(a,i),_.globalReactionErrorHandlers.forEach(function(s){return s(i,r)})},e.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Q(),mi(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[T]=this,a},e.toString=function(){return"Reaction["+this.name_+"]"},e.trace=function(i){},t}(),uu=100,hi=function(e){return e()};function ja(){_.inBatch>0||_.isRunningReactions||hi(du)}function du(){_.isRunningReactions=!0;for(var t=_.pendingReactions,e=0;t.length>0;){++e===uu&&(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_()}_.isRunningReactions=!1}var ln=$e("Reaction",_t);function cu(t){var e=hi;hi=function(i){return t(function(){return e(i)})}}function pt(){return!1}function fu(t){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Ua="action",mu="action.bound",Ma="autoAction",hu="autoAction.bound",pu="<unnamed action>",pi=Lt(Ua),gu=Lt(mu,{bound:!0}),gi=Lt(Ma,{autoAction:!0}),vu=Lt(hu,{autoAction:!0,bound:!0});function Ba(t){var e=function(i,r){if(se(i))return Pe(i.name||pu,i,t);if(se(r))return Pe(i,r,t);if(Rt(r))return(t?gi:pi).decorate_20223_(i,r);if(Te(r))return tt(i,r,t?gi:pi);if(Te(i))return fe(Lt(t?Ma:Ua,{name:i,autoAction:t}))};return e}var be=Ba(!1);Object.assign(be,pi);var St=Ba(!0);Object.assign(St,gi);be.bound=fe(gu);St.bound=fe(vu);function Fn(t){return se(t)&&t.isMobxAction===!0}function ku(t,e){var n,i,r,a,s;e===void 0&&(e=fa);var o=(n=(i=e)==null?void 0:i.name)!=null?n:"Autorun",l=!e.scheduler&&!e.delay,u;if(l)u=new _t(o,function(){this.track(f)},e.onError,e.requiresObservable);else{var d=bu(e),c=!1;u=new _t(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 yu=function(e){return e()};function bu(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:yu}var _u="onBO",Su="onBUO";function Nu(t,e,n){return Ha(_u,t,e,n)}function za(t,e,n){return Ha(Su,t,e,n)}function Ha(t,e,n,i){var r=cn(e),a=se(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 Au="never",Gt="always",wu="observed";function Ou(t){t.isolateGlobalState===!0&&au();var e=t.useProxies,n=t.enforceActions;if(e!==void 0&&(_.useProxies=e===Gt?!0:e===Au?!1:typeof Proxy!="undefined"),e==="ifavailable"&&(_.verifyProxies=!0),n!==void 0){var i=n===Gt?Gt:n===wu;_.enforceActions=i,_.allowStateChanges=!(i===!0||i===Gt)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(r){r in t&&(_[r]=!!t[r])}),_.allowStateReads=!_.observableRequiresReaction,t.reactionScheduler&&cu(t.reactionScheduler)}function Eu(t,e,n,i){var r=sl(e);return Ve(function(){var a=it(t,i)[T];An(r).forEach(function(s){a.extend_(s,r[s],n&&s in n?n[s]:!0)})}),t}function Fu(t,e){return Ga(cn(t,e))}function Ga(t){var e={name:t.name_};return t.observing_&&t.observing_.length>0&&(e.dependencies=Cu(t.observing_).map(Ga)),e}function Cu(t){return Array.from(new Set(t))}var Tu=0;function Ka(){this.message="FLOW_CANCELLED"}Ka.prototype=Object.create(Error.prototype);var qn=Sa("flow"),xu=Sa("flow.bound",{bound:!0}),Ye=Object.assign(function(e,n){if(Rt(n))return qn.decorate_20223_(e,n);if(Te(n))return tt(e,n,qn);var i=e,r=i.name||"<unnamed flow>",a=function(){var o=this,l=arguments,u=++Tu,d=be(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=be(r+" - runid: "+u+" - yield "+S++,d.next).call(d,F)}catch(j){return m(j)}U(P)}function x(F){f=void 0;var P;try{P=be(r+" - runid: "+u+" - yield "+S++,d.throw).call(d,F)}catch(j){return m(j)}U(P)}function U(F){if(se(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,x))}y(void 0)});return k.cancel=be(r+" - runid: "+u+" - cancel",function(){try{f&&lr(f);var p=d.return(void 0),m=Promise.resolve(p.value);m.then(Ke,Ke),lr(m),c(new Ka)}catch(S){c(S)}}),k};return a.isMobXFlow=!0,a},qn);Ye.bound=fe(xu);function lr(t){se(t.cancel)&&t.cancel()}function Nt(t){return(t==null?void 0:t.isMobXFlow)===!0}function Ru(t,e){return t?Tn(t)||!!t[T]||Ri(t)||ln(t)||En(t):!1}function qa(t){return Ru(t)}function pe(t,e){e===void 0&&(e=void 0),Q();try{return t.apply(e)}finally{ee()}}function Me(t){return t[T]}var Pu={has:function(e,n){return Me(e).has_(n)},get:function(e,n){return Me(e).get_(n)},set:function(e,n,i){var r;return Te(n)?(r=Me(e).set_(n,i,!0))!=null?r:!0:!1},deleteProperty:function(e,n){var i;return Te(n)?(i=Me(e).delete_(n,!0))!=null?i:!0:!1},defineProperty:function(e,n,i){var r;return(r=Me(e).defineProperty_(n,i))!=null?r:!0},ownKeys:function(e){return Me(e).ownKeys_()},preventExtensions:function(e){D(13)}};function Lu(t,e){var n,i;return ma(),t=it(t,e),(i=(n=t[T]).proxy_)!=null?i:n.proxy_=new Proxy(t,Pu)}function X(t){return t.interceptors_!==void 0&&t.interceptors_.length>0}function $t(t,e){var n=t.interceptors_||(t.interceptors_=[]);return n.push(e),ha(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&&D(14),!!e);r++);return e}finally{ve(n)}}function re(t){return t.changeListeners_!==void 0&&t.changeListeners_.length>0}function Dt(t,e){var n=t.changeListeners_||(t.changeListeners_=[]);return n.push(e),ha(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function ae(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 Wa(t,e,n){return Ve(function(){var i,r=it(t,n)[T];(i=e)!=null||(e=cl(t)),An(e).forEach(function(a){return r.make_(a,e[a])})}),t}var ur="splice",me="update",$u=1e4,Du={get:function(e,n){var i=e[T];return n===T?i:n==="length"?i.getArrayLength_():typeof n=="string"&&!isNaN(n)?i.get_(parseInt(n)):ge(un,n)?un[n]:e[n]},set:function(e,n,i){var r=e[T];return n==="length"&&r.setArrayLength_(i),typeof n=="symbol"||isNaN(n)?e[n]=i:r.set_(parseInt(n),i),!0},preventExtensions:function(){D(15)}},Ii=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 Pt(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 $t(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}),Dt(this,i)},e.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},e.setArrayLength_=function(i){(typeof i!="number"||isNaN(i)||i<0)&&D("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_&&D(16),this.lastKnownLength_+=r,this.legacyMode_&&r>0&&as(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=li),X(this)){var l=Z(this,{object:this.proxy_,type:ur,index:i,removedCount:r,added:a});if(!l)return li;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<$u){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_&&pt(),o=re(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&&ae(this,l)},e.notifyArraySplice_=function(i,r,a){var s=!this.owned_&&pt(),o=re(this),l=o||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:ur,index:i,removed:a,added:r,removedCount:a.length,addedCount:r.length}:null;this.atom_.reportChanged(),o&&ae(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&&D(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 Iu(t,e,n,i){return n===void 0&&(n="ObservableArray"),i===void 0&&(i=!1),ma(),Ve(function(){var r=new Ii(n,e,i,!1);ga(r.values_,T,r);var a=new Proxy(r.values_,Du);return r.proxy_=a,t&&t.length&&r.spliceWithArray_(0,0,t),a})}var un={clear:function(){return this.splice(0)},replace:function(e){var n=this[T];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[T];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[T].spliceWithArray_(e,n,i)},push:function(){for(var e=this[T],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[T].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[T],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 _.trackingDerivation&&D(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){_.trackingDerivation&&D(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var n=this[T],i=n.dehanceValues_(n.values_).indexOf(e);return i>-1?(this.splice(i,1),!0):!1}};B("at",Y);B("concat",Y);B("flat",Y);B("includes",Y);B("indexOf",Y);B("join",Y);B("lastIndexOf",Y);B("slice",Y);B("toString",Y);B("toLocaleString",Y);B("toSorted",Y);B("toSpliced",Y);B("with",Y);B("every",oe);B("filter",oe);B("find",oe);B("findIndex",oe);B("findLast",oe);B("findLastIndex",oe);B("flatMap",oe);B("forEach",oe);B("map",oe);B("some",oe);B("toReversed",oe);B("reduce",Ja);B("reduceRight",Ja);function B(t,e){typeof Array.prototype[t]=="function"&&(un[t]=e(t))}function Y(t){return function(){var e=this[T];e.atom_.reportObserved();var n=e.dehanceValues_(e.values_);return n[t].apply(n,arguments)}}function oe(t){return function(e,n){var i=this,r=this[T];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[T];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 Vu=$e("ObservableArrayAdministration",Ii);function Cn(t){return Sn(t)&&Vu(t[T])}var Ya,Xa,ju={},_e="add",dn="delete";Ya=Symbol.iterator;Xa=Symbol.toStringTag;var Za=function(){function t(n,i,r){var a=this;i===void 0&&(i=Re),r===void 0&&(r="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[T]=ju,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,se(Map)||D(18),Ve(function(){a.keysAtom_=ba("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(!_.trackingDerivation)return this.has_(i);var a=this.hasMap_.get(i);if(!a){var s=a=new Fe(this.has_(i),wn,"ObservableMap.key?",!1);this.hasMap_.set(i,s),za(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:_e,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:dn,object:this,name:i});if(!a)return!1}if(this.has_(i)){var s=pt(),o=re(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:dn,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&&ae(this,l),!0}return!1},e.updateValue_=function(i,r){var a=this.data_.get(i);if(r=a.prepareNewValue_(r),r!==_.UNCHANGED){var s=pt(),o=re(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&&ae(this,l)}},e.addValue_=function(i,r){var a=this;this.keysAtom_,pe(function(){var u,d=new Fe(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=pt(),o=re(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:_e,object:this,name:i,newValue:r}:null;o&&ae(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 At({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 At({next:function(){var s=r.next(),o=s.done,l=s.value;return{done:o,value:o?void 0:[l,i.get(l)]}}})},e[Ya]=function(){return this.entries()},e.forEach=function(i,r){for(var a=qe(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 Ie(i)&&(i=new Map(i)),pe(function(){Ne(i)?al(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)}):et(i)?(i.constructor!==Map&&D(19,i),i.forEach(function(a,s){return r.set(s,a)})):i!=null&&D(20,i)}),this},e.clear=function(){var i=this;pe(function(){Ra(function(){for(var r=qe(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=Uu(i),s=new Map,o=!1,l=qe(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=qe(a.entries()),p;!(p=k()).done;){var m=p.value,S=m[0],y=m[1],x=r.data_.has(S);if(r.set(S,y),r.data_.has(S)){var U=r.data_.get(S);s.set(S,U),x||(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(),M=P.next();!j.done;){if(j.value!==M.value){r.keysAtom_.reportChanged();break}j=F.next(),M=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 Dt(this,i)},e.intercept_=function(i){return $t(this,i)},xi(t,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Xa,get:function(){return"Map"}}]),t}(),Ie=$e("ObservableMap",Za);function Uu(t){if(et(t)||Ie(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 D(21,t)}var Qa,es,Mu={};Qa=Symbol.iterator;es=Symbol.toStringTag;var ts=function(){function t(n,i,r){var a=this;i===void 0&&(i=Re),r===void 0&&(r="ObservableSet"),this.name_=void 0,this[T]=Mu,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,se(Set)||D(22),this.enhancer_=function(s,o){return i(s,o,r)},Ve(function(){a.atom_=ba(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(){Ra(function(){for(var r=qe(i.data_.values()),a;!(a=r()).done;){var s=a.value;i.delete(s)}})})},e.forEach=function(i,r){for(var a=qe(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:_e,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=re(this),l=o||s?{observableKind:"set",debugObjectName:this.name_,type:_e,object:this,newValue:i}:null;o&&ae(this,l)}return this},e.delete=function(i){var r=this;if(X(this)){var a=Z(this,{type:dn,object:this,oldValue:i});if(!a)return!1}if(this.has(i)){var s=!1,o=re(this),l=o||s?{observableKind:"set",debugObjectName:this.name_,type:dn,object:this,oldValue:i}:null;return pe(function(){r.atom_.reportChanged(),r.data_.delete(i)}),o&&ae(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 At({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 At({next:function(){return r<a.length?{value:i.dehanceValue_(a[r++]),done:!1}:{done:!0}}})},e.replace=function(i){var r=this;return nt(i)&&(i=new Set(i)),pe(function(){Array.isArray(i)?(r.clear(),i.forEach(function(a){return r.add(a)})):xt(i)?(r.clear(),i.forEach(function(a){return r.add(a)})):i!=null&&D("Cannot initialize set from "+i)}),this},e.observe_=function(i,r){return Dt(this,i)},e.intercept_=function(i){return $t(this,i)},e.toJSON=function(){return Array.from(this)},e.toString=function(){return"[object ObservableSet]"},e[Qa]=function(){return this.values()},xi(t,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:es,get:function(){return"Set"}}]),t}(),nt=$e("ObservableSet",ts),dr=Object.create(null),cr="remove",ns=function(){function t(n,i,r,a){i===void 0&&(i=new Map),a===void 0&&(a=Il),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 Pt("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 Je)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!==_.UNCHANGED){var o=re(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&&ae(this,u)}return!0},e.get_=function(i){return _.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(!_.trackingDerivation)return i in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var r=this.pendingKeys_.get(i);return r||(r=new Fe(i in this.target_,wn,"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;D(1,r.annotationType_,this.name_+"."+i.toString())}for(var s=this.target_;s&&s!==_n;){var o=nn(s,i);if(o){var l=r.make_(this,i,o,s);if(l===0)return;if(l===1)break}s=Object.getPrototypeOf(s)}mr(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&&mr(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:_e,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:_e,newValue:r});if(!l)return null;r=l.newValue}var u=fr(i),d={configurable:_.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 Fe(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:_e,newValue:void 0});if(!o)return null}r.name||(r.name="ObservableObject.key"),r.context=this.proxy_||this.target_;var l=fr(i),u={configurable:_.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 Je(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:cr});if(!a)return null}try{var s,o;Q();var l=re(this),u=!1,d=this.values_.get(i),c=void 0;if(!d&&(l||u)){var f;c=(f=nn(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 Fe&&(c=d.value_),Va(d)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(o=s.get(i))==null||o.set(i in this.target_),l||u){var k={type:cr,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:i};l&&ae(this,k)}}finally{ee()}return!0},e.observe_=function(i,r){return Dt(this,i)},e.intercept_=function(i){return $t(this,i)},e.notifyPropertyAddition_=function(i,r){var a,s,o=re(this),l=!1;if(o||l){var u=o||l?{type:_e,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:i,newValue:r}:null;o&&ae(this,u)}(a=this.pendingKeys_)==null||(s=a.get(i))==null||s.set(!0),this.keysAtom_.reportChanged()},e.ownKeys_=function(){return this.keysAtom_.reportObserved(),An(this.target_)},e.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},t}();function it(t,e){var n;if(ge(t,T))return t;var i=(n=e==null?void 0:e.name)!=null?n:"ObservableObject",r=new ns(t,new Map,String(i),Wl(e));return Nn(t,T,r),t}var Bu=$e("ObservableObjectAdministration",ns);function fr(t){return dr[t]||(dr[t]={get:function(){return this[T].getObservablePropValue_(t)},set:function(n){return this[T].setObservablePropValue_(t,n)}})}function Tn(t){return Sn(t)?Bu(t[T]):!1}function mr(t,e,n){var i;(i=t.target_[le])==null||delete i[n]}var zu=rs(0),Hu=function(){var t=!1,e={};return Object.defineProperty(e,"0",{set:function(){t=!0}}),Object.create(e)[0]=1,t===!1}(),Wn=0,is=function(){};function Gu(t,e){Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,e):t.prototype.__proto__!==void 0?t.prototype.__proto__=e:t.prototype=e}Gu(is,Array.prototype);var Vi=function(t,e,n){ya(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,Ve(function(){var d=new Ii(o,s,l,!0);d.proxy_=Kn(u),ga(Kn(u),T,d),a&&a.length&&u.spliceWithArray(0,0,a),Hu&&Object.defineProperty(Kn(u),"0",zu)}),u}var r=i.prototype;return r.concat=function(){this[T].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 Cn(u)?u.slice():u}))},r[n]=function(){var a=this,s=0;return At({next:function(){return s<a.length?{value:a[s++],done:!1}:{done:!0,value:void 0}}})},xi(i,[{key:"length",get:function(){return this[T].getArrayLength_()},set:function(s){this[T].setArrayLength_(s)}},{key:e,get:function(){return"Array"}}]),i}(is,Symbol.toStringTag,Symbol.iterator);Object.entries(un).forEach(function(t){var e=t[0],n=t[1];e!=="concat"&&Nn(Vi.prototype,e,n)});function rs(t){return{enumerable:!1,configurable:!0,get:function(){return this[T].get_(t)},set:function(n){this[T].set_(t,n)}}}function Ku(t){ce(Vi.prototype,""+t,rs(t))}function as(t){if(t>Wn){for(var e=Wn;e<t+100;e++)Ku(e);Wn=t}}as(1e3);function qu(t,e,n){return new Vi(t,e,n)}function cn(t,e){if(typeof t=="object"&&t!==null){if(Cn(t))return e!==void 0&&D(23),t[T].atom_;if(nt(t))return t.atom_;if(Ie(t)){if(e===void 0)return t.keysAtom_;var n=t.data_.get(e)||t.hasMap_.get(e);return n||D(25,e,vi(t)),n}if(Tn(t)){if(!e)return D(26);var i=t[T].values_.get(e);return i||D(27,e,vi(t)),i}if(Ri(t)||En(t)||ln(t))return t}else if(se(t)&&ln(t[T]))return t[T];D(28)}function Wu(t,e){if(t||D(29),Ri(t)||En(t)||ln(t)||Ie(t)||nt(t))return t;if(t[T])return t[T];D(24,t)}function vi(t,e){var n;if(e!==void 0)n=cn(t,e);else{if(Fn(t))return t.name;Tn(t)||Ie(t)||nt(t)?n=Wu(t):n=cn(t)}return n.name_}function Ve(t){var e=De(),n=Li(!0);Q();try{return t()}finally{ee(),$i(n),ve(e)}}var hr=_n.toString;function ji(t,e,n){return n===void 0&&(n=-1),ki(t,e,n)}function ki(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=hr.call(t);if(s!==hr.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=pr(t),e=pr(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&&!(se(l)&&l instanceof l&&se(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(!ki(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)&&ki(t[f],e[f],n-1,i,r)))return!1}return i.pop(),r.pop(),!0}function pr(t){return Cn(t)?t.slice():et(t)||Ie(t)||xt(t)||nt(t)?Array.from(t.entries()):t}function At(t){return t[Symbol.iterator]=Ju,t}function Ju(){return this}["Symbol","Map","Set"].forEach(function(t){var e=Ti();typeof e[t]=="undefined"&&D("MobX requires global '"+t+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:fu,extras:{getDebugName:vi},$mobx:T});class ss{constructor(e,n){w(this,"logger");w(this,"channel");w(this,"listeners",new Map);w(this,"eventQueue",new Map);this.logger=Ae.withPrefix(n,"EventBus");try{this.logger.debug(`Creating BroadcastChannel with name "${e}"`),this.channel=new BroadcastChannel(e),this.channel.onmessage=i=>this.handleMessage(i),this.channel.onmessageerror=i=>this.logger.error("NizzaBroadcastChannel error:",i)}catch(i){throw this.logger.error("Failed to create NizzaBroadcastChannel:",i),i}}on(e,n){return this.logger.debug(`Subscribing to pattern "${e}"`),this.subscribeToEvent(e,n),{off:()=>this.unsubscribeFromEvent(e,n)}}emit(e,n,i={}){this.logger.debug(`Emitting event "${e}" with data`,n),this.emitEvent(e,n,i)}handleMessage(e){const n=e.data,{name:i}=n;this.logger.debug(`Received message "${i}" with data`,n);for(const[r,a]of this.listeners.entries())this.matchWildcard(r,i)&&(this.logger.debug(`Matching pattern "${r}" for event "${i}"`),a.forEach(s=>s({...n,wildcard:r})))}subscribeToEvent(e,n){if(typeof e!="string"||typeof n!="function"){const r=new Error("Invalid arguments");throw this.logger.error(r),r}this.listeners.has(e)||(this.logger.debug(`Adding new pattern "${e}"`),this.listeners.set(e,new Set));const i=Array.from(this.eventQueue).filter(([r])=>{const a=this.matchWildcard(e,r);return a&&(this.eventQueue.delete(r),this.logger.debug(`Dequeued pending events for "${r}".`)),a}).flatMap(([,r])=>r);for(const[r,a]of this.listeners.entries())this.matchWildcard(r,e)&&(this.logger.debug(`Adding listener to pattern "${r}"`),a.add(n),i.length&&(this.logger.debug(`Delivering pending events for "${e}".`),i.forEach(s=>{n({...s,wildcard:r})})))}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){this.logger.debug(`Delivering event "${e}" to listeners`);for(const[s,o]of a)o({...r,wildcard:s})}else this.logger.debug(`No listeners for event "${e}", enqueuing`),this.eventQueue.has(e)||this.eventQueue.set(e,[]),this.eventQueue.get(e).push(r);this.logger.debug("Posting message to channel",r),this.channel.postMessage(r)}*getMatchingListeners(e){this.logger.debug(`Getting matching listeners for event "${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)){this.logger.debug(`Unsubscribing from event "${e}"`);const i=this.listeners.get(e);i.delete(n),i.size===0&&(this.logger.debug(`No more listeners for event "${e}", deleting`),this.listeners.delete(e))}}matchWildcard(e,n){const i=e.replace(/\*/g,"[^:]*").replace(/\*\*/g,".*"),a=new RegExp(`^${i}$`).test(n);return this.logger.debug(`Wildcard "${e}" matches with pattern "${n}": ${a}`),a}}const Yu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Xu=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=Yu[n[t]&63];return e};const os=(t=8)=>Xu(t),Zu=t=>{const e=Object.entries(t).reduce((n,[i,r])=>r!==void 0?`${n}${n?"&":""}${i}=${r}`:n,"");return e?`?${e}`:""},ls=t=>{const e=document.getElementById(t);return e?new URL(e.src).searchParams:new URLSearchParams};function Qu(){const t=new Error().stack.split(`
|
|
4
|
+
`);return t.length<3?"":t[2].trim().substring(3)}function ed(t){return new Promise(e=>setTimeout(e,t))}var us=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ds(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cs={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(us,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,x,U,F,P="loglevel";typeof m=="string"?P+=":"+m:typeof m=="symbol"&&(P=void 0);function j(v){var b=(r[v]||"silent").toUpperCase();if(!(typeof window===n||!P)){try{window.localStorage[P]=b;return}catch{}try{window.document.cookie=encodeURIComponent(P)+"="+b+";"}catch{}}}function M(){var v;if(!(typeof window===n||!P)){try{v=window.localStorage[P]}catch{}if(typeof v===n)try{var b=window.document.cookie,A=encodeURIComponent(P),N=b.indexOf(A+"=");N!==-1&&(v=/^([^;]+)/.exec(b.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 b=v;if(typeof b=="string"&&y.levels[b.toUpperCase()]!==void 0&&(b=y.levels[b.toUpperCase()]),typeof b=="number"&&b>=0&&b<=y.levels.SILENT)return b;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:x},y.setLevel=function(v,b){return F=O(v),b!==!1&&j(F),d.call(y)},y.setDefaultLevel=function(v){U=O(v),M()||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&&(x=O(s.getLevel())),d.call(y),s===y)for(var v in a)a[v].rebuild()},x=O(s?s.getLevel():"WARN");var E=M();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})})(cs);var fs=cs.exports;const Jn=ds(fs);var ms={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.prefix=n(e)})(us,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,x){var U=f(S,y,x),F=a[x]||a[""],P=F.template.indexOf("%t")!==-1,j=F.template.indexOf("%l")!==-1,M=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[x]){var b=F.timestampFormatter(new Date),A=F.levelFormatter(S),N=F.nameFormatter(x);F.format?g+=F.format(A,N,b):(g+=F.template,P&&(g=g.replace(/%t/,b)),j&&(g=g.replace(/%l/,A)),M&&(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})})(ms);var td=ms.exports;const gr=ds(td);var We;let Ae=(We=class{constructor(e=""){w(this,"provider",Jn);w(this,"defaultLevel",fs.levels.INFO);this.namePrefix=e,this.namePrefix=e?`${e}-`:"",this.provider.setDefaultLevel(this.defaultLevel),gr.reg(Jn),gr.apply(Jn,{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 i.setLevel(r||this.defaultLevel),i}static withPrefix(e,n){const i=/\(\w+\)/,r={get(a,s){const o=a[s];return typeof o=="function"&&We.LOG_METHODS.includes(s)?(...l)=>(typeof l[0]=="string"&&!i.test(l[0])&&(l[0]=`(${n}) ${l[0]}`),o.apply(a,l)):o}};return new Proxy(e,r)}},w(We,"LOG_METHODS",["trace","debug","info","warn","error","log"]),We);const ie=class ie{constructor(){w(this,"instanceId",os());w(this,"log",new Ae("nz"));w(this,"coreLogger",this.log.createLogger("core"));w(this,"_config",null);w(this,"_account");w(this,"_productDataSource");w(this,"_eventBus",new ss("nizza",this.coreLogger));this.coreLogger=Ae.withPrefix(this.coreLogger,"NizzaStore"),Wa(this,{_config:K,_account:K,_productDataSource:K,config:Ee,account:Ee,accountName:Ee,configure:be,setProductDataSource:be},{name:"NizzaStore",autoBind:!0})}static instance(){var n,i;if(!!((n=window==null?void 0:window.nizza)!=null&&n.store))ie._instance=(i=window==null?void 0:window.nizza)==null?void 0:i.store;else{const r=new ie;ie._instance=r}return window.nizza||(window.nizza={},ie._instance.coreLogger.debug("Initialized nizza window object")),window.nizza.store=ie._instance,window.nz=window.nizza,ie._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 Xs(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 ie.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(ie,"version","4"),w(ie,"_instance");let fn=ie;const rt=()=>fn.instance();function He(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Xt(t){return function e(n){return arguments.length===0||He(n)?e:t.apply(this,arguments)}}function Ui(t){return function e(n,i){switch(arguments.length){case 0:return e;case 1:return He(n)?e:Xt(function(r){return t(n,r)});default:return He(n)&&He(i)?e:He(n)?Xt(function(r){return t(r,i)}):He(i)?Xt(function(r){return t(n,r)}):t(n,i)}}}const nd=Number.isInteger||function(e){return e<<0===e};function id(t){return Object.prototype.toString.call(t)==="[object String]"}var rd=Ui(function(e,n){var i=e<0?n.length+e:e;return id(n)?n.charAt(i):n[i]}),ad=Xt(function(e){return e==null}),sd=Ui(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=nd(s)?rd(s,r):r[s],a+=1}return r})}),od=Ui(function(e,n){return sd([e],n)[0]});class It 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 hs extends It{constructor(e){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${e}' not found.`,e)}}class ps extends It{constructor(e){var n;super("APP_UNEXPECTED_ERROR",(n=e.message)!=null?n:"An unexpected error occurred.",e)}}class ld extends It{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class gs extends It{constructor(e){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
|
|
5
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".
|
|
@@ -23,48 +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 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]&&
|
|
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[
|
|
29
|
-
`+a.map(
|
|
30
|
-
`):" "+
|
|
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={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};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={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},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);/**
|
|
26
|
+
`)}}function ud(t,e){e.forEach(n=>{if(ad(od(n.split("."),t)))throw new gs(n)})}if(!z.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Wa)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function dd(t){t()}function cd(t){t||(t=dd),Ou({reactionScheduler:t})}function fd(t){return Fu(t)}var md=1e4,hd=1e4,pd=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=md),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,hd))}}),t}(),gd=typeof FinalizationRegistry!="undefined"?FinalizationRegistry:pd,yi=new gd(function(t){var e;(e=t.reaction)===null||e===void 0||e.dispose(),t.reaction=null}),vr=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 kr(t){return"observer".concat(t)}var vd=function(){function t(){}return t}();function kd(){return new vd}function yd(t,e){e===void 0&&(e="observed");var n=vr(z.useState(kd),1),i=n[0],r=vr(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 _t(kr(e),function(){l.mounted?s():l.changedBeforeMount=!0}),yi.register(i,l,l)),z.useDebugValue(l.reaction,fd),z.useEffect(function(){return yi.unregister(l),l.mounted=!0,l.reaction?l.changedBeforeMount&&(l.changedBeforeMount=!1,s()):(l.reaction=new _t(kr(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 vs=typeof Symbol=="function"&&Symbol.for;vs?Symbol.for("react.forward_ref"):typeof z.forwardRef=="function"&&z.forwardRef(function(t){return null}).$$typeof;vs?Symbol.for("react.memo"):typeof z.memo=="function"&&z.memo(function(t){return null}).$$typeof;var Yn;cd(la.unstable_batchedUpdates);Yn=yi.finalizeAllImmediately;function bd(t,e){return e===void 0&&(e="observed"),yd(t,e)}function ks(){return z.useMemo(rt,[])}function ys(t){const e=ks();return bd(()=>t(e))}const{coreLogger:_d}=rt(),Sd=Ae.withPrefix(_d,"CustomFetch");async function Mi(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 Sd.error(u),u}}const Nd=t=>Mi({...t,contentTypeJson:!1,raw:!1});function Ad(t,e,n){fetch(e).then(i=>i.blob()).then(i=>bs(i,`${t}.${n}`))}const bs=(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)},{coreLogger:wd}=rt(),Od=Ae.withPrefix(wd,"getClientTimeZone");function Ed(){var i,r,a;let t=null,e=null,n=null;try{t=(a=(r=(i=Intl.DateTimeFormat())==null?void 0:i.resolvedOptions())==null?void 0:r.timeZone)!=null?a:null;const s=-new Date().getTimezoneOffset();n=s;const o=s>=0?"+":"-",l=String(Math.floor(Math.abs(s)/60)).padStart(2,"0"),u=String(Math.abs(s)%60).padStart(2,"0");e=`${o}${l}:${u}`}catch{Od.error("Error obtaining time zone or offset")}return{offset:e,offsetValue:n,value:t,country:null,included:null,label:null}}class _s{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 Ss(t){return new _s(t)}class Fd{constructor(e){w(this,"_value");e!==void 0&&(this._value=e)}get value(){return this._value}}function Ns(t,e){return function(){return t.apply(e,arguments)}}const{toString:Cd}=Object.prototype,{getPrototypeOf:Bi}=Object,xn=(t=>e=>{const n=Cd.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),he=t=>(t=t.toLowerCase(),e=>xn(e)===t),Rn=t=>e=>typeof e===t,{isArray:at}=Array,wt=Rn("undefined");function Td(t){return t!==null&&!wt(t)&&t.constructor!==null&&!wt(t.constructor)&&te(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const As=he("ArrayBuffer");function xd(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&As(t.buffer),e}const Rd=Rn("string"),te=Rn("function"),ws=Rn("number"),Pn=t=>t!==null&&typeof t=="object",Pd=t=>t===!0||t===!1,Zt=t=>{if(xn(t)!=="object")return!1;const e=Bi(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Ld=he("Date"),$d=he("File"),Dd=he("Blob"),Id=he("FileList"),Vd=t=>Pn(t)&&te(t.pipe),jd=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||te(t.append)&&((e=xn(t))==="formdata"||e==="object"&&te(t.toString)&&t.toString()==="[object FormData]"))},Ud=he("URLSearchParams"),Md=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let i,r;if(typeof t!="object"&&(t=[t]),at(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 Os(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 Es=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Fs=t=>!wt(t)&&t!==Es;function bi(){const{caseless:t}=Fs(this)&&this||{},e={},n=(i,r)=>{const a=t&&Os(e,r)||r;Zt(e[a])&&Zt(i)?e[a]=bi(e[a],i):Zt(i)?e[a]=bi({},i):at(i)?e[a]=i.slice():e[a]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&Vt(arguments[i],n);return e}const Bd=(t,e,n,{allOwnKeys:i}={})=>(Vt(e,(r,a)=>{n&&te(r)?t[a]=Ns(r,n):t[a]=r},{allOwnKeys:i}),t),zd=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Hd=(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)},Gd=(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&&Bi(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Kd=(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},qd=t=>{if(!t)return null;if(at(t))return t;let e=t.length;if(!ws(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Wd=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&Bi(Uint8Array)),Jd=(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])}},Yd=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},Xd=he("HTMLFormElement"),Zd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),yr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Qd=he("RegExp"),Cs=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};Vt(n,(r,a)=>{let s;(s=e(r,a,t))!==!1&&(i[a]=s||r)}),Object.defineProperties(t,i)},ec=t=>{Cs(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+"'")})}})},tc=(t,e)=>{const n={},i=r=>{r.forEach(a=>{n[a]=!0})};return at(t)?i(t):i(String(t).split(e)),n},nc=()=>{},ic=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Xn="abcdefghijklmnopqrstuvwxyz",br="0123456789",Ts={DIGIT:br,ALPHA:Xn,ALPHA_DIGIT:Xn+Xn.toUpperCase()+br},rc=(t=16,e=Ts.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function ac(t){return!!(t&&te(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const sc=t=>{const e=new Array(10),n=(i,r)=>{if(Pn(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const a=at(i)?[]:{};return Vt(i,(s,o)=>{const l=n(s,r+1);!wt(l)&&(a[o]=l)}),e[r]=void 0,a}}return i};return n(t,0)},oc=he("AsyncFunction"),lc=t=>t&&(Pn(t)||te(t))&&te(t.then)&&te(t.catch),h={isArray:at,isArrayBuffer:As,isBuffer:Td,isFormData:jd,isArrayBufferView:xd,isString:Rd,isNumber:ws,isBoolean:Pd,isObject:Pn,isPlainObject:Zt,isUndefined:wt,isDate:Ld,isFile:$d,isBlob:Dd,isRegExp:Qd,isFunction:te,isStream:Vd,isURLSearchParams:Ud,isTypedArray:Wd,isFileList:Id,forEach:Vt,merge:bi,extend:Bd,trim:Md,stripBOM:zd,inherits:Hd,toFlatObject:Gd,kindOf:xn,kindOfTest:he,endsWith:Kd,toArray:qd,forEachEntry:Jd,matchAll:Yd,isHTMLForm:Xd,hasOwnProperty:yr,hasOwnProp:yr,reduceDescriptors:Cs,freezeMethods:ec,toObjectSet:tc,toCamelCase:Zd,noop:nc,toFiniteNumber:ic,findKey:Os,global:Es,isContextDefined:Fs,ALPHABET:Ts,generateString:rc,isSpecCompliantForm:ac,toJSONObject:sc,isAsyncFn:oc,isThenable:lc};function $(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($,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 xs=$.prototype,Rs={};["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=>{Rs[t]={value:t}});Object.defineProperties($,Rs);Object.defineProperty(xs,"isAxiosError",{value:!0});$.from=(t,e,n,i,r,a)=>{const s=Object.create(xs);return h.toFlatObject(t,s,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),$.call(s,t.message,e,n,i,r),s.cause=t,s.name=t.name,a&&Object.assign(s,a),s};const uc=null;function _i(t){return h.isPlainObject(t)||h.isArray(t)}function Ps(t){return h.endsWith(t,"[]")?t.slice(0,-2):t}function _r(t,e,n){return t?t.concat(e).map(function(r,a){return r=Ps(r),!n&&a?"["+r+"]":r}).join(n?".":""):e}function dc(t){return h.isArray(t)&&!t.some(_i)}const cc=h.toFlatObject(h,{},null,function(e){return/^is[A-Z]/.test(e)});function Ln(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 $("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)&&dc(p)||(h.isFileList(p)||h.endsWith(m,"[]"))&&(y=h.toArray(p)))return m=Ps(m),y.forEach(function(U,F){!(h.isUndefined(U)||U===null)&&e.append(s===!0?_r([m],F,a):s===null?m:m+"[]",u(U))}),!1}return _i(p)?!0:(e.append(_r(S,m,a),u(p)),!1)}const c=[],f=Object.assign(cc,{defaultVisitor:d,convertValue:u,isVisitable:_i});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,x){(!(h.isUndefined(y)||y===null)&&r.call(e,y,h.isString(x)?x.trim():x,m,f))===!0&&k(y,m?m.concat(x):[x])}),c.pop()}}if(!h.isObject(t))throw new TypeError("data must be an object");return k(t),e}function Sr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function zi(t,e){this._pairs=[],t&&Ln(t,this,e)}const Ls=zi.prototype;Ls.append=function(e,n){this._pairs.push([e,n])};Ls.toString=function(e){const n=e?function(i){return e.call(this,i,Sr)}:Sr;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function fc(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $s(t,e,n){if(!e)return t;const i=n&&n.encode||fc,r=n&&n.serialize;let a;if(r?a=r(e,n):a=h.isURLSearchParams(e)?e.toString():new zi(e,n).toString(i),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Nr{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 Ds={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mc=typeof URLSearchParams!="undefined"?URLSearchParams:zi,hc=typeof FormData!="undefined"?FormData:null,pc=typeof Blob!="undefined"?Blob:null,gc={isBrowser:!0,classes:{URLSearchParams:mc,FormData:hc,Blob:pc},protocols:["http","https","file","blob","url","data"]},Is=typeof window!="undefined"&&typeof document!="undefined",vc=(t=>Is&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator!="undefined"&&navigator.product),kc=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yc=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Is,hasStandardBrowserEnv:vc,hasStandardBrowserWebWorkerEnv:kc},Symbol.toStringTag,{value:"Module"})),ue={...yc,...gc};function bc(t,e){return Ln(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 _c(t){return h.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Sc(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 Vs(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]=Sc(r[s])),!o)}if(h.isFormData(t)&&h.isFunction(t.entries)){const n={};return h.forEachEntry(t,(i,r)=>{e(_c(i),r,n,0)}),n}return null}function Nc(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 jt={transitional:Ds,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(Vs(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 bc(e,this.formSerializer).toString();if((o=h.isFileList(e))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ln(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||r?(n.setContentType("application/json",!1),Nc(e)):e}],transformResponse:[function(e){const n=this.transitional||jt.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"?$.from(o,$.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=>{jt.headers[t]={}});const Ac=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"]),wc=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]&&Ac[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},Ar=Symbol("internals");function ut(t){return t&&String(t).trim().toLowerCase()}function Qt(t){return t===!1||t==null?t:h.isArray(t)?t.map(Qt):String(t)}function Oc(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 Ec=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Zn(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 Fc(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function Cc(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=ut(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]=Qt(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())&&!Ec(e)?s(wc(e),n):e!=null&&a(n,e,i),this}get(e,n){if(e=ut(e),e){const i=h.findKey(this,e);if(i){const r=this[i];if(!n)return r;if(n===!0)return Oc(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=ut(e),e){const i=h.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||Zn(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let r=!1;function a(s){if(s=ut(s),s){const o=h.findKey(i,s);o&&(!n||Zn(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||Zn(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]=Qt(r),delete n[a];return}const o=e?Fc(a):String(a).trim();o!==a&&delete n[a],n[o]=Qt(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[Ar]=this[Ar]={accessors:{}}).accessors,r=this.prototype;function a(s){const o=ut(s);i[o]||(Cc(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 Qn(t,e){const n=this||jt,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 js(t){return!!(t&&t.__CANCEL__)}function Ut(t,e,n){$.call(this,t==null?"canceled":t,$.ERR_CANCELED,e,n),this.name="CanceledError"}h.inherits(Ut,$,{__CANCEL__:!0});function Tc(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const xc=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 Rc(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Pc(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Us(t,e){return t&&!Rc(e)?Pc(t,e):e}const Lc=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 $c(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Dc(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 wr(t,e){let n=0;const i=Dc(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 Ic=typeof XMLHttpRequest!="undefined",Vc=Ic&&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=Us(t.baseURL,t.url);c.open(t.method.toUpperCase(),$s(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};Tc(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 $("Request aborted",$.ECONNABORTED,t,c)),c=null)},c.onerror=function(){i(new $("Network Error",$.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||Ds;t.timeoutErrorMessage&&(S=t.timeoutErrorMessage),i(new $(S,y.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,t,c)),c=null},ue.hasStandardBrowserEnv&&(o&&h.isFunction(o)&&(o=o(t)),o||o!==!1&&Lc(f))){const m=t.xsrfHeaderName&&t.xsrfCookieName&&xc.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",wr(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",wr(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=m=>{c&&(i(!m||m.type?new Ut(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=$c(f);if(p&&ue.protocols.indexOf(p)===-1){i(new $("Unsupported protocol "+p+":",$.ERR_BAD_REQUEST,t));return}c.send(r||null)})},Si={http:uc,xhr:Vc};h.forEach(Si,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Or=t=>`- ${t}`,jc=t=>h.isFunction(t)||t===null||t===!1,Ms={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,!jc(n)&&(i=Si[(s=String(n)).toLowerCase()],i===void 0))throw new $(`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(Or).join(`
|
|
30
|
+
`):" "+Or(a[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:Si};function ei(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ut(null,t)}function Er(t){return ei(t),t.headers=ne.from(t.headers),t.data=Qn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ms.getAdapter(t.adapter||jt.adapter)(t).then(function(i){return ei(t),i.data=Qn.call(t,t.transformResponse,i),i.headers=ne.from(i.headers),i},function(i){return js(i)||(ei(t),i&&i.response&&(i.response.data=Qn.call(t,t.transformResponse,i.response),i.response.headers=ne.from(i.response.headers))),Promise.reject(i)})}const Fr=t=>t instanceof ne?{...t}:t;function Xe(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(Fr(u),Fr(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 Bs="1.6.8",Hi={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Hi[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Cr={};Hi.transitional=function(e,n,i){function r(a,s){return"[Axios v"+Bs+"] Transitional option '"+a+"'"+s+(i?". "+i:"")}return(a,s,o)=>{if(e===!1)throw new $(r(s," has been removed"+(n?" in "+n:"")),$.ERR_DEPRECATED);return n&&!Cr[s]&&(Cr[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 Uc(t,e,n){if(typeof t!="object")throw new $("options must be an object",$.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 $("option "+a+" must be "+l,$.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new $("Unknown option "+a,$.ERR_BAD_OPTION)}}const Ni={assertOptions:Uc,validators:Hi},ke=Ni.validators;class Ce{constructor(e){this.defaults=e,this.interceptors={request:new Nr,response:new Nr}}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=Xe(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:a}=n;i!==void 0&&Ni.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}:Ni.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=[Er.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=Er.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=Xe(this.defaults,e);const n=Us(e.baseURL,e.url);return $s(n,e.params,e.paramsSerializer)}}h.forEach(["delete","get","head","options"],function(e){Ce.prototype[e]=function(n,i){return this.request(Xe(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(Xe(o||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}Ce.prototype[e]=n(),Ce.prototype[e+"Form"]=n(!0)});class Gi{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 Ut(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 Gi(function(r){e=r}),cancel:e}}}function Mc(t){return function(n){return t.apply(null,n)}}function Bc(t){return h.isObject(t)&&t.isAxiosError===!0}const Ai={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(Ai).forEach(([t,e])=>{Ai[e]=t});function zs(t){const e=new Ce(t),n=Ns(Ce.prototype.request,e);return h.extend(n,Ce.prototype,e,{allOwnKeys:!0}),h.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return zs(Xe(t,r))},n}const H=zs(jt);H.Axios=Ce;H.CanceledError=Ut;H.CancelToken=Gi;H.isCancel=js;H.VERSION=Bs;H.toFormData=Ln;H.AxiosError=$;H.Cancel=H.CanceledError;H.all=function(e){return Promise.all(e)};H.spread=Mc;H.isAxiosError=Bc;H.mergeConfig=Xe;H.AxiosHeaders=ne;H.formToJSON=t=>Vs(h.isHTMLForm(t)?new FormData(t):t);H.getAdapter=Ms.getAdapter;H.HttpStatusCode=Ai;H.default=H;class zc{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))}}var Ki=(t=>(t.VTEX="VTEX",t.VTEX_IO="VTEX-IO",t.VTEX_CMS="PORTAL-VTEX",t.PLATFORM="PLATFORM",t.UNKNOWN="UNKNOWN",t))(Ki||{}),Hs=(t=>(t.PLATFORM="platform_module",t.ADENDA="subscription_module",t.APP_STORE="app_store",t))(Hs||{}),qi=(t=>(t.ACTIVE="active_contract",t.INACTIVE="inactive_contract",t))(qi||{}),Gs=(t=>(t.LITE="lite",t.STANDARD="standard",t.PRO="pro",t))(Gs||{}),Ks=(t=>(t.LITE="PLAN_LITE",t.STANDARD="PLAN_ESTANDAR",t.PRO="PLAN_PRO",t.NONE="NO_PLAN",t))(Ks||{}),qs=(t=>(t.PAST="past",t.LIVE="live",t.FUTURE="future",t))(qs||{});class $n{constructor(e){w(this,"root",Ss(this));w(this,"id");w(this,"account");w(this,"accountType",Ki.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",qi.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 $n(a)}toPrimitives(){const{root:e,createdAt:n,...i}=this;return{...i,created:n.toISOString()}}}const Hc=`${el.apiUrls.restV1}/accounts/v2`;class Ws{async get(e){const n=`${Hc}/${e}`,{data:i}=await Mi({url:n});return i?$n.toDomain(i):null}}class Js{constructor(e){this.accountRepository=e}async get(e){try{const n=await this.accountRepository.get(e);if(!n)throw new hs(e);return n}catch(n){throw new ps(n)}}}const Gc=new Ws,Wi=new Js(Gc),Kc=()=>["account"],qc=()=>{const t=ys(r=>r.accountName),[e,n]=Wo(bn),i=To.useQuery(Kc(),()=>Wi.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=Uo();async function Xs(t){const e=await Wi.get(t);return Ys.set(bn,e),e}var Zs=(t=>(t.CREATED="CREATED",t.STARTING="STARTING",t.LIVE="LIVE",t.FINALIZED="FINALIZED",t))(Zs||{});const Wc={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:**"},Qs={EVENT_STATUS_CHANGED:"event:statusChanged",ATCH_ACTION_EXECUTED:"core:addToCartHooks:actionExecuted"};var eo=(t=>(t.English="en",t.Spanish="es",t.Portuguese="pt",t))(eo||{}),to=(t=>(t.COMBO="Combo",t.BADGE="Badged",t))(to||{}),no=(t=>(t.VTEX="VTEX",t.PLATFORM="platform",t.CACE="CACE",t.GLOBAL_PAGE="globalPage",t.CUSTOMIZATION="customization",t.FAST_STORE="faststore",t.UNKNOWN="unknown",t))(no||{}),io=(t=>(t.Created="CREATED",t.Finalized="FINALIZED",t.Live="LIVE",t.Starting="STARTING",t))(io||{}),ro=(t=>(t.Add="add",t.Remove="remove",t))(ro||{}),ao=(t=>(t.Active="active",t.Inactive="inactive",t))(ao||{});const Jc={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"}}]}}]}}]}}]},Yc={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"}}]}}]}}]}}]},Xc={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"}}]}}]}}]}}]},Zc={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"}}]}}]}}]}}]},Qc={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"}}]}}]}}]}}]},ef={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"}}]}}]}}]}}]},tf={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"}}]}}]}}]}}]},nf={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"}}]}}]}}]}}]},rf={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"}}]}}]}}]}}]},af={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"}}]}}]}}]}}]},sf={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"}}]}}]}}]}}]},of={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"}}]}}]}}]}}]},lf={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"}}]}}]}}]}}]},uf={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"}}]}}]}}]}}]},df={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"}}]}}]}}]}}]},cf={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"}}]}}]}}]}}]},ff={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"}}]}}]}}]}}]},mf={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"}}]}}]}}]}}]},hf={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"}}]}}]}}]}}]},pf={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"}}]}}]}}]}}]},gf={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"}}]}}]}}]}}]},vf={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"}}]}}]}}]}}]},kf={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"}}]}}]}}]}}]},yf={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"}}]}}]}}]}}]},bf={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"}}]}}]}}]}}]},_f={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"}}]}}]}}]}}]},Sf={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"}}]}}]}}]}}]},Nf={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"}}]}}]}}]}}]}}]},Af={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"}}]}}]}}]}}]},wf={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"}}]}}]}}]}}]},Of={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"}}]}}]}}]}}]},Ef={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"}}]}}]}}]}}]},Ff=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:Jc,AppendProductsToSnackVideoDocument:pf,BlockUserDocument:af,ChangeAccountUsernameDocument:sf,CreatePlayListDocument:gf,CreateSnackVideoBatchDocument:vf,DeleteAllCustomizationDocument:cf,DeleteChatMessageDocument:of,DeleteCollectionDocument:Yc,DeleteRelationshipWithSnackVideoDocument:kf,DeleteSnackVideoDocument:yf,EventStatus:io,FindByProductSnackVideoDocument:Of,FindCollectionDocument:Xc,FindManySnackVideosDocument:bf,FindMinimalEventDocument:nf,GetAllChatMessageDocument:lf,GetAllCollectionsDocument:Zc,GetAllCustomizationDocument:ff,GetAllSnackVideosDocument:_f,GetChatRoomTokenDocument:uf,GetPlayListDocument:Ef,GetPlayListsDocument:Sf,GetSnackVideoRelationshipsDocument:Nf,GetTimeLineDocument:hf,ManageCollectionProductDocument:Qc,Methods:ro,PinChatMessageDocument:df,SearchCollectionsDocument:ef,SearchMinimalEventsDocument:rf,SearchSnackVideosDocument:Af,Status:ao,UpdateCollectionDocument:tf,UpdateCustomizationDocument:mf,UpdatePlayListDocument:wf},Symbol.toStringTag,{value:"Module"}));var Dn=(t=>(t.OPEN_TAB="openTab",t.OPEN_VARIATION_SELECTOR="openVariationSelector",t.ADD_TO_CART="addToCart",t))(Dn||{});function Cf(t){return{class:t,_value:null,get value(){return this._value||(this._value=new t,Object.freeze(this)),this._value}}}var je=(t=>(t.Local="local",t.VtexLegacy="vtexlegacy",t.VtexIO="vtexio",t.External="external",t))(je||{}),In=(t=>(t.PROD="prod",t.DEV="dev",t.LOCAL="local",t))(In||{});const{coreLogger:Tf}=rt(),wi=Ae.withPrefix(Tf,"addToCartHooks"),ti="addToCartHooks.notification.error",Oi={errorAddingToCart:ti,errorOpeningVariationSelector:ti,errorOpeningNewTab:ti,successAddingToCart:"addToCartHooks.notification.success"};async function xf(t){const e={...t,action:{type:Dn.ADD_TO_CART,exec:()=>wi.error("action no implemented in validate hook")}};try{const n=await Rf(e),i=await Pf(n);await Lf(i)}catch(n){wi.error("error unhandled",n)}}async function Rf(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){mn("transform",o)}return{...t,product:r}}async function Pf(t){var l,u;const{context:e,hookStrategy:n,userAddToCartConfig:i,product:r}=t,a=so(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){mn("validate",d)}return{...t,action:o,actionFactory:a}}async function Lf(t){var S;const{eventBus:e}=rt(),{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===Dn.ADD_TO_CART;let c=null,f=!1;const k=()=>{!d||!o||s.openVariationSelector(!1).exec()},p=()=>{!d||f||(c?r.error(Oi.errorAddingToCart):r.success(Oi.successAddingToCart))},m=()=>{const y={product:n,actionType:a.type,success:!c,error:c};e.emit(Qs.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){mn("end",y),c=y}if(u)try{f=!!await u({data:l,error:c,notify:r,actionExecuted:a})}catch(y){mn("end",y)}k(),p(),m()}function so(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 mn(t,e){wi.error(`addToCartHooks error running ${t}: `,e)}function oo(t){const e=Object.values(t);return Object.assign({},...e)}function lo(t){return Object.entries(t).reduce((e,[n,i])=>{const r=oo(i);return{...e,[n]:r}},{})}function uo(t,e){const n=lo(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 Ot(t){"@babel/helpers - typeof";return Ot=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},Ot(t)}function Df(t,e){if(Ot(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(Ot(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function If(t){var e=Df(t,"string");return Ot(e)=="symbol"?e:e+""}function Vf(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,If(i.key),i)}}function jf(t,e,n){return e&&Vf(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var co=[],Uf=co.forEach,Mf=co.slice;function Bf(t){return Uf.call(Mf.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var Tr=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,zf=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(!Tr.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(r.domain)}if(r.path){if(!Tr.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},xr={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=zf(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)}},Hf={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document!="undefined"){var i=xr.read(e.lookupCookie);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document!="undefined"&&xr.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Gf={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}},dt=null,Rr=function(){if(dt!==null)return dt;try{dt=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{dt=!1}return dt},Kf={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&Rr()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&Rr()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},ct=null,Pr=function(){if(ct!==null)return ct;try{ct=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{ct=!1}return ct},qf={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&Pr()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&Pr()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},Wf={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}},Jf={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}},Yf={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}},Xf={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 Zf(){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 fo=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 jf(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=Bf(i,this.options||{},Zf()),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(Hf),this.addDetector(Gf),this.addDetector(Kf),this.addDetector(qf),this.addDetector(Wf),this.addDetector(Jf),this.addDetector(Yf),this.addDetector(Xf)}},{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}();fo.type="languageDetector";function mo(t,e){t.use(e).use(fo).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 Qf={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 hn{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||Qf,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 hn(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new hn(this.logger,e)}}var de=new hn;class Vn{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 ft(){let t,e;const n=new Promise((i,r)=>{t=i,e=r});return n.resolve=t,n.reject=e,n}function Lr(t){return t==null?"":""+t}function em(t,e,n){t.forEach(i=>{e[i]&&(n[i]=e[i])})}const tm=/###/g;function gt(t,e,n){function i(o){return o&&o.indexOf("###")>-1?o.replace(tm,"."):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 $r(t,e,n){const{obj:i,k:r}=gt(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=gt(t,s,Object);for(;o.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),o=gt(t,s,Object),o&&o.obj&&typeof o.obj[`${o.k}.${a}`]!="undefined"&&(o.obj=void 0);o.obj[`${o.k}.${a}`]=n}function nm(t,e,n,i){const{obj:r,k:a}=gt(t,e,Object);r[a]=r[a]||[],r[a].push(n)}function pn(t,e){const{obj:n,k:i}=gt(t,e);if(n)return n[i]}function im(t,e,n){const i=pn(t,n);return i!==void 0?i:pn(e,n)}function ho(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]):ho(t[i],e[i],n):t[i]=e[i]);return t}function Be(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var rm={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function am(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>rm[e]):t}class sm{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 om=[" ",",","?","!",";"],lm=new sm(20);function um(t,e,n){e=e||"",n=n||"";const i=om.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;const r=lm.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 Ei(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 gn(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class Dr extends Vn{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=pn(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:Ei(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),$r(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=pn(this.data,o)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?ho(l,i,a):l={...l,...i},$r(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 po={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 Ir={};class vn extends Vn{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),em(["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&&!um(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,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&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 M in f)if(Object.prototype.hasOwnProperty.call(f,M)){const g=`${j}${a}${M}`;P[M]=this.translate(g,{...n,joinArrays:!1,ns:o}),P[M]===g&&(P[M]=f[M])}f=P}}else if(x&&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",M=vn.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)&&M&&(F=!0,f=v),this.isValidLookup(f)||(P=!0,f=s);const A=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&P?void 0:f,N=M&&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,st)=>{const Qi=M&&st!==f?st:A;this.options.missingKeyHandler?this.options.missingKeyHandler(L,l,q,Qi,N,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(L,l,q,Qi,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(st=>{R([L],s+st,n[`defaultValue${st}`]||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=po.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,!Ir[`${m[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Ir[`${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 x=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(x,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&&(x.push(d+F),n.ordinal&&F.indexOf(j)===0&&x.push(d+F.replace(j,this.options.pluralSeparator)),k&&x.push(d+P)),p){const M=`${d}${this.options.contextSeparator}${n.context}`;x.push(M),f&&(x.push(M+F),n.ordinal&&F.indexOf(j)===0&&x.push(M+F.replace(j,this.options.pluralSeparator)),k&&x.push(M+P))}}let U;for(;U=x.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 ni(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Vr{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=de.create("languageUtils")}getScriptPartFromCode(e){if(e=gn(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=gn(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]=ni(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]=ni(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=ni(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 dm=[{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}],cm={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 fm=["v1","v2","v3"],mm=["v4"],jr={zero:0,one:1,two:2,few:3,many:4,other:5};function hm(){const t={};return dm.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:cm[e.fc]}})}),t}class pm{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||mm.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=hm()}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(gn(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)=>jr[r]-jr[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!fm.includes(this.options.compatibilityJSON)}}function Ur(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=im(t,e,n);return!a&&r&&typeof n=="string"&&(a=Ei(t,n,i),a===void 0&&(a=Ei(e,n,i))),a}class gm{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:am,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Be(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Be(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?Be(n.nestingPrefix):n.nestingPrefixEscaped||Be("$t("),this.nestingSuffix=n.nestingSuffix?Be(n.nestingSuffix):n.nestingSuffixEscaped||Be(")"),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 x=Ur(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,i,{...r,...n,interpolationkey:p}):x}const m=p.split(this.formatSeparator),S=m.shift().trim(),y=m.join(this.formatSeparator).trim();return this.format(Ur(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=Lr(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=Lr(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 vm(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 ze(t){const e={};return function(i,r,a){const s=r+JSON.stringify(a);let o=e[s];return o||(o=t(gn(r),a),e[s]=o),o(i)}}class km{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=de.create("formatter"),this.options=e,this.formats={number:ze((n,i)=>{const r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:ze((n,i)=>{const r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:ze((n,i)=>{const r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:ze((n,i)=>{const r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:ze((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()]=ze(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}=vm(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 ym(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class bm extends Vn{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=>{nm(l.loaded,[a],s),ym(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 Mr(){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 Br(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 Kt(){}function _m(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}class Et extends Vn{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Br(e),this.services={},this.logger=de,this.modules={external:[]},_m(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=Mr();this.options={...r,...this.options,...Br(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=km);const c=new Vr(this.options);this.store=new Dr(this.options.resources,this.options);const f=this.services;f.logger=de,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new pm(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 gm(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new bm(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 vn(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=Kt),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=ft(),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]:Kt;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=ft();return e||(e=this.languages),n||(n=this.options.ns),i||(i=Kt),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"&&po.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=ft();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=ft();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=ft();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 Vr(Mr());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 Et(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kt;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},a=new Et(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 Dr(this.store.data,r),a.services.resourceStore=a.store),a.translator=new vn(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=Et.createInstance();J.createInstance=Et.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 Sm=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Nm={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Am=t=>Nm[t],wm=t=>t.replace(Sm,Am);let zr={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:wm};function Om(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zr={...zr,...t}}const Em={type:"3rdParty",init(t){Om(t.options.react)}};mo(J,Em);const Fm=t=>uo(J,t);/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright 2019 Google LLC
|
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/const
|
|
35
|
+
*/const en=globalThis,Ji=en.ShadowRoot&&(en.ShadyCSS===void 0||en.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yi=Symbol(),Hr=new WeakMap;let go=class{constructor(e,n,i){if(this._$cssResult$=!0,i!==Yi)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(Ji&&e===void 0){const i=n!==void 0&&n.length===1;i&&(e=Hr.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Hr.set(n,e))}return e}toString(){return this.cssText}};const Cm=t=>new go(typeof t=="string"?t:t+"",void 0,Yi),Tm=(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 go(n,t,Yi)},xm=(t,e)=>{if(Ji)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const i=document.createElement("style"),r=en.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=n.cssText,t.appendChild(i)}},Gr=Ji?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const i of e.cssRules)n+=i.cssText;return Cm(n)})(t):t;/**
|
|
36
36
|
* @license
|
|
37
37
|
* Copyright 2017 Google LLC
|
|
38
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/const{is:
|
|
39
|
+
*/const{is:Rm,defineProperty:Pm,getOwnPropertyDescriptor:Lm,getOwnPropertyNames:$m,getOwnPropertySymbols:Dm,getPrototypeOf:Im}=Object,Se=globalThis,Kr=Se.trustedTypes,Vm=Kr?Kr.emptyScript:"",ii=Se.reactiveElementPolyfillSupport,vt=(t,e)=>t,Fi={toAttribute(t,e){switch(e){case Boolean:t=t?Vm: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}},vo=(t,e)=>!Rm(t,e),qr={attribute:!0,type:String,converter:Fi,reflect:!1,hasChanged:vo};var na,ia;(na=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ia=Se.litPropertyMetadata)!=null||(Se.litPropertyMetadata=new WeakMap);class Ge 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=qr){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&&Pm(this.prototype,e,r)}}static getPropertyDescriptor(e,n,i){var s;const{get:r,set:a}=(s=Lm(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:qr}static _$Ei(){if(this.hasOwnProperty(vt("elementProperties")))return;const e=Im(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(vt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(vt("properties"))){const n=this.properties,i=[...$m(n),...Dm(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(Gr(r))}else e!==void 0&&n.push(Gr(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 xm(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:Fi).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:Fi;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:vo)(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 ra;Ge.elementStyles=[],Ge.shadowRootOptions={mode:"open"},Ge[vt("elementProperties")]=new Map,Ge[vt("finalized")]=new Map,ii==null||ii({ReactiveElement:Ge}),((ra=Se.reactiveElementVersions)!=null?ra:Se.reactiveElementVersions=[]).push("2.0.4");/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2017 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/const
|
|
44
|
-
\f\r]`,
|
|
45
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
43
|
+
*/const kt=globalThis,kn=kt.trustedTypes,Wr=kn?kn.createPolicy("lit-html",{createHTML:t=>t}):void 0,ko="$lit$",ye=`lit$${Math.random().toFixed(9).slice(2)}$`,yo="?"+ye,jm=`<${yo}>`,Le=document,Ft=()=>Le.createComment(""),Ct=t=>t===null||typeof t!="object"&&typeof t!="function",bo=Array.isArray,Um=t=>bo(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",ri=`[
|
|
44
|
+
\f\r]`,mt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Jr=/-->/g,Yr=/>/g,we=RegExp(`>|${ri}(?:([^\\s"'>=/]+)(${ri}*=${ri}*(?:[^
|
|
45
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xr=/'/g,Zr=/"/g,_o=/^(?:script|style|textarea|title)$/i,Mm=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),Bm=Mm(1),Ze=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Qr=new WeakMap,Oe=Le.createTreeWalker(Le,129);function So(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wr!==void 0?Wr.createHTML(e):e}const zm=(t,e)=>{const n=t.length-1,i=[];let r,a=e===2?"<svg>":"",s=mt;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===mt?d[1]==="!--"?s=Jr:d[1]!==void 0?s=Yr:d[2]!==void 0?(_o.test(d[2])&&(r=RegExp("</"+d[2],"g")),s=we):d[3]!==void 0&&(s=we):s===we?d[0]===">"?(s=r!=null?r:mt,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?we:d[3]==='"'?Zr:Xr):s===Zr||s===Xr?s=we:s===Jr||s===Yr?s=mt:(s=we,r=void 0);const k=s===we&&t[o+1].startsWith("/>")?" ":"";a+=s===mt?l+jm:c>=0?(i.push(u),l.slice(0,c)+ko+l.slice(c)+ye+k):l+ye+(c===-2?o:k)}return[So(t,a+(t[n]||"<?>")+(e===2?"</svg>":"")),i]};class Tt{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]=zm(e,n);if(this.el=Tt.createElement(u,i),Oe.currentNode=this.el.content,n===2){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=Oe.nextNode())!==null&&l.length<o;){if(r.nodeType===1){if(r.hasAttributes())for(const c of r.getAttributeNames())if(c.endsWith(ko)){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]==="."?Gm:p[1]==="?"?Km:p[1]==="@"?qm:jn}),r.removeAttribute(c)}else c.startsWith(ye)&&(l.push({type:6,index:a}),r.removeAttribute(c));if(_o.test(r.tagName)){const c=r.textContent.split(ye),f=c.length-1;if(f>0){r.textContent=kn?kn.emptyScript:"";for(let k=0;k<f;k++)r.append(c[k],Ft()),Oe.nextNode(),l.push({type:2,index:++a});r.append(c[f],Ft())}}}else if(r.nodeType===8)if(r.data===yo)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=Le.createElement("template");return i.innerHTML=e,i}}function Qe(t,e,n=t,i){var s,o,l;if(e===Ze)return e;let r=i!==void 0?(s=n._$Co)==null?void 0:s[i]:n._$Cl;const a=Ct(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=Qe(t,r._$AS(t,e.values),r,i)),e}class Hm{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:Le).importNode(n,!0);Oe.currentNode=r;let a=Oe.nextNode(),s=0,o=0,l=i[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new Mt(a,a.nextSibling,this,e):l.type===1?d=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(d=new Wm(a,this,e)),this._$AV.push(d),l=i[++o]}s!==(l==null?void 0:l.index)&&(a=Oe.nextNode(),s++)}return Oe.currentNode=Le,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 Mt{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=Qe(this,e,n),Ct(e)?e===G||e==null||e===""?(this._$AH!==G&&this._$AR(),this._$AH=G):e!==this._$AH&&e!==Ze&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Um(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&&Ct(this._$AH)?this._$AA.nextSibling.data=e:this.T(Le.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=Tt.createElement(So(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 Hm(r,this),o=s.u(this.options);s.p(n),this.T(o),this._$AH=s}}_$AC(e){let n=Qr.get(e.strings);return n===void 0&&Qr.set(e.strings,n=new Tt(e)),n}k(e){bo(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 Mt(this.S(Ft()),this.S(Ft()),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 jn{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=Qe(this,e,n,0),s=!Ct(e)||e!==this._$AH&&e!==Ze,s&&(this._$AH=e);else{const o=e;let l,u;for(e=a[0],l=0;l<a.length-1;l++)u=Qe(this,o[i+l],n,l),u===Ze&&(u=this._$AH[l]),s||(s=!Ct(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 Gm extends jn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===G?void 0:e}}class Km extends jn{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==G)}}class qm extends jn{constructor(e,n,i,r,a){super(e,n,i,r,a),this.type=5}_$AI(e,n=this){var s;if((e=(s=Qe(this,e,n,0))!=null?s:G)===Ze)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 Wm{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){Qe(this,e)}}const ai=kt.litHtmlPolyfillSupport;var aa;ai==null||ai(Tt,Mt),((aa=kt.litHtmlVersions)!=null?aa:kt.litHtmlVersions=[]).push("3.1.3");const Jm=(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 Mt(e.insertBefore(Ft(),o),o,void 0,n!=null?n:{})}return r._$AI(t),r};/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
|
-
*/let
|
|
49
|
+
*/let yt=class extends Ge{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=Jm(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 Ze}};var sa;yt._$litElement$=!0,yt.finalized=!0,(sa=globalThis.litElementHydrateSupport)==null||sa.call(globalThis,{LitElement:yt});const si=globalThis.litElementPolyfillSupport;si==null||si({LitElement:yt});var oa;((oa=globalThis.litElementVersions)!=null?oa:globalThis.litElementVersions=[]).push("4.0.5");/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2020 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/const
|
|
53
|
+
*/const Ym=t=>t.strings===void 0;/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/const
|
|
57
|
+
*/const Xm={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Zm=t=>(...e)=>({_$litDirective$:t,values:e});class Qm{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
58
|
* @license
|
|
59
59
|
* Copyright 2017 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/const
|
|
61
|
+
*/const bt=(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),bt(r,e);return!0},yn=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)},No=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),nh(e)}};function eh(t){this._$AN!==void 0?(yn(this),this._$AM=t,No(this)):this._$AM=t}function th(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++)bt(i[a],!1),yn(i[a]);else i!=null&&(bt(i,!1),yn(i));else bt(this,t)}const nh=t=>{var e,n;t.type==Xm.CHILD&&((e=t._$AP)!=null||(t._$AP=th),(n=t._$AQ)!=null||(t._$AQ=eh))};class ih extends Qm{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,n,i){super._$AT(e,n,i),No(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&&(bt(this,e),yn(this))}setValue(e){if(Ym(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
62
|
* @license
|
|
63
63
|
* Copyright 2020 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/const
|
|
65
|
+
*/const rh=()=>new ah;class ah{}const oi=new WeakMap,sh=Zm(class extends ih{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=oi.get(n);i===void 0&&(i=new WeakMap,oi.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=oi.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 Ao,ea=la;Ao=ea.createRoot,ea.hydrateRoot;class wo extends yt{constructor(){super(...arguments);w(this,"rootRef",rh());w(this,"rootInstance")}render(){return Bm`<div ${sh(this.rootRef)}></div>`}updated(){this.updateReactComponent()}updateReactComponent(){if(!this.rootRef.value)return;this.rootInstance||(this.rootInstance=Ao(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(wo,"baseStyles",Tm`
|
|
66
66
|
:host {
|
|
67
67
|
width: 100%;
|
|
68
68
|
}
|
|
69
|
-
`);let
|
|
69
|
+
`);let Xi=new Map;const Ci=z.createContext(Xi),oh=({children:t,stores:e})=>{const n=z.useContext(Ci),i=z.useMemo(()=>{const r=new Map;return e.forEach(a=>r.set(a.class,a.value)),Xi=new Map([...n,...r])},[]);return xo.jsx(Ci.Provider,{value:i,children:t})};function lh(t){return z.useContext(Ci).get(t)}function uh(t){return Xi.get(t)}class Oo{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 Un{constructor(e){this.config=e}static isApplicable(){return In.LOCAL==="dev"}async execute(){var n;const{runtime:e}=this.config;if(!((n=e.env)!=null&&n.account)){e.logger.error("missing account in local environment");return}await e.configureStore(e.env)}}w(Un,"type",je.Local);const qt=window==null?void 0:window.__RUNTIME__;class Mn{constructor(e){this.config=e;const n={vtexio:qt};this.config.runtime.updateMetadata(n)}static isApplicable(){return!!qt}async execute(){const{runtime:e}=this.config;if(!qt.account){e.logger.error("missing the account in window.__RUNTIME__");return}await e.configureStore({account:qt.account})}}w(Mn,"type",je.VtexIO);const ta=window==null?void 0:window.vtexjs;class Bn{constructor(e){this.config=e;const n={vtexjs:ta};this.config.runtime.updateMetadata(n)}static isApplicable(){return!!ta}async execute(){const{runtime:e}=this.config;let n={};const i=`${e.componentId.value}-script`,r=ls(i);if(n=Object.fromEntries(r.entries()),!n.account){e.logger.error(`missing the account in the search params of the script #${i}`);return}await e.configureStore({account:n.account})}}w(Bn,"type",je.VtexLegacy);class Zi{constructor(e){this.config=e}static isApplicable(){return!Un.isApplicable()&&!Bn.isApplicable()&&!Mn.isApplicable()}async execute(){}}w(Zi,"type",je.External);const Eo=[Un,Bn,Mn,Zi];class dh{constructor(e){w(this,"globalId");w(this,"metadata");w(this,"customConfigList");w(this,"env");w(this,"logger");w(this,"isProd");w(this,"isLocal");w(this,"componentId");w(this,"renderHandler");w(this,"store");this.globalId=e.globalId,this.store=e.getStore(),this.logger=Ae.withPrefix(e.logger,"Runtime"),this.env=e.env,this.customConfigList=new Map,this.metadata={type:je.External},this.isProd=!0,this.isLocal=In.LOCAL==="dev",this.initializeGlobals()}config(e,n,i){typeof n=="function"&&(i=n,n={});const{skipBaseBehavior:r=!1}=n;return this.customConfigList.set(e,{callback:i,skipBaseBehavior:r}),this}registerComponent(e,n){const i=this.toCamel(e);if(window[this.globalId][i])return this.logger.debug(`Component "${i}" is already registered.`),this;this.componentId={value:e,formatted:i},this.renderHandler=n;const r={render:this.renderHandler};return window[this.globalId][this.componentId.formatted]=r,this.logger.debug(`Component "${i}" registered.`),this}async execute(e){for(const n of Eo)if(n.isApplicable()){const i=new n({runtime:this}),r=this.customConfigList.get(n.type);this.updateMetadata({type:n.type}),r!=null&&r.skipBaseBehavior||await i.execute(),r&&await r.callback({runtime:this,component:new Oo(this.componentId.value,this.renderHandler,this.logger)});break}await(e==null?void 0:e())}updateMetadata(e){this.metadata={...this.metadata,...e}}async configureStore(e){await this.store.configure(e)}get meta(){return this.metadata}initializeGlobals(){var i;if(window[this.globalId]||(window[this.globalId]={},this.logger.debug(`Initialized "${this.globalId}" window object`)),(i=window[this.globalId])!=null&&i.runtime){this.logger.debug(`Runtime for "${this.globalId}" are already initialized.`);return}const e=()=>Object.freeze({...this.metadata}),n=()=>Object.freeze({isProd:this.isProd,isLocal:this.isLocal,get metadata(){return e()}});Object.defineProperty(window[this.globalId],"runtime",{get:()=>n()}),this.logger.debug(`Initialized runtime for "${this.globalId}".`)}toCamel(e){return e.replace(/^[a-z]{2}-/,"").replace(/-./g,n=>n[1].toUpperCase())}}exports.AccountContractStatusTypes=qi;exports.AccountContractTypes=Hs;exports.AccountInvalidError=ld;exports.AccountPlanDescriptionTypes=Ks;exports.AccountRestRepository=Ws;exports.AccountService=Js;exports.AccountSubscriptionTypes=Gs;exports.AccountTypes=Ki;exports.AddToCartActionTypes=Dn;exports.AggregateRoot=_s;exports.ApiGraphqlTypes=Ff;exports.BroadcastChannelEventBus=ss;exports.ComponentManager=Oo;exports.DomainError=It;exports.EventBusWildcards=Wc;exports.EventNames=Qs;exports.ExternalRuntime=Zi;exports.GlobalPageSectionTypes=qs;exports.HttpAxiosClient=zc;exports.InvalidNizzaGlobalObjectError=gs;exports.LanguageTypes=eo;exports.LocalRuntime=Un;exports.Logger=Ae;exports.NizzaAccount=$n;exports.NizzaEventStatus=Zs;exports.NizzaProductRequestOriginTypes=no;exports.NizzaStore=fn;exports.NizzaVariationTypes=to;exports.ReactHostElement=wo;exports.ResourceNotFoundError=hs;exports.Runtime=dh;exports.RuntimeStage=In;exports.RuntimeType=je;exports.StoreProvider=oh;exports.UnexpectedError=ps;exports.ValueObject=Fd;exports.VtexIORuntime=Mn;exports.VtexLegacyRuntime=Bn;exports.accountAtom=bn;exports.accountService=Wi;exports.addToCartMessages=Oi;exports.apiCall=Nd;exports.buildLanguageTranslations=oo;exports.buildTranslations=lo;exports.createActionFactory=so;exports.createAggregateRoot=Ss;exports.createLazyLogger=tl;exports.createStore=Cf;exports.customFetch=Mi;exports.downloadFile=Ad;exports.fileOrigin=Qu;exports.getAccount=Xs;exports.getClientTimeZone=Ed;exports.getNizza=rt;exports.getScriptParams=ls;exports.getStore=uh;exports.globalAtomStore=Ys;exports.i18Init=mo;exports.jsDownload=bs;exports.registerTranslations=Fm;exports.registerTranslationsOf=uo;exports.runAddToCartHooks=xf;exports.runtimeList=Eo;exports.searchParams=Zu;exports.shortId=os;exports.sleep=ed;exports.useAccount=qc;exports.useNZ=ks;exports.useNizza=ys;exports.useStore=lh;exports.validateRequiredProps=ud;
|
|
70
70
|
//# sourceMappingURL=index.cjs.map
|